xref: /freebsd/sys/contrib/device-tree/Bindings/display/allwinner,sun4i-a10-hdmi.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/display/allwinner,sun4i-a10-hdmi.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Allwinner A10 HDMI Controller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotdescription: |
10c66ec88fSEmmanuel Vadot  The HDMI Encoder supports the HDMI video and audio outputs, and does
11c66ec88fSEmmanuel Vadot  CEC. It is one end of the pipeline.
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotmaintainers:
14c66ec88fSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
15c66ec88fSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadotproperties:
18c66ec88fSEmmanuel Vadot  compatible:
19c66ec88fSEmmanuel Vadot    oneOf:
20c66ec88fSEmmanuel Vadot      - const: allwinner,sun4i-a10-hdmi
21c66ec88fSEmmanuel Vadot      - const: allwinner,sun5i-a10s-hdmi
22c66ec88fSEmmanuel Vadot      - const: allwinner,sun6i-a31-hdmi
23c66ec88fSEmmanuel Vadot      - items:
24c66ec88fSEmmanuel Vadot          - const: allwinner,sun7i-a20-hdmi
25c66ec88fSEmmanuel Vadot          - const: allwinner,sun5i-a10s-hdmi
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot  reg:
28c66ec88fSEmmanuel Vadot    maxItems: 1
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  interrupts:
31c66ec88fSEmmanuel Vadot    maxItems: 1
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot  clocks:
34c66ec88fSEmmanuel Vadot    oneOf:
35c66ec88fSEmmanuel Vadot      - items:
36c66ec88fSEmmanuel Vadot          - description: The HDMI interface clock
37c66ec88fSEmmanuel Vadot          - description: The HDMI module clock
38c66ec88fSEmmanuel Vadot          - description: The first video PLL
39c66ec88fSEmmanuel Vadot          - description: The second video PLL
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot      - items:
42c66ec88fSEmmanuel Vadot          - description: The HDMI interface clock
43c66ec88fSEmmanuel Vadot          - description: The HDMI module clock
44c66ec88fSEmmanuel Vadot          - description: The HDMI DDC clock
45c66ec88fSEmmanuel Vadot          - description: The first video PLL
46c66ec88fSEmmanuel Vadot          - description: The second video PLL
47c66ec88fSEmmanuel Vadot
48c66ec88fSEmmanuel Vadot  clock-names:
49c66ec88fSEmmanuel Vadot    oneOf:
50c66ec88fSEmmanuel Vadot      - items:
51c66ec88fSEmmanuel Vadot          - const: ahb
52c66ec88fSEmmanuel Vadot          - const: mod
53c66ec88fSEmmanuel Vadot          - const: pll-0
54c66ec88fSEmmanuel Vadot          - const: pll-1
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot      - items:
57c66ec88fSEmmanuel Vadot          - const: ahb
58c66ec88fSEmmanuel Vadot          - const: mod
59c66ec88fSEmmanuel Vadot          - const: ddc
60c66ec88fSEmmanuel Vadot          - const: pll-0
61c66ec88fSEmmanuel Vadot          - const: pll-1
62c66ec88fSEmmanuel Vadot
63c66ec88fSEmmanuel Vadot  resets:
64c66ec88fSEmmanuel Vadot    maxItems: 1
65c66ec88fSEmmanuel Vadot
66c66ec88fSEmmanuel Vadot  dmas:
67c66ec88fSEmmanuel Vadot    items:
68c66ec88fSEmmanuel Vadot      - description: DDC Transmission DMA Channel
69c66ec88fSEmmanuel Vadot      - description: DDC Reception DMA Channel
70c66ec88fSEmmanuel Vadot      - description: Audio Transmission DMA Channel
71c66ec88fSEmmanuel Vadot
72c66ec88fSEmmanuel Vadot  dma-names:
73c66ec88fSEmmanuel Vadot    items:
74c66ec88fSEmmanuel Vadot      - const: ddc-tx
75c66ec88fSEmmanuel Vadot      - const: ddc-rx
76c66ec88fSEmmanuel Vadot      - const: audio-tx
77c66ec88fSEmmanuel Vadot
78c66ec88fSEmmanuel Vadot  ports:
795def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
80c66ec88fSEmmanuel Vadot
81c66ec88fSEmmanuel Vadot    properties:
82c66ec88fSEmmanuel Vadot      port@0:
835def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
84c66ec88fSEmmanuel Vadot        description: |
85c66ec88fSEmmanuel Vadot          Input endpoints of the controller.
86c66ec88fSEmmanuel Vadot
87c66ec88fSEmmanuel Vadot      port@1:
885def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
89c66ec88fSEmmanuel Vadot        description: |
90c66ec88fSEmmanuel Vadot          Output endpoints of the controller. Usually an HDMI
91c66ec88fSEmmanuel Vadot          connector.
92c66ec88fSEmmanuel Vadot
93c66ec88fSEmmanuel Vadot    required:
94c66ec88fSEmmanuel Vadot      - port@0
95c66ec88fSEmmanuel Vadot      - port@1
96c66ec88fSEmmanuel Vadot
97c66ec88fSEmmanuel Vadotrequired:
98c66ec88fSEmmanuel Vadot  - compatible
99c66ec88fSEmmanuel Vadot  - reg
100c66ec88fSEmmanuel Vadot  - interrupts
101c66ec88fSEmmanuel Vadot  - clocks
102c66ec88fSEmmanuel Vadot  - clock-names
103c66ec88fSEmmanuel Vadot  - dmas
104c66ec88fSEmmanuel Vadot  - dma-names
105c66ec88fSEmmanuel Vadot
106c66ec88fSEmmanuel Vadotif:
107c66ec88fSEmmanuel Vadot  properties:
108c66ec88fSEmmanuel Vadot    compatible:
109c66ec88fSEmmanuel Vadot      contains:
110c66ec88fSEmmanuel Vadot        const: allwinner,sun6i-a31-hdmi
111c66ec88fSEmmanuel Vadot
112c66ec88fSEmmanuel Vadotthen:
113c66ec88fSEmmanuel Vadot  properties:
114c66ec88fSEmmanuel Vadot    clocks:
115c66ec88fSEmmanuel Vadot      minItems: 5
116c66ec88fSEmmanuel Vadot
117c66ec88fSEmmanuel Vadot    clock-names:
118c66ec88fSEmmanuel Vadot      minItems: 5
119c66ec88fSEmmanuel Vadot
120c66ec88fSEmmanuel Vadot  required:
121c66ec88fSEmmanuel Vadot    - resets
122c66ec88fSEmmanuel Vadot
123c66ec88fSEmmanuel VadotadditionalProperties: false
124c66ec88fSEmmanuel Vadot
125c66ec88fSEmmanuel Vadotexamples:
126c66ec88fSEmmanuel Vadot  - |
127c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/sun4i-a10-ccu.h>
128c66ec88fSEmmanuel Vadot    #include <dt-bindings/dma/sun4i-a10.h>
129c66ec88fSEmmanuel Vadot    #include <dt-bindings/reset/sun4i-a10-ccu.h>
130c66ec88fSEmmanuel Vadot
131c66ec88fSEmmanuel Vadot    hdmi: hdmi@1c16000 {
132c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun4i-a10-hdmi";
133c66ec88fSEmmanuel Vadot        reg = <0x01c16000 0x1000>;
134c66ec88fSEmmanuel Vadot        interrupts = <58>;
135c66ec88fSEmmanuel Vadot        clocks = <&ccu CLK_AHB_HDMI0>, <&ccu CLK_HDMI>,
136c66ec88fSEmmanuel Vadot                 <&ccu CLK_PLL_VIDEO0_2X>,
137c66ec88fSEmmanuel Vadot                 <&ccu CLK_PLL_VIDEO1_2X>;
138c66ec88fSEmmanuel Vadot        clock-names = "ahb", "mod", "pll-0", "pll-1";
139c66ec88fSEmmanuel Vadot        dmas = <&dma SUN4I_DMA_NORMAL 16>,
140c66ec88fSEmmanuel Vadot               <&dma SUN4I_DMA_NORMAL 16>,
141c66ec88fSEmmanuel Vadot               <&dma SUN4I_DMA_DEDICATED 24>;
142c66ec88fSEmmanuel Vadot        dma-names = "ddc-tx", "ddc-rx", "audio-tx";
143c66ec88fSEmmanuel Vadot
144c66ec88fSEmmanuel Vadot        ports {
145c66ec88fSEmmanuel Vadot            #address-cells = <1>;
146c66ec88fSEmmanuel Vadot            #size-cells = <0>;
147c66ec88fSEmmanuel Vadot
148c66ec88fSEmmanuel Vadot            hdmi_in: port@0 {
149c66ec88fSEmmanuel Vadot                #address-cells = <1>;
150c66ec88fSEmmanuel Vadot                #size-cells = <0>;
151c66ec88fSEmmanuel Vadot                reg = <0>;
152c66ec88fSEmmanuel Vadot
153c66ec88fSEmmanuel Vadot                hdmi_in_tcon0: endpoint@0 {
154c66ec88fSEmmanuel Vadot                    reg = <0>;
155c66ec88fSEmmanuel Vadot                    remote-endpoint = <&tcon0_out_hdmi>;
156c66ec88fSEmmanuel Vadot                };
157c66ec88fSEmmanuel Vadot
158c66ec88fSEmmanuel Vadot                hdmi_in_tcon1: endpoint@1 {
159c66ec88fSEmmanuel Vadot                    reg = <1>;
160c66ec88fSEmmanuel Vadot                    remote-endpoint = <&tcon1_out_hdmi>;
161c66ec88fSEmmanuel Vadot                };
162c66ec88fSEmmanuel Vadot            };
163c66ec88fSEmmanuel Vadot
164c66ec88fSEmmanuel Vadot            hdmi_out: port@1 {
165c66ec88fSEmmanuel Vadot                reg = <1>;
166c66ec88fSEmmanuel Vadot            };
167c66ec88fSEmmanuel Vadot        };
168c66ec88fSEmmanuel Vadot    };
169c66ec88fSEmmanuel Vadot
170c66ec88fSEmmanuel Vadot...
171