openwrt/target/linux/ipq806x/patches-5.10
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
..
0001-dtbindings-qcom_adm-Fix-channel-specifiers.patch ipq806x: copy kernel 5.4 patches to 5.10 2021-05-07 07:05:16 +02:00
0033-ARM-qcom-automatically-select-PCI_DOMAINS-if-PCI-is-.patch ipq806x: copy kernel 5.4 patches to 5.10 2021-05-07 07:05:16 +02:00
0060-HACK-arch-arm-force-ZRELADDR-on-arch-qcom.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
0065-arm-override-compiler-flags.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
0067-generic-Mangle-bootloader-s-kernel-arguments.patch kernel: bump 5.10 to 5.10.35 2021-05-09 09:55:58 +01:00
0069-arm-boot-add-dts-files.patch ipq806x: add support for Askey RT4230W REV6 2021-06-05 23:39:14 +02:00
0072-add-ipq806x-with-no-clocks.patch kernel: bump 5.10 to 5.10.37 2021-05-14 14:50:03 +01:00
082-ipq8064-dtsi-tweaks.patch ipq806x: Bring missing patches from 5.4 to 5.10 2021-05-09 09:15:44 +02:00
083-ipq8064-dtsi-additions.patch ipq806x: fix min<>target opp-microvolt DTS mixup 2021-08-21 23:54:31 +02:00
084-ipq8064-v1.0-dtsi-cleanup.patch ipq806x: copy kernel 5.4 patches to 5.10 2021-05-07 07:05:16 +02:00
085-ipq8064-v1.0-dtsi-additions.patch ipq806x: copy kernel 5.4 patches to 5.10 2021-05-07 07:05:16 +02:00
086-ipq8064-fix-duplicate-node.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
093-drivers-cpufreq-qcom-cpufreq-nvmem-support-specific-.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
097-1-ipq806x-gcc-add-missing-clk-flag.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
097-2-ipq806x-lcc-add-missing-reset.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
097-3-clk-qcom-krait-add-missing-enable-disable.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
097-4-ipq806x-gcc-add-missing-clk-and-reset-for-crypto-eng.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
098-1-cpufreq-add-Krait-dedicated-scaling-driver.patch ipq806x: fix dedicated cpufreq driver 2021-06-30 23:14:43 +02:00
098-2-Documentation-cpufreq-add-qcom-krait-cpufreq-binding.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
098-3-add-fab-scaling-support-with-cpufreq.patch ipq806x: fix dedicated cpufreq driver 2021-06-30 23:14:43 +02:00
099-1-mtd-nand-raw-qcom_nandc-add-boot_layout_mode-support.patch kernel: bump 5.10 to 5.10.37 2021-05-14 14:50:03 +01:00
099-2-Documentation-devicetree-mtd-qcom_nandc-document-qco.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
100-v5.11-dmaengine-qcom-add_ADM_driver.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
101-5.12-mtd-parsers-Add-Qcom-SMEM-parser.patch kernel: bump 5.10 to 5.10.35 2021-05-09 09:55:58 +01:00
101-dwmac-ipq806x-qsgmii-pcs-all-ch-ctl.patch kernel: bump 5.10 to 5.10.36 2021-05-14 08:46:45 +01:00
102-mtd-rootfs-conflicts-with-OpenWrt-auto-mounting.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
103-ARM-dts-qcom-reduce-pci-IO-size-to-64K.patch ipq806x: fix min<>target opp-microvolt DTS mixup 2021-08-21 23:54:31 +02:00
104-1-drivers-thermal-tsens-Add-VER_0-tsens-version.patch kernel: bump 5.10 to 5.10.38 2021-05-22 21:54:17 +01:00
104-2-drivers-thermal-tsens-Don-t-hardcode-sensor-slope.patch kernel: bump 5.10 to 5.10.35 2021-05-09 09:55:58 +01:00
104-3-drivers-thermal-tsens-Convert-msm8960-to-reg_field.patch kernel: bump 5.10 to 5.10.35 2021-05-09 09:55:58 +01:00
104-4-drivers-thermal-tsens-Use-init_common-for-msm8960.patch kernel: bump 5.10 to 5.10.35 2021-05-09 09:55:58 +01:00
104-5-drivers-thermal-tsens-Fix-bug-in-sensor-enable-for-m.patch kernel: bump 5.10 to 5.10.35 2021-05-09 09:55:58 +01:00
104-6-drivers-thermal-tsens-Replace-custom-8960-apis-with-.patch kernel: bump 5.10 to 5.10.35 2021-05-09 09:55:58 +01:00
104-7-drivers-thermal-tsens-Drop-unused-define-for-msm8960.patch kernel: bump 5.10 to 5.10.35 2021-05-09 09:55:58 +01:00
104-8-drivers-thermal-tsens-Add-support-for-ipq8064-tsens.patch kernel: bump 5.10 to 5.10.38 2021-05-22 21:54:17 +01:00
104-9-dt-bindings-thermal-tsens-Document-ipq8064-bindings.patch kernel: bump 5.10 to 5.10.35 2021-05-09 09:55:58 +01:00
105-10-drivers-thermal-tsens-Fix-wrong-slope-on-msm-8960.patch kernel: bump 5.10 to 5.10.35 2021-05-09 09:55:58 +01:00
107-1-thermal-qcom-tsens-init-debugfs-only-with-successful.patch ipq806x: fix warning about tsens debugfs already registered 2021-05-23 15:09:06 +02:00
107-2-thermal-qcom-tsens-simplify-debugfs-init-function.patch ipq806x: fix warning about tsens debugfs already registered 2021-05-23 15:09:06 +02:00
850-soc-add-qualcomm-syscon.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
851-add-gsbi1-dts.patch ipq806x: fix min<>target opp-microvolt DTS mixup 2021-08-21 23:54:31 +02:00
900-arm-add-cmdline-override.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00
997-device_tree_cmdline.patch ipq806x: refresh 5.10 patches 2021-05-07 07:05:16 +02:00