openwrt/target/linux/ipq806x/files/arch/arm/boot/dts
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
..
qcom-ipq8062-wg2600hp3.dts ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8062.dtsi ipq806x: fix min<>target opp-microvolt DTS mixup 2021-08-21 23:54:31 +02:00
qcom-ipq8064-ad7200-c2600.dtsi ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8064-ad7200.dts ipq806x: add missing wakeup-source for gpio keys 2021-05-07 07:05:16 +02:00
qcom-ipq8064-ap148.dts ipq806x: backport mtd adm and smem driver 2021-05-07 07:05:16 +02:00
qcom-ipq8064-ap161.dts ipq806x: backport mtd adm and smem driver 2021-05-07 07:05:16 +02:00
qcom-ipq8064-c2600.dts ipq806x: add missing wakeup-source for gpio keys 2021-05-07 07:05:16 +02:00
qcom-ipq8064-d7800.dts ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8064-db149.dts ipq806x: remove support for kernel 4.19 2020-10-19 15:37:54 +02:00
qcom-ipq8064-ea7500-v1.dts ipq806x: add missing wakeup-source for gpio keys 2021-05-07 07:05:16 +02:00
qcom-ipq8064-ea8500.dts ipq806x: add missing wakeup-source for gpio keys 2021-05-07 07:05:16 +02:00
qcom-ipq8064-eax500.dtsi ipq806x: set boot layout for nandc compatible 2021-05-07 07:05:16 +02:00
qcom-ipq8064-g10.dts ipq806x: add missing wakeup-source for gpio keys 2021-05-07 07:05:16 +02:00
qcom-ipq8064-r7500.dts ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8064-r7500v2.dts ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8064-unifi-ac-hd.dts ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8064-v2.0.dtsi ipq806x: remove support for kernel 4.19 2020-10-19 15:37:54 +02:00
qcom-ipq8064-vr2600v.dts ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8064-wg2600hp.dts ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8064-wpq864.dts ipq806x: add missing wakeup-source for gpio keys 2021-05-07 07:05:16 +02:00
qcom-ipq8064-wxr-2533dhp.dts ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8065-nbg6817.dts ipq806x: add missing wakeup-source for gpio keys 2021-05-07 07:05:16 +02:00
qcom-ipq8065-r7800.dts ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8065-rt4230w-rev6.dts ipq806x: convert mtd-mac-address to nvmem implementation 2021-07-19 14:51:22 +02:00
qcom-ipq8065.dtsi ipq806x: fix min<>target opp-microvolt DTS mixup 2021-08-21 23:54:31 +02:00
qcom-ipq8068-ecw5410.dts ipq806x: add missing wakeup-source for gpio keys 2021-05-07 07:05:16 +02:00