[U-Boot] [PATCH] ARM: dts: fsl-imx8qxp-mek: Move regulator outside "simple-bus"

Peng Fan peng.fan at nxp.com
Fri Oct 26 00:54:00 UTC 2018


Hi Fabio,

> -----Original Message-----
> From: Fabio Estevam [mailto:festevam at gmail.com]
> Sent: 2018年10月26日 8:50
> To: sbabic at denx.de
> Cc: Peng Fan <peng.fan at nxp.com>; u-boot at lists.denx.de; Fabio Estevam
> <festevam at gmail.com>
> Subject: [PATCH] ARM: dts: fsl-imx8qxp-mek: Move regulator outside
> "simple-bus"
> 
> Commit 3c28576bb0f0 ("arm: dts: imx8qxp: fix build warining") fixed the dts
> warning by removing the unnecessary #address-cells/#size-cells, but the
> recommendation for regulators is not to place them under "simple-bus", so
> move the reg_usdhc2_vmmc regulator accordingly.
> 
> Signed-off-by: Fabio Estevam <festevam at gmail.com>
> ---
>  arch/arm/dts/fsl-imx8qxp-mek.dts | 20 ++++++++------------
>  1 file changed, 8 insertions(+), 12 deletions(-)
> 
> diff --git a/arch/arm/dts/fsl-imx8qxp-mek.dts
> b/arch/arm/dts/fsl-imx8qxp-mek.dts
> index c14e184..adab494 100644
> --- a/arch/arm/dts/fsl-imx8qxp-mek.dts
> +++ b/arch/arm/dts/fsl-imx8qxp-mek.dts
> @@ -16,18 +16,14 @@
>  		stdout-path = &lpuart0;
>  	};
> 
> -	regulators {

Will it be better to keep regulators node? Currently it only has the usdhc2, but in future, 
the usb regulator will also be added.

Thanks,
Peng.

> -		compatible = "simple-bus";
> -
> -		reg_usdhc2_vmmc: usdhc2-vmmc {
> -			compatible = "regulator-fixed";
> -			regulator-name = "SD1_SPWR";
> -			regulator-min-microvolt = <3000000>;
> -			regulator-max-microvolt = <3000000>;
> -			gpio = <&gpio4 19 GPIO_ACTIVE_HIGH>;
> -			off-on-delay = <3480>;
> -			enable-active-high;
> -		};
> +	reg_usdhc2_vmmc: regulator-usdhc2-vmmc {
> +		compatible = "regulator-fixed";
> +		regulator-name = "SD1_SPWR";
> +		regulator-min-microvolt = <3000000>;
> +		regulator-max-microvolt = <3000000>;
> +		gpio = <&gpio4 19 GPIO_ACTIVE_HIGH>;
> +		off-on-delay = <3480>;
> +		enable-active-high;
>  	};
>  };
> 
> --
> 2.7.4



More information about the U-Boot mailing list