lantiq: specify the PCIe controller's interrupt, size and address cells
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 26 Nov 2016 00:01:11 +0000 (01:01 +0100)
committerJohn Crispin <john@phrozen.org>
Sat, 26 Nov 2016 21:39:27 +0000 (22:39 +0100)
This allows adding devices to the PCIe controller in the .dts files.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
target/linux/lantiq/dts/vr9.dtsi

index 779e23e61f7315ea75e8672572b80586fd435444..7f036186e4b74f633414c1b971480976b8478d9a 100644 (file)
                        interrupts = <96>;
                };
 
-               pcie@d900000 {
+               pcie0: pcie@d900000 {
+                       compatible = "lantiq,pcie-xrx200";
+
+                       #interrupt-cells = <1>;
+                       #size-cells = <2>;
+                       #address-cells = <3>;
+
                        interrupt-parent = <&icu0>;
                        interrupts = <161 144>;
-                       compatible = "lantiq,pcie-xrx200";
+
+                       device_type = "pci";
+
                        gpio-reset = <&gpio 38 GPIO_ACTIVE_HIGH>;
                };