870-ARM-dts-nxp-imx7d-pico-add-cpu-supply-nodes.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From d0562705bcd4cb9849156f095b2af0ec1bb53b56 Mon Sep 17 00:00:00 2001
  2. From: Lech Perczak <[email protected]>
  3. Date: Fri, 17 Nov 2023 21:33:04 +0100
  4. Subject: [PATCH] ARM: dts: nxp: imx7d-pico: add cpu-supply nodes
  5. The PICO-IMX7D SoM has the usual power supply configuration using
  6. output sw1a of PF3000 PMIC, which was defined in downstream derivative
  7. of linux-imx (see link) in the sources for "Android Things" devkit.
  8. It is required to support CPU frequency scaling.
  9. Map the respective "cpu-supply" nodes of each core to sw1a of the PMIC.
  10. Enabling them causes cpufreq-dt, and imx-thermal drivers to probe
  11. successfully, and CPU frequency scaling to function.
  12. Link: https://android.googlesource.com/platform/hardware/bsp/kernel/nxp/imx-v4.1/+/o-iot-preview-5/arch/arm/boot/dts/imx7d-pico.dtsi#849
  13. Cc: Fabio Estevam <[email protected]>
  14. Cc: Shawn Guo <[email protected]>
  15. Cc: Sascha Hauer <[email protected]>
  16. Signed-off-by: Lech Perczak <[email protected]>
  17. ---
  18. arch/arm/boot/dts/imx7d-pico.dtsi | 8 ++++++++
  19. 1 file changed, 8 insertions(+)
  20. --- a/arch/arm/boot/dts/imx7d-pico.dtsi
  21. +++ b/arch/arm/boot/dts/imx7d-pico.dtsi
  22. @@ -108,6 +108,14 @@
  23. assigned-clock-rates = <0>, <32768>;
  24. };
  25. +&cpu0 {
  26. + cpu-supply = <&sw1a_reg>;
  27. +};
  28. +
  29. +&cpu1 {
  30. + cpu-supply = <&sw1a_reg>;
  31. +};
  32. +
  33. &ecspi3 {
  34. cs-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
  35. pinctrl-names = "default";