]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
sunxi: dt: nanopi-r1 fix led nodes
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 6 Nov 2021 08:52:22 +0000 (09:52 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 12 Dec 2022 17:45:49 +0000 (18:45 +0100)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts

index 4722af0183028d34e3a1d1c1d16fc6270ee77840..1a5ebaad4fea7c678f30a9a03691e949f3295db6 100644 (file)
        };
 
        leds {
-               led-2 {
-                       function = LED_FUNCTION_WAN;
-                       color = <LED_COLOR_ID_GREEN>;
-                       gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
+               // delete wrong nodes imported from sun8i-h3-nanopi.dtsi
+               /delete-node/ led-0;
+               /delete-node/ led-1;
+
+               led-0 {
+                       label = "nanopi-r1:red:status";
+                       gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "heartbeat";
                };
-
-               led-3 {
-                       function = LED_FUNCTION_LAN;
-                       color = <LED_COLOR_ID_GREEN>;
-                       gpios = <&pio 0 9 GPIO_ACTIVE_HIGH>; /* PA9 */
+               led-1 {
+                       label = "nanopi-r1:green:wan";
+                       gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+                       linux,default-trigger = "netdev";
+               };
+               led-2 {
+                       label = "nanopi-r1:green:lan";
+                       gpios = <&pio 0 9 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+                       linux,default-trigger = "netdev";
                };
        };
 };