Skip to content

Commit 3935fbc

Browse files
eichenbergernmenon
authored andcommitted
arm64: dts: ti: k3-am62-verdin-dahlia: support sleep-moci
Previously, we had the sleep-moci pin set to always on. However, the Dahlia carrier board supports disabling the sleep-moci when the system is suspended to power down peripherals that support it. This reduces overall power consumption. This commit adds support for this feature by disabling the reg_force_sleep_moci regulator and adding a new regulator for the USB hub that can be turned off when the system is suspended. Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com> Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com> Link: https://lore.kernel.org/r/20240301084901.16656-3-eichest@gmail.com Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent 566bbb0 commit 3935fbc

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@
4343
sound-dai = <&mcasp0>;
4444
};
4545
};
46+
47+
reg_usb_hub: regulator-usb-hub {
48+
compatible = "regulator-fixed";
49+
enable-active-high;
50+
/* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */
51+
gpio = <&main_gpio0 31 GPIO_ACTIVE_HIGH>;
52+
regulator-boot-on;
53+
regulator-name = "HUB_PWR_EN";
54+
};
4655
};
4756

4857
/* Verdin ETHs */
@@ -184,6 +193,11 @@
184193
status = "okay";
185194
};
186195

196+
/* Do not force CTRL_SLEEP_MOCI# always enabled */
197+
&reg_force_sleep_moci {
198+
status = "disabled";
199+
};
200+
187201
/* Verdin SD_1 */
188202
&sdhci1 {
189203
status = "okay";
@@ -204,7 +218,15 @@
204218
};
205219

206220
&usb1 {
221+
#address-cells = <1>;
222+
#size-cells = <0>;
207223
status = "okay";
224+
225+
usb-hub@1 {
226+
compatible = "usb424,2744";
227+
reg = <1>;
228+
vdd-supply = <&reg_usb_hub>;
229+
};
208230
};
209231

210232
/* Verdin CTRL_WAKE1_MICO# */

0 commit comments

Comments
 (0)