linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] ARM: dts: sunxi: Remove unused address-cells/size-cells of dwmac-sun8i
@ 2018-07-18 11:40 Corentin Labbe
  2018-07-18 11:40 ` [PATCH v2 1/5] dt-bindings: net: dwmac-sun8i: Remove unused address-cells/size-cells Corentin Labbe
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Corentin Labbe @ 2018-07-18 11:40 UTC (permalink / raw)
  To: catalin.marinas, linux, mark.rutland, maxime.ripard, robh+dt,
	wens, will.deacon
  Cc: devicetree, linux-arm-kernel, linux-kernel, netdev, linux-sunxi,
	Corentin Labbe

address-cells/size-cells is unnecessary for dwmac-sun8i node.
It was in early days, but since a mdio node is used, it could be
removed.

This patch fix the following DT warning:
Warning (avoid_unnecessary_addr_size): /soc/ethernet@1c50000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Changes since V1:
- splited patch

Corentin Labbe (5):
  dt-bindings: net: dwmac-sun8i: Remove unused address-cells/size-cells
  ARM: dts: sunxi-h3-h5: Remove unused address-cells/size-cells of
    dwmac-sun8i
  ARM: dts: sun8i: a83t: Remove unused address-cells/size-cells of
    dwmac-sun8i
  ARM: dts: sun8i: r40: Remove unused address-cells/size-cells of
    dwmac-sun8i
  ARM64: dts: sun50i: a64: Remove unused address-cells/size-cells of
    dwmac-sun8i

 Documentation/devicetree/bindings/net/dwmac-sun8i.txt | 8 --------
 arch/arm/boot/dts/sun8i-a83t.dtsi                     | 2 --
 arch/arm/boot/dts/sun8i-r40.dtsi                      | 2 --
 arch/arm/boot/dts/sunxi-h3-h5.dtsi                    | 2 --
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi         | 2 --
 5 files changed, 16 deletions(-)

-- 
2.16.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/5] dt-bindings: net: dwmac-sun8i: Remove unused address-cells/size-cells
  2018-07-18 11:40 [PATCH v2 0/5] ARM: dts: sunxi: Remove unused address-cells/size-cells of dwmac-sun8i Corentin Labbe
@ 2018-07-18 11:40 ` Corentin Labbe
  2018-07-18 11:40 ` [PATCH v2 2/5] ARM: dts: sunxi-h3-h5: Remove unused address-cells/size-cells of dwmac-sun8i Corentin Labbe
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Corentin Labbe @ 2018-07-18 11:40 UTC (permalink / raw)
  To: catalin.marinas, linux, mark.rutland, maxime.ripard, robh+dt,
	wens, will.deacon
  Cc: devicetree, linux-arm-kernel, linux-kernel, netdev, linux-sunxi,
	Corentin Labbe

address-cells/size-cells is unnecessary for dwmac-sun8i node.
It was in early days, but since a mdio node is used, it could be
removed.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 Documentation/devicetree/bindings/net/dwmac-sun8i.txt | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt
index cfe724398a12..5bb3a18cc38d 100644
--- a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt
+++ b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt
@@ -19,8 +19,6 @@ Required properties:
 - reset-names: must be "stmmaceth"
 - phy-mode: See ethernet.txt
 - phy-handle: See ethernet.txt
-- #address-cells: shall be 1
-- #size-cells: shall be 0
 - syscon: A phandle to the device containing the EMAC or GMAC clock register
 
 Optional properties:
@@ -86,8 +84,6 @@ emac: ethernet@1c0b000 {
 	reset-names = "stmmaceth";
 	clocks = <&ccu CLK_BUS_EMAC>;
 	clock-names = "stmmaceth";
-	#address-cells = <1>;
-	#size-cells = <0>;
 
 	phy-handle = <&int_mii_phy>;
 	phy-mode = "mii";
@@ -137,8 +133,6 @@ emac: ethernet@1c0b000 {
 	reset-names = "stmmaceth";
 	clocks = <&ccu CLK_BUS_EMAC>;
 	clock-names = "stmmaceth";
-	#address-cells = <1>;
-	#size-cells = <0>;
 
 	phy-handle = <&ext_rgmii_phy>;
 	phy-mode = "rgmii";
@@ -191,8 +185,6 @@ emac: ethernet@1c0b000 {
 	reset-names = "stmmaceth";
 	clocks = <&ccu CLK_BUS_EMAC>;
 	clock-names = "stmmaceth";
-	#address-cells = <1>;
-	#size-cells = <0>;
 
 	phy-handle = <&ext_rgmii_phy>;
 	phy-mode = "rgmii";
-- 
2.16.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 2/5] ARM: dts: sunxi-h3-h5: Remove unused address-cells/size-cells of dwmac-sun8i
  2018-07-18 11:40 [PATCH v2 0/5] ARM: dts: sunxi: Remove unused address-cells/size-cells of dwmac-sun8i Corentin Labbe
  2018-07-18 11:40 ` [PATCH v2 1/5] dt-bindings: net: dwmac-sun8i: Remove unused address-cells/size-cells Corentin Labbe
