Skip to content

Commit 0aade33

Browse files
Sowjanya Komatinenithierryreding
authored andcommitted
dt-bindings: tegra: Add VI and CSI bindings
Tegra contains VI controller which can support up to 6 MIPI CSI camera sensors. Each Tegra CSI port from CSI unit can be one-to-one mapper to VI channel and can capture from an external camera sensor or from built-in test pattern generator. This patch adds dt-bindings for Tegra VI and CSI. Acked-by: Thierry Reding <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Sowjanya Komatineni <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 13857b3 commit 0aade33

File tree

1 file changed

+60
-13
lines changed

1 file changed

+60
-13
lines changed

Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.txt

Lines changed: 60 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,30 @@ of the following host1x client modules:
4040

4141
Required properties:
4242
- compatible: "nvidia,tegra<chip>-vi"
43-
- reg: Physical base address and length of the controller's registers.
43+
- reg: Physical base address and length of the controller registers.
4444
- interrupts: The interrupt outputs from the controller.
45-
- clocks: Must contain one entry, for the module clock.
45+
- clocks: clocks: Must contain one entry, for the module clock.
4646
See ../clocks/clock-bindings.txt for details.
47-
- resets: Must contain an entry for each entry in reset-names.
48-
See ../reset/reset.txt for details.
49-
- reset-names: Must include the following entries:
50-
- vi
47+
- Tegra20/Tegra30/Tegra114/Tegra124:
48+
- resets: Must contain an entry for each entry in reset-names.
49+
See ../reset/reset.txt for details.
50+
- reset-names: Must include the following entries:
51+
- vi
52+
- Tegra210:
53+
- power-domains: Must include venc powergate node as vi is in VE partition.
54+
- Tegra210 has CSI part of VI sharing same host interface and register space.
55+
So, VI device node should have CSI child node.
56+
57+
- csi: mipi csi interface to vi
58+
59+
Required properties:
60+
- compatible: "nvidia,tegra210-csi"
61+
- reg: Physical base address offset to parent and length of the controller
62+
registers.
63+
- clocks: Must contain entries csi, cilab, cilcd, cile, csi_tpg clocks.
64+
See ../clocks/clock-bindings.txt for details.
65+
- power-domains: Must include sor powergate node as csicil is in
66+
SOR partition.
5167

5268
- epp: encoder pre-processor
5369

@@ -309,13 +325,44 @@ Example:
309325
reset-names = "mpe";
310326
};
311327

312-
vi {
313-
compatible = "nvidia,tegra20-vi";
314-
reg = <0x54080000 0x00040000>;
315-
interrupts = <0 69 0x04>;
316-
clocks = <&tegra_car TEGRA20_CLK_VI>;
317-
resets = <&tegra_car 100>;
318-
reset-names = "vi";
328+
vi@54080000 {
329+
compatible = "nvidia,tegra210-vi";
330+
reg = <0x0 0x54080000 0x0 0x700>;
331+
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
332+
assigned-clocks = <&tegra_car TEGRA210_CLK_VI>;
333+
assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_C4_OUT0>;
334+
335+
clocks = <&tegra_car TEGRA210_CLK_VI>;
336+
power-domains = <&pd_venc>;
337+
338+
#address-cells = <1>;
339+
#size-cells = <1>;
340+
341+
ranges = <0x0 0x0 0x54080000 0x2000>;
342+
343+
csi@838 {
344+
compatible = "nvidia,tegra210-csi";
345+
reg = <0x838 0x1300>;
346+
assigned-clocks = <&tegra_car TEGRA210_CLK_CILAB>,
347+
<&tegra_car TEGRA210_CLK_CILCD>,
348+
<&tegra_car TEGRA210_CLK_CILE>,
349+
<&tegra_car TEGRA210_CLK_CSI_TPG>;
350+
assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_P>,
351+
<&tegra_car TEGRA210_CLK_PLL_P>,
352+
<&tegra_car TEGRA210_CLK_PLL_P>;
353+
assigned-clock-rates = <102000000>,
354+
<102000000>,
355+
<102000000>,
356+
<972000000>;
357+
358+
clocks = <&tegra_car TEGRA210_CLK_CSI>,
359+
<&tegra_car TEGRA210_CLK_CILAB>,
360+
<&tegra_car TEGRA210_CLK_CILCD>,
361+
<&tegra_car TEGRA210_CLK_CILE>,
362+
<&tegra_car TEGRA210_CLK_CSI_TPG>;
363+
clock-names = "csi", "cilab", "cilcd", "cile", "csi_tpg";
364+
power-domains = <&pd_sor>;
365+
};
319366
};
320367

321368
epp {

0 commit comments

Comments
 (0)