ramips: fix Lava LR-25G001 invalid led names
authorMathias Kresin <dev@kresin.me>
Mon, 26 Nov 2018 15:03:09 +0000 (16:03 +0100)
committerMathias Kresin <dev@kresin.me>
Mon, 26 Nov 2018 18:40:31 +0000 (19:40 +0100)
It has to be <board>:<colour>:<function> and is expected exactly this
way by the userspace scripts.

While at it, fix some whitespace issues in the dts file and rename the
flash node as required upstream.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ramips/dts/LR-25G001.dts

index a89a6e57fb7466a2fe679ba342d021d7bde846b7..37fe5235409896a67bbef3580e152f6eb5b51e6c 100644 (file)
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "lava,lr-25g001:green:status";
+                       label = "lr-25g001:green:status";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wifi2g {
-                       label = "lava,lr-25g001:green:wifi2g";
+                       label = "lr-25g001:green:wifi2g";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                wifi5g {
-                       label = "lava,lr-25g001:green:wifi5g";
+                       label = "lr-25g001:green:wifi5g";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
@@ -71,7 +71,7 @@
 &spi0 {
        status = "okay";
 
-       mx25l12805d@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
                                0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
                                0x7c 0x0000007e /* PORT0_STATUS */
                                0x94 0x00000000 /* PORT6_STATUS */
-
                        >;
                };
 
                        reg = <4>;
                        phy-mode = "rgmii";
                };
-
        };
 };