ARM: dts: bcm283x: Use firmware PM driver for V3D
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tue, 3 Mar 2020 17:32:16 +0000 (18:32 +0100)
committerNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Fri, 27 Mar 2020 20:25:35 +0000 (21:25 +0100)
The register based driver turned out to be unstable, specially on RPi3a+
but not limited to it. While a fix is being worked on, we roll back to
using firmware based scheme.

Fixes: e1dc2b2e1bef ("ARM: bcm283x: Switch V3D over to using the PM driver instead of firmware")
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/20200303173217.3987-1-nsaenzjulienne@suse.de
arch/arm/boot/dts/bcm2835-common.dtsi
arch/arm/boot/dts/bcm2835-rpi-common.dtsi [new file with mode: 0644]
arch/arm/boot/dts/bcm2835.dtsi
arch/arm/boot/dts/bcm2836.dtsi
arch/arm/boot/dts/bcm2837.dtsi

index 2b1d9d4c0cdea5ac3ae20ff02a8b045584db6c1d..4119271c979d6f1b80e32e0ace0a4f76a3f4393d 100644 (file)
                        compatible = "brcm,bcm2835-v3d";
                        reg = <0x7ec00000 0x1000>;
                        interrupts = <1 10>;
-                       power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>;
                };
 
                vc4: gpu {
diff --git a/arch/arm/boot/dts/bcm2835-rpi-common.dtsi b/arch/arm/boot/dts/bcm2835-rpi-common.dtsi
new file mode 100644 (file)
index 0000000..8a55b6c
--- /dev/null
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * This include file covers the common peripherals and configuration between
+ * bcm2835, bcm2836 and bcm2837 implementations that interact with RPi's
+ * firmware interface.
+ */
+
+#include <dt-bindings/power/raspberrypi-power.h>
+
+&v3d {
+       power-domains = <&power RPI_POWER_DOMAIN_V3D>;
+};
index 53bf4579cc224df45ba0d0a406353453d505aa40..0549686134ea67a4bd9567270138a09d2dd0cb94 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 #include "bcm283x.dtsi"
 #include "bcm2835-common.dtsi"
+#include "bcm2835-rpi-common.dtsi"
 
 / {
        compatible = "brcm,bcm2835";
index 82d6c4662ae49b355930d9ee04f3eb49dbf837d7..b390006aef79a33dd7817039c7df9bb03bdb7dd6 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 #include "bcm283x.dtsi"
 #include "bcm2835-common.dtsi"
+#include "bcm2835-rpi-common.dtsi"
 
 / {
        compatible = "brcm,bcm2836";
index 9e95fee78e192229552a08d4832c6148281eaa3b..0199ec98cd61690ad964c1bbe782fcf64583b236 100644 (file)
@@ -1,5 +1,6 @@
 #include "bcm283x.dtsi"
 #include "bcm2835-common.dtsi"
+#include "bcm2835-rpi-common.dtsi"
 
 / {
        compatible = "brcm,bcm2837";