From 438465fd5af2d183b1a66e7fa5ab42e6d05c3240 Mon Sep 17 00:00:00 2001 From: cinap_lenrek <cinap_lenrek@felloff.net> Date: Wed, 11 Jan 2023 15:18:11 -0500 Subject: [PATCH] fix wrong gpio for sdcard voltage regulator GPIO3_20 is the enable for the SN65DSI86, so power cycling the sdcard would have the screen turn off. --- arch/arm/dts/imx8mq-nitrogen8m_som.dts | 6 +++++- board/boundary/nitrogen8m_som/spl.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/imx8mq-nitrogen8m_som.dts b/arch/arm/dts/imx8mq-nitrogen8m_som.dts index 23595e84491..be8f7fb2010 100644 --- a/arch/arm/dts/imx8mq-nitrogen8m_som.dts +++ b/arch/arm/dts/imx8mq-nitrogen8m_som.dts @@ -310,12 +310,14 @@ >; }; +/* pinctrl_reg_wlan_vmmc: reg-wlan-vmmcgrp { fsl,pins = < #define GP_REG_WLAN_VMMC <&gpio3 20 GPIO_ACTIVE_HIGH> MX8MQ_IOMUXC_SAI5_RXC_GPIO3_IO20 0x16 >; }; +*/ pinctrl_sai1: sai1grp { fsl,pins = < @@ -603,6 +605,7 @@ regulator-max-microvolt = <5000000>; }; +/* reg_wlan_vmmc: regulator-wlan-vmmc { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -614,6 +617,7 @@ startup-delay-us = <70000>; enable-active-high; }; +*/ #if 0 sound-wm8960 { @@ -1361,7 +1365,7 @@ status = "okay"; tuning-delay = <32>; tuning-mode = <1>; - vmmc-supply = <®_wlan_vmmc>; + vmmc-supply = <®_vref_3v3>; vqmmc-1-8-v; }; diff --git a/board/boundary/nitrogen8m_som/spl.c b/board/boundary/nitrogen8m_som/spl.c index 484e95b43cd..cb2d35f6203 100644 --- a/board/boundary/nitrogen8m_som/spl.c +++ b/board/boundary/nitrogen8m_som/spl.c @@ -105,6 +105,7 @@ static struct fsl_esdhc_cfg usdhc_cfg[] = { int board_mmc_init(bd_t *bis) { int i, ret; + /* * According to the board_mmc_init() the following map is done: * (U-Boot device node) (Physical Port) @@ -122,7 +123,7 @@ int board_mmc_init(bd_t *bis) break; case 1: usdhc_cfg[1].sdhc_clk = mxc_get_clock(USDHC2_CLK_ROOT); - gpio_request(GP_EMMC_RESET, "usdhc2_reset"); + gpio_request(USDHC2_PWR_GPIO, "usdhc2_reset"); gpio_direction_output(USDHC2_PWR_GPIO, 0); udelay(500); gpio_direction_output(USDHC2_PWR_GPIO, 1); -- GitLab