[PATCH] arm64: dts: rockchip: Add node for gpu on rk3399-roc-pc

From: Markus Reichl
Date: Mon Nov 11 2019 - 10:38:34 EST


rk3399-roc-pc has a Mali gpu, enable it for use with panfrost and mesa >19.2.

Signed-off-by: Markus Reichl <m.reichl@xxxxxxxxxxxxx>
---
Based on v5.5-armsoc/dts64/75aa5678
If applied with other patches in between, the second hunk
offsets and may patch vdd_cpu_b instead of vdd_gpu.
---
arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
index 7e07dae33d0f..287f97488f65 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
@@ -238,6 +238,11 @@
status = "okay";
};

+&gpu {
+ mali-supply = <&vdd_gpu>;
+ status = "okay";
+};
+
&hdmi {
ddc-i2c-bus = <&i2c3>;
pinctrl-names = "default";
@@ -465,8 +470,6 @@
regulator-min-microvolt = <712500>;
regulator-max-microvolt = <1500000>;
regulator-ramp-delay = <1000>;
- regulator-always-on;
- regulator-boot-on;
vin-supply = <&vcc3v3_sys>;

regulator-state-mem {
--
2.20.1