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

2018-10-25 Thread Peng Fan


> -Original Message-
> From: Fabio Estevam [mailto:feste...@gmail.com]
> Sent: 2018年10月26日 8:57
> To: Peng Fan 
> Cc: Stefano Babic ; U-Boot-Denx 
> Subject: Re: [PATCH] ARM: dts: fsl-imx8qxp-mek: Move regulator outside
> "simple-bus"
> 
> Hi Peng,
> 
> On Thu, Oct 25, 2018 at 9:54 PM Peng Fan  wrote:
> 
> > > - 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.
> 
> When USB regulator gets added it will stay below the usdhc2 regulator.
> No problem about this.
> 
> Upstream device tree maintainers do not like this unneeded regulator container
> node, so we should better align with upstream here.

ok for me. Acked-by: Peng Fan 

Thanks,
Peng.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


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

2018-10-25 Thread Fabio Estevam
Hi Peng,

On Thu, Oct 25, 2018 at 9:54 PM Peng Fan  wrote:

> > - 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.

When USB regulator gets added it will stay below the usdhc2 regulator.
No problem about this.

Upstream device tree maintainers do not like this unneeded regulator
container node, so we should better align with upstream here.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


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

2018-10-25 Thread Peng Fan
Hi Fabio,

> -Original Message-
> From: Fabio Estevam [mailto:feste...@gmail.com]
> Sent: 2018年10月26日 8:50
> To: sba...@denx.de
> Cc: Peng Fan ; u-boot@lists.denx.de; Fabio Estevam
> 
> 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 
> ---
>  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 = 
>   };
> 
> - 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 = <300>;
> - regulator-max-microvolt = <300>;
> - gpio = < 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 = <300>;
> + regulator-max-microvolt = <300>;
> + gpio = < 19 GPIO_ACTIVE_HIGH>;
> + off-on-delay = <3480>;
> + enable-active-high;
>   };
>  };
> 
> --
> 2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


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

2018-10-25 Thread Fabio Estevam
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 
---
 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 = 
};
 
-   regulators {
-   compatible = "simple-bus";
-
-   reg_usdhc2_vmmc: usdhc2-vmmc {
-   compatible = "regulator-fixed";
-   regulator-name = "SD1_SPWR";
-   regulator-min-microvolt = <300>;
-   regulator-max-microvolt = <300>;
-   gpio = < 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 = <300>;
+   regulator-max-microvolt = <300>;
+   gpio = < 19 GPIO_ACTIVE_HIGH>;
+   off-on-delay = <3480>;
+   enable-active-high;
};
 };
 
-- 
2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot