1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-17 20:53:59 +02:00
openwrt/target/linux
Shane Synan 9baca41064 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-21 23:54:31 +02:00
..
apm821xx kernel: bump 5.4 to 5.4.136 2021-07-31 19:13:00 +02:00
arc770 treewide: do not quote compatible in shell scripts 2021-06-06 19:17:47 +02:00
archs38 archs38: Do not activate ext3 driver options 2021-08-21 00:11:50 +02:00
armvirt
at91 kernel: move some drm symbols to generic config 2021-06-13 23:30:10 +02:00
ath25 kernel: bump 5.4 to 5.4.132 2021-07-17 13:21:03 +02:00
ath79 ath79: remove redundant nvmem definitions 2021-08-20 18:13:55 +02:00
bcm27xx bcm27xx: switch to kernel 5.10 2021-08-21 19:07:07 +02:00
bcm47xx
bcm53xx kernel: bump 5.10 to 5.10.55 2021-08-08 17:57:34 +02:00
bcm63xx kernel: bump 5.10 to 5.10.50 2021-07-17 13:27:03 +02:00
bcm4908 kernel: bump 5.4 to 5.4.139 2021-08-14 20:25:19 +02:00
bmips treewide: backport support for nvmem on non platform devices 2021-08-05 01:46:26 +02:00
gemini treewide: add various missing config symbols 2021-08-10 20:22:59 +02:00
generic generic: fix debloat dma-buf 5.10 patch 2021-08-21 19:07:06 +02:00
imx6 imx6: image: drop BOOT_SCRIPT and fix DEVICE_NAME 2021-05-26 14:12:46 +02:00
ipq40xx ipq40xx: fix Edgecore ECW5211 boot 2021-08-18 16:11:11 +03:00
ipq806x ipq806x: fix min<>target opp-microvolt DTS mixup 2021-08-21 23:54:31 +02:00
ipq807x kernel: Do not deactivate staging drivers 2021-08-21 01:10:17 +02:00
kirkwood treewide: do not quote compatible in shell scripts 2021-06-06 19:17:47 +02:00
lantiq lantiq: convert mtd-mac-address to nvmem for Fritz!Box 736x 2021-08-20 18:13:55 +02:00
layerscape kernel: bump 5.4 to 5.4.141 2021-08-21 15:59:39 +02:00
malta
mediatek mediatek: mt7623: backport musb, improve HDMI console 2021-08-21 17:23:36 +01:00
mpc85xx treewide: add various missing config symbols 2021-08-10 20:22:59 +02:00
mvebu base-files: rename 'sdcard' to 'legacy-sdcard' 2021-08-16 12:22:17 +01:00
mxs
octeon kernel: bump 5.4 to 5.4.139 2021-08-14 20:25:19 +02:00
octeontx kernel: bump 5.4 to 5.4.136 2021-07-31 19:13:00 +02:00
omap omap: Remove EXT2 and EXT3 driver config 2021-08-09 01:17:06 +02:00
oxnas kernel: Do not deactivate staging drivers 2021-08-21 01:10:17 +02:00
pistachio
ramips ramips: add label MAC address for Onion Omega 2(+) 2021-08-21 23:42:32 +02:00
realtek kernel: bump 5.4 to 5.4.139 2021-08-14 20:25:19 +02:00
rockchip kernel: Do not deactivate staging drivers 2021-08-21 01:10:17 +02:00
sunxi linux-firmware: update to version 20210315 and trim down broadcom FW 2021-06-06 00:26:13 +02:00
tegra tegra: add missing Kconfig symbol 2021-08-13 00:51:38 +02:00
uml
x86 kernel: bump 5.4 to 5.4.142 2021-08-21 15:59:39 +02:00
zynq kernel: Do not deactivate staging drivers 2021-08-21 01:10:17 +02:00
Makefile