Debian Codegraph @

Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-vi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: NVIDIA Tegra Video Input controller
8
9 maintainers:
10 - Thierry Reding <[email protected]>
11 - Jon Hunter <[email protected]>
12
13 properties:
14 $nodename:
15 pattern: "^vi@[0-9a-f]+$"
16
17 compatible:
18 oneOf:
19 - enum:
20 - nvidia,tegra20-vi
21 - nvidia,tegra114-vi
22 - nvidia,tegra124-vi
23 - nvidia,tegra210-vi
24 - nvidia,tegra186-vi
25 - nvidia,tegra194-vi
26
27 - items:
28 - const: nvidia,tegra30-vi
29 - const: nvidia,tegra20-vi
30
31 - items:
32 - const: nvidia,tegra132-vi
33 - const: nvidia,tegra124-vi
34
35 reg:
36 maxItems: 1
37
38 interrupts:
39 maxItems: 1
40
41 clocks:
42 maxItems: 1
43
44 resets:
45 items:
46 - description: module reset
47
48 reset-names:
49 items:
50 - const: vi
51
52 iommus:
53 maxItems: 1
54
55 interconnects:
56 minItems: 4
57 maxItems: 5
58
59 interconnect-names:
60 minItems: 4
61 maxItems: 5
62
63 operating-points-v2: true
64
65 power-domains:
66 items:
67 - description: phandle to the VENC power domain
68
69 "#address-cells":
70 const: 1
71
72 "#size-cells":
73 const: 1
74
75 ranges:
76 maxItems: 1
77
78 vip:
79 $ref: /schemas/display/tegra/nvidia,tegra20-vip.yaml
80
81 ports:
82 $ref: /schemas/graph.yaml#/properties/ports
83
84 properties:
85 port@0:
86 $ref: /schemas/graph.yaml#/properties/port
87 description:
88 Input from the VIP (parallel input capture) module
89
90 patternProperties:
91 "^csi@[0-9a-f]+$":
92 type: object
93
94 additionalProperties: false
95
96 required:
97 - compatible
98 - reg
99 - interrupts
100 - clocks
101
102 allOf:
103 - if:
104 properties:
105 compatible:
106 contains:
107 enum:
108 - nvidia,tegra20-vi
109 - nvidia,tegra30-vi
110 - nvidia,tegra114-vi
111 - nvidia,tegra124-vi
112 then:
113 required:
114 - resets
115 - reset-names
116 else:
117 required:
118 - power-domains
119
120 examples:
121 - |
122 #include <dt-bindings/clock/tegra20-car.h>
123 #include <dt-bindings/interrupt-controller/arm-gic.h>
124
125 i2c {
126 #address-cells = <1>;
127 #size-cells = <0>;
128 camera@48 {
129 compatible = "aptina,mt9v111";
130 reg = <0x48>;
131 clocks = <&camera_clk>;
132
133 port {
134 mt9v111_out: endpoint {
135 remote-endpoint = <&vi_vip_in>;
136 };
137 };
138 };
139 };
140
141 vi@54080000 {
142 compatible = "nvidia,tegra20-vi";
143 reg = <0x54080000 0x00040000>;
144 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
145 clocks = <&tegra_car TEGRA20_CLK_VI>;
146 resets = <&tegra_car 100>;
147 reset-names = "vi";
148
149 vip {
150 compatible = "nvidia,tegra20-vip";
151 ports {
152 #address-cells = <1>;
153 #size-cells = <0>;
154 port@0 {
155 reg = <0>;
156 vi_vip_in: endpoint {
157 remote-endpoint = <&mt9v111_out>;
158 };
159 };
160 port@1 {
161 reg = <1>;
162 vi_vip_out: endpoint {
163 remote-endpoint = <&vi_in>;
164 };
165 };
166 };
167 };
168
169 ports {
170 #address-cells = <1>;
171 #size-cells = <0>;
172 port@0 {
173 reg = <0>;
174 vi_in: endpoint {
175 remote-endpoint = <&vi_vip_out>;
176 };
177 };
178 };
179 };
180
181 - |
182 #include <dt-bindings/clock/tegra210-car.h>
183 #include <dt-bindings/interrupt-controller/arm-gic.h>
184
185 vi@54080000 {
186 compatible = "nvidia,tegra210-vi";
187 reg = <0x54080000 0x00000700>;
188 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
189 assigned-clocks = <&tegra_car TEGRA210_CLK_VI>;
190 assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_C4_OUT0>;
191
192 clocks = <&tegra_car TEGRA210_CLK_VI>;
193 power-domains = <&pd_venc>;
194
195 #address-cells = <1>;
196 #size-cells = <1>;
197
198 ranges = <0x0 0x54080000 0x2000>;
199
200 csi@838 {
201 compatible = "nvidia,tegra210-csi";
202 reg = <0x838 0x1300>;
203 assigned-clocks = <&tegra_car TEGRA210_CLK_CILAB>,
204 <&tegra_car TEGRA210_CLK_CILCD>,
205 <&tegra_car TEGRA210_CLK_CILE>,
206 <&tegra_car TEGRA210_CLK_CSI_TPG>;
207 assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_P>,
208 <&tegra_car TEGRA210_CLK_PLL_P>,
209 <&tegra_car TEGRA210_CLK_PLL_P>;
210 assigned-clock-rates = <102000000>,
211 <102000000>,
212 <102000000>,
213 <972000000>;
214
215 clocks = <&tegra_car TEGRA210_CLK_CSI>,
216 <&tegra_car TEGRA210_CLK_CILAB>,
217 <&tegra_car TEGRA210_CLK_CILCD>,
218 <&tegra_car TEGRA210_CLK_CILE>,
219 <&tegra_car TEGRA210_CLK_CSI_TPG>;
220 clock-names = "csi", "cilab", "cilcd", "cile", "csi_tpg";
221 power-domains = <&pd_sor>;
222 };
223 };