Skip to content

Commit 9a25897

Browse files
vaishnavachathmanorit2001
authored andcommitted
arm64: dts: ti: k3-j721s2-main: Add CSI2RX capture nodes
commit 6aac919 upstream. J721S2 has two CSI2RX capture subsystem featuring Cadence CSI2RX, DPHY and TI's pixel grabbing wrapper. Add nodes for the same and keep them disabled by default. J721S2 uses a dedicated BCDMA instance for CSI-RX traffic, so enable that as well. J721S2 TRM (Section 12.7 Camera Subsystem): https://www.ti.com/lit/zip/spruj28 Signed-off-by: Vaishnav Achath <[email protected]> Reviewed-by: Jai Luthra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Manorit Chawdhry <[email protected]>
1 parent 42b1d68 commit 9a25897

File tree

1 file changed

+122
-1
lines changed

1 file changed

+122
-1
lines changed

arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi

Lines changed: 122 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,6 @@
11221122
ti,sci-dev-id = <225>;
11231123
ti,sci-rm-range-rchan = <0x21>;
11241124
ti,sci-rm-range-tchan = <0x22>;
1125-
status = "disabled";
11261125
};
11271126

11281127
cpts@310d0000 {
@@ -1233,6 +1232,128 @@
12331232
};
12341233
};
12351234

1235+
ti_csi2rx0: ticsi2rx@4500000 {
1236+
compatible = "ti,j721e-csi2rx-shim";
1237+
reg = <0x00 0x04500000 0x00 0x1000>;
1238+
ranges;
1239+
#address-cells = <2>;
1240+
#size-cells = <2>;
1241+
dmas = <&main_bcdma_csi 0 0x4940 0>;
1242+
dma-names = "rx0";
1243+
power-domains = <&k3_pds 38 TI_SCI_PD_EXCLUSIVE>;
1244+
status = "disabled";
1245+
1246+
cdns_csi2rx0: csi-bridge@4504000 {
1247+
compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
1248+
reg = <0x00 0x04504000 0x00 0x1000>;
1249+
clocks = <&k3_clks 38 3>, <&k3_clks 38 1>, <&k3_clks 38 3>,
1250+
<&k3_clks 38 3>, <&k3_clks 38 4>, <&k3_clks 38 4>;
1251+
clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
1252+
"pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk";
1253+
phys = <&dphy0>;
1254+
phy-names = "dphy";
1255+
1256+
ports {
1257+
#address-cells = <1>;
1258+
#size-cells = <0>;
1259+
1260+
csi0_port0: port@0 {
1261+
reg = <0>;
1262+
status = "disabled";
1263+
};
1264+
1265+
csi0_port1: port@1 {
1266+
reg = <1>;
1267+
status = "disabled";
1268+
};
1269+
1270+
csi0_port2: port@2 {
1271+
reg = <2>;
1272+
status = "disabled";
1273+
};
1274+
1275+
csi0_port3: port@3 {
1276+
reg = <3>;
1277+
status = "disabled";
1278+
};
1279+
1280+
csi0_port4: port@4 {
1281+
reg = <4>;
1282+
status = "disabled";
1283+
};
1284+
};
1285+
};
1286+
};
1287+
1288+
ti_csi2rx1: ticsi2rx@4510000 {
1289+
compatible = "ti,j721e-csi2rx-shim";
1290+
reg = <0x00 0x04510000 0x00 0x1000>;
1291+
ranges;
1292+
#address-cells = <2>;
1293+
#size-cells = <2>;
1294+
dmas = <&main_bcdma_csi 0 0x4960 0>;
1295+
dma-names = "rx0";
1296+
power-domains = <&k3_pds 39 TI_SCI_PD_EXCLUSIVE>;
1297+
status = "disabled";
1298+
1299+
cdns_csi2rx1: csi-bridge@4514000 {
1300+
compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
1301+
reg = <0x00 0x04514000 0x00 0x1000>;
1302+
clocks = <&k3_clks 39 3>, <&k3_clks 39 1>, <&k3_clks 39 3>,
1303+
<&k3_clks 39 3>, <&k3_clks 39 4>, <&k3_clks 39 4>;
1304+
clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
1305+
"pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk";
1306+
phys = <&dphy1>;
1307+
phy-names = "dphy";
1308+
1309+
ports {
1310+
#address-cells = <1>;
1311+
#size-cells = <0>;
1312+
1313+
csi1_port0: port@0 {
1314+
reg = <0>;
1315+
status = "disabled";
1316+
};
1317+
1318+
csi1_port1: port@1 {
1319+
reg = <1>;
1320+
status = "disabled";
1321+
};
1322+
1323+
csi1_port2: port@2 {
1324+
reg = <2>;
1325+
status = "disabled";
1326+
};
1327+
1328+
csi1_port3: port@3 {
1329+
reg = <3>;
1330+
status = "disabled";
1331+
};
1332+
1333+
csi1_port4: port@4 {
1334+
reg = <4>;
1335+
status = "disabled";
1336+
};
1337+
};
1338+
};
1339+
};
1340+
1341+
dphy0: phy@4580000 {
1342+
compatible = "cdns,dphy-rx";
1343+
reg = <0x00 0x04580000 0x00 0x1100>;
1344+
#phy-cells = <0>;
1345+
power-domains = <&k3_pds 152 TI_SCI_PD_EXCLUSIVE>;
1346+
status = "disabled";
1347+
};
1348+
1349+
dphy1: phy@4590000 {
1350+
compatible = "cdns,dphy-rx";
1351+
reg = <0x00 0x04590000 0x00 0x1100>;
1352+
#phy-cells = <0>;
1353+
power-domains = <&k3_pds 153 TI_SCI_PD_EXCLUSIVE>;
1354+
status = "disabled";
1355+
};
1356+
12361357
serdes_wiz0: wiz@5060000 {
12371358
compatible = "ti,j721s2-wiz-10g";
12381359
#address-cells = <1>;

0 commit comments

Comments
 (0)