Skip to contentSkip to conversation

ARM: dts: imx6dl-plybas: Fix gpio-keys W=1 warnings

PATCH Applied Fabio Estevam 2 participants 3 messages Mar 8, 2021 – Mar 15, 2021

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH v2 1/2 ARM: dts: imx6dl-plybas: Fix gpio-keys W=1 warnings

Remove the unnecessary #address-cells/#size-cells and rename the node names to fix the following W=1 dtc warnings:

arch/arm/boot/dts/imx6dl-plybas.dts:26.13-30.5: Warning (unit_address_vs_reg): /gpio_keys/button@20: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:32.13-36.5: Warning (unit_address_vs_reg): /gpio_keys/button@21: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:20.12-37.4: Warning (avoid_unnecessary_addr_size): /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

---
Changes since v1:
- Use button-xxx for the node names (Shawn)

 arch/arm/boot/dts/imx6dl-plybas.dts | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
arch/arm/boot/dts/imx6dl-plybas.dts +2 -4
index 333c306aa946..bf72a67a9c76 100644
@@ -19,17 +19,15 @@ chosen {
 
 	gpio_keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 		autorepeat;
 
-		button@20 {
+		button-start {
 			label = "START";
 			linux,code = <31>;
 			gpios = <&gpio5 8 GPIO_ACTIVE_LOW>;
 		};
 
-		button@21 {
+		button-clean {
 			label = "CLEAN";
 			linux,code = <46>;
 			gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author reviewer
#1 lore raw

PATCH v2 2/2 ARM: dts: imx6qdl-gw*: Remove unnecessary #address-cells/#size-cells

From: Tim Harvey <[email protected]>

Remove the unnecessary #address-cells/#size-cells to avoid warnings from W=1 build like this:

arch/arm/boot/dts/imx6qdl-gw52xx.dtsi:33.12-78.4: Warning (avoid_unnecessary_addr_size): /gpio-keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

[fabio: Make the warning messages more succint]

---
Changes since v1:
- Make the error messages more succint.

 arch/arm/boot/dts/imx6qdl-gw52xx.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw53xx.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw552x.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw560x.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw5903.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw5904.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw5907.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw5910.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw5912.dtsi | 2 --
 arch/arm/boot/dts/imx6qdl-gw5913.dtsi | 2 --
 12 files changed, 24 deletions(-)
arch/arm/boot/dts/imx6qdl-gw52xx.dtsi +0 -2
index 959d8ac2e393..8e587e17e75d 100644
@@ -32,8 +32,6 @@ backlight {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw53xx.dtsi +0 -2
index 8072ed47c6bb..a0710d562766 100644
@@ -32,8 +32,6 @@ backlight {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw54xx.dtsi +0 -2
index 8c9bcdd39830..29ba24c273e9 100644
@@ -33,8 +33,6 @@ backlight {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw551x.dtsi +0 -2
index e5d803d023c8..435dec6338fe 100644
@@ -67,8 +67,6 @@ chosen {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw552x.dtsi +0 -2
index 290a607fede9..2e61102ae694 100644
@@ -24,8 +24,6 @@ chosen {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw560x.dtsi +0 -2
index 093a219a77ae..4bc4371e6bae 100644
@@ -91,8 +91,6 @@ backlight-keypad {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw5903.dtsi +0 -2
index e1c8dd233cab..1fdb7ba630f1 100644
@@ -75,8 +75,6 @@ backlight {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw5904.dtsi +0 -2
index 3cd2e717c1da..304f3fb88fab 100644
@@ -72,8 +72,6 @@ backlight {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw5907.dtsi +0 -2
index 21c68a55bcb9..fcd3bdfd6182 100644
@@ -23,8 +23,6 @@ chosen {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw5910.dtsi +0 -2
index ed4e22259959..68e5ab2e27e2 100644
@@ -26,8 +26,6 @@ memory@10000000 {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw5912.dtsi +0 -2
index 797f160249f7..0415bcb41640 100644
@@ -24,8 +24,6 @@ chosen {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
arch/arm/boot/dts/imx6qdl-gw5913.dtsi +0 -2
index 4cd7d290f5b2..8e23cec7149e 100644
@@ -23,8 +23,6 @@ chosen {
 
 	gpio-keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		user-pb {
 			label = "user_pb";
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Applied
#2 lore raw
In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

Remove the unnecessary #address-cells/#size-cells and rename the node names to fix the following W=1 dtc warnings:

arch/arm/boot/dts/imx6dl-plybas.dts:26.13-30.5: Warning (unit_address_vs_reg): /gpio_keys/button@20: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:32.13-36.5: Warning (unit_address_vs_reg): /gpio_keys/button@21: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:20.12-37.4: Warning (avoid_unnecessary_addr_size): /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Applied both, thanks.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel