]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
verdin-imx8mm: enable sleep_moci output
authorMax Krummenacher <max.krummenacher@toradex.com>
Sat, 9 Oct 2021 20:41:08 +0000 (22:41 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 20 Oct 2021 13:08:26 +0000 (15:08 +0200)
This powers some peripherals on the carrier board e.g. the USB hub.

Related-to: ELB-3206
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/dts/imx8mm-verdin.dts
configs/verdin-imx8mm_defconfig

index ac2a4b69d3cc99aae51d4a6032ade63b3226db19..a2331627d72046b85bb72cec087ae58fa5cb8218 100644 (file)
        };
 };
 
+&gpio5 {
+       ctrl_sleep_moci {
+               gpio-hog;
+               /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */
+               gpios = <1 GPIO_ACTIVE_HIGH>;
+               line-name = "CTRL_SLEEP_MOCI#";
+               output-high;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_ctrl_sleep_moci>;
+       };
+};
+
 /* On-module I2C */
 &i2c1 {
        clock-frequency = <400000>;
                >;
        };
 
+       pinctrl_ctrl_sleep_moci: ctrlsleepmocigrp {
+               fsl,pins = <
+                       MX8MM_IOMUXC_SAI3_TXD_GPIO5_IO1         0x1c4           /* SODIMM 256 */
+               >;
+       };
+
        pinctrl_dsi_bkl_en: dsi_bkl_en {
                fsl,pins = <
                        MX8MM_IOMUXC_NAND_CE2_B_GPIO3_IO3       0x1c4           /* SODIMM 21 */
index 1c8b505656ab7c4d664dc921906e6e8ab479fde5..ced0d0acc371a7a45cc58b03b1acd0c726b377f8 100644 (file)
@@ -69,6 +69,7 @@ CONFIG_SPL_CLK_COMPOSITE_CCF=y
 CONFIG_CLK_COMPOSITE_CCF=y
 CONFIG_SPL_CLK_IMX8MM=y
 CONFIG_CLK_IMX8MM=y
+CONFIG_GPIO_HOG=y
 CONFIG_MXC_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_MISC=y