xref: /linux/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml (revision 619b92b9c8fe5369503ae948ad4e0a9c195c2c4a)
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:
195aa9d3a7SBinbin Zhou      - loongson,ls2k0500-clk
205aa9d3a7SBinbin Zhou      - loongson,ls2k-clk  # This is for Loongson-2K1000
21*26732562SBinbin Zhou      - loongson,ls2k2000-clk
228ffba409SYinbo Zhu
238ffba409SYinbo Zhu  reg:
248ffba409SYinbo Zhu    maxItems: 1
258ffba409SYinbo Zhu
268ffba409SYinbo Zhu  clocks:
278ffba409SYinbo Zhu    items:
288ffba409SYinbo Zhu      - description: 100m ref
298ffba409SYinbo Zhu
308ffba409SYinbo Zhu  clock-names:
318ffba409SYinbo Zhu    items:
328ffba409SYinbo Zhu      - const: ref_100m
338ffba409SYinbo Zhu
348ffba409SYinbo Zhu  '#clock-cells':
358ffba409SYinbo Zhu    const: 1
368ffba409SYinbo Zhu    description:
378ffba409SYinbo Zhu      The clock consumer should specify the desired clock by having the clock
388ffba409SYinbo Zhu      ID in its "clocks" phandle cell. See include/dt-bindings/clock/loongson,ls2k-clk.h
398ffba409SYinbo Zhu      for the full list of Loongson-2 SoC clock IDs.
408ffba409SYinbo Zhu
418ffba409SYinbo Zhurequired:
428ffba409SYinbo Zhu  - compatible
438ffba409SYinbo Zhu  - reg
448ffba409SYinbo Zhu  - clocks
458ffba409SYinbo Zhu  - clock-names
468ffba409SYinbo Zhu  - '#clock-cells'
478ffba409SYinbo Zhu
488ffba409SYinbo ZhuadditionalProperties: false
498ffba409SYinbo Zhu
508ffba409SYinbo Zhuexamples:
518ffba409SYinbo Zhu  - |
528ffba409SYinbo Zhu    ref_100m: clock-ref-100m {
538ffba409SYinbo Zhu        compatible = "fixed-clock";
548ffba409SYinbo Zhu        #clock-cells = <0>;
558ffba409SYinbo Zhu        clock-frequency = <100000000>;
568ffba409SYinbo Zhu        clock-output-names = "ref_100m";
578ffba409SYinbo Zhu    };
588ffba409SYinbo Zhu
598ffba409SYinbo Zhu    clk: clock-controller@1fe00480 {
608ffba409SYinbo Zhu        compatible = "loongson,ls2k-clk";
618ffba409SYinbo Zhu        reg = <0x1fe00480 0x58>;
628ffba409SYinbo Zhu        #clock-cells = <1>;
638ffba409SYinbo Zhu        clocks = <&ref_100m>;
648ffba409SYinbo Zhu        clock-names = "ref_100m";
658ffba409SYinbo Zhu    };
66