xref: /freebsd/sys/contrib/device-tree/Bindings/clock/allwinner,sun9i-a80-de-clks.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0+
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/allwinner,sun9i-a80-de-clks.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Allwinner A80 Display Engine Clock Controller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
11c66ec88fSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotproperties:
14c66ec88fSEmmanuel Vadot  "#clock-cells":
15c66ec88fSEmmanuel Vadot    const: 1
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadot  "#reset-cells":
18c66ec88fSEmmanuel Vadot    const: 1
19c66ec88fSEmmanuel Vadot
20c66ec88fSEmmanuel Vadot  compatible:
21c66ec88fSEmmanuel Vadot    const: allwinner,sun9i-a80-de-clks
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel Vadot  reg:
24c66ec88fSEmmanuel Vadot    maxItems: 1
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot  clocks:
27c66ec88fSEmmanuel Vadot    items:
28c66ec88fSEmmanuel Vadot      - description: Bus Clock
29c66ec88fSEmmanuel Vadot      - description: RAM Bus Clock
30c66ec88fSEmmanuel Vadot      - description: Module Clock
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot  clock-names:
33c66ec88fSEmmanuel Vadot    items:
34c66ec88fSEmmanuel Vadot      - const: mod
35c66ec88fSEmmanuel Vadot      - const: dram
36c66ec88fSEmmanuel Vadot      - const: bus
37c66ec88fSEmmanuel Vadot
38c66ec88fSEmmanuel Vadot  resets:
39c66ec88fSEmmanuel Vadot    maxItems: 1
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadotrequired:
42c66ec88fSEmmanuel Vadot  - "#clock-cells"
43c66ec88fSEmmanuel Vadot  - "#reset-cells"
44c66ec88fSEmmanuel Vadot  - compatible
45c66ec88fSEmmanuel Vadot  - reg
46c66ec88fSEmmanuel Vadot  - clocks
47c66ec88fSEmmanuel Vadot  - clock-names
48c66ec88fSEmmanuel Vadot  - resets
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel VadotadditionalProperties: false
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel Vadotexamples:
53c66ec88fSEmmanuel Vadot  - |
54c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/sun9i-a80-ccu.h>
55c66ec88fSEmmanuel Vadot    #include <dt-bindings/reset/sun9i-a80-ccu.h>
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot    de_clocks: clock@3000000 {
58c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun9i-a80-de-clks";
59c66ec88fSEmmanuel Vadot        reg = <0x03000000 0x30>;
60c66ec88fSEmmanuel Vadot        clocks = <&ccu CLK_DE>, <&ccu CLK_SDRAM>, <&ccu CLK_BUS_DE>;
61c66ec88fSEmmanuel Vadot        clock-names = "mod", "dram", "bus";
62c66ec88fSEmmanuel Vadot        resets = <&ccu RST_BUS_DE>;
63c66ec88fSEmmanuel Vadot        #clock-cells = <1>;
64c66ec88fSEmmanuel Vadot        #reset-cells = <1>;
65c66ec88fSEmmanuel Vadot    };
66c66ec88fSEmmanuel Vadot
67c66ec88fSEmmanuel Vadot...
68