mediatek: fixes for Ethernet on MT7988 SoC
[openwrt/openwrt.git] / target / linux / generic / pending-6.1 / 870-ARM-dts-nxp-imx7d-pico-add-cpu-supply-nodes.patch
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
5
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.
10
11 Map the respective "cpu-supply" nodes of each core to sw1a of the PMIC.
12
13 Enabling them causes cpufreq-dt, and imx-thermal drivers to probe
14 successfully, and CPU frequency scaling to function.
15
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
17
18 Cc: Fabio Estevam <festevam@gmail.com>
19 Cc: Shawn Guo <shawnguo@kernel.org>
20 Cc: Sascha Hauer <s.hauer@pengutronix.de>
21
22 Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
23 ---
24 arch/arm/boot/dts/imx7d-pico.dtsi | 8 ++++++++
25 1 file changed, 8 insertions(+)
26
27 --- a/arch/arm/boot/dts/imx7d-pico.dtsi
28 +++ b/arch/arm/boot/dts/imx7d-pico.dtsi
29 @@ -108,6 +108,14 @@
30 assigned-clock-rates = <0>, <32768>;
31 };
32
33 +&cpu0 {
34 + cpu-supply = <&sw1a_reg>;
35 +};
36 +
37 +&cpu1 {
38 + cpu-supply = <&sw1a_reg>;
39 +};
40 +
41 &ecspi3 {
42 cs-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
43 pinctrl-names = "default";