octeon: ubnt-edgerouter-e300: fix LED settings
authorCarsten Spieß <mail@carsten-spiess.de>
Wed, 12 Jul 2023 08:41:25 +0000 (10:41 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 15 Jul 2023 15:05:58 +0000 (17:05 +0200)
LEDs on Edgerouter 6P didn't work correctly:
blue /white LED swapped, on/off state inverted

Fixed in device tree:
swap the GPIO ports for power:blue and power:white LEDs
change LED activity from LOW to HIGH

Tested on Edgerouter 6P

Signed-off-by: Carsten Spieß <mail@carsten-spiess.de>
target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi

index 7eafa32cf6d7bebd73255df38df4da06c279053a..e63598fc974ac2915904cb169bf8dd10096e012f 100644 (file)
 
                led_power_blue: power_blue {
                        label = "blue:power";
-                       gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
                };
 
                led_power_white: power_white {
                        label = "white:power";
-                       gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
                };
        };