arm64: dts: allwinner: h6: Enable CPU opp tables for Beelink GS1
authorClément Péron <peron.clem@gmail.com>
Mon, 20 Apr 2020 13:00:17 +0000 (15:00 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 23 Apr 2020 09:36:36 +0000 (11:36 +0200)
Enable CPU opp tables for Beelink GS1.

This needs to change the CPU regulator max voltage to fit
the OPP table.

Also add the ramp-delay information to avoid any out of spec
running as the regulator is slower at reaching the voltage
requested compare to the PLL reaching the frequency.

There is no such information for AXP805 but similar PMIC (AXP813)
has a DVM (Dynamic Voltage scaling Management) ramp rate equal
to 2500uV/us.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts

index 8f09d209359b74c8edd0d6fb5861ec52fbbb3038..3f7ceeb1a767a70abd44166dd9f3ee1800fbad90 100644 (file)
@@ -4,6 +4,7 @@
 /dts-v1/;
 
 #include "sun50i-h6.dtsi"
+#include "sun50i-h6-cpu-opp.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 
        };
 };
 
+&cpu0 {
+       cpu-supply = <&reg_dcdca>;
+};
+
 &de {
        status = "okay";
 };
                        reg_dcdca: dcdca {
                                regulator-always-on;
                                regulator-min-microvolt = <810000>;
-                               regulator-max-microvolt = <1080000>;
+                               regulator-max-microvolt = <1160000>;
+                               regulator-ramp-delay = <2500>;
                                regulator-name = "vdd-cpu";
                        };
 
                                regulator-enable-ramp-delay = <32000>;
                                regulator-min-microvolt = <810000>;
                                regulator-max-microvolt = <1080000>;
+                               regulator-ramp-delay = <2500>;
                                regulator-name = "vdd-gpu";
                        };