immortalwrt/target/linux
Shane Synan 5163ca420f ipq806x: fix min<>target opp-microvolt DTS mixup
Rearrange all voltage triplets for "opp_table0" to match the
specifications.  "opp-microvolt" and "opp-microvolt-<name>" triplets
are in order of <target min max>, and NOT <min target max>.

Previously, the CPU would *always* spend its time at the "minimum"
voltage, ignoring the actual intended target.  This is a regression
from previous behavior.

On an NBG6817 with a Qualcomm CPU of PVS bin #2...
(see &opp_table0 -> opp-1725000000 -> opp-microvolt-speed0-pvs2-v0)

* Before:
/usr/bin/tail -n +1 /sys/kernel/debug/opp/cpu0/opp\:1725000000/supply-0/u_volt_*
==> /sys/kernel/debug/opp/cpu0/opp:1725000000/supply-0/u_volt_max <==
1260000

==> /sys/kernel/debug/opp/cpu0/opp:1725000000/supply-0/u_volt_min <==
1200000

==> /sys/kernel/debug/opp/cpu0/opp:1725000000/supply-0/u_volt_target <==
1140000

* After:
/usr/bin/tail -n +1 /sys/kernel/debug/opp/cpu0/opp\:1725000000/supply-0/u_volt_*
==> /sys/kernel/debug/opp/cpu0/opp:1725000000/supply-0/u_volt_max <==
1260000

==> /sys/kernel/debug/opp/cpu0/opp:1725000000/supply-0/u_volt_min <==
1140000

==> /sys/kernel/debug/opp/cpu0/opp:1725000000/supply-0/u_volt_target <==
1200000

To check voltages and frequencies at run time, use...
/bin/cat /sys/kernel/debug/regulator/regulator_summary &&
  /bin/cat /sys/kernel/debug/clk/clk_summary | grep "hfpll"

See
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/devicetree/bindings/opp/opp.txt?h=v5.4.142#n91

Fixes: 1e25423be8 ("ipq806x: refresh dtsi patches")

Signed-off-by: Shane Synan <digitalcircuit36939@gmail.com>
Reviewed-by: Ansuel Smith <ansuelsmth@gmail.com>
[commit message style cleanup, another kernel refresh]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-08-22 12:19:07 +08:00
..
apm821xx kernel: bump to 4.9.278, 4.14.242, 4.19.201 2021-08-06 22:23:34 +08:00
arc770 treewide: do not quote compatible in shell scripts 2021-06-07 23:25:51 +08:00
archs38 archs38: Do not activate ext3 driver options 2021-08-21 12:16:08 +08:00
armvirt treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
at91 kernel: move some drm symbols to generic config 2021-06-14 11:48:45 +08:00
ath25 kernel: bump 5.4 to 5.4.132 2021-07-18 12:08:24 +08:00
ath79 ath79: remove redundant nvmem definitions 2021-08-21 12:13:45 +08:00
bcm27xx kernel: bump 5.4 to 5.4.142 2021-08-22 12:12:55 +08:00
bcm47xx bcm47xx: make WGT634U NVRAM patch apply again 2021-03-13 12:05:27 +08:00
bcm53xx kernel: bump 5.10 to 5.10.55 2021-08-09 12:02:53 +08:00
bcm63xx kernel: bump 5.10 to 5.10.50 2021-07-18 12:09:10 +08:00
bcm4908 kernel: bump 5.4 to 5.4.139 2021-08-15 12:38:21 +08:00
bmips treewide: backport support for nvmem on non platform devices 2021-08-06 18:51:27 +08:00
gemini treewide: add various missing config symbols 2021-08-11 12:03:11 +08:00
generic kernel: bump 5.4 to 5.4.142 2021-08-22 12:12:55 +08:00
imx6 imx6: image: drop BOOT_SCRIPT and fix DEVICE_NAME 2021-05-26 23:32:41 +08:00
ipq40xx ipq40xx: ar40xx: reset port status register 2021-08-15 12:37:47 +08:00
ipq806x ipq806x: fix min<>target opp-microvolt DTS mixup 2021-08-22 12:19:07 +08:00
ipq807x kernel: Do not deactivate staging drivers 2021-08-21 12:17:15 +08:00
kirkwood treewide: do not quote compatible in shell scripts 2021-06-07 23:25:51 +08:00
lantiq lantiq: convert mtd-mac-address to nvmem for Fritz!Box 736x 2021-08-21 12:14:41 +08:00
layerscape kernel: bump 5.4 to 5.4.141 2021-08-22 12:12:43 +08:00
malta treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
mediatek mediatek: mt7623: backport musb, improve HDMI console 2021-08-22 12:18:53 +08:00
mpc85xx treewide: add various missing config symbols 2021-08-11 12:03:11 +08:00
mvebu kernel: bump 5.4 to 5.4.140 2021-08-15 12:38:33 +08:00
mxs treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
octeon kernel: bump 5.4 to 5.4.139 2021-08-15 12:38:21 +08:00
octeontx kernel: bump 5.4 to 5.4.136 2021-08-01 12:01:27 +08:00
omap omap: Remove EXT2 and EXT3 driver config 2021-08-09 12:10:36 +08:00
oxnas kernel: Do not deactivate staging drivers 2021-08-21 12:17:15 +08:00
pistachio treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
ramips ramips: add label MAC address for Onion Omega 2(+) 2021-08-22 12:18:29 +08:00
realtek kernel: bump 5.4 to 5.4.139 2021-08-15 12:38:21 +08:00
rockchip kernel: Do not deactivate staging drivers 2021-08-21 12:17:15 +08:00
sunxi sunxi: refresh kernel 5.4 patches 2021-08-10 12:06:36 +08:00
tegra tegra: add missing Kconfig symbol 2021-08-14 12:21:27 +08:00
uml treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
x86 kernel: bump 5.4 to 5.4.142 2021-08-22 12:12:55 +08:00
zynq kernel: Do not deactivate staging drivers 2021-08-21 12:17:15 +08:00
Makefile