Skip to content

Commit 2ba8f21

Browse files
vaishnavachathr-vignesh
authored andcommitted
arm64: dts: ti: k3-j784s4-main: Add CSI2RX capture nodes
J784S4 has three CSI2RX capture subsystem featuring Cadence CSI2RX, DPHY and TI's pixel grabbing wrapper. Add nodes for the same and keep them disabled by default. J784S4 uses a dedicated BCDMA instance for CSI-RX traffic, so enable that as well. J784S4 TRM (Section 12.7 Camera Subsystem): https://www.ti.com/lit/zip/spruj52 Signed-off-by: Vaishnav Achath <[email protected]> Reviewed-by: Jai Luthra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vignesh Raghavendra <[email protected]>
1 parent 6aac919 commit 2ba8f21

File tree

1 file changed

+182
-1
lines changed

1 file changed

+182
-1
lines changed

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

Lines changed: 182 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,188 @@
662662
status = "disabled";
663663
};
664664

665+
ti_csi2rx0: ticsi2rx@4500000 {
666+
compatible = "ti,j721e-csi2rx-shim";
667+
reg = <0x00 0x04500000 0x00 0x00001000>;
668+
ranges;
669+
#address-cells = <2>;
670+
#size-cells = <2>;
671+
dmas = <&main_bcdma_csi 0 0x4940 0>;
672+
dma-names = "rx0";
673+
power-domains = <&k3_pds 72 TI_SCI_PD_EXCLUSIVE>;
674+
status = "disabled";
675+
676+
cdns_csi2rx0: csi-bridge@4504000 {
677+
compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
678+
reg = <0x00 0x04504000 0x00 0x00001000>;
679+
clocks = <&k3_clks 72 2>, <&k3_clks 72 0>, <&k3_clks 72 2>,
680+
<&k3_clks 72 2>, <&k3_clks 72 3>, <&k3_clks 72 3>;
681+
clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
682+
"pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk";
683+
phys = <&dphy0>;
684+
phy-names = "dphy";
685+
686+
ports {
687+
#address-cells = <1>;
688+
#size-cells = <0>;
689+
690+
csi0_port0: port@0 {
691+
reg = <0>;
692+
status = "disabled";
693+
};
694+
695+
csi0_port1: port@1 {
696+
reg = <1>;
697+
status = "disabled";
698+
};
699+
700+
csi0_port2: port@2 {
701+
reg = <2>;
702+
status = "disabled";
703+
};
704+
705+
csi0_port3: port@3 {
706+
reg = <3>;
707+
status = "disabled";
708+
};
709+
710+
csi0_port4: port@4 {
711+
reg = <4>;
712+
status = "disabled";
713+
};
714+
};
715+
};
716+
};
717+
718+
ti_csi2rx1: ticsi2rx@4510000 {
719+
compatible = "ti,j721e-csi2rx-shim";
720+
reg = <0x00 0x04510000 0x00 0x1000>;
721+
ranges;
722+
#address-cells = <2>;
723+
#size-cells = <2>;
724+
dmas = <&main_bcdma_csi 0 0x4960 0>;
725+
dma-names = "rx0";
726+
power-domains = <&k3_pds 73 TI_SCI_PD_EXCLUSIVE>;
727+
status = "disabled";
728+
729+
cdns_csi2rx1: csi-bridge@4514000 {
730+
compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
731+
reg = <0x00 0x04514000 0x00 0x00001000>;
732+
clocks = <&k3_clks 73 2>, <&k3_clks 73 0>, <&k3_clks 73 2>,
733+
<&k3_clks 73 2>, <&k3_clks 73 3>, <&k3_clks 73 3>;
734+
clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
735+
"pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk";
736+
phys = <&dphy1>;
737+
phy-names = "dphy";
738+
ports {
739+
#address-cells = <1>;
740+
#size-cells = <0>;
741+
742+
csi1_port0: port@0 {
743+
reg = <0>;
744+
status = "disabled";
745+
};
746+
747+
csi1_port1: port@1 {
748+
reg = <1>;
749+
status = "disabled";
750+
};
751+
752+
csi1_port2: port@2 {
753+
reg = <2>;
754+
status = "disabled";
755+
};
756+
757+
csi1_port3: port@3 {
758+
reg = <3>;
759+
status = "disabled";
760+
};
761+
762+
csi1_port4: port@4 {
763+
reg = <4>;
764+
status = "disabled";
765+
};
766+
};
767+
};
768+
};
769+
770+
ti_csi2rx2: ticsi2rx@4520000 {
771+
compatible = "ti,j721e-csi2rx-shim";
772+
reg = <0x00 0x04520000 0x00 0x00001000>;
773+
ranges;
774+
#address-cells = <2>;
775+
#size-cells = <2>;
776+
dmas = <&main_bcdma_csi 0 0x4980 0>;
777+
dma-names = "rx0";
778+
power-domains = <&k3_pds 74 TI_SCI_PD_EXCLUSIVE>;
779+
status = "disabled";
780+
781+
cdns_csi2rx2: csi-bridge@4524000 {
782+
compatible = "ti,j721e-csi2rx", "cdns,csi2rx";
783+
reg = <0x00 0x04524000 0x00 0x00001000>;
784+
clocks = <&k3_clks 74 2>, <&k3_clks 74 0>, <&k3_clks 74 2>,
785+
<&k3_clks 74 2>, <&k3_clks 74 3>, <&k3_clks 74 3>;
786+
clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
787+
"pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk";
788+
phys = <&dphy2>;
789+
phy-names = "dphy";
790+
791+
ports {
792+
#address-cells = <1>;
793+
#size-cells = <0>;
794+
795+
csi2_port0: port@0 {
796+
reg = <0>;
797+
status = "disabled";
798+
};
799+
800+
csi2_port1: port@1 {
801+
reg = <1>;
802+
status = "disabled";
803+
};
804+
805+
csi2_port2: port@2 {
806+
reg = <2>;
807+
status = "disabled";
808+
};
809+
810+
csi2_port3: port@3 {
811+
reg = <3>;
812+
status = "disabled";
813+
};
814+
815+
csi2_port4: port@4 {
816+
reg = <4>;
817+
status = "disabled";
818+
};
819+
};
820+
};
821+
};
822+
823+
dphy0: phy@4580000 {
824+
compatible = "cdns,dphy-rx";
825+
reg = <0x00 0x04580000 0x00 0x00001100>;
826+
#phy-cells = <0>;
827+
power-domains = <&k3_pds 212 TI_SCI_PD_EXCLUSIVE>;
828+
status = "disabled";
829+
};
830+
831+
dphy1: phy@4590000 {
832+
compatible = "cdns,dphy-rx";
833+
reg = <0x00 0x04590000 0x00 0x00001100>;
834+
#phy-cells = <0>;
835+
power-domains = <&k3_pds 213 TI_SCI_PD_EXCLUSIVE>;
836+
status = "disabled";
837+
};
838+
839+
dphy2: phy@45a0000 {
840+
compatible = "cdns,dphy-rx";
841+
reg = <0x00 0x045a0000 0x00 0x00001100>;
842+
#phy-cells = <0>;
843+
power-domains = <&k3_pds 214 TI_SCI_PD_EXCLUSIVE>;
844+
status = "disabled";
845+
};
846+
665847
main_sdhci0: mmc@4f80000 {
666848
compatible = "ti,j721e-sdhci-8bit";
667849
reg = <0x00 0x04f80000 0x00 0x1000>,
@@ -1224,7 +1406,6 @@
12241406
ti,sci-dev-id = <281>;
12251407
ti,sci-rm-range-rchan = <0x21>;
12261408
ti,sci-rm-range-tchan = <0x22>;
1227-
status = "disabled";
12281409
};
12291410

12301411
cpts@310d0000 {

0 commit comments

Comments
 (0)