Skip to content

arm64: dts: allwinner: h5: Enable CPU DVFS (cpufreq)

Chen-Yu Tsai linux-arm-kernel linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ARM: dts: sunxi: bananapi-m2-plus-v1.2: Fix CPU supply voltagesarch/arm/boot/dts/sunxi-bananapi-m2-plus-v1.2.dtsi+4 -40 replies
2/10ARM: dts: bananapi-m2-plus: Add CPU supply regulatorarch/arm/boot/dts/sunxi-bananapi-m2-plus-v1.2.dtsi arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi+25 -190 replies
3/10arm64: dts: allwinner: h5: Hook up cpu regulator suppliesarch/arm64/boot/dts/allwinner/sun50i-h5-emlid-neutis-n5-devboard.dts arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts+8 -00 replies
4/10arm64: dts: allwinner: h5: nanopi-neo2: Add CPU regulator supplyarch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts+20 -00 replies
5/10arm64: dts: allwinner: h5: orange-pi-zero-plus: Add CPU regulator supplyarch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts+20 -00 replies
6/10arm64: dts: allwinner: h5: orange-pi-zero-plus2: Add CPU regulator supplyarch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts+20 -00 replies
7/10arm64: dts: allwinner: h5: orange-pi-pc2: Add CPU regulator supplyarch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts+28 -00 replies
8/10arm64: dts: allwinner: h5: orange-pi-prime: Add CPU regulator supplyarch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts+28 -00 replies
9/10arm64: dts: allwinner: h5: Add clock to CPU coresarch/arm64/boot/dts/allwinner/sun50i-h5.dtsi+8 -00 replies
10/10arm64: dts: allwinner: h5: Add CPU Operating Performance Points tablearch/arm64/boot/dts/allwinner/sun50i-h5.dtsi+67 -04 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchMaxime Ripard
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] arm64: dts: allwinner: h5: Enable CPU DVFS (cpufreq)

Hi everyone,

This series enables DVFS for the CPU cores (aka cpufreq) on the Allwinner H5 SoC. The OPP table was taken from Armbian, with minor tweaks to the maximum voltage to account for slightly increased voltage on some of the boards.

This has been tested on the Bananapi M2+ v1.2 and Libre Computer ALL-H3-CC H5 ver.. I do not have the remaining boards so I've CC-ed people who did the original submission or have modified the board specifically later on.

Patch 1 fixes the voltages specified for the GPIO-controlled regulator on the Bananapi M2+ v1.2. The voltages are slightly higher than what was originally written.

Patch 2 adds a fixed regulator for the CPU on the original Bananapi M2+. This is for the retail version, not the engineering samples that had an even higher voltage setting.

Patch 3 hooks up the CPU regulator supply for H5 boards that already define the regulator, but were missing the property to tie it to the CPUs.

Patch 4 ~ 8 adds the CPU regulator for boards that don't have it defined. This is based on each vendor's schematics. I need people to test each of these specifically and the whole series.

Patch 9 ties the CPU clock to the CPU cores.

Patch 10 adds the OPP table, based on the one from Armbian.

Please have a look and please help test this.

Regards
ChenYu

Chen-Yu Tsai (10):
ARM: dts: sunxi: bananapi-m2-plus-v1.2: Fix CPU supply voltages
ARM: dts: bananapi-m2-plus: Add CPU supply regulator
arm64: dts: allwinner: h5: Hook up cpu regulator supplies
arm64: dts: allwinner: h5: nanopi-neo2: Add CPU regulator supply
arm64: dts: allwinner: h5: orange-pi-zero-plus: Add CPU regulator
supply
arm64: dts: allwinner: h5: orange-pi-zero-plus2: Add CPU regulator
supply
arm64: dts: allwinner: h5: orange-pi-pc2: Add CPU regulator supply
arm64: dts: allwinner: h5: orange-pi-prime: Add CPU regulator supply
arm64: dts: allwinner: h5: Add clock to CPU cores
arm64: dts: allwinner: h5: Add CPU Operating Performance Points table

 .../boot/dts/sunxi-bananapi-m2-plus-v1.2.dtsi | 30 +++-----
 arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi | 14 ++++
 .../sun50i-h5-emlid-neutis-n5-devboard.dts    |  4 +
 .../allwinner/sun50i-h5-nanopi-neo-plus2.dts  |  4 +
 .../dts/allwinner/sun50i-h5-nanopi-neo2.dts   | 20 +++++
 .../dts/allwinner/sun50i-h5-orangepi-pc2.dts  | 28 +++++++
 .../allwinner/sun50i-h5-orangepi-prime.dts    | 28 +++++++
 .../sun50i-h5-orangepi-zero-plus.dts          | 20 +++++
 .../sun50i-h5-orangepi-zero-plus2.dts         | 20 +++++
 arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi  | 75 +++++++++++++++++++
 10 files changed, 224 insertions(+), 19 deletions(-)
Signature · 1 line
2.20.1