ARM: orion5x: DT: enable PCI nodes
The PCIe node does not require any board specific configuration
and just needs to be enabled. The PCI node needs a custom
interrupt-map because the IntA and IntB pins of the only
slot are connected to GPIOs.
The IDSEL pin 7 that is used on this board corresponds to
device address 0x3800 0 0, and we map IntA (1) to gpio 7
and IntB (2) to gpio 6, as in the board file.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
diff --git a/arch/arm/boot/dts/orion5x-rd88f5182-nas.dts b/arch/arm/boot/dts/orion5x-rd88f5182-nas.dts
index 6fb0525..4aaaaef 100644
--- a/arch/arm/boot/dts/orion5x-rd88f5182-nas.dts
+++ b/arch/arm/boot/dts/orion5x-rd88f5182-nas.dts
@@ -9,6 +9,7 @@
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
#include "orion5x-mv88f5182.dtsi"
/ {
@@ -175,3 +176,15 @@
&uart0 {
status = "okay";
};
+
+&pcic {
+ status = "okay";
+ interrupt-map-mask = <0xf800 0 0 7>;
+ /* IDSEL 7 */
+ interrupt-map = <0x3800 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* IntA */
+ <0x3800 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>; /* IntB */
+};
+
+&pciec {
+ status = "okay";
+};