forked from Openwrt/openwrt
8486c677b8
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. Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
105 lines
1.6 KiB
Plaintext
105 lines
1.6 KiB
Plaintext
// 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>;
|
|
};
|
|
};
|
|
|
|
&wmac {
|
|
status = "okay";
|
|
|
|
qca,no-eeprom;
|
|
};
|
|
|
|
ð0 {
|
|
status = "okay";
|
|
|
|
phy-handle = <&swphy4>;
|
|
};
|
|
|
|
&usb0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_phy {
|
|
status = "okay";
|
|
};
|