]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: meson-sm1-sei610: enable DVFS
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 26 Aug 2019 07:25:39 +0000 (09:25 +0200)
committerKevin Hilman <khilman@baylibre.com>
Thu, 29 Aug 2019 23:18:38 +0000 (16:18 -0700)
This enables DVFS for the Amlogic SM1 based SEI610 board by:
- Adding the SM1 SoC OPPs taken from the vendor tree
- Selecting the SM1 Clock controller instead of the G12A one
- Adding the CPU rail regulator, PWM and OPPs for each CPU nodes.

Each power supply can achieve 0.69V to 1.05V using a single PWM
output clocked at 666KHz with an inverse duty-cycle.

DVFS has been tested by running the arm64 cpuburn at [1] and cycling
between all the possible cpufreq translations of the cpu cluster and
checking the final frequency using the clock-measurer, script at [2].

[1] https://github.com/ssvb/cpuburn-arm/blob/master/cpuburn-a53.S
[2] https://gist.github.com/superna9999/d4de964dbc0f84b7d527e1df2ddea25f

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts

index 3435aaa4e8db50c7f28c0b08f2b802faf8e6f20f..e1cac880b02c00cb5999446e8b566f9e3a98a32d 100644 (file)
@@ -19,10 +19,6 @@ aliases {
                ethernet0 = &ethmac;
        };
 
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-
        emmc_pwrseq: emmc-pwrseq {
                compatible = "mmc-pwrseq-emmc";
                reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;