ath79: fix USB port LED assignment for ZyXEL NBG6716
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 12 Apr 2020 19:57:41 +0000 (21:57 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 13 Apr 2020 17:22:16 +0000 (19:22 +0200)
The USB LED assignment to internal ports was swapped.

Fix it.

We also explicitly checked that the LED label numbers match those
on the device.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/dts/qca9558_zyxel_nbg6716.dts

index a495bb187b485279d06debd9db46333be76a4b37..7fff1a78d95ddb4f308955f557e80b4866cc4f50 100644 (file)
                        label = "nbg6716:white:usb1";
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "usbport";
-                       trigger-sources = <&hub_port0>;
+                       trigger-sources = <&hub_port1>;
                };
 
                usb2 {
                        label = "nbg6716:white:usb2";
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "usbport";
-                       trigger-sources = <&hub_port1>;
+                       trigger-sources = <&hub_port0>;
                };
 
                wifi2 {