ARM: dts: imx6dl-plybas: Fix gpio-keys W=1 warnings
Subsystems (2)
Fabio Estevam
reviewerPATCH 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
@@ -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
Fabio Estevam
reviewerPATCH 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
---
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Shawn Guo
AppliedQuoted 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" propertySigned-off-by Fabio Estevam <[email protected]>Reviewed-by Oleksij Rempel <[email protected]>
Applied both, thanks.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel