forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
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 750 r2 (hEX lite)
This patch adds support for the MikroTik RouterBOARD 750 r2, marketed as hEX lite, a small indoor router with 5x 10/100 Mbps Ethernet ports, one with PoE in. The device was already supported by the ar71xx target. Specifications: - SoC: Qualcomm Atheros QCA9533 - Flash: 16 MB SPI NOR - RAM: 64 MB - Ethernet: 4x 10/100 Mbps LAN, 1x 10/100 Mbps WAN (PoE in) - LEDs: 5x Ethernet port activity (green), 1x user (green) - Buttons: 1x reset See https://mikrotik.com/product/RB750r2 for more details. Not working: - Serial port (already not working in ar71xx) Flashing: TFTP boot initramfs image and then perform sysupgrade. Only the "Internet" port will ask for an initramfs image. Follow common MikroTik procedure as in https://openwrt.org/toh/mikrotik/common. (cherry picked from commit 8486c67) Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net> Link: openwrt#13477 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
- Loading branch information
1 parent
088bb1e
commit c46b689
Showing
11 changed files
with
129 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -75,9 +75,3 @@ | |
}; | ||
}; | ||
}; | ||
|
||
&wmac { | ||
status = "okay"; | ||
|
||
qca,no-eeprom; | ||
}; |
78 changes: 78 additions & 0 deletions
78
target/linux/ath79/dts/qca9533_mikrotik_routerboard-750-r2.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,78 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
#include "qca9533_mikrotik_routerboard-16m.dtsi" | ||
|
||
/ { | ||
compatible = "mikrotik,routerboard-750-r2", "qca,qca9533"; | ||
model = "MikroTik RouterBOARD 750 r2 (hEX lite)"; | ||
|
||
aliases { | ||
led-boot = &led_usr; | ||
led-failsafe = &led_usr; | ||
led-upgrade = &led_usr; | ||
led-running = &led_usr; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
pinctrl-names = "default"; | ||
|
||
led_usr: usr { | ||
label = "green:usr"; | ||
gpios = <&gpio 4 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led1 { | ||
label = "green:port1"; | ||
gpios = <&ssr 0 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led2 { | ||
label = "green:port2"; | ||
gpios = <&ssr 1 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led3 { | ||
label = "green:port3"; | ||
gpios = <&ssr 2 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led4 { | ||
label = "green:port4"; | ||
gpios = <&ssr 3 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led5 { | ||
label = "green:port5"; | ||
gpios = <&ssr 4 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pinmux { | ||
pmx_spi_cs1: pinmux_spi_cs1 { | ||
pinctrl-single,bits = <0x8 0x0a000000 0xff000000>; | ||
}; | ||
}; | ||
|
||
&spi { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pmx_spi_cs1>; | ||
|
||
cs-gpios = <0>, <&gpio 11 GPIO_ACTIVE_LOW>; | ||
|
||
ssr: ssr@1 { | ||
compatible = "fairchild,74hc595"; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
registers-number = <1>; | ||
reg = <1>; | ||
spi-max-frequency = <10000000>; | ||
}; | ||
}; | ||
|
||
ð0 { | ||
status = "okay"; | ||
|
||
phy-handle = <&swphy4>; | ||
}; |
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 |
---|---|---|
|
@@ -83,6 +83,12 @@ | |
}; | ||
}; | ||
|
||
&wmac { | ||
status = "okay"; | ||
|
||
qca,no-eeprom; | ||
}; | ||
|
||
ð0 { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,12 @@ | |
}; | ||
}; | ||
|
||
&wmac { | ||
status = "okay"; | ||
|
||
qca,no-eeprom; | ||
}; | ||
|
||
ð0 { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,12 @@ | |
}; | ||
}; | ||
|
||
&wmac { | ||
status = "okay"; | ||
|
||
qca,no-eeprom; | ||
}; | ||
|
||
ð0 { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,12 @@ | |
}; | ||
}; | ||
|
||
&wmac { | ||
status = "okay"; | ||
|
||
qca,no-eeprom; | ||
}; | ||
|
||
ð0 { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,12 @@ | |
}; | ||
}; | ||
|
||
&wmac { | ||
status = "okay"; | ||
|
||
qca,no-eeprom; | ||
}; | ||
|
||
ð0 { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,12 @@ | |
}; | ||
}; | ||
|
||
&wmac { | ||
status = "okay"; | ||
|
||
qca,no-eeprom; | ||
}; | ||
|
||
ð0 { | ||
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