2019-09-19 19:33:59 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "mt7621.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "edimax,rg21s", "mediatek,mt7621-soc";
|
|
|
|
model = "Edimax RG21S";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2019-12-17 12:43:25 +00:00
|
|
|
label-mac-device = ðernet;
|
2019-09-19 19:33:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,57600";
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
|
2019-11-16 21:37:51 +00:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
2019-09-19 19:33:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led_power: led_1 {
|
|
|
|
label = "rg21s:red:led1";
|
|
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
led_2 {
|
|
|
|
label = "rg21s:red:led2";
|
|
|
|
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
led_3 {
|
|
|
|
label = "rg21s:red:led3";
|
|
|
|
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
led_4 {
|
|
|
|
label = "rg21s:red:led4";
|
|
|
|
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
2019-12-16 12:57:44 +00:00
|
|
|
spi-max-frequency = <40000000>;
|
2019-09-19 19:33:59 +00:00
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x30000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@30000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x30000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
factory: partition@40000 {
|
|
|
|
label = "factory";
|
|
|
|
reg = <0x40000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@50000 {
|
|
|
|
compatible = "denx,uimage";
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0xfb0000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie0 {
|
|
|
|
wifi0: wifi@0,0 {
|
2019-12-19 18:03:44 +00:00
|
|
|
compatible = "mediatek,mt76";
|
2019-09-19 19:33:59 +00:00
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x0000>;
|
|
|
|
ieee80211-freq-limit = <2400000 2500000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie1 {
|
|
|
|
wifi1: wifi@0,0 {
|
2019-12-19 18:03:44 +00:00
|
|
|
compatible = "mediatek,mt76";
|
2019-09-19 19:33:59 +00:00
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x8000>;
|
|
|
|
ieee80211-freq-limit = <5000000 6000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
2019-12-17 12:43:25 +00:00
|
|
|
mtd-mac-address = <&factory 0x4>;
|
|
|
|
|
2019-09-19 19:33:59 +00:00
|
|
|
mediatek,portmap = "wllll";
|
|
|
|
port@5 {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-19 18:03:44 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "uart3", "uart2", "jtag", "wdt";
|
|
|
|
ralink,function = "gpio";
|
2019-09-19 19:33:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&xhci {
|
|
|
|
status = "disabled";
|
|
|
|
};
|