Explorar o código

lantiq: specify the PCIe controller's interrupt, size and address cells

This allows adding devices to the PCIe controller in the .dts files.

Signed-off-by: Martin Blumenstingl <[email protected]>
Martin Blumenstingl %!s(int64=9) %!d(string=hai) anos
pai
achega
d76ee5bfac
Modificáronse 1 ficheiros con 10 adicións e 2 borrados
  1. 10 2
      target/linux/lantiq/dts/vr9.dtsi

+ 10 - 2
target/linux/lantiq/dts/vr9.dtsi

@@ -210,10 +210,18 @@
 			interrupts = <96>;
 			interrupts = <96>;
 		};
 		};
 
 
-		pcie@d900000 {
+		pcie0: pcie@d900000 {
+			compatible = "lantiq,pcie-xrx200";
+
+			#interrupt-cells = <1>;
+			#size-cells = <2>;
+			#address-cells = <3>;
+
 			interrupt-parent = <&icu0>;
 			interrupt-parent = <&icu0>;
 			interrupts = <161 144>;
 			interrupts = <161 144>;
-			compatible = "lantiq,pcie-xrx200";
+
+			device_type = "pci";
+
 			gpio-reset = <&gpio 38 GPIO_ACTIVE_HIGH>;
 			gpio-reset = <&gpio 38 GPIO_ACTIVE_HIGH>;
 		};
 		};