xref: /linux/Documentation/devicetree/bindings/media/qcom,sdm845-camss.yaml (revision 34dc1baba215b826e454b8d19e4f24adbeb7d00d)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/media/qcom,sdm845-camss.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Qualcomm CAMSS ISP
9
10maintainers:
11  - Robert Foss <robert.foss@linaro.org>
12
13description: |
14  The CAMSS IP is a CSI decoder and ISP present on Qualcomm platforms
15
16properties:
17  compatible:
18    const: qcom,sdm845-camss
19
20  clocks:
21    minItems: 36
22    maxItems: 36
23
24  clock-names:
25    items:
26      - const: camnoc_axi
27      - const: cpas_ahb
28      - const: cphy_rx_src
29      - const: csi0
30      - const: csi0_src
31      - const: csi1
32      - const: csi1_src
33      - const: csi2
34      - const: csi2_src
35      - const: csiphy0
36      - const: csiphy0_timer
37      - const: csiphy0_timer_src
38      - const: csiphy1
39      - const: csiphy1_timer
40      - const: csiphy1_timer_src
41      - const: csiphy2
42      - const: csiphy2_timer
43      - const: csiphy2_timer_src
44      - const: csiphy3
45      - const: csiphy3_timer
46      - const: csiphy3_timer_src
47      - const: gcc_camera_ahb
48      - const: gcc_camera_axi
49      - const: slow_ahb_src
50      - const: soc_ahb
51      - const: vfe0_axi
52      - const: vfe0
53      - const: vfe0_cphy_rx
54      - const: vfe0_src
55      - const: vfe1_axi
56      - const: vfe1
57      - const: vfe1_cphy_rx
58      - const: vfe1_src
59      - const: vfe_lite
60      - const: vfe_lite_cphy_rx
61      - const: vfe_lite_src
62
63  interrupts:
64    minItems: 10
65    maxItems: 10
66
67  interrupt-names:
68    items:
69      - const: csid0
70      - const: csid1
71      - const: csid2
72      - const: csiphy0
73      - const: csiphy1
74      - const: csiphy2
75      - const: csiphy3
76      - const: vfe0
77      - const: vfe1
78      - const: vfe_lite
79
80  iommus:
81    maxItems: 4
82
83  power-domains:
84    items:
85      - description: IFE0 GDSC - Image Front End, Global Distributed Switch Controller.
86      - description: IFE1 GDSC - Image Front End, Global Distributed Switch Controller.
87      - description: Titan GDSC - Titan ISP Block, Global Distributed Switch Controller.
88
89  ports:
90    $ref: /schemas/graph.yaml#/properties/ports
91
92    description:
93      CSI input ports.
94
95    properties:
96      port@0:
97        $ref: /schemas/graph.yaml#/$defs/port-base
98        unevaluatedProperties: false
99        description:
100          Input port for receiving CSI data.
101
102        properties:
103          endpoint:
104            $ref: video-interfaces.yaml#
105            unevaluatedProperties: false
106
107            properties:
108              data-lanes:
109                minItems: 1
110                maxItems: 4
111
112            required:
113              - data-lanes
114
115      port@1:
116        $ref: /schemas/graph.yaml#/$defs/port-base
117        unevaluatedProperties: false
118        description:
119          Input port for receiving CSI data.
120
121        properties:
122          endpoint:
123            $ref: video-interfaces.yaml#
124            unevaluatedProperties: false
125
126            properties:
127              data-lanes:
128                minItems: 1
129                maxItems: 4
130
131            required:
132              - data-lanes
133
134      port@2:
135        $ref: /schemas/graph.yaml#/$defs/port-base
136        unevaluatedProperties: false
137        description:
138          Input port for receiving CSI data.
139
140        properties:
141          endpoint:
142            $ref: video-interfaces.yaml#
143            unevaluatedProperties: false
144
145            properties:
146              data-lanes:
147                minItems: 1
148                maxItems: 4
149
150            required:
151              - data-lanes
152
153      port@3:
154        $ref: /schemas/graph.yaml#/$defs/port-base
155        unevaluatedProperties: false
156        description:
157          Input port for receiving CSI data.
158
159        properties:
160          endpoint:
161            $ref: video-interfaces.yaml#
162            unevaluatedProperties: false
163
164            properties:
165              data-lanes:
166                minItems: 1
167                maxItems: 4
168
169            required:
170              - data-lanes
171
172  reg:
173    minItems: 10
174    maxItems: 10
175
176  reg-names:
177    items:
178      - const: csid0
179      - const: csid1
180      - const: csid2
181      - const: csiphy0
182      - const: csiphy1
183      - const: csiphy2
184      - const: csiphy3
185      - const: vfe0
186      - const: vfe1
187      - const: vfe_lite
188
189  vdda-phy-supply:
190    description:
191      Phandle to a regulator supply to PHY core block.
192
193  vdda-pll-supply:
194    description:
195      Phandle to 1.8V regulator supply to PHY refclk pll block.
196
197required:
198  - clock-names
199  - clocks
200  - compatible
201  - interrupt-names
202  - interrupts
203  - iommus
204  - power-domains
205  - reg
206  - reg-names
207  - vdda-phy-supply
208  - vdda-pll-supply
209
210additionalProperties: false
211
212examples:
213  - |
214    #include <dt-bindings/interrupt-controller/arm-gic.h>
215    #include <dt-bindings/clock/qcom,camcc-sdm845.h>
216    #include <dt-bindings/clock/qcom,gcc-sdm845.h>
217
218    soc {
219      #address-cells = <2>;
220      #size-cells = <2>;
221
222      camss: camss@acb3000 {
223        compatible = "qcom,sdm845-camss";
224
225        clocks = <&clock_camcc CAM_CC_CAMNOC_AXI_CLK>,
226          <&clock_camcc CAM_CC_CPAS_AHB_CLK>,
227          <&clock_camcc CAM_CC_CPHY_RX_CLK_SRC>,
228          <&clock_camcc CAM_CC_IFE_0_CSID_CLK>,
229          <&clock_camcc CAM_CC_IFE_0_CSID_CLK_SRC>,
230          <&clock_camcc CAM_CC_IFE_1_CSID_CLK>,
231          <&clock_camcc CAM_CC_IFE_1_CSID_CLK_SRC>,
232          <&clock_camcc CAM_CC_IFE_LITE_CSID_CLK>,
233          <&clock_camcc CAM_CC_IFE_LITE_CSID_CLK_SRC>,
234          <&clock_camcc CAM_CC_CSIPHY0_CLK>,
235          <&clock_camcc CAM_CC_CSI0PHYTIMER_CLK>,
236          <&clock_camcc CAM_CC_CSI0PHYTIMER_CLK_SRC>,
237          <&clock_camcc CAM_CC_CSIPHY1_CLK>,
238          <&clock_camcc CAM_CC_CSI1PHYTIMER_CLK>,
239          <&clock_camcc CAM_CC_CSI1PHYTIMER_CLK_SRC>,
240          <&clock_camcc CAM_CC_CSIPHY2_CLK>,
241          <&clock_camcc CAM_CC_CSI2PHYTIMER_CLK>,
242          <&clock_camcc CAM_CC_CSI2PHYTIMER_CLK_SRC>,
243          <&clock_camcc CAM_CC_CSIPHY3_CLK>,
244          <&clock_camcc CAM_CC_CSI3PHYTIMER_CLK>,
245          <&clock_camcc CAM_CC_CSI3PHYTIMER_CLK_SRC>,
246          <&gcc GCC_CAMERA_AHB_CLK>,
247          <&gcc GCC_CAMERA_AXI_CLK>,
248          <&clock_camcc CAM_CC_SLOW_AHB_CLK_SRC>,
249          <&clock_camcc CAM_CC_SOC_AHB_CLK>,
250          <&clock_camcc CAM_CC_IFE_0_AXI_CLK>,
251          <&clock_camcc CAM_CC_IFE_0_CLK>,
252          <&clock_camcc CAM_CC_IFE_0_CPHY_RX_CLK>,
253          <&clock_camcc CAM_CC_IFE_0_CLK_SRC>,
254          <&clock_camcc CAM_CC_IFE_1_AXI_CLK>,
255          <&clock_camcc CAM_CC_IFE_1_CLK>,
256          <&clock_camcc CAM_CC_IFE_1_CPHY_RX_CLK>,
257          <&clock_camcc CAM_CC_IFE_1_CLK_SRC>,
258          <&clock_camcc CAM_CC_IFE_LITE_CLK>,
259          <&clock_camcc CAM_CC_IFE_LITE_CPHY_RX_CLK>,
260          <&clock_camcc CAM_CC_IFE_LITE_CLK_SRC>;
261
262        clock-names = "camnoc_axi",
263          "cpas_ahb",
264          "cphy_rx_src",
265          "csi0",
266          "csi0_src",
267          "csi1",
268          "csi1_src",
269          "csi2",
270          "csi2_src",
271          "csiphy0",
272          "csiphy0_timer",
273          "csiphy0_timer_src",
274          "csiphy1",
275          "csiphy1_timer",
276          "csiphy1_timer_src",
277          "csiphy2",
278          "csiphy2_timer",
279          "csiphy2_timer_src",
280          "csiphy3",
281          "csiphy3_timer",
282          "csiphy3_timer_src",
283          "gcc_camera_ahb",
284          "gcc_camera_axi",
285          "slow_ahb_src",
286          "soc_ahb",
287          "vfe0_axi",
288          "vfe0",
289          "vfe0_cphy_rx",
290          "vfe0_src",
291          "vfe1_axi",
292          "vfe1",
293          "vfe1_cphy_rx",
294          "vfe1_src",
295          "vfe_lite",
296          "vfe_lite_cphy_rx",
297          "vfe_lite_src";
298
299        interrupts = <GIC_SPI 464 IRQ_TYPE_LEVEL_HIGH>,
300          <GIC_SPI 466 IRQ_TYPE_LEVEL_HIGH>,
301          <GIC_SPI 468 IRQ_TYPE_LEVEL_HIGH>,
302          <GIC_SPI 477 IRQ_TYPE_LEVEL_HIGH>,
303          <GIC_SPI 478 IRQ_TYPE_LEVEL_HIGH>,
304          <GIC_SPI 479 IRQ_TYPE_LEVEL_HIGH>,
305          <GIC_SPI 448 IRQ_TYPE_LEVEL_HIGH>,
306          <GIC_SPI 465 IRQ_TYPE_LEVEL_HIGH>,
307          <GIC_SPI 467 IRQ_TYPE_LEVEL_HIGH>,
308          <GIC_SPI 469 IRQ_TYPE_LEVEL_HIGH>;
309
310        interrupt-names = "csid0",
311          "csid1",
312          "csid2",
313          "csiphy0",
314          "csiphy1",
315          "csiphy2",
316          "csiphy3",
317          "vfe0",
318          "vfe1",
319          "vfe_lite";
320
321        iommus = <&apps_smmu 0x0808 0x0>,
322          <&apps_smmu 0x0810 0x8>,
323          <&apps_smmu 0x0c08 0x0>,
324          <&apps_smmu 0x0c10 0x8>;
325
326        power-domains = <&clock_camcc IFE_0_GDSC>,
327          <&clock_camcc IFE_1_GDSC>,
328          <&clock_camcc TITAN_TOP_GDSC>;
329
330        reg = <0 0xacb3000 0 0x1000>,
331          <0 0xacba000 0 0x1000>,
332          <0 0xacc8000 0 0x1000>,
333          <0 0xac65000 0 0x1000>,
334          <0 0xac66000 0 0x1000>,
335          <0 0xac67000 0 0x1000>,
336          <0 0xac68000 0 0x1000>,
337          <0 0xacaf000 0 0x4000>,
338          <0 0xacb6000 0 0x4000>,
339          <0 0xacc4000 0 0x4000>;
340
341        reg-names = "csid0",
342          "csid1",
343          "csid2",
344          "csiphy0",
345          "csiphy1",
346          "csiphy2",
347          "csiphy3",
348          "vfe0",
349          "vfe1",
350          "vfe_lite";
351
352        vdda-phy-supply = <&vreg_l1a_0p875>;
353        vdda-pll-supply = <&vreg_l26a_1p2>;
354
355        ports {
356          #address-cells = <1>;
357          #size-cells = <0>;
358        };
359      };
360    };
361