[OpenWrt-Devel] [PATCH 1/4] ipq40xx: set #size-cells to 0 to fix warning

Christian Lamparter chunkeey at gmail.com
Thu Jun 7 11:36:55 EDT 2018


qcom-ipq4018-ex6100v2.dtb: Warning (reg_format): "reg" property in
	/led_spi/led_gpio at 0 has invalid length (4 bytes)
qcom-ipq4018-ex6100v2.dtb: Warning (avoid_default_addr_size):
	Relying on default #size-cells value for /led_spi/led_gpio at 0

Cc: Thomas Hebb <tommyhebb at gmail.com>
Cc: David Bauer <mail at david-bauer.net>
Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
---
 .../files-4.14/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi
index e5f1c07378..f40e043574 100644
--- a/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi
+++ b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi
@@ -102,7 +102,7 @@
 	led_spi {
 		compatible = "spi-gpio";
 		#address-cells = <1>;
-		ranges;
+		#size-cells = <0>;
 
 		gpio-sck = <&tlmm 5 GPIO_ACTIVE_HIGH>;
 		gpio-mosi = <&tlmm 4 GPIO_ACTIVE_HIGH>;
-- 
2.17.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel



More information about the openwrt-devel mailing list