From a15604568862cb21c2888f405652d81514d1bb95 Mon Sep 17 00:00:00 2001 From: Ryan Mounce Date: Sat, 10 Apr 2021 12:26:49 +0930 Subject: ath79: add support for MikroTik RouterBOARD 962UiGS-5HacT2HnT (hAP ac) This patch adds support for the MikroTik RouterBOARD 962UiGS-5HacT2HnT (hAP ac) Specifications: - SoC: QCA9558 - RAM: 128 MB - Flash: 16 MB SPI - 2.4GHz WLAN: 3x3:3 802.11n on SoC - 5GHz WLAN: 3x3:3 802.11ac on QCA9880 connected via PCIe - Switch: 5x 1000/100/10 on QCA8337 connected via RGMII - SFP cage: connected via SGMII (tested with genuine & generic GLC-T) - USB: 1x type A, GPIO power switch - PoE: Passive input on Ether1, GPIO switched passthrough to Ether5 - Reset button - "SFP" LED connected to SoC - Ethernet LEDs connected to QCA8337 switch - Green WLAN LED connected to QCA9880 Not working: - Red WLAN LED Installation: TFTP boot initramfs image and then perform sysupgrade. Follow common MikroTik procedure as in https://openwrt.org/toh/mikrotik/common. Signed-off-by: Ryan Mounce (cherry picked from commit c2140e32ce32b9cc60f7d408e20bdf45dce6a634) --- ...9558_mikrotik_routerboard-962uigs-5hact2hnt.dts | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 target/linux/ath79/dts/qca9558_mikrotik_routerboard-962uigs-5hact2hnt.dts (limited to 'target/linux/ath79/dts/qca9558_mikrotik_routerboard-962uigs-5hact2hnt.dts') diff --git a/target/linux/ath79/dts/qca9558_mikrotik_routerboard-962uigs-5hact2hnt.dts b/target/linux/ath79/dts/qca9558_mikrotik_routerboard-962uigs-5hact2hnt.dts new file mode 100644 index 0000000000..f3fc31af14 --- /dev/null +++ b/target/linux/ath79/dts/qca9558_mikrotik_routerboard-962uigs-5hact2hnt.dts @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "qca9558_mikrotik_routerboard-96x.dtsi" + +/ { + compatible = "mikrotik,routerboard-962uigs-5hact2hnt", "qca,qca9558"; + model = "MikroTik RouterBOARD 962UiGS-5HacT2HnT (hAP ac)"; + + gpio-export { + compatible = "gpio-export"; + + port5_poe { + gpio-export,name = "port5-poe"; + gpio-export,output = <1>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gpio { + input-poe-out-compat { + gpio-hog; + gpios = <2 GPIO_ACTIVE_HIGH>; + input; + line-name = "PoE out compat"; + }; +}; + +&wmac { + status = "okay"; + + qca,no-eeprom; +}; + +&pcie1 { + status = "okay"; +}; -- cgit v1.2.3