ARM: dts: NSP: Disable PL330 by default, add dma-coherent property
authorMatthew Hagan <mnhagan88@gmail.com>
Tue, 9 Jun 2020 16:58:29 +0000 (17:58 +0100)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 16 Jun 2020 04:17:31 +0000 (21:17 -0700)
Currently the PL330 is enabled by default. However if left in IDM reset, as is
the case with the Meraki and Synology NSP devices, the system will hang when
probing for the PL330's AMBA peripheral ID. We therefore should be able to
disable it in these cases.

The PL330 is also included among of the list of peripherals put into coherent
mode, so "dma-coherent" has been added here as well.

Fixes: 5fa1026a3e4d ("ARM: dts: NSP: Add PL330 support")
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm-nsp.dtsi
arch/arm/boot/dts/bcm958522er.dts
arch/arm/boot/dts/bcm958525er.dts
arch/arm/boot/dts/bcm958525xmc.dts
arch/arm/boot/dts/bcm958622hr.dts
arch/arm/boot/dts/bcm958623hr.dts
arch/arm/boot/dts/bcm958625hr.dts
arch/arm/boot/dts/bcm958625k.dts

index da6d70f..920c0f5 100644 (file)
                        status = "disabled";
                };
 
-               dma@20000 {
+               dma: dma@20000 {
                        compatible = "arm,pl330", "arm,primecell";
                        reg = <0x20000 0x1000>;
                        interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
                        clocks = <&iprocslow>;
                        clock-names = "apb_pclk";
                        #dma-cells = <1>;
+                       dma-coherent;
+                       status = "disabled";
                };
 
                sdio: sdhci@21000 {
index 8c388eb..7be4c4e 100644 (file)
 
 /* USB 3 support needed to be complete */
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index c339771..e58ed7e 100644 (file)
 
 /* USB 3 support needed to be complete */
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index 1c72ec8..716da62 100644 (file)
 
 /* XHCI support needed to be complete */
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index 96a021c..a49c2fd 100644 (file)
 
 /* USB 3 and SLIC support needed to be complete */
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index b2c7f21..dd6dff6 100644 (file)
 
 /* USB 3 and SLIC support needed to be complete */
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index 536fb24..a71371b 100644 (file)
        status = "okay";
 };
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index 3fcca12..7b84b54 100644 (file)
        };
 };
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };