aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts17
-rw-r--r--arch/arm64/boot/dts/renesas/r8a7795.dtsi98
2 files changed, 112 insertions, 3 deletions
diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
index b992b1a3d956..8d8de245a845 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -141,6 +141,10 @@
141 clock-frequency = <16666666>; 141 clock-frequency = <16666666>;
142}; 142};
143 143
144&extalr_clk {
145 clock-frequency = <32768>;
146};
147
144&pfc { 148&pfc {
145 pinctrl-0 = <&scif_clk_pins>; 149 pinctrl-0 = <&scif_clk_pins>;
146 pinctrl-names = "default"; 150 pinctrl-names = "default";
@@ -388,3 +392,16 @@
388&ohci2 { 392&ohci2 {
389 status = "okay"; 393 status = "okay";
390}; 394};
395
396&pcie_bus_clk {
397 clock-frequency = <100000000>;
398 status = "okay";
399};
400
401&pciec0 {
402 status = "okay";
403};
404
405&pciec1 {
406 status = "okay";
407};
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index a7315ebe3883..7cb2d72e7378 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -115,12 +115,25 @@
115 clock-frequency = <0>; 115 clock-frequency = <0>;
116 }; 116 };
117 117
118 /* External CAN clock - to be overridden by boards that provide it */
119 can_clk: can {
120 compatible = "fixed-clock";
121 #clock-cells = <0>;
122 clock-frequency = <0>;
123 };
124
118 /* External SCIF clock - to be overridden by boards that provide it */ 125 /* External SCIF clock - to be overridden by boards that provide it */
119 scif_clk: scif { 126 scif_clk: scif {
120 compatible = "fixed-clock"; 127 compatible = "fixed-clock";
121 #clock-cells = <0>; 128 #clock-cells = <0>;
122 clock-frequency = <0>; 129 clock-frequency = <0>;
123 status = "disabled"; 130 };
131
132 /* External PCIe clock - can be overridden by the board */
133 pcie_bus_clk: pcie_bus {
134 compatible = "fixed-clock";
135 #clock-cells = <0>;
136 clock-frequency = <0>;
124 }; 137 };
125 138
126 soc { 139 soc {
@@ -515,6 +528,36 @@
515 #size-cells = <0>; 528 #size-cells = <0>;
516 }; 529 };
517 530
531 can0: can@e6c30000 {
532 compatible = "renesas,can-r8a7795",
533 "renesas,rcar-gen3-can";
534 reg = <0 0xe6c30000 0 0x1000>;
535 interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
536 clocks = <&cpg CPG_MOD 916>,
537 <&cpg CPG_CORE R8A7795_CLK_CANFD>,
538 <&can_clk>;
539 clock-names = "clkp1", "clkp2", "can_clk";
540 assigned-clocks = <&cpg CPG_CORE R8A7795_CLK_CANFD>;
541 assigned-clock-rates = <40000000>;
542 power-domains = <&cpg>;
543 status = "disabled";
544 };
545
546 can1: can@e6c38000 {
547 compatible = "renesas,can-r8a7795",
548 "renesas,rcar-gen3-can";
549 reg = <0 0xe6c38000 0 0x1000>;
550 interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
551 clocks = <&cpg CPG_MOD 915>,
552 <&cpg CPG_CORE R8A7795_CLK_CANFD>,
553 <&can_clk>;
554 clock-names = "clkp1", "clkp2", "can_clk";
555 assigned-clocks = <&cpg CPG_CORE R8A7795_CLK_CANFD>;
556 assigned-clock-rates = <40000000>;
557 power-domains = <&cpg>;
558 status = "disabled";
559 };
560
518 hscif0: serial@e6540000 { 561 hscif0: serial@e6540000 {
519 compatible = "renesas,hscif-r8a7795", 562 compatible = "renesas,hscif-r8a7795",
520 "renesas,rcar-gen3-hscif", 563 "renesas,rcar-gen3-hscif",
@@ -944,7 +987,7 @@
944 }; 987 };
945 988
946 xhci0: usb@ee000000 { 989 xhci0: usb@ee000000 {
947 compatible = "renesas,xhci-r8a7795"; 990 compatible = "renesas,xhci-r8a7795", "renesas,rcar-gen3-xhci";
948 reg = <0 0xee000000 0 0xc00>; 991 reg = <0 0xee000000 0 0xc00>;
949 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>; 992 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
950 clocks = <&cpg CPG_MOD 328>; 993 clocks = <&cpg CPG_MOD 328>;
@@ -953,7 +996,7 @@
953 }; 996 };
954 997
955 xhci1: usb@ee0400000 { 998 xhci1: usb@ee0400000 {
956 compatible = "renesas,xhci-r8a7795"; 999 compatible = "renesas,xhci-r8a7795", "renesas,rcar-gen3-xhci";
957 reg = <0 0xee040000 0 0xc00>; 1000 reg = <0 0xee040000 0 0xc00>;
958 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; 1001 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
959 clocks = <&cpg CPG_MOD 327>; 1002 clocks = <&cpg CPG_MOD 327>;
@@ -1118,5 +1161,54 @@
1118 power-domains = <&cpg>; 1161 power-domains = <&cpg>;
1119 status = "disabled"; 1162 status = "disabled";
1120 }; 1163 };
1164 pciec0: pcie@fe000000 {
1165 compatible = "renesas,pcie-r8a7795";
1166 reg = <0 0xfe000000 0 0x80000>;
1167 #address-cells = <3>;
1168 #size-cells = <2>;
1169 bus-range = <0x00 0xff>;
1170 device_type = "pci";
1171 ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1172 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1173 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1174 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1175 /* Map all possible DDR as inbound ranges */
1176 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>;
1177 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
1178 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
1179 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
1180 #interrupt-cells = <1>;
1181 interrupt-map-mask = <0 0 0 0>;
1182 interrupt-map = <0 0 0 0 &gic GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
1183 clocks = <&cpg CPG_MOD 319>, <&pcie_bus_clk>;
1184 clock-names = "pcie", "pcie_bus";
1185 power-domains = <&cpg>;
1186 status = "disabled";
1187 };
1188
1189 pciec1: pcie@ee800000 {
1190 compatible = "renesas,pcie-r8a7795";
1191 reg = <0 0xee800000 0 0x80000>;
1192 #address-cells = <3>;
1193 #size-cells = <2>;
1194 bus-range = <0x00 0xff>;
1195 device_type = "pci";
1196 ranges = <0x01000000 0 0x00000000 0 0xee900000 0 0x00100000
1197 0x02000000 0 0xeea00000 0 0xeea00000 0 0x00200000
1198 0x02000000 0 0xc0000000 0 0xc0000000 0 0x08000000
1199 0x42000000 0 0xc8000000 0 0xc8000000 0 0x08000000>;
1200 /* Map all possible DDR as inbound ranges */
1201 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>;
1202 interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
1203 <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>,
1204 <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
1205 #interrupt-cells = <1>;
1206 interrupt-map-mask = <0 0 0 0>;
1207 interrupt-map = <0 0 0 0 &gic GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
1208 clocks = <&cpg CPG_MOD 318>, <&pcie_bus_clk>;
1209 clock-names = "pcie", "pcie_bus";
1210 power-domains = <&cpg>;
1211 status = "disabled";
1212 };
1121 }; 1213 };
1122}; 1214};