Skip to contentSkip to conversation

ARM, arm64: dts: renesas: update register properties

PATCH New Simon Horman 4 participants 16 messages Apr 26, 2018 – May 9, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ARM, arm64: dts: renesas: update register properties

Hi,

this series:

1. Drops unnecessary address properties from VIN port nodes on Renesas R-Car Gen2 SoC board DTSes. These are unnecessary as the nodes to not have bus addresses.

2. And adds address properties to R-Car Sound port nodes on Renesas R-Car Gen2 SoC DTSes. These are necessary as the nodes have unit names.

Simon Horman (10):
ARM: dts: lager: Drop unnecessary address properties from port node
ARM: dts: porter: Drop unnecessary address properties from vin port
node
ARM: dts: gose: Drop unnecessary address properties from port nodes
ARM: dts: koelsch: Drop unnecessary address properties from port nodes
ARM: dts: alt: Drop unnecessary address properties from vin port node
ARM: dts: silk: Drop unnecessary address properties from vin port node
ARM: dts: kzm9d: Drop unnecessary address properties from gpio_keys
node
arm64: dts: renesas: r8a7795: Add address properties to rcar_sound
port nodes
arm64: dts: renesas: r8a7796: Add address properties to rcar_sound
port nodes
arm64: dts: renesas: r8a77965: Add address properties to rcar_sound
port nodes

 arch/arm/boot/dts/emev2-kzm9d.dts         |  3 ---
 arch/arm/boot/dts/r8a7790-lager.dts       |  3 ---
 arch/arm/boot/dts/r8a7791-koelsch.dts     |  6 ------
 arch/arm/boot/dts/r8a7791-porter.dts      |  3 ---
 arch/arm/boot/dts/r8a7793-gose.dts        |  6 ------
 arch/arm/boot/dts/r8a7794-alt.dts         |  3 ---
 arch/arm/boot/dts/r8a7794-silk.dts        |  3 ---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi  | 14 ++++++++++++++
 arch/arm64/boot/dts/renesas/r8a7796.dtsi  | 11 +++++++++++
 arch/arm64/boot/dts/renesas/r8a77965.dtsi |  8 ++++++++
 10 files changed, 33 insertions(+), 27 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/10 ARM: dts: lager: Drop unnecessary address properties from port node

The vin port node does not have an address and thus does not need address-cells or address size-properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 arch/arm/boot/dts/r8a7790-lager.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef1000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
---
 arch/arm/boot/dts/r8a7790-lager.dts | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/boot/dts/r8a7790-lager.dts +0 -3
index 7576f9f9bdba..092610e3f953 100644
@@ -902,9 +902,6 @@
 	status = "okay";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin1ep0: endpoint {
 			remote-endpoint = <&adv7180>;
 			bus-width = <8>;
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/10 ARM: dts: porter: Drop unnecessary address properties from vin port node

In reply to Simon Horman

The vin port node does not have an address and thus does not need address-cells or address size-properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 arch/arm/boot/dts/r8a7791-porter.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef0000/port: unnecessary #address-cells/#size-cells without
---
 arch/arm/boot/dts/r8a7791-porter.dts | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/boot/dts/r8a7791-porter.dts +0 -3
index c336aa17b79e..a01101b49d99 100644
@@ -386,9 +386,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin0ep: endpoint {
 			remote-endpoint = <&adv7180>;
 			bus-width = <8>;
Signature · 1 line
2.11.0
#3 lore raw

PATCH 3/10 ARM: dts: gose: Drop unnecessary address properties from port nodes

In reply to Simon Horman

The vin port nodes does not have an address and thus does not need address-cells or address size-properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 arch/arm/boot/dts/r8a7793-gose.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef0000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
 arch/arm/boot/dts/r8a7793-gose.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef1000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
---
 arch/arm/boot/dts/r8a7793-gose.dts | 6 ------
 1 file changed, 6 deletions(-)
arch/arm/boot/dts/r8a7793-gose.dts +0 -6
index 4c10285d769a..aa209f6e5d71 100644
@@ -763,9 +763,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin0ep2: endpoint {
 			remote-endpoint = <&adv7612_out>;
 			bus-width = <24>;
@@ -785,9 +782,6 @@
 	status = "okay";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin1ep: endpoint {
 			remote-endpoint = <&adv7180_out>;
 			bus-width = <8>;
Signature · 1 line
2.11.0
#4 lore raw

PATCH 4/10 ARM: dts: koelsch: Drop unnecessary address properties from port nodes

In reply to Simon Horman

The vin port nodes does not have an address and thus does not need address-cells or address size-properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 arch/arm/boot/dts/r8a7791-koelsch.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef0000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
 arch/arm/boot/dts/r8a7791-koelsch.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef1000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
---
 arch/arm/boot/dts/r8a7791-koelsch.dts | 6 ------
 1 file changed, 6 deletions(-)
arch/arm/boot/dts/r8a7791-koelsch.dts +0 -6
index e394e0487416..8ab793d8b2fd 100644
@@ -855,9 +855,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin0ep2: endpoint {
 			remote-endpoint = <&adv7612_out>;
 			bus-width = <24>;
@@ -876,9 +873,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin1ep: endpoint {
 			remote-endpoint = <&adv7180>;
 			bus-width = <8>;
Signature · 1 line
2.11.0
#5 lore raw

PATCH 5/10 ARM: dts: alt: Drop unnecessary address properties from vin port node

In reply to Simon Horman

The vin port node does not have an address and thus does not need address-cells or address size-properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 arch/arm/boot/dts/r8a7794-alt.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef0000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
---
 arch/arm/boot/dts/r8a7794-alt.dts | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/boot/dts/r8a7794-alt.dts +0 -3
index 1ecc5b9135f3..c210412f80ec 100644
@@ -380,9 +380,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin0ep: endpoint {
 			remote-endpoint = <&adv7180>;
 			bus-width = <8>;
Signature · 1 line
2.11.0
#6 lore raw

PATCH 6/10 ARM: dts: silk: Drop unnecessary address properties from vin port node

In reply to Simon Horman

The vin port node does not have an address and thus does not need address-cells or address size-properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 arch/arm/boot/dts/r8a7794-silk.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef0000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
---
 arch/arm/boot/dts/r8a7794-silk.dts | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/boot/dts/r8a7794-silk.dts +0 -3
index e2642d2c2eed..7808aaee6644 100644
@@ -475,9 +475,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin0ep: endpoint {
 			remote-endpoint = <&adv7180>;
 			bus-width = <8>;
Signature · 1 line
2.11.0
#7 lore raw

PATCH 7/10 ARM: dts: kzm9d: Drop unnecessary address properties from gpio_keys node

In reply to Simon Horman

The gpio_keys node does not have an address and thus does not need address-cells or address size-properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 arch/arm/boot/dts/r8a7794-silk.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef0000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
---
 arch/arm/boot/dts/emev2-kzm9d.dts | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/boot/dts/emev2-kzm9d.dts +0 -3
index c238407133bf..0af44b7eadb9 100644
@@ -34,9 +34,6 @@
 
 	gpio_keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		one {
 			debounce-interval = <50>;
 			wakeup-source;
Signature · 1 line
2.11.0
#8 lore raw

PATCH 7/10 ARM: dts: kzm9d: Drop unnecessary address properties from gpio_keys node

Hi Simon,

Thanks for your work.

Quoted 6 lines · Simon Horman

The gpio_keys node does not have an address and thus does not need address-cells or address size-properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 arch/arm/boot/dts/r8a7794-silk.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef0000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

This warning don't seem to match with the change nor the rest of the commit message :-)

With that addressed and for the whole series:

Quoted 23 lines
---
 arch/arm/boot/dts/emev2-kzm9d.dts | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/boot/dts/emev2-kzm9d.dts +0 -3
index c238407133bf..0af44b7eadb9 100644
@@ -34,9 +34,6 @@
 
 	gpio_keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		one {
 			debounce-interval = <50>;
 			wakeup-source;
Signature · 1 line
2.11.0
Signature · 2 lines
Regards,
Niklas S?derlund
#9 lore raw

PATCH 7/10 ARM: dts: kzm9d: Drop unnecessary address properties from gpio_keys node

Quoted 12 lines · Niklas S?derlund

Hi Simon,

Thanks for your work.

Quoted 6 lines · Simon Horman

The gpio_keys node does not have an address and thus does not need address-cells or address size-properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 arch/arm/boot/dts/r8a7794-silk.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef0000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
Quoted 6 lines

This warning don't seem to match with the change nor the rest of the commit message :-)

With that addressed and for the whole series:

Thanks!

The fix is:

arch/arm/boot/dts/emev2-kzm9d.dtb: Warning (avoid_unnecessary_addr_size): /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Quoted 27 lines
Quoted 22 lines
---
 arch/arm/boot/dts/emev2-kzm9d.dts | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/boot/dts/emev2-kzm9d.dts +0 -3
index c238407133bf..0af44b7eadb9 100644
@@ -34,9 +34,6 @@
 
 	gpio_keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		one {
 			debounce-interval = <50>;
 			wakeup-source;
Signature · 1 line
2.11.0
Signature · 2 lines
Regards,
Niklas S?derlund
#10 lore raw

PATCH 7/10 ARM: dts: kzm9d: Drop unnecessary address properties from gpio_keys node

Quoted 18 lines · Simon Horman
Quoted 17 lines · Niklas S?derlund

Hi Simon,

Thanks for your work.

Quoted 6 lines · Simon Horman

The gpio_keys node does not have an address and thus does not need address-cells or address size-properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 arch/arm/boot/dts/r8a7794-silk.dtb: Warning (avoid_unnecessary_addr_size): /soc/video at e6ef0000/port: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

This warning don't seem to match with the change nor the rest of the commit message :-)

With that addressed and for the whole series:

Quoted 7 lines
Quoted 1 line

Thanks!

The fix is:

arch/arm/boot/dts/emev2-kzm9d.dtb: Warning (avoid_unnecessary_addr_size): /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Series applied.

#11 lore raw

PATCH 8/10 arm64: dts: renesas: r8a7795: Add address properties to rcar_sound port nodes

In reply to Simon Horman

The rcar_sound port nodes have unit names and thus should have register properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 ...
 DTC     arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dtb
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 0: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 1: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 2: node has a unit name, but no reg property
  ...
  DTC     arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dtb
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 0: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 1: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 2: node has a unit name, but no reg property
  DTC     arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dtb
arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 0: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 1: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 2: node has a unit name, but no reg property

Prior to this patch the port nodes only defined in board DTS files. As the register properties are common this patch defines the port nodes and provides register properties in the SoC DTS file.

---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +14 -0
index b1c52dae4d49..9b080a864ea1 100644
@@ -1711,6 +1711,20 @@
 					dma-names = "rx", "tx", "rxu", "txu";
 				};
 			};
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				port at 0 {
+					reg = <0>;
+				};
+				port at 1 {
+					reg = <1>;
+				};
+				port at 2 {
+					reg = <2>;
+				};
+			};
 		};
 
 		audma0: dma-controller at ec700000 {
Signature · 1 line
2.11.0
#12 lore raw

PATCH 9/10 arm64: dts: renesas: r8a7796: Add address properties to rcar_sound port nodes

In reply to Simon Horman

The rcar_sound port nodes have unit names and thus should have register properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 ...
 DTC     arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dtb
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 0: node has a unit name, but no reg property
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 1: node has a unit name, but no reg property
 ...
 DTC     arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dtb
 arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 0: node has a unit name, but no reg property
 arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 1: node has a unit name, but no reg property

Prior to this patch the port nodes only defined in board DTS files. As the register properties are common this patch defines the port nodes and provides register properties in the SoC DTS file.

---
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +11 -0
index f41bc25b3933..3fbd86590fb0 100644
@@ -1594,6 +1594,17 @@
 					dma-names = "rx", "tx", "rxu", "txu";
 				};
 			};
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				port at 0 {
+					reg = <0>;
+				};
+				port at 1 {
+					reg = <1>;
+				};
+			};
 		};
 
 		audma0: dma-controller at ec700000 {
Signature · 1 line
2.11.0
#13 lore raw

PATCH 10/10 arm64: dts: renesas: r8a77965: Add address properties to rcar_sound port nodes

In reply to Simon Horman

The rcar_sound port nodes have unit names and thus should have register properties.

This is flagged by dtc as follows:

 # make dtbs W=1
 ...
 DTC     arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dtb
arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 0: node has a unit name, but no reg property
 DTC     arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dtb
arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound at ec500000/ports/port at 0: node has a unit name, but no reg property

Prior to this patch the port nodes only defined in board DTS files. As the register properties are common this patch defines the port nodes and provides register properties in the SoC DTS file.

---
 arch/arm64/boot/dts/renesas/r8a77965.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/renesas/r8a77965.dtsi +8 -0
index b12f41755aea..88202eff6e12 100644
@@ -856,6 +856,14 @@
 				ssi1: ssi-1 {
 				};
 			};
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				port at 0 {
+					reg = <0>;
+				};
+			};
 		};
 
 		xhci0: usb at ee000000 {
Signature · 1 line
2.11.0
#14 lore raw

cover ARM, arm64: dts: renesas: update register properties

In reply to Simon Horman

Hi Simon,

Quoted 5 lines · Simon Horman

this series:

1. Drops unnecessary address properties from VIN port nodes on Renesas R-Car Gen2 SoC board DTSes. These are unnecessary as the nodes to not have bus addresses.

I guess the example in Documentation/devicetree/bindings/media/rcar_vin.txt should be updated, too?

Quoted 3 lines

2. And adds address properties to R-Car Sound port nodes on Renesas R-Car Gen2 SoC DTSes. These are necessary as the nodes have unit names.

Documentation/devicetree/bindings/sound/renesas,rsnd.txt doesn't say anything about the presence of ports?

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#15 lore raw

cover ARM, arm64: dts: renesas: update register properties

Quoted 4 lines · Geert Uytterhoeven

Hi Simon,

On Thu, Apr 26, 2018 at 12:29 PM, Simon Horman
<[email protected]> wrote:

Quoted 8 lines
Quoted 5 lines

this series:

1. Drops unnecessary address properties from VIN port nodes on Renesas R-Car Gen2 SoC board DTSes. These are unnecessary as the nodes to not have bus addresses.

I guess the example in Documentation/devicetree/bindings/media/rcar_vin.txt should be updated, too?

I have sent a patch for this.

Quoted 6 lines
Quoted 3 lines

2. And adds address properties to R-Car Sound port nodes on Renesas R-Car Gen2 SoC DTSes. These are necessary as the nodes have unit names.

Documentation/devicetree/bindings/sound/renesas,rsnd.txt doesn't say anything about the presence of ports?