forked from openwrt/openwrt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ath79: add support for MikroTik RouterBOARD hAP ac lite
The MikroTik RB952Ui-5ac2nD (sold as hAP ac lite) is an indoor 2.4Ghz and 5GHz AP/router with a 2 dBi integrated antenna. See https://mikrotik.com/product/RB952Ui-5ac2nD for more details. Specifications: - SoC: QCA9533 - RAM: 64MB - Storage: 16MB NOR - Wireless: QCA9533 802.11b/g/n 2x2 / QCA9887 802.11a/n/ac 2x2 - Ethernet: AR934X switch, 5x 10/100 ports, 10-28 V passive PoE in port 1, 500 mA PoE out on port 5 - 6 user-controllable LEDs: - 1x user (green) - 5x port status (green) Flashing: TFTP boot initramfs image and then perform sysupgrade. The "Internet" port (port number 1) must be used to upload the TFTP image, then connect to any other port to access the OpenWRT system. Follow common MikroTik procedure as in https://openwrt.org/toh/mikrotik/common. Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
- Loading branch information
1 parent
19ef3b5
commit 2bd33e8
Showing
7 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
target/linux/ath79/dts/qca9533_mikrotik_routerboard-952ui-5ac2nd.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
#include "qca9533_mikrotik_routerboard-95x.dtsi" | ||
|
||
/ { | ||
compatible = "mikrotik,routerboard-952ui-5ac2nd", "qca,qca9533"; | ||
model = "MikroTik RouterBOARD 952Ui-5ac2nD (hAP ac lite)"; | ||
}; | ||
|
||
&pcie0 { | ||
status = "okay"; | ||
|
||
wifi@0,0 { | ||
compatible = "qcom,ath10k"; | ||
reg = <0 0 0 0 0>; | ||
}; | ||
}; | ||
|
98 changes: 98 additions & 0 deletions
98
target/linux/ath79/dts/qca9533_mikrotik_routerboard-95x.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
#include "qca9533_mikrotik_routerboard-16m.dtsi" | ||
|
||
/ { | ||
aliases { | ||
led-boot = &led_user; | ||
led-failsafe = &led_user; | ||
led-running = &led_user; | ||
led-upgrade = &led_user; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
led_user: user { | ||
label = "green:user"; | ||
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
port1 { | ||
label = "green:port1"; | ||
gpios = <&gpio_ext 0 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
port2 { | ||
label = "green:port2"; | ||
gpios = <&gpio_ext 1 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
port3 { | ||
label = "green:port3"; | ||
gpios = <&gpio_ext 2 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
port4 { | ||
label = "green:port4"; | ||
gpios = <&gpio_ext 3 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
port5 { | ||
label = "green:port5"; | ||
gpios = <&gpio_ext 4 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
}; | ||
|
||
gpio-export { | ||
compatible = "gpio-export"; | ||
|
||
usb_power { | ||
gpio-export,name = "usb-power"; | ||
gpio-export,output = <1>; | ||
gpios = <&gpio_ext 5 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
enable_poe_port5 { | ||
gpio-export,name = "enable-poe:port5"; | ||
gpio-export,output = <0>; | ||
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
}; | ||
|
||
&spi { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pin_spi_cs1>; | ||
|
||
gpio_ext: gpio_ext@1 { | ||
compatible = "fairchild,74hc595"; | ||
reg = <1>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
registers-number = <1>; | ||
spi-max-frequency = <25000000>; | ||
}; | ||
}; | ||
|
||
|
||
&pinmux { | ||
pin_spi_cs1: pinmux_spi_cs1 { | ||
pinctrl-single,bits = <0x8 0x0a000000 0xff000000>; | ||
}; | ||
}; | ||
|
||
ð0 { | ||
status = "okay"; | ||
|
||
phy-handle = <&swphy4>; | ||
}; | ||
|
||
&usb0 { | ||
status = "okay"; | ||
}; | ||
|
||
&usb_phy { | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters