[openwrt/openwrt] ipq40xx: fix DTS warning in qcom-ipq4019-cm520-79f.dts

LEDE Commits lede-commits at lists.infradead.org
Fri Sep 25 13:36:34 EDT 2020


chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/890bb54d7fbc71b30f7de1be215c3e872abae0b7

commit 890bb54d7fbc71b30f7de1be215c3e872abae0b7
Author: Christian Lamparter <chunkeey at gmail.com>
AuthorDate: Fri Sep 25 18:57:50 2020 +0200

    ipq40xx: fix DTS warning in qcom-ipq4019-cm520-79f.dts
    
    .dts:121.4-14: Warning (reg_format): /led_spi/led_gpio at 0:reg: \
            property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
    .dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
    .dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
    .dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
    .dts:119.24-126.5: Warning (avoid_default_addr_size): /led_spi/led_gpio at 0: \
            Relying on default #size-cells value
    
    Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
---
 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts
index f4c1685f47..0a15f003d1 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts
@@ -110,7 +110,7 @@
 	led_spi {
 		compatible = "spi-gpio";
 		#address-cells = <1>;
-		ranges;
+		#size-cells = <0>;
 
 		sck-gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
 		mosi-gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;



More information about the lede-commits mailing list