1*653c3d33SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*653c3d33SKrzysztof Kozlowski%YAML 1.2
3*653c3d33SKrzysztof Kozlowski---
4*653c3d33SKrzysztof Kozlowski$id: http://devicetree.org/schemas/clock/samsung,s5pv210-clock.yaml#
5*653c3d33SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6*653c3d33SKrzysztof Kozlowski
7*653c3d33SKrzysztof Kozlowskititle: Samsung S5P6442/S5PC110/S5PV210 SoC clock controller
8*653c3d33SKrzysztof Kozlowski
9*653c3d33SKrzysztof Kozlowskimaintainers:
10*653c3d33SKrzysztof Kozlowski  - Chanwoo Choi <cw00.choi@samsung.com>
11*653c3d33SKrzysztof Kozlowski  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
12*653c3d33SKrzysztof Kozlowski  - Sylwester Nawrocki <s.nawrocki@samsung.com>
13*653c3d33SKrzysztof Kozlowski  - Tomasz Figa <tomasz.figa@gmail.com>
14*653c3d33SKrzysztof Kozlowski
15*653c3d33SKrzysztof Kozlowskidescription: |
16*653c3d33SKrzysztof Kozlowski  Expected external clocks, defined in DTS as fixed-rate clocks with a matching
17*653c3d33SKrzysztof Kozlowski  name::
18*653c3d33SKrzysztof Kozlowski    - "xxti" - external crystal oscillator connected to XXTI and XXTO pins of
19*653c3d33SKrzysztof Kozlowski      the SoC,
20*653c3d33SKrzysztof Kozlowski    - "xusbxti" - external crystal oscillator connected to XUSBXTI and XUSBXTO
21*653c3d33SKrzysztof Kozlowski      pins of the SoC,
22*653c3d33SKrzysztof Kozlowski
23*653c3d33SKrzysztof Kozlowski  All available clocks are defined as preprocessor macros in
24*653c3d33SKrzysztof Kozlowski  include/dt-bindings/clock/s5pv210.h header.
25*653c3d33SKrzysztof Kozlowski
26*653c3d33SKrzysztof Kozlowskiproperties:
27*653c3d33SKrzysztof Kozlowski  compatible:
28*653c3d33SKrzysztof Kozlowski    enum:
29*653c3d33SKrzysztof Kozlowski      - samsung,s5pv210-clock
30*653c3d33SKrzysztof Kozlowski      - samsung,s5p6442-clock
31*653c3d33SKrzysztof Kozlowski
32*653c3d33SKrzysztof Kozlowski  clocks:
33*653c3d33SKrzysztof Kozlowski    items:
34*653c3d33SKrzysztof Kozlowski      - description: xxti clock
35*653c3d33SKrzysztof Kozlowski      - description: xusbxti clock
36*653c3d33SKrzysztof Kozlowski
37*653c3d33SKrzysztof Kozlowski  clock-names:
38*653c3d33SKrzysztof Kozlowski    items:
39*653c3d33SKrzysztof Kozlowski      - const: xxti
40*653c3d33SKrzysztof Kozlowski      - const: xusbxti
41*653c3d33SKrzysztof Kozlowski
42*653c3d33SKrzysztof Kozlowski  "#clock-cells":
43*653c3d33SKrzysztof Kozlowski    const: 1
44*653c3d33SKrzysztof Kozlowski
45*653c3d33SKrzysztof Kozlowski  reg:
46*653c3d33SKrzysztof Kozlowski    maxItems: 1
47*653c3d33SKrzysztof Kozlowski
48*653c3d33SKrzysztof Kozlowskirequired:
49*653c3d33SKrzysztof Kozlowski  - compatible
50*653c3d33SKrzysztof Kozlowski  - "#clock-cells"
51*653c3d33SKrzysztof Kozlowski  - reg
52*653c3d33SKrzysztof Kozlowski
53*653c3d33SKrzysztof KozlowskiadditionalProperties: false
54*653c3d33SKrzysztof Kozlowski
55*653c3d33SKrzysztof Kozlowskiexamples:
56*653c3d33SKrzysztof Kozlowski  - |
57*653c3d33SKrzysztof Kozlowski    #include <dt-bindings/clock/s5pv210.h>
58*653c3d33SKrzysztof Kozlowski
59*653c3d33SKrzysztof Kozlowski    xxti: clock-0 {
60*653c3d33SKrzysztof Kozlowski        compatible = "fixed-clock";
61*653c3d33SKrzysztof Kozlowski        clock-frequency = <0>;
62*653c3d33SKrzysztof Kozlowski        clock-output-names = "xxti";
63*653c3d33SKrzysztof Kozlowski        #clock-cells = <0>;
64*653c3d33SKrzysztof Kozlowski    };
65*653c3d33SKrzysztof Kozlowski
66*653c3d33SKrzysztof Kozlowski    xusbxti: clock-1 {
67*653c3d33SKrzysztof Kozlowski        compatible = "fixed-clock";
68*653c3d33SKrzysztof Kozlowski        clock-frequency = <0>;
69*653c3d33SKrzysztof Kozlowski        clock-output-names = "xusbxti";
70*653c3d33SKrzysztof Kozlowski        #clock-cells = <0>;
71*653c3d33SKrzysztof Kozlowski    };
72*653c3d33SKrzysztof Kozlowski
73*653c3d33SKrzysztof Kozlowski    clock-controller@e0100000 {
74*653c3d33SKrzysztof Kozlowski        compatible = "samsung,s5pv210-clock";
75*653c3d33SKrzysztof Kozlowski        reg = <0xe0100000 0x10000>;
76*653c3d33SKrzysztof Kozlowski        clock-names = "xxti", "xusbxti";
77*653c3d33SKrzysztof Kozlowski        clocks = <&xxti>, <&xusbxti>;
78*653c3d33SKrzysztof Kozlowski        #clock-cells = <1>;
79*653c3d33SKrzysztof Kozlowski    };
80