@ 2018-07-18 11:40 ` Corentin Labbe
  2018-07-18 11:40 ` [PATCH v2 3/5] ARM: dts: sun8i: a83t: " Corentin Labbe
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Corentin Labbe @ 2018-07-18 11:40 UTC (permalink / raw)
  To: catalin.marinas, linux, mark.rutland, maxime.ripard, robh+dt,
	wens, will.deacon
  Cc: devicetree, linux-arm-kernel, linux-kernel, netdev, linux-sunxi,
	Corentin Labbe

address-cells/size-cells is unnecessary for dwmac-sun8i node.
It was in early days, but since a mdio node is used, it could be
removed.

This patch fix the following DT warning:
Warning (avoid_unnecessary_addr_size): /soc/ethernet@1c50000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
index 90021f38c1ef..f0352b8da19f 100644
--- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi
+++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
@@ -516,8 +516,6 @@
 			reset-names = "stmmaceth";
 			clocks = <&ccu CLK_BUS_EMAC>;
 			clock-names = "stmmaceth";
-			#address-cells = <1>;
-			#size-cells = <0>;
 			status = "disabled";
 
 			mdio: mdio {
-- 
2.16.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 3/5] ARM: dts: sun8i: a83t: Remove unused address-cells/size-cells of dwmac-sun8i
  2018-07-18 11:40 [PATCH v2 0/5] ARM: dts: sunxi: Remove unused address-cells/size-cells of dwmac-sun8i Corentin Labbe
  2018-07-18 11:40 ` [PATCH v2 1/5] dt-bindings: net: dwmac-sun8i: Remove unused address-cells/size-cells Corentin Labbe
  2018-07-18 11:40 ` [PATCH v2 2/5] ARM: dts: sunxi-h3-h5: Remove unused address-cells/size-cells of dwmac-sun8i Corentin Labbe
@ 2018-07-18 11:40 ` Corentin Labbe
  2018-07-18 11:40 ` [PATCH v2 4/5] ARM: dts: sun8i: r40: " Corentin Labbe
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Corentin Labbe @ 2018-07-18 11:40 UTC (permalink / raw)
  To: catalin.marinas, linux, mark.rutland, maxime.ripard, robh+dt,
	wens, will.deacon
  Cc: devicetree, linux-arm-kernel, linux-kernel, netdev, linux-sunxi,
	Corentin Labbe

ddress-cells/size-cells is unnecessary for dwmac-sun8i node.
It was in early days, but since a mdio node is used, it could be
removed.

This patch fix the following DT warning:
Warning (avoid_unnecessary_addr_size): /soc/ethernet@1c50000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 arch/arm/boot/dts/sun8i-a83t.dtsi | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index b047f05e690d..276c99fcfcc8 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -913,8 +913,6 @@
 			reset-names = "stmmaceth";
 			clocks = <&ccu 27>;
 			clock-names = "stmmaceth";
-			#address-cells = <1>;
-			#size-cells = <0>;
 			status = "disabled";
 
 			mdio: mdio {
-- 
2.16.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 4/5] ARM: dts: sun8i: r40: Remove unused address-cells/size-cells of dwmac-sun8i
  2018-07-18 11:40 [PATCH v2 0/5] ARM: dts: sunxi: Remove unused address-cells/size-cells of dwmac-sun8i Corentin Labbe
                   ` (2 preceding siblings ...)
  2018-07-18 11:40 ` [PATCH v2 3/5] ARM: dts: sun8i: a83t: " Corentin Labbe
