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 da6d70f09ef19b4dd480c5d98b4b8b73cc80d1dc..920c0f561e5ce69e00338985654d9d94c0a8d0ae 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 8c388eb8a08f8618beea5aa5a90fb258329ae5cc..7be4c4e628e024b62df1782414d6037d45b6fde2 100644 (file)
 
 /* USB 3 support needed to be complete */
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index c339771bb22e067d2ef5d132c8330f029b7315c2..e58ed7e95346040752f373e19f704baca7ae1f10 100644 (file)
 
 /* USB 3 support needed to be complete */
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index 1c72ec8288de4d945164c448937c73e293750e69..716da62f5788534e5a60c73add808c1faf8669a5 100644 (file)
 
 /* XHCI support needed to be complete */
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index 96a021cebd97b1e63005db8c636326d6b93f912d..a49c2fd21f4a895e13cdd1ce2900e6cec8056c40 100644 (file)
 
 /* USB 3 and SLIC support needed to be complete */
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index b2c7f21d471e629cc00437feef183b9bb09d8605..dd6dff6452b87415a0cfc3afdd27952303272aad 100644 (file)
 
 /* USB 3 and SLIC support needed to be complete */
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index 536fb24f38bb742c49602e4bf16af7e7cb6427b3..a71371b4065ed7eefe0e3bfca202b959b2396e52 100644 (file)
        status = "okay";
 };
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };
index 3fcca12d83c2d5df60699956ccc2d5ae3e10f96c..7b84b54436eddd21b57d69df04a2bb377b397a34 100644 (file)
        };
 };
 
+&dma {
+       status = "okay";
+};
+
 &amac0 {
        status = "okay";
 };