xref: /freebsd/sys/contrib/device-tree/Bindings/clock/allwinner,sun4i-a10-mmc-clk.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-mmc-clk.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: Allwinner A10 Module 1 Clock Device Tree Bindings
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotmaintainers:
10*c66ec88fSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
11*c66ec88fSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadotdeprecated: true
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadotproperties:
16*c66ec88fSEmmanuel Vadot  "#clock-cells":
17*c66ec88fSEmmanuel Vadot    const: 1
18*c66ec88fSEmmanuel Vadot    description: >
19*c66ec88fSEmmanuel Vadot      There is three different outputs: the main clock, with the ID 0,
20*c66ec88fSEmmanuel Vadot      and the output and sample clocks, with the IDs 1 and 2,
21*c66ec88fSEmmanuel Vadot      respectively.
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot  compatible:
24*c66ec88fSEmmanuel Vadot    enum:
25*c66ec88fSEmmanuel Vadot      - allwinner,sun4i-a10-mmc-clk
26*c66ec88fSEmmanuel Vadot      - allwinner,sun9i-a80-mmc-clk
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot  reg:
29*c66ec88fSEmmanuel Vadot    maxItems: 1
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel Vadot  clocks:
32*c66ec88fSEmmanuel Vadot    minItems: 2
33*c66ec88fSEmmanuel Vadot    maxItems: 3
34*c66ec88fSEmmanuel Vadot    description: >
35*c66ec88fSEmmanuel Vadot      The parent order must match the hardware programming order.
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot  clock-output-names:
38*c66ec88fSEmmanuel Vadot    maxItems: 3
39*c66ec88fSEmmanuel Vadot
40*c66ec88fSEmmanuel Vadotrequired:
41*c66ec88fSEmmanuel Vadot  - "#clock-cells"
42*c66ec88fSEmmanuel Vadot  - compatible
43*c66ec88fSEmmanuel Vadot  - reg
44*c66ec88fSEmmanuel Vadot  - clocks
45*c66ec88fSEmmanuel Vadot  - clock-output-names
46*c66ec88fSEmmanuel Vadot
47*c66ec88fSEmmanuel VadotadditionalProperties: false
48*c66ec88fSEmmanuel Vadot
49*c66ec88fSEmmanuel Vadotif:
50*c66ec88fSEmmanuel Vadot  properties:
51*c66ec88fSEmmanuel Vadot    compatible:
52*c66ec88fSEmmanuel Vadot      contains:
53*c66ec88fSEmmanuel Vadot        const: allwinner,sun4i-a10-mmc-clk
54*c66ec88fSEmmanuel Vadot
55*c66ec88fSEmmanuel Vadotthen:
56*c66ec88fSEmmanuel Vadot  properties:
57*c66ec88fSEmmanuel Vadot    clocks:
58*c66ec88fSEmmanuel Vadot      maxItems: 3
59*c66ec88fSEmmanuel Vadot
60*c66ec88fSEmmanuel Vadotelse:
61*c66ec88fSEmmanuel Vadot  properties:
62*c66ec88fSEmmanuel Vadot    clocks:
63*c66ec88fSEmmanuel Vadot      maxItems: 2
64*c66ec88fSEmmanuel Vadot
65*c66ec88fSEmmanuel Vadotexamples:
66*c66ec88fSEmmanuel Vadot  - |
67*c66ec88fSEmmanuel Vadot    clk@1c20088 {
68*c66ec88fSEmmanuel Vadot        #clock-cells = <1>;
69*c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun4i-a10-mmc-clk";
70*c66ec88fSEmmanuel Vadot        reg = <0x01c20088 0x4>;
71*c66ec88fSEmmanuel Vadot        clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
72*c66ec88fSEmmanuel Vadot        clock-output-names = "mmc0",
73*c66ec88fSEmmanuel Vadot                             "mmc0_output",
74*c66ec88fSEmmanuel Vadot                             "mmc0_sample";
75*c66ec88fSEmmanuel Vadot    };
76*c66ec88fSEmmanuel Vadot
77*c66ec88fSEmmanuel Vadot  - |
78*c66ec88fSEmmanuel Vadot    clk@6000410 {
79*c66ec88fSEmmanuel Vadot        #clock-cells = <1>;
80*c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun9i-a80-mmc-clk";
81*c66ec88fSEmmanuel Vadot        reg = <0x06000410 0x4>;
82*c66ec88fSEmmanuel Vadot        clocks = <&osc24M>, <&pll4>;
83*c66ec88fSEmmanuel Vadot        clock-output-names = "mmc0", "mmc0_output",
84*c66ec88fSEmmanuel Vadot                             "mmc0_sample";
85*c66ec88fSEmmanuel Vadot    };
86*c66ec88fSEmmanuel Vadot
87*c66ec88fSEmmanuel Vadot...
88