ARM: dts: ethernut5: Fix the build warning
authorWenyou Yang <wenyou.yang@microchip.com>
Tue, 8 Aug 2017 00:50:33 +0000 (08:50 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 13 Sep 2017 13:24:25 +0000 (09:24 -0400)
Fix the building warning as below:
---8<----
Warning (reg_format): "reg" property in /i2c-gpio-0/pcf8563@50 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /i2c-gpio-0/pcf8563@50
Warning (avoid_default_addr_size): Relying on default #size-cells value for /i2c-gpio-0/pcf8563@50
--->8----

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/dts/ethernut5.dts

index e07715225f191f9f8afea74b641ce6db808192ad..5c24deaf4b647fd7e9548bfe683dcaa5d2b367ae 100644 (file)
@@ -84,6 +84,8 @@
        };
 
        i2c-gpio-0 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                status = "okay";
 
                pcf8563@50 {