ARM: dts: imx6dl-plybas: Fix gpio-keys W=1 warnings
authorFabio Estevam <festevam@gmail.com>
Mon, 8 Mar 2021 18:59:39 +0000 (15:59 -0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 15 Mar 2021 06:17:22 +0000 (14:17 +0800)
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

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-plybas.dts

index 333c306aa946313da745cb3064990f4e974533d3..bf72a67a9c7618793d8c649aa2ee92d10199a65b 100644 (file)
 
        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>;