linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM: dts: imx6/7: Remove unit-address from anatop regulators
Date: Tue, 15 May 2018 15:40:44 +0800	[thread overview]
Message-ID: <20180515074042.GP26863@dragon> (raw)
In-Reply-To: <1526304714-23821-1-git-send-email-festevam@gmail.com>

On Mon, May 14, 2018 at 10:31:54AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> Remove unit-address and reg property from anatop regulators to fix
> the following DTC warnings with W=1:
> 
> arch/arm/boot/dts/imx6dl-apf6dev.dtb: Warning (unique_unit_address): /soc/aips-bus at 2000000/anatop at 20c8000/regulator-vddcore at 20c8140: duplicate unit-address (also used in node /soc/aips-bus at 2000000/anatop at 20c8000/regulator-vddpu at 20c8140)
> arch/arm/boot/dts/imx6dl-apf6dev.dtb: Warning (unique_unit_address): /soc/aips-bus at 2000000/anatop at 20c8000/regulator-vddcore at 20c8140: duplicate unit-address (also used in node /soc/aips-bus at 2000000/anatop at 20c8000/regulator-vddsoc at 20c8140)
> arch/arm/boot/dts/imx6dl-apf6dev.dtb: Warning (unique_unit_address): /soc/aips-bus at 2000000/anatop at 20c8000/regulator-vddpu at 20c8140: duplicate unit-address (also used in node /soc/aips-bus at 2000000/anatop at 20c8000/regulator-vddsoc at 20c8140)
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
> Changes since v1:
> - Send it is a standalone patch instead of a patch series.
> 
>  arch/arm/boot/dts/imx6qdl.dtsi | 20 ++++++--------------
>  arch/arm/boot/dts/imx6sl.dtsi  | 20 ++++++--------------
>  arch/arm/boot/dts/imx6sx.dtsi  | 20 ++++++--------------
>  arch/arm/boot/dts/imx6ul.dtsi  | 11 +++--------

I'm a bit confused.  It looks that the change is just to revert commit
685e1321ba74 ("ARM: dts: imx6: Add unit address and reg for the anatop
nodes").  But what about the simple_bus_reg warning the commit was
fixing?

Shawn

>  arch/arm/boot/dts/imx7s.dtsi   |  8 ++------
>  5 files changed, 23 insertions(+), 56 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
> index 69648e2..22942dd 100644
> --- a/arch/arm/boot/dts/imx6qdl.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl.dtsi
> @@ -692,11 +692,8 @@
>  				interrupts = <0 49 IRQ_TYPE_LEVEL_HIGH>,
>  					     <0 54 IRQ_TYPE_LEVEL_HIGH>,
>  					     <0 127 IRQ_TYPE_LEVEL_HIGH>;
> -				#address-cells = <1>;
> -				#size-cells = <0>;
>  
> -				regulator-1p1 at 20c8110 {
> -					reg = <0x20c8110>;
> +				regulator-1p1 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd1p1";
>  					regulator-min-microvolt = <1000000>;
> @@ -711,8 +708,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				regulator-3p0 at 20c8120 {
> -					reg = <0x20c8120>;
> +				regulator-3p0 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd3p0";
>  					regulator-min-microvolt = <2800000>;
> @@ -727,8 +723,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				regulator-2p5 at 20c8130 {
> -					reg = <0x20c8130>;
> +				regulator-2p5 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd2p5";
>  					regulator-min-microvolt = <2250000>;
> @@ -743,8 +738,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				reg_arm: regulator-vddcore at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_arm: regulator-vddcore {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vddarm";
>  					regulator-min-microvolt = <725000>;
> @@ -761,8 +755,7 @@
>  					anatop-max-voltage = <1450000>;
>  				};
>  
> -				reg_pu: regulator-vddpu at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_pu: regulator-vddpu {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vddpu";
>  					regulator-min-microvolt = <725000>;
> @@ -779,8 +772,7 @@
>  					anatop-max-voltage = <1450000>;
>  				};
>  
> -				reg_soc: regulator-vddsoc at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_soc: regulator-vddsoc {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vddsoc";
>  					regulator-min-microvolt = <725000>;
> diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi
> index 2002db2..8c838ba 100644
> --- a/arch/arm/boot/dts/imx6sl.dtsi
> +++ b/arch/arm/boot/dts/imx6sl.dtsi
> @@ -524,11 +524,8 @@
>  				interrupts = <0 49 IRQ_TYPE_LEVEL_HIGH>,
>  					     <0 54 IRQ_TYPE_LEVEL_HIGH>,
>  					     <0 127 IRQ_TYPE_LEVEL_HIGH>;
> -				#address-cells = <1>;
> -				#size-cells = <0>;
>  
> -				regulator-1p1 at 20c8110 {
> -					reg = <0x20c8110>;
> +				regulator-1p1 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd1p1";
>  					regulator-min-microvolt = <800000>;
> @@ -543,8 +540,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				regulator-3p0 at 20c8120 {
> -					reg = <0x20c8120>;
> +				regulator-3p0 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd3p0";
>  					regulator-min-microvolt = <2800000>;
> @@ -559,8 +555,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				regulator-2p5 at 20c8130 {
> -					reg = <0x20c8130>;
> +				regulator-2p5 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd2p5";
>  					regulator-min-microvolt = <2100000>;
> @@ -575,8 +570,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				reg_arm: regulator-vddcore at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_arm: regulator-vddcore {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vddarm";
>  					regulator-min-microvolt = <725000>;
> @@ -593,8 +587,7 @@
>  					anatop-max-voltage = <1450000>;
>  				};
>  
> -				reg_pu: regulator-vddpu at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_pu: regulator-vddpu {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vddpu";
>  					regulator-min-microvolt = <725000>;
> @@ -611,8 +604,7 @@
>  					anatop-max-voltage = <1450000>;
>  				};
>  
> -				reg_soc: regulator-vddsoc at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_soc: regulator-vddsoc {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vddsoc";
>  					regulator-min-microvolt = <725000>;
> diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi
> index 7e463d2..4a97513 100644
> --- a/arch/arm/boot/dts/imx6sx.dtsi
> +++ b/arch/arm/boot/dts/imx6sx.dtsi
> @@ -591,11 +591,8 @@
>  				interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
>  					     <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
>  					     <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
> -				#address-cells = <1>;
> -				#size-cells = <0>;
>  
> -				regulator-1p1 at 20c8110 {
> -					reg = <0x20c8110>;
> +				regulator-1p1 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd1p1";
>  					regulator-min-microvolt = <800000>;
> @@ -610,8 +607,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				regulator-3p0 at 20c8120 {
> -					reg = <0x20c8120>;
> +				regulator-3p0 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd3p0";
>  					regulator-min-microvolt = <2800000>;
> @@ -626,8 +622,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				regulator-2p5 at 20c8130 {
> -					reg = <0x20c8130>;
> +				regulator-2p5 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd2p5";
>  					regulator-min-microvolt = <2100000>;
> @@ -642,8 +637,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				reg_arm: regulator-vddcore at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_arm: regulator-vddcore {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vddarm";
>  					regulator-min-microvolt = <725000>;
> @@ -660,8 +654,7 @@
>  					anatop-max-voltage = <1450000>;
>  				};
>  
> -				reg_pcie: regulator-vddpcie at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_pcie: regulator-vddpcie {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vddpcie";
>  					regulator-min-microvolt = <725000>;
> @@ -677,8 +670,7 @@
>  					anatop-max-voltage = <1450000>;
>  				};
>  
> -				reg_soc: regulator-vddsoc at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_soc: regulator-vddsoc {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vddsoc";
>  					regulator-min-microvolt = <725000>;
> diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi
> index 2b854d1..1818b6c 100644
> --- a/arch/arm/boot/dts/imx6ul.dtsi
> +++ b/arch/arm/boot/dts/imx6ul.dtsi
> @@ -551,11 +551,8 @@
>  				interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
>  					     <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
>  					     <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
> -				#address-cells = <1>;
> -				#size-cells = <0>;
>  
> -				reg_3p0: regulator-3p0 at 20c8110 {
> -					reg = <0x20c8110>;
> +				reg_3p0: regulator-3p0 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd3p0";
>  					regulator-min-microvolt = <2625000>;
> @@ -569,8 +566,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				reg_arm: regulator-vddcore at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_arm: regulator-vddcore {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "cpu";
>  					regulator-min-microvolt = <725000>;
> @@ -587,8 +583,7 @@
>  					anatop-max-voltage = <1450000>;
>  				};
>  
> -				reg_soc: regulator-vddsoc at 20c8140 {
> -					reg = <0x20c8140>;
> +				reg_soc: regulator-vddsoc {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vddsoc";
>  					regulator-min-microvolt = <725000>;
> diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi
> index b416d2b..99f92ec 100644
> --- a/arch/arm/boot/dts/imx7s.dtsi
> +++ b/arch/arm/boot/dts/imx7s.dtsi
> @@ -557,11 +557,8 @@
>  				reg = <0x30360000 0x10000>;
>  				interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
>  					<GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
> -				#address-cells = <1>;
> -				#size-cells = <0>;
>  
> -				reg_1p0d: regulator-vdd1p0d at 30360210 {
> -					reg = <0x30360210>;
> +				reg_1p0d: regulator-vdd1p0d {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd1p0d";
>  					regulator-min-microvolt = <800000>;
> @@ -575,8 +572,7 @@
>  					anatop-enable-bit = <0>;
>  				};
>  
> -				reg_1p2: regulator-vdd1p2 at 30360220 {
> -					reg = <0x30360220>;
> +				reg_1p2: regulator-vdd1p2 {
>  					compatible = "fsl,anatop-regulator";
>  					regulator-name = "vdd1p2";
>  					regulator-min-microvolt = <1100000>;
> -- 
> 2.7.4
> 

  reply	other threads:[~2018-05-15  7:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-14 13:31 [PATCH v2] ARM: dts: imx6/7: Remove unit-address from anatop regulators Fabio Estevam
2018-05-15  7:40 ` Shawn Guo [this message]
2018-05-16 12:35   ` Fabio Estevam
2018-05-20 12:23 ` Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180515074042.GP26863@dragon \
    --to=shawnguo@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).