@ 2018-07-18 11:40 ` Corentin Labbe
  2018-07-18 11:40 ` [PATCH v2 5/5] ARM64: dts: sun50i: a64: " Corentin Labbe
  2018-07-19 14:33 ` [PATCH v2 0/5] ARM: dts: sunxi: " Maxime Ripard
  5 siblings, 0 replies; 7+ messages in thread
From: Corentin Labbe @ 2018-07-18 11:40 UTC (permalink / raw)
  To: catalin.marinas, linux, mark.rutland, maxime.ripard, robh+dt,
	wens, will.deacon
  Cc: devicetree, linux-arm-kernel, linux-kernel, netdev, linux-sunxi,
	Corentin Labbe

address-cells/size-cells is unnecessary for dwmac-sun8i node.
It was in early days, but since a mdio node is used, it could be
removed.

This patch fix the following DT warning:
Warning (avoid_unnecessary_addr_size): /soc/ethernet@1c50000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 arch/arm/boot/dts/sun8i-r40.dtsi | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi
index 38a3e0dbc824..1e680e4fee60 100644
--- a/arch/arm/boot/dts/sun8i-r40.dtsi
+++ b/arch/arm/boot/dts/sun8i-r40.dtsi
@@ -576,8 +576,6 @@
 			reset-names = "stmmaceth";
 			clocks = <&ccu CLK_BUS_GMAC>;
 			clock-names = "stmmaceth";
-			#address-cells = <1>;
-			#size-cells = <0>;
 			status = "disabled";
 
 			gmac_mdio: mdio {
-- 
2.16.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 5/5] ARM64: dts: sun50i: a64: Remove unused address-cells/size-cells of dwmac-sun8i
  2018-07-18 11:40 [PATCH v2 0/5] ARM: dts: sunxi: Remove unused address-cells/size-cells of dwmac-sun8i Corentin Labbe
                   ` (3 preceding siblings ...)
  2018-07-18 11:40 ` [PATCH v2 4/5] ARM: dts: sun8i: r40: " Corentin Labbe
@ 2018-07-18 11:40 ` Corentin Labbe
  2018-07-19 14:33 ` [PATCH v2 0/5] ARM: dts: sunxi: " Maxime Ripard
  5 siblings, 0 replies; 7+ messages in thread
From: Corentin Labbe @ 2018-07-18 11:40 UTC (permalink / raw)
  To: catalin.marinas, linux, mark.rutland, maxime.ripard, robh+dt,
	wens, will.deacon
  Cc: devicetree, linux-arm-kernel, linux-kernel, netdev, linux-sunxi,
	Corentin Labbe

address-cells/size-cells is unnecessary for dwmac-sun8i node.
It was in early days, but since a mdio node is used, it could be
removed.

This patch fix the following DT warning:
Warning (avoid_unnecessary_addr_size): /soc/ethernet@1c50000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
index 91dd5dd9e205..357f6cba00cd 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
@@ -668,8 +668,6 @@
 			clocks = <&ccu CLK_BUS_EMAC>;
 			clock-names = "stmmaceth";
 			status = "disabled";
-			#address-cells = <1>;
-			#size-cells = <0>;
 
 			mdio: mdio {
 				compatible = "snps,dwmac-mdio";
-- 
2.16.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 0/5] ARM: dts: sunxi: Remove unused address-cells/size-cells of dwmac-sun8i
  2018-07-18 11:40 [PATCH v2 0/5] ARM: dts: sunxi: Remove unused address-cells/size-cells of dwmac-sun8i Corentin Labbe
                   ` (4 preceding siblings ...)
  2018-07-18 11:40 ` [PATCH v2 5/5] ARM64: dts: sun50i: a64: " Corentin Labbe
@ 2018-07-19 14:33 ` Maxime Ripard
  5 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2018-07-19 14:33 UTC (permalink / raw)
  To: Corentin Labbe
  Cc: catalin.marinas, linux, mark.rutland, robh+dt, wens, will.deacon,
	devicetree, linux-arm-kernel, linux-kernel, netdev, linux-sunxi

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]

On Wed, Jul 18, 2018 at 11:40:36AM +0000, Corentin Labbe wrote:
> address-cells/size-cells is unnecessary for dwmac-sun8i node.
> It was in early days, but since a mdio node is used, it could be
> removed.
>
> This patch fix the following DT warning:
> Warning (avoid_unnecessary_addr_size): /soc/ethernet@1c50000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Applied, thanks

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-07-19 14:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-18 11:40 [PATCH v2 0/5] ARM: dts: sunxi: Remove unused address-cells/size-cells of dwmac-sun8i Corentin Labbe
2018-07-18 11:40 ` [PATCH v2 1/5] dt-bindings: net: dwmac-sun8i: Remove unused address-cells/size-cells Corentin Labbe
2018-07-18 11:40 ` [PATCH v2 2/5] ARM: dts: sunxi-h3-h5: Remove unused address-cells/size-cells of dwmac-sun8i Corentin Labbe
2018-07-18 11:40 ` [PATCH v2 3/5] ARM: dts: sun8i: a83t: " Corentin Labbe
2018-07-18 11:40 ` [PATCH v2 4/5] ARM: dts: sun8i: r40: " Corentin Labbe
2018-07-18 11:40 ` [PATCH v2 5/5] ARM64: dts: sun50i: a64: " Corentin Labbe
2018-07-19 14:33 ` [PATCH v2 0/5] ARM: dts: sunxi: " Maxime Ripard

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