diff options
author | Phil Edworthy <Phil.Edworthy@renesas.com> | 2016-04-05 06:51:26 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2016-04-26 21:48:28 -0400 |
commit | 9251024a6a148abd628785d53e3b7a42e8217cc9 (patch) | |
tree | bbc63b239eccaa8ad230a72329bf587318368e15 | |
parent | 81ae0ac31bb90baef10850fdfdc2a9f72f36aa6f (diff) |
arm64: dts: r8a7795: Add PCIe nodes
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm64/boot/dts/renesas/r8a7795.dtsi | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 868c10eaea48..11f9971a8543 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi | |||
@@ -131,6 +131,14 @@ | |||
131 | status = "disabled"; | 131 | status = "disabled"; |
132 | }; | 132 | }; |
133 | 133 | ||
134 | /* External PCIe clock - can be overridden by the board */ | ||
135 | pcie_bus_clk: pcie_bus { | ||
136 | compatible = "fixed-clock"; | ||
137 | #clock-cells = <0>; | ||
138 | clock-frequency = <100000000>; | ||
139 | status = "disabled"; | ||
140 | }; | ||
141 | |||
134 | soc { | 142 | soc { |
135 | compatible = "simple-bus"; | 143 | compatible = "simple-bus"; |
136 | interrupt-parent = <&gic>; | 144 | interrupt-parent = <&gic>; |
@@ -1156,5 +1164,54 @@ | |||
1156 | power-domains = <&cpg>; | 1164 | power-domains = <&cpg>; |
1157 | status = "disabled"; | 1165 | status = "disabled"; |
1158 | }; | 1166 | }; |
1167 | pciec0: pcie@fe000000 { | ||
1168 | compatible = "renesas,pcie-r8a7795"; | ||
1169 | reg = <0 0xfe000000 0 0x80000>; | ||
1170 | #address-cells = <3>; | ||
1171 | #size-cells = <2>; | ||
1172 | bus-range = <0x00 0xff>; | ||
1173 | device_type = "pci"; | ||
1174 | ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000 | ||
1175 | 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000 | ||
1176 | 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000 | ||
1177 | 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>; | ||
1178 | /* Map all possible DDR as inbound ranges */ | ||
1179 | dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>; | ||
1180 | interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, | ||
1181 | <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, | ||
1182 | <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; | ||
1183 | #interrupt-cells = <1>; | ||
1184 | interrupt-map-mask = <0 0 0 0>; | ||
1185 | interrupt-map = <0 0 0 0 &gic GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; | ||
1186 | clocks = <&cpg CPG_MOD 319>, <&pcie_bus_clk>; | ||
1187 | clock-names = "pcie", "pcie_bus"; | ||
1188 | power-domains = <&cpg>; | ||
1189 | status = "disabled"; | ||
1190 | }; | ||
1191 | |||
1192 | pciec1: pcie@ee800000 { | ||
1193 | compatible = "renesas,pcie-r8a7795"; | ||
1194 | reg = <0 0xee800000 0 0x80000>; | ||
1195 | #address-cells = <3>; | ||
1196 | #size-cells = <2>; | ||
1197 | bus-range = <0x00 0xff>; | ||
1198 | device_type = "pci"; | ||
1199 | ranges = <0x01000000 0 0x00000000 0 0xee900000 0 0x00100000 | ||
1200 | 0x02000000 0 0xeea00000 0 0xeea00000 0 0x00200000 | ||
1201 | 0x02000000 0 0xc0000000 0 0xc0000000 0 0x08000000 | ||
1202 | 0x42000000 0 0xc8000000 0 0xc8000000 0 0x08000000>; | ||
1203 | /* Map all possible DDR as inbound ranges */ | ||
1204 | dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>; | ||
1205 | interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>, | ||
1206 | <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, | ||
1207 | <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>; | ||
1208 | #interrupt-cells = <1>; | ||
1209 | interrupt-map-mask = <0 0 0 0>; | ||
1210 | interrupt-map = <0 0 0 0 &gic GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; | ||
1211 | clocks = <&cpg CPG_MOD 318>, <&pcie_bus_clk>; | ||
1212 | clock-names = "pcie", "pcie_bus"; | ||
1213 | power-domains = <&cpg>; | ||
1214 | status = "disabled"; | ||
1215 | }; | ||
1159 | }; | 1216 | }; |
1160 | }; | 1217 | }; |