xref: /freebsd/sys/contrib/device-tree/Bindings/clock/allwinner,sun9i-a80-de-clks.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,sun9i-a80-de-clks.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: Allwinner A80 Display Engine Clock Controller 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 Vadotproperties:
14*c66ec88fSEmmanuel Vadot  "#clock-cells":
15*c66ec88fSEmmanuel Vadot    const: 1
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadot  "#reset-cells":
18*c66ec88fSEmmanuel Vadot    const: 1
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadot  compatible:
21*c66ec88fSEmmanuel Vadot    const: allwinner,sun9i-a80-de-clks
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot  reg:
24*c66ec88fSEmmanuel Vadot    maxItems: 1
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel Vadot  clocks:
27*c66ec88fSEmmanuel Vadot    items:
28*c66ec88fSEmmanuel Vadot      - description: Bus Clock
29*c66ec88fSEmmanuel Vadot      - description: RAM Bus Clock
30*c66ec88fSEmmanuel Vadot      - description: Module Clock
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot  clock-names:
33*c66ec88fSEmmanuel Vadot    items:
34*c66ec88fSEmmanuel Vadot      - const: mod
35*c66ec88fSEmmanuel Vadot      - const: dram
36*c66ec88fSEmmanuel Vadot      - const: bus
37*c66ec88fSEmmanuel Vadot
38*c66ec88fSEmmanuel Vadot  resets:
39*c66ec88fSEmmanuel Vadot    maxItems: 1
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel Vadotrequired:
42*c66ec88fSEmmanuel Vadot  - "#clock-cells"
43*c66ec88fSEmmanuel Vadot  - "#reset-cells"
44*c66ec88fSEmmanuel Vadot  - compatible
45*c66ec88fSEmmanuel Vadot  - reg
46*c66ec88fSEmmanuel Vadot  - clocks
47*c66ec88fSEmmanuel Vadot  - clock-names
48*c66ec88fSEmmanuel Vadot  - resets
49*c66ec88fSEmmanuel Vadot
50*c66ec88fSEmmanuel VadotadditionalProperties: false
51*c66ec88fSEmmanuel Vadot
52*c66ec88fSEmmanuel Vadotexamples:
53*c66ec88fSEmmanuel Vadot  - |
54*c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/sun9i-a80-ccu.h>
55*c66ec88fSEmmanuel Vadot    #include <dt-bindings/reset/sun9i-a80-ccu.h>
56*c66ec88fSEmmanuel Vadot
57*c66ec88fSEmmanuel Vadot    de_clocks: clock@3000000 {
58*c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun9i-a80-de-clks";
59*c66ec88fSEmmanuel Vadot        reg = <0x03000000 0x30>;
60*c66ec88fSEmmanuel Vadot        clocks = <&ccu CLK_DE>, <&ccu CLK_SDRAM>, <&ccu CLK_BUS_DE>;
61*c66ec88fSEmmanuel Vadot        clock-names = "mod", "dram", "bus";
62*c66ec88fSEmmanuel Vadot        resets = <&ccu RST_BUS_DE>;
63*c66ec88fSEmmanuel Vadot        #clock-cells = <1>;
64*c66ec88fSEmmanuel Vadot        #reset-cells = <1>;
65*c66ec88fSEmmanuel Vadot    };
66*c66ec88fSEmmanuel Vadot
67*c66ec88fSEmmanuel Vadot...
68