]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
bmips: shg2500: add missing led controller cells
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 28 Jan 2025 07:28:01 +0000 (08:28 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 28 Jan 2025 07:36:43 +0000 (08:36 +0100)
Fixes the following DT warnings:
../dts/bcm63168-sercomm-shg2500.dts:76.4-14: Warning (reg_format): /ubus/spi@10001000/led-controller@1/led@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/bcm63168-sercomm-shg2500.dts:75.9-78.5: Warning (avoid_default_addr_size): /ubus/spi@10001000/led-controller@1/led@1: Relying on default #address-cells value
../dts/bcm63168-sercomm-shg2500.dts:75.9-78.5: Warning (avoid_default_addr_size): /ubus/spi@10001000/led-controller@1/led@1: Relying on default #size-cells value

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(cherry picked from commit fbe0bd5f6453a61fab871bee56883afc5c6308cf)

target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts

index 7b0ebf2aefc35d9cde5d745bcca0f37cde7a6204..772e1363fc7166a1eb4f8616fed2e805f32a29a6 100644 (file)
@@ -69,6 +69,8 @@
        status = "okay";
 
        led-controller@1 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "sercomm,msp430-leds";
                reg = <1>;
                spi-max-frequency = <500000>;