diff mbox series

[v1,3/5] arm64: dts: verdin-imx8mm: add ctrl_sleep_moci# hog

Message ID 20230711090918.523772-4-marcel@ziswiler.com
State Accepted
Commit cf77093e3126f5980df526c08f80c2ccc91687c0
Delegated to: Stefano Babic
Headers show
Series verdin-imx8mm/verdin-imx8mp: fix ctrl_sleep_moci# handling | expand

Commit Message

Marcel Ziswiler July 11, 2023, 9:09 a.m. UTC
From: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>

Drive CTRL_SLEEP_MOCI# high at boot (SPL) using a GPIO hog, this signal
may be used to control some power-rails on the carrier board, therefore
it should be set to high when the module is booting.

To do this as early as possible is generally a good idea and the issue
was noticed on the Yavia carrier board where it is needed to power the
I2C EEPROM on the carrier board.

Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
---

 arch/arm/dts/imx8mm-verdin-wifi-dev-u-boot.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Stefano Babic July 12, 2023, 1:40 p.m. UTC | #1
> From: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
> Drive CTRL_SLEEP_MOCI# high at boot (SPL) using a GPIO hog, this signal
> may be used to control some power-rails on the carrier board, therefore
> it should be set to high when the module is booting.
> To do this as early as possible is generally a good idea and the issue
> was noticed on the Yavia carrier board where it is needed to power the
> I2C EEPROM on the carrier board.
> Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/arch/arm/dts/imx8mm-verdin-wifi-dev-u-boot.dtsi b/arch/arm/dts/imx8mm-verdin-wifi-dev-u-boot.dtsi
index 494229e4e62..2b268f55cb9 100644
--- a/arch/arm/dts/imx8mm-verdin-wifi-dev-u-boot.dtsi
+++ b/arch/arm/dts/imx8mm-verdin-wifi-dev-u-boot.dtsi
@@ -56,6 +56,10 @@ 
 
 &gpio5 {
 	bootph-pre-ram;
+
+	ctrl-sleep-moci-hog {
+		bootph-pre-ram;
+	};
 };
 
 &i2c1 {
@@ -88,6 +92,10 @@ 
 	};
 };
 
+&pinctrl_ctrl_sleep_moci {
+	bootph-pre-ram;
+};
+
 &pinctrl_i2c1 {
 	bootph-pre-ram;
 };