o4-imx-nano: Fix dtc warnings
authorFabio Estevam <festevam@denx.de>
Thu, 17 Jun 2021 15:57:29 +0000 (12:57 -0300)
committerStefano Babic <sbabic@denx.de>
Mon, 21 Jun 2021 11:31:40 +0000 (13:31 +0200)
Remove the LED unit addresses and reg properties to
fix the following dtc build warnings:

arch/arm/dts/o4-imx-nano.dtb: Warning (reg_format): /leds/led@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
...
arch/arm/dts/o4-imx-nano.dtb: Warning (avoid_default_addr_size): /leds/led@0: Relying on default #address-cells value

Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Oleh Kravchenko <oleg@kaa.org.ua>
arch/arm/dts/o4-imx-nano.dts

index d1785b7..54d32f9 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               led@0 {
+               led0 {
                        color = <LED_COLOR_ID_RED>;
                        gpios = <&pcf8574a 0 GPIO_ACTIVE_LOW>;
-                       reg = <0>;
                };
 
-               led@1 {
+               led1{
                        color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pcf8574a 1 GPIO_ACTIVE_LOW>;
-                       reg = <1>;
                };
 
-               led@2 {
+               led2 {
                        gpios = <&pcf8574a 2 GPIO_ACTIVE_LOW>;
                        color = <LED_COLOR_ID_BLUE>;
-                       reg = <2>;
                };
 
-               led@3 {
+               led3 {
                        color = <LED_COLOR_ID_RED>;
                        gpios = <&pcf8574a 3 GPIO_ACTIVE_LOW>;
-                       reg = <3>;
                };
 
-               led@4 {
+               led4{
                        color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pcf8574a 4 GPIO_ACTIVE_LOW>;
-                       reg = <4>;
                };
 
-               led@5 {
+               led5 {
                        color = <LED_COLOR_ID_BLUE>;
                        gpios = <&pcf8574a 5 GPIO_ACTIVE_LOW>;
-                       reg = <5>;
                };
        };