Skip to content

Commit 3182aa4

Browse files
Sergei Shtylyovhorms
authored andcommitted
arm64: dts: renesas: r8a77980: add CSI2/VIN support
Describe the CSI2 and VIN (and their interconnections) in the R8A77980 device tree. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 parent 3a0832d commit 3182aa4

File tree

1 file changed

+374
-0
lines changed

1 file changed

+374
-0
lines changed

arch/arm64/boot/dts/renesas/r8a77980.dtsi

Lines changed: 374 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,302 @@
579579
status = "disabled";
580580
};
581581

582+
vin0: video@e6ef0000 {
583+
compatible = "renesas,vin-r8a77980";
584+
reg = <0 0xe6ef0000 0 0x1000>;
585+
interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
586+
clocks = <&cpg CPG_MOD 811>;
587+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
588+
resets = <&cpg 811>;
589+
status = "disabled";
590+
591+
ports {
592+
#address-cells = <1>;
593+
#size-cells = <0>;
594+
595+
port@1 {
596+
#address-cells = <1>;
597+
#size-cells = <0>;
598+
599+
reg = <1>;
600+
601+
vin0csi40: endpoint@2 {
602+
reg = <2>;
603+
remote-endpoint= <&csi40vin0>;
604+
};
605+
};
606+
};
607+
};
608+
609+
vin1: video@e6ef1000 {
610+
compatible = "renesas,vin-r8a77980";
611+
reg = <0 0xe6ef1000 0 0x1000>;
612+
interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
613+
clocks = <&cpg CPG_MOD 810>;
614+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
615+
status = "disabled";
616+
resets = <&cpg 810>;
617+
618+
ports {
619+
#address-cells = <1>;
620+
#size-cells = <0>;
621+
622+
port@1 {
623+
#address-cells = <1>;
624+
#size-cells = <0>;
625+
626+
reg = <1>;
627+
628+
vin1csi40: endpoint@2 {
629+
reg = <2>;
630+
remote-endpoint= <&csi40vin1>;
631+
};
632+
};
633+
};
634+
};
635+
636+
vin2: video@e6ef2000 {
637+
compatible = "renesas,vin-r8a77980";
638+
reg = <0 0xe6ef2000 0 0x1000>;
639+
interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
640+
clocks = <&cpg CPG_MOD 809>;
641+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
642+
resets = <&cpg 809>;
643+
status = "disabled";
644+
645+
ports {
646+
#address-cells = <1>;
647+
#size-cells = <0>;
648+
649+
port@1 {
650+
#address-cells = <1>;
651+
#size-cells = <0>;
652+
653+
reg = <1>;
654+
655+
vin2csi40: endpoint@2 {
656+
reg = <2>;
657+
remote-endpoint= <&csi40vin2>;
658+
};
659+
};
660+
};
661+
};
662+
663+
vin3: video@e6ef3000 {
664+
compatible = "renesas,vin-r8a77980";
665+
reg = <0 0xe6ef3000 0 0x1000>;
666+
interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
667+
clocks = <&cpg CPG_MOD 808>;
668+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
669+
resets = <&cpg 808>;
670+
status = "disabled";
671+
672+
ports {
673+
#address-cells = <1>;
674+
#size-cells = <0>;
675+
676+
port@1 {
677+
#address-cells = <1>;
678+
#size-cells = <0>;
679+
680+
reg = <1>;
681+
682+
vin3csi40: endpoint@2 {
683+
reg = <2>;
684+
remote-endpoint= <&csi40vin3>;
685+
};
686+
};
687+
};
688+
};
689+
690+
vin4: video@e6ef4000 {
691+
compatible = "renesas,vin-r8a77980";
692+
reg = <0 0xe6ef4000 0 0x1000>;
693+
interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
694+
clocks = <&cpg CPG_MOD 807>;
695+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
696+
resets = <&cpg 807>;
697+
status = "disabled";
698+
699+
ports {
700+
#address-cells = <1>;
701+
#size-cells = <0>;
702+
703+
port@1 {
704+
#address-cells = <1>;
705+
#size-cells = <0>;
706+
707+
reg = <1>;
708+
709+
vin4csi41: endpoint@2 {
710+
reg = <2>;
711+
remote-endpoint= <&csi41vin4>;
712+
};
713+
};
714+
};
715+
};
716+
717+
vin5: video@e6ef5000 {
718+
compatible = "renesas,vin-r8a77980";
719+
reg = <0 0xe6ef5000 0 0x1000>;
720+
interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>;
721+
clocks = <&cpg CPG_MOD 806>;
722+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
723+
resets = <&cpg 806>;
724+
status = "disabled";
725+
726+
ports {
727+
#address-cells = <1>;
728+
#size-cells = <0>;
729+
730+
port@1 {
731+
#address-cells = <1>;
732+
#size-cells = <0>;
733+
734+
reg = <1>;
735+
736+
vin5csi41: endpoint@2 {
737+
reg = <2>;
738+
remote-endpoint= <&csi41vin5>;
739+
};
740+
};
741+
};
742+
};
743+
744+
vin6: video@e6ef6000 {
745+
compatible = "renesas,vin-r8a77980";
746+
reg = <0 0xe6ef6000 0 0x1000>;
747+
interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
748+
clocks = <&cpg CPG_MOD 805>;
749+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
750+
resets = <&cpg 805>;
751+
status = "disabled";
752+
753+
ports {
754+
#address-cells = <1>;
755+
#size-cells = <0>;
756+
757+
port@1 {
758+
#address-cells = <1>;
759+
#size-cells = <0>;
760+
761+
reg = <1>;
762+
763+
vin6csi41: endpoint@2 {
764+
reg = <2>;
765+
remote-endpoint= <&csi41vin6>;
766+
};
767+
};
768+
};
769+
};
770+
771+
vin7: video@e6ef7000 {
772+
compatible = "renesas,vin-r8a77980";
773+
reg = <0 0xe6ef7000 0 0x1000>;
774+
interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
775+
clocks = <&cpg CPG_MOD 804>;
776+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
777+
resets = <&cpg 804>;
778+
status = "disabled";
779+
780+
ports {
781+
#address-cells = <1>;
782+
#size-cells = <0>;
783+
784+
port@1 {
785+
#address-cells = <1>;
786+
#size-cells = <0>;
787+
788+
reg = <1>;
789+
790+
vin7csi41: endpoint@2 {
791+
reg = <2>;
792+
remote-endpoint= <&csi41vin7>;
793+
};
794+
};
795+
};
796+
};
797+
798+
vin8: video@e6ef8000 {
799+
compatible = "renesas,vin-r8a77980";
800+
reg = <0 0xe6ef8000 0 0x1000>;
801+
interrupts = <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>;
802+
clocks = <&cpg CPG_MOD 628>;
803+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
804+
resets = <&cpg 628>;
805+
status = "disabled";
806+
};
807+
808+
vin9: video@e6ef9000 {
809+
compatible = "renesas,vin-r8a77980";
810+
reg = <0 0xe6ef9000 0 0x1000>;
811+
interrupts = <GIC_SPI 269 IRQ_TYPE_LEVEL_HIGH>;
812+
clocks = <&cpg CPG_MOD 627>;
813+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
814+
resets = <&cpg 627>;
815+
status = "disabled";
816+
};
817+
818+
vin10: video@e6efa000 {
819+
compatible = "renesas,vin-r8a77980";
820+
reg = <0 0xe6efa000 0 0x1000>;
821+
interrupts = <GIC_SPI 289 IRQ_TYPE_LEVEL_HIGH>;
822+
clocks = <&cpg CPG_MOD 625>;
823+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
824+
resets = <&cpg 625>;
825+
status = "disabled";
826+
};
827+
828+
vin11: video@e6efb000 {
829+
compatible = "renesas,vin-r8a77980";
830+
reg = <0 0xe6efb000 0 0x1000>;
831+
interrupts = <GIC_SPI 296 IRQ_TYPE_LEVEL_HIGH>;
832+
clocks = <&cpg CPG_MOD 618>;
833+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
834+
resets = <&cpg 618>;
835+
status = "disabled";
836+
};
837+
838+
vin12: video@e6efc000 {
839+
compatible = "renesas,vin-r8a77980";
840+
reg = <0 0xe6efc000 0 0x1000>;
841+
interrupts = <GIC_SPI 298 IRQ_TYPE_LEVEL_HIGH>;
842+
clocks = <&cpg CPG_MOD 612>;
843+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
844+
resets = <&cpg 612>;
845+
status = "disabled";
846+
};
847+
848+
vin13: video@e6efd000 {
849+
compatible = "renesas,vin-r8a77980";
850+
reg = <0 0xe6efd000 0 0x1000>;
851+
interrupts = <GIC_SPI 299 IRQ_TYPE_LEVEL_HIGH>;
852+
clocks = <&cpg CPG_MOD 608>;
853+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
854+
resets = <&cpg 608>;
855+
status = "disabled";
856+
};
857+
858+
vin14: video@e6efe000 {
859+
compatible = "renesas,vin-r8a77980";
860+
reg = <0 0xe6efe000 0 0x1000>;
861+
interrupts = <GIC_SPI 301 IRQ_TYPE_LEVEL_HIGH>;
862+
clocks = <&cpg CPG_MOD 605>;
863+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
864+
resets = <&cpg 605>;
865+
status = "disabled";
866+
};
867+
868+
vin15: video@e6eff000 {
869+
compatible = "renesas,vin-r8a77980";
870+
reg = <0 0xe6eff000 0 0x1000>;
871+
interrupts = <GIC_SPI 302 IRQ_TYPE_LEVEL_HIGH>;
872+
clocks = <&cpg CPG_MOD 604>;
873+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
874+
resets = <&cpg 604>;
875+
status = "disabled";
876+
};
877+
582878
dmac1: dma-controller@e7300000 {
583879
compatible = "renesas,dmac-r8a77980",
584880
"renesas,rcar-dmac";
@@ -769,6 +1065,84 @@
7691065
resets = <&cpg 603>;
7701066
};
7711067

1068+
csi40: csi2@feaa0000 {
1069+
compatible = "renesas,r8a77980-csi2";
1070+
reg = <0 0xfeaa0000 0 0x10000>;
1071+
interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
1072+
clocks = <&cpg CPG_MOD 716>;
1073+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
1074+
resets = <&cpg 716>;
1075+
status = "disabled";
1076+
1077+
ports {
1078+
#address-cells = <1>;
1079+
#size-cells = <0>;
1080+
1081+
port@1 {
1082+
#address-cells = <1>;
1083+
#size-cells = <0>;
1084+
1085+
reg = <1>;
1086+
1087+
csi40vin0: endpoint@0 {
1088+
reg = <0>;
1089+
remote-endpoint = <&vin0csi40>;
1090+
};
1091+
csi40vin1: endpoint@1 {
1092+
reg = <1>;
1093+
remote-endpoint = <&vin1csi40>;
1094+
};
1095+
csi40vin2: endpoint@2 {
1096+
reg = <2>;
1097+
remote-endpoint = <&vin2csi40>;
1098+
};
1099+
csi40vin3: endpoint@3 {
1100+
reg = <3>;
1101+
remote-endpoint = <&vin3csi40>;
1102+
};
1103+
};
1104+
};
1105+
};
1106+
1107+
csi41: csi2@feab0000 {
1108+
compatible = "renesas,r8a77980-csi2";
1109+
reg = <0 0xfeab0000 0 0x10000>;
1110+
interrupts = <GIC_SPI 241 IRQ_TYPE_LEVEL_HIGH>;
1111+
clocks = <&cpg CPG_MOD 715>;
1112+
power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
1113+
resets = <&cpg 715>;
1114+
status = "disabled";
1115+
1116+
ports {
1117+
#address-cells = <1>;
1118+
#size-cells = <0>;
1119+
1120+
port@1 {
1121+
#address-cells = <1>;
1122+
#size-cells = <0>;
1123+
1124+
reg = <1>;
1125+
1126+
csi41vin4: endpoint@0 {
1127+
reg = <0>;
1128+
remote-endpoint = <&vin4csi41>;
1129+
};
1130+
csi41vin5: endpoint@1 {
1131+
reg = <1>;
1132+
remote-endpoint = <&vin5csi41>;
1133+
};
1134+
csi41vin6: endpoint@2 {
1135+
reg = <2>;
1136+
remote-endpoint = <&vin6csi41>;
1137+
};
1138+
csi41vin7: endpoint@3 {
1139+
reg = <3>;
1140+
remote-endpoint = <&vin7csi41>;
1141+
};
1142+
};
1143+
};
1144+
};
1145+
7721146
du: display@feb00000 {
7731147
compatible = "renesas,du-r8a77980",
7741148
"renesas,du-r8a77970";

0 commit comments

Comments
 (0)