ath79: fix UBNT Aircube AC gpios
authorNicolò Veronese <nicveronese@gmail.com>
Sun, 17 Oct 2021 01:14:41 +0000 (03:14 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 31 Oct 2021 23:43:18 +0000 (00:43 +0100)
GPIOs on the Aircube AC are wrong:
 - Reset GPIO moved from 17 to 12
 - PoE Pass Through GPIO for Aircube AC is 3

Fixes: 491ae3357e10 ("ath79: add support for Ubiquiti airCube AC")
Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
target/linux/ath79/dts/ar9342_ubnt_aircube-ac.dts
target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches

index 25adac4e8ade2acb63edc8fb3a15b51bc0280563..15e23f24214fbf79665501b023d90d942a58a4f1 100644 (file)
@@ -15,7 +15,7 @@
                reset {
                        label = "reset";
                        linux,code = <KEY_RESTART>;
-                       gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        debounce-interval = <60>;
                };
        };
index 83f428c54ad83d7f45a599deeed464bcd11d02d6..ca7d8c633c4055a4c04e67d915d5408779157da5 100644 (file)
@@ -76,13 +76,13 @@ tplink,wbs510-v2)
        ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
        ;;
 ubnt,aircube-ac|\
-ubnt,aircube-isp)
-       ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "11"
-       ;;
 ubnt,nanobeam-ac-gen2|\
 ubnt,nanostation-ac)
        ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3"
        ;;
+ubnt,aircube-isp)
+       ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "11"
+       ;;
 ubnt,nanostation-m)
        ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
        ;;