1 From d0562705bcd4cb9849156f095b2af0ec1bb53b56 Mon Sep 17 00:00:00 2001
2 From: Lech Perczak <lech.perczak@gmail.com>
3 Date: Fri, 17 Nov 2023 21:33:04 +0100
4 Subject: [PATCH] ARM: dts: nxp: imx7d-pico: add cpu-supply nodes
6 The PICO-IMX7D SoM has the usual power supply configuration using
7 output sw1a of PF3000 PMIC, which was defined in downstream derivative
8 of linux-imx (see link) in the sources for "Android Things" devkit.
9 It is required to support CPU frequency scaling.
11 Map the respective "cpu-supply" nodes of each core to sw1a of the PMIC.
13 Enabling them causes cpufreq-dt, and imx-thermal drivers to probe
14 successfully, and CPU frequency scaling to function.
16 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
18 Cc: Fabio Estevam <festevam@gmail.com>
19 Cc: Shawn Guo <shawnguo@kernel.org>
20 Cc: Sascha Hauer <s.hauer@pengutronix.de>
22 Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
24 arch/arm/boot/dts/imx7d-pico.dtsi | 8 ++++++++
25 1 file changed, 8 insertions(+)
27 --- a/arch/arm/boot/dts/nxp/imx/imx7d-pico.dtsi
28 +++ b/arch/arm/boot/dts/nxp/imx/imx7d-pico.dtsi
30 assigned-clock-rates = <0>, <32768>;
34 + cpu-supply = <&sw1a_reg>;
38 + cpu-supply = <&sw1a_reg>;
42 cs-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
43 pinctrl-names = "default";