[PATCH] arm: pinctrl: Define .mux_mask field for NXP's SoC

Peng Fan peng.fan at nxp.com
Fri Jun 27 10:01:14 CEST 2025


> Subject: [PATCH] arm: pinctrl: Define .mux_mask field for NXP's SoC
> 
> The commit e8a9521e649f
> ("vf500/vf610: synchronise device trees with linux") has synchronized
> U-Boot's DTS with v5.19 Linux kernel.
> It turned out that in Linux's upstream iomuxc node description the
> 'fsl,mux_mask' was missing, so the U-Boot's pinctrl driver for NXP's
> Vybrid SoC was not working properly.
> 
> As by default the mux mask was set to 0, for example the vf610 based
> boards (like BK4) were bricked, due to misconfiguration of gpio at early
> boot stage.
> 
> The fix for all NXP eligible boards is to define .mux_mask field for soc
> specific *pinctrl_soc_info structure and use it directly in pinctrl MMIO
> driver, without the need to read the "fsl,mux_mask" property from
> device tree.
> 
> This change brings the NXP's pinctrl driver in U-Boot closer to Linux
> upstream one.
> 
> Signed-off-by: Lukasz Majewski <lukma at denx.de>
> ---
>  arch/arm/dts/imx8ulp-evk-u-boot.dtsi   | 1 -
>  arch/arm/dts/imxrt1020.dtsi            | 1 -
>  arch/arm/dts/imxrt1170.dtsi            | 1 -
>  drivers/pinctrl/nxp/pinctrl-imx-mmio.c | 1 -
> drivers/pinctrl/nxp/pinctrl-imx8ulp.c  | 2 ++

Reviewed-by: Peng Fan <peng.fan at nxp.com> #for i.MX8ULP


More information about the U-Boot mailing list