Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Stefan Eichenberger and committed by
Nishanth Menon
3935fbc8 566bbb01

+22
+22
arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi
··· 43 43 sound-dai = <&mcasp0>; 44 44 }; 45 45 }; 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 + }; 46 55 }; 47 56 48 57 /* Verdin ETHs */ ··· 193 184 status = "okay"; 194 185 }; 195 186 187 + /* Do not force CTRL_SLEEP_MOCI# always enabled */ 188 + &reg_force_sleep_moci { 189 + status = "disabled"; 190 + }; 191 + 196 192 /* Verdin SD_1 */ 197 193 &sdhci1 { 198 194 status = "okay"; ··· 218 204 }; 219 205 220 206 &usb1 { 207 + #address-cells = <1>; 208 + #size-cells = <0>; 221 209 status = "okay"; 210 + 211 + usb-hub@1 { 212 + compatible = "usb424,2744"; 213 + reg = <1>; 214 + vdd-supply = <&reg_usb_hub>; 215 + }; 222 216 }; 223 217 224 218 /* Verdin CTRL_WAKE1_MICO# */