xref: /linux/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml (revision 5aa9d3a79bc66f2cc9ef9e89ffe7f37a96d47ce8)
18ffba409SYinbo Zhu# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28ffba409SYinbo Zhu%YAML 1.2
38ffba409SYinbo Zhu---
48ffba409SYinbo Zhu$id: http://devicetree.org/schemas/clock/loongson,ls2k-clk.yaml#
58ffba409SYinbo Zhu$schema: http://devicetree.org/meta-schemas/core.yaml#
68ffba409SYinbo Zhu
78ffba409SYinbo Zhutitle: Loongson-2 SoC Clock Control Module
88ffba409SYinbo Zhu
98ffba409SYinbo Zhumaintainers:
108ffba409SYinbo Zhu  - Yinbo Zhu <zhuyinbo@loongson.cn>
118ffba409SYinbo Zhu
128ffba409SYinbo Zhudescription: |
138ffba409SYinbo Zhu  Loongson-2 SoC clock control module is an integrated clock controller, which
148ffba409SYinbo Zhu  generates and supplies to all modules.
158ffba409SYinbo Zhu
168ffba409SYinbo Zhuproperties:
178ffba409SYinbo Zhu  compatible:
188ffba409SYinbo Zhu    enum:
19*5aa9d3a7SBinbin Zhou      - loongson,ls2k0500-clk
20*5aa9d3a7SBinbin Zhou      - loongson,ls2k-clk  # This is for Loongson-2K1000
218ffba409SYinbo Zhu
228ffba409SYinbo Zhu  reg:
238ffba409SYinbo Zhu    maxItems: 1
248ffba409SYinbo Zhu
258ffba409SYinbo Zhu  clocks:
268ffba409SYinbo Zhu    items:
278ffba409SYinbo Zhu      - description: 100m ref
288ffba409SYinbo Zhu
298ffba409SYinbo Zhu  clock-names:
308ffba409SYinbo Zhu    items:
318ffba409SYinbo Zhu      - const: ref_100m
328ffba409SYinbo Zhu
338ffba409SYinbo Zhu  '#clock-cells':
348ffba409SYinbo Zhu    const: 1
358ffba409SYinbo Zhu    description:
368ffba409SYinbo Zhu      The clock consumer should specify the desired clock by having the clock
378ffba409SYinbo Zhu      ID in its "clocks" phandle cell. See include/dt-bindings/clock/loongson,ls2k-clk.h
388ffba409SYinbo Zhu      for the full list of Loongson-2 SoC clock IDs.
398ffba409SYinbo Zhu
408ffba409SYinbo Zhurequired:
418ffba409SYinbo Zhu  - compatible
428ffba409SYinbo Zhu  - reg
438ffba409SYinbo Zhu  - clocks
448ffba409SYinbo Zhu  - clock-names
458ffba409SYinbo Zhu  - '#clock-cells'
468ffba409SYinbo Zhu
478ffba409SYinbo ZhuadditionalProperties: false
488ffba409SYinbo Zhu
498ffba409SYinbo Zhuexamples:
508ffba409SYinbo Zhu  - |
518ffba409SYinbo Zhu    ref_100m: clock-ref-100m {
528ffba409SYinbo Zhu        compatible = "fixed-clock";
538ffba409SYinbo Zhu        #clock-cells = <0>;
548ffba409SYinbo Zhu        clock-frequency = <100000000>;
558ffba409SYinbo Zhu        clock-output-names = "ref_100m";
568ffba409SYinbo Zhu    };
578ffba409SYinbo Zhu
588ffba409SYinbo Zhu    clk: clock-controller@1fe00480 {
598ffba409SYinbo Zhu        compatible = "loongson,ls2k-clk";
608ffba409SYinbo Zhu        reg = <0x1fe00480 0x58>;
618ffba409SYinbo Zhu        #clock-cells = <1>;
628ffba409SYinbo Zhu        clocks = <&ref_100m>;
638ffba409SYinbo Zhu        clock-names = "ref_100m";
648ffba409SYinbo Zhu    };
65