riscv: dts: microchip: add pci dma ranges for the icicle kit
authorConor Dooley <conor.dooley@microchip.com>
Tue, 27 Sep 2022 11:19:16 +0000 (12:19 +0100)
committerConor Dooley <conor.dooley@microchip.com>
Tue, 27 Sep 2022 17:53:58 +0000 (18:53 +0100)
The recently removed, accidentally included, "matr0" property was used
in place of a dma-ranges property. The PCI controller is non-functional
with mainline Linux in the v2022.02 or later reference designs and has
not worked without configuration of address-translation since v2021.08.

Add the address translation that will be used by the v2022.09 reference
design & update the compatible used by the dts. Since this change is not
backwards compatible, update the compatible to denote this, jumping over
v2022.09 directly to v2022.10.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi
arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts

index 0d28858b83f2875691a2ea22d2ebe8d1bd17eaf9..eec5aba43436382bf3b26a8bb8d1be719654d6d8 100644 (file)
@@ -2,7 +2,8 @@
 /* Copyright (c) 2020-2021 Microchip Technology Inc */
 
 / {
-       compatible = "microchip,mpfs-icicle-reference-rtlv2203", "microchip,mpfs";
+       compatible = "microchip,mpfs-icicle-reference-rtlv2210", "microchip,mpfs-icicle-kit",
+                    "microchip,mpfs";
 
        core_pwm0: pwm@41000000 {
                compatible = "microchip,corepwm-rtl-v4";
@@ -37,3 +38,7 @@
                clock-frequency = <125000000>;
        };
 };
+
+&pcie {
+       dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000 0x1 0x00000000>;
+};
index 044982a11df5045b2eb7abd13d74dec8ebb69523..42d350fe6c6b9b5deca7224bd3fe098914887c14 100644 (file)
@@ -11,7 +11,8 @@
 
 / {
        model = "Microchip PolarFire-SoC Icicle Kit";
-       compatible = "microchip,mpfs-icicle-kit", "microchip,mpfs";
+       compatible = "microchip,mpfs-icicle-reference-rtlv2210", "microchip,mpfs-icicle-kit",
+                    "microchip,mpfs";
 
        aliases {
                ethernet0 = &mac1;