ramips: sync official source code

This commit is contained in:
AmadeusGhost 2020-09-12 15:01:12 +08:00
parent bbed7ed187
commit a061a24d75
135 changed files with 4652 additions and 1332 deletions

View File

@ -0,0 +1,124 @@
//SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
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;
};
factory5g: partition@50000 {
label = "factory5g";
reg = <0x50000 0x10000>;
read-only;
};
partition@60000 {
label = "Wolf_Config";
reg = <0x60000 0x10000>;
read-only;
};
partition@70000 {
label = "MyDlink";
reg = <0x70000 0x80000>;
read-only;
};
partition@f0000 {
label = "Jffs2";
reg = <0xf0000 0x80000>;
read-only;
};
partition@170000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x170000 0x690000>;
};
};
};
};
&ethernet {
mtd-mac-address = <&factory 0x28>;
mediatek,portmap = "llllw";
};
&gsw {
mediatek,port4 = "ephy";
};
&gpio2 {
status = "okay";
};
&wmac {
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
ralink,mtd-eeprom = <&factory 0x0>;
mtd-mac-address = <&factory 0x28>;
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&factory 0x28>;
mtd-mac-address-increment = <2>;
};
};

View File

@ -1,9 +1,6 @@
/dts-v1/;
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "mt7620a_cameo_810.dtsi"
/ {
compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
@ -17,22 +14,6 @@
label-mac-device = &ethernet;
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
leds {
compatible = "gpio-leds";
@ -41,11 +22,16 @@
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
};
wan {
wan_orange {
label = "dir-810l:orange:wan";
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
wan_green {
label = "dir-810l:green:wan";
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
};
power_orange {
label = "dir-810l:orange:power";
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
@ -53,108 +39,9 @@
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
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;
};
factory5g: partition@50000 {
label = "factory5g";
reg = <0x50000 0x10000>;
read-only;
};
partition@60000 {
label = "Wolf_Config";
reg = <0x60000 0x10000>;
read-only;
};
partition@70000 {
label = "MyDlink";
reg = <0x70000 0x80000>;
read-only;
};
partition@f0000 {
label = "Jffs2";
reg = <0xf0000 0x80000>;
read-only;
};
partition@170000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x170000 0x690000>;
};
};
};
};
&state_default {
gpio {
groups = "i2c", "uartf";
groups = "i2c", "uartf", "ephy";
function = "gpio";
};
};
&ethernet {
mtd-mac-address = <&factory 0x28>;
mediatek,portmap = "llllw";
};
&gsw {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mediatek,port4 = "ephy";
};
&pcie {
status = "okay";
};
&wmac {
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
ralink,mtd-eeprom = <&factory 0x0>;
mtd-mac-address = <&factory 0x28>;
};
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&factory 0x28>;
mtd-mac-address-increment = <2>;
};
};

View File

@ -2,15 +2,15 @@
/dts-v1/;
#include "mt7620a_netgear_ex3700_ex6130.dtsi"
#include "mt7620a_netgear_ex3x00_ex61xx.dtsi"
/ {
compatible = "netgear,ex3700", "ralink,mt7620a-soc";
model = "Netgear EX3700/EX3800";
aliases {
led-boot = &led_power_green;
led-failsafe = &led_power_green;
led-boot = &led_power_amber;
led-failsafe = &led_power_amber;
led-running = &led_power_green;
led-upgrade = &led_power_green;
};
@ -18,33 +18,33 @@
leds {
compatible = "gpio-leds";
led_power_green: power_g {
led_power_green: power_green {
label = "ex3700:green:power";
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
default-state = "on";
};
power_a {
led_power_amber: power_amber {
label = "ex3700:amber:power";
gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
};
router_g {
router_green {
label = "ex3700:green:router";
gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
};
router_r {
router_red {
label = "ex3700:red:router";
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
};
device_g {
device_green {
label = "ex3700:green:device";
gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
};
device_r {
device_red {
label = "ex3700:red:device";
gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
};

View File

@ -4,10 +4,6 @@
#include "mt7620a.dtsi"
/ {
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -0,0 +1,56 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7620a_netgear_ex3x00_ex61xx.dtsi"
/ {
compatible = "netgear,ex6120", "ralink,mt7620a-soc";
model = "Netgear EX6120";
aliases {
led-boot = &led_power_amber;
led-failsafe = &led_power_amber;
led-running = &led_power_green;
led-upgrade = &led_power_green;
};
leds {
compatible = "gpio-leds";
led_power_green: power_green {
label = "ex6120:green:power";
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
default-state = "on";
};
led_power_amber: power_amber {
label = "ex6120:amber:power";
gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
};
router_green {
label = "ex6120:green:router";
gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
};
router_red {
label = "ex6120:red:router";
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
};
device_green {
label = "ex6120:green:device";
gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
};
device_red {
label = "ex6120:red:device";
gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
};
wps {
label = "ex6120:green:wps";
gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
};
};
};

View File

@ -2,15 +2,15 @@
/dts-v1/;
#include "mt7620a_netgear_ex3700_ex6130.dtsi"
#include "mt7620a_netgear_ex3x00_ex61xx.dtsi"
/ {
compatible = "netgear,ex6130", "ralink,mt7620a-soc";
model = "Netgear EX6130";
aliases {
led-boot = &led_power_green;
led-failsafe = &led_power_green;
led-boot = &led_power_amber;
led-failsafe = &led_power_amber;
led-running = &led_power_green;
led-upgrade = &led_power_green;
label-mac-device = &ethernet;
@ -19,33 +19,33 @@
leds {
compatible = "gpio-leds";
led_power_green: power_g {
led_power_green: power_green {
label = "ex6130:green:power";
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
default-state = "on";
};
power_a {
led_power_amber: power_amber {
label = "ex6130:amber:power";
gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
};
router_g {
router_green {
label = "ex6130:green:router";
gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
};
router_r {
router_red {
label = "ex6130:red:router";
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
};
device_g {
device_green {
label = "ex6130:green:device";
gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
};
device_r {
device_red {
label = "ex6130:red:device";
gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
};

View File

@ -0,0 +1,48 @@
//SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7620a_cameo_810.dtsi"
/ {
compatible = "trendnet,tew-810dr", "ralink,mt7620a-soc";
model = "TRENDnet TEW-810DR";
aliases {
led-boot = &led_power_green;
led-failsafe = &led_power_green;
led-running = &led_power_green;
led-upgrade = &led_power_green;
label-mac-device = &ethernet;
};
leds {
compatible = "gpio-leds";
led_power_green: power_green {
label = "tew-810dr:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
};
wan_orange {
label = "tew-810dr:orange:wan";
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
wan_green {
label = "tew-810dr:green:wan";
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
};
power_orange {
label = "tew-810dr:orange:power";
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
};
};
};
&state_default {
gpio {
groups = "i2c", "uartf", "ephy";
function = "gpio";
};
};

View File

@ -0,0 +1,32 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7620n_sunvalley_filehub.dtsi"
/ {
compatible = "hootoo,ht-tm05", "ralink,mt7620n-soc";
model = "HooToo HT-TM05";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
led_power: power {
label = "ht-tm05:blue:power";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wifi {
label = "ht-tm05:green:wifi";
gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
};
};

View File

@ -0,0 +1,57 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7620n_netgear_n300.dtsi"
/ {
compatible = "netgear,jwnr2010-v5", "ralink,mt7620n-soc";
model = "Netgear JWNR2010 v5";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &ethernet;
};
leds {
compatible = "gpio-leds";
led_power: power {
label = "jwnr2010-v5:green:power";
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
};
wan {
label = "jwnr2010-v5:green:wan";
gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
};
wlan {
label = "jwnr2010-v5:green:wlan";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0radio";
};
lan1 {
label = "jwnr2010-v5:green:lan1";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "jwnr2010-v5:green:lan2";
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "jwnr2010-v5:green:lan3";
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
};
lan4 {
label = "jwnr2010-v5:green:lan4";
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
};
};
};

View File

@ -0,0 +1,83 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&gpio2 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <30000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x20000>;
read-only;
};
partition@20000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x20000 0x3c0000>;
};
partition@3e0000 {
label = "nvram";
reg = <0x3e0000 0x10000>;
read-only;
};
factory: partition@3f0000 {
label = "factory";
reg = <0x3f0000 0x10000>;
read-only;
};
};
};
};
&ethernet {
mtd-mac-address = <&factory 0x4>;
mediatek,portmap = "llllw";
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&state_default {
default {
groups = "pa", "ephy", "wled";
function = "gpio";
};
};

View File

@ -0,0 +1,29 @@
/dts-v1/;
#include "mt7620n_sunvalley_filehub.dtsi"
/ {
compatible = "ravpower,rp-wd03", "ralink,mt7620n-soc";
model = "RAVPower RP-WD03";
aliases {
led-boot = &led_wifi_blue;
led-failsafe = &led_wifi_blue;
led-running = &led_wifi_blue;
led-upgrade = &led_wifi_blue;
};
leds {
compatible = "gpio-leds";
wifi_green {
label = "rp-wd03:green:wifi";
gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
};
led_wifi_blue: wifi_blue {
label = "rp-wd03:blue:wifi";
gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
};
};
};

View File

@ -0,0 +1,136 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
aliases {
label-mac-device = &ethernet;
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
virtual_flash {
compatible = "mtd-concat";
devices = <&firmware1 &firmware2 &firmware3>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
compatible = "openwrt,okli";
label = "firmware";
reg = <0x0 0x0>;
};
};
};
};
&gpio2 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&i2c {
status = "okay";
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "config";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
label = "loader";
reg = <0x50000 0x10000>;
read-only;
};
firmware2: partition@60000 {
label = "firmware2";
reg = <0x60000 0x170000>;
};
partition@1d0000 {
label = "u-boot-env";
reg = <0x1d0000 0x10000>;
};
firmware3: partition@1e0000 {
label = "firmware3";
reg = <0x1e0000 0x20000>;
};
firmware1: partition@200000 {
label = "firmware1";
reg = <0x200000 0x600000>;
};
};
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
&ethernet {
mtd-mac-address = <&factory 0x28>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&state_default {
gpio {
groups = "wled", "ephy";
function = "gpio";
};
};

View File

@ -50,6 +50,10 @@
serial0 = &uartlite;
};
chosen {
bootargs = "console=ttyS0,57600";
};
pll: pll {
compatible = "mediatek,mt7621-pll", "syscon";

View File

@ -18,10 +18,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -16,10 +16,6 @@
led-upgrade = &led_run;
};
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -6,10 +6,6 @@
#include <dt-bindings/input/input.h>
/ {
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -17,10 +17,6 @@
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -6,4 +6,32 @@
/ {
compatible = "asus,rt-ac65p", "mediatek,mt7621-soc";
model = "ASUS RT-AC65P";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
led_power: power {
label = "rt-ac65p:blue:power";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
wlan5g {
label = "rt-ac65p:blue:wlan5g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1radio";
};
wlan2g {
label = "rt-ac65p:blue:wlan2g";
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0radio";
};
};
};

View File

@ -6,4 +6,32 @@
/ {
compatible = "asus,rt-ac85p", "mediatek,mt7621-soc";
model = "ASUS RT-AC85P";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
led_power: power {
label = "rt-ac85p:blue:power";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
wlan5g {
label = "rt-ac85p:blue:wlan5g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1radio";
};
wlan2g {
label = "rt-ac85p:blue:wlan2g";
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0radio";
};
};
};

View File

@ -6,17 +6,6 @@
#include <dt-bindings/input/input.h>
/ {
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";
@ -32,26 +21,6 @@
linux,code = <KEY_WPS_BUTTON>;
};
};
leds {
compatible = "gpio-leds";
led_power: power {
label = "rt-ac85p:blue:power";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
wlan2g {
label = "rt-ac85p:blue:wlan2g";
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0radio";
};
wlan5g {
label = "rt-ac85p:blue:wlan5g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1radio";
};
};
};
&i2c {

View File

@ -16,10 +16,6 @@
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -18,10 +18,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -16,10 +16,6 @@
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -0,0 +1,57 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7621_dlink_dir-xx60-a1.dtsi"
/ {
compatible = "dlink,dir-1960-a1", "mediatek,mt7621-soc";
model = "D-Link DIR-1960 A1";
aliases {
led-boot = &led_power_orange;
led-failsafe = &led_power_white;
led-running = &led_power_white;
led-upgrade = &led_net_orange;
};
leds {
compatible = "gpio-leds";
led_power_orange: power_orange {
label = "dir-1960-a1:orange:power";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_power_white: power_white {
label = "dir-1960-a1:white:power";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
led_net_orange: net_orange {
label = "dir-1960-a1:orange:net";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
net_white {
label = "dir-1960-a1:white:net";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
usb_white {
label = "dir-1960-a1:white:usb";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
trigger-sources = <&xhci_ehci_port1>;
linux,default-trigger = "usbport";
};
};
};
&wifi0 {
mtd-mac-address = <&factory 0xe000>;
mtd-mac-address-increment = <1>;
};
&wifi1 {
mtd-mac-address = <&factory 0xe000>;
mtd-mac-address-increment = <2>;
};

View File

@ -0,0 +1,64 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7621_dlink_dir-xx60-a1.dtsi"
/ {
compatible = "dlink,dir-2660-a1", "mediatek,mt7621-soc";
model = "D-Link DIR-2660 A1";
aliases {
led-boot = &led_power_orange;
led-failsafe = &led_power_white;
led-running = &led_power_white;
led-upgrade = &led_net_orange;
};
leds {
compatible = "gpio-leds";
led_power_orange: power_orange {
label = "dir-2660-a1:orange:power";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_power_white: power_white {
label = "dir-2660-a1:white:power";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
led_net_orange: net_orange {
label = "dir-2660-a1:orange:net";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
net_white {
label = "dir-2660-a1:white:net";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
usb2_white {
label = "dir-2660-a1:white:usb2";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
trigger-sources = <&ehci_port2>;
linux,default-trigger = "usbport";
};
usb3_white {
label = "dir-2660-a1:white:usb3";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
trigger-sources = <&xhci_ehci_port1>;
linux,default-trigger = "usbport";
};
};
};
&wifi0 {
mtd-mac-address = <&factory 0xe000>;
mtd-mac-address-increment = <1>;
};
&wifi1 {
mtd-mac-address = <&factory 0xe000>;
mtd-mac-address-increment = <2>;
};

View File

@ -17,10 +17,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -36,7 +36,8 @@
label = "dir-882-a1:green:net";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
usb2 {
usb2 {
label = "dir-882-a1:green:usb2";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
trigger-sources = <&ehci_port2>;

View File

@ -10,10 +10,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -0,0 +1,163 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
aliases {
label-mac-device = &gmac0;
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
};
&nand {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "Bootloader";
reg = <0x0 0x80000>;
read-only;
};
partition@80000 {
label = "config";
reg = <0x80000 0x80000>;
read-only;
};
factory: partition@100000 {
label = "factory";
reg = <0x100000 0x40000>;
read-only;
};
partition@140000 {
label = "config2";
reg = <0x140000 0x40000>;
read-only;
};
partition@180000 {
label = "firmware";
compatible = "sge,uimage";
reg = <0x180000 0x2800000>;
};
partition@2980000 {
label = "private";
reg = <0x2980000 0x2000000>;
read-only;
};
partition@4980000 {
label = "firmware2";
compatible = "sge,uimage";
reg = <0x4980000 0x2800000>;
};
partition@7180000 {
label = "mydlink";
reg = <0x7180000 0x600000>;
read-only;
};
partition@7780000 {
label = "reserved";
reg = <0x7780000 0x880000>;
read-only;
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
wifi0: wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>;
led {
led-active-low;
};
};
};
&pcie1 {
wifi1: wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
led {
led-active-low;
};
};
};
&gmac0 {
mtd-mac-address = <&factory 0xe000>;
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
port@1 {
status = "okay";
label = "lan3";
};
port@2 {
status = "okay";
label = "lan2";
};
port@3 {
status = "okay";
label = "lan1";
};
port@4 {
status = "okay";
label = "wan";
mtd-mac-address = <&factory 0xe006>;
};
};
};
&state_default {
gpio {
groups = "i2c", "uart3", "jtag", "wdt";
function = "gpio";
};
};

View File

@ -0,0 +1,159 @@
// 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,re23s", "mediatek,mt7621-soc";
model = "Edimax RE23S";
aliases {
led-boot = &led_power;
led-failsafe = &led_wifi_red;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &gmac0;
};
leds {
compatible = "gpio-leds";
led_power: power {
label = "re23s:green:power";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
wifi_green {
label = "re23s:green:wifi";
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
wifi_amber {
label = "re23s:amber:wifi";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
led_wifi_red: wifi_red {
label = "re23s:red:wifi";
gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
m25p,fast-read;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "config";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
label = "cimage";
reg = <0x50000 0x20000>;
read-only;
};
partition@70000 {
compatible = "edimax,uimage";
label = "firmware";
reg = <0x70000 0xf50000>;
};
partition@fc0000 {
label = "freespace";
reg = <0xfc0000 0x40000>;
read-only;
};
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
&pcie1 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&gmac0 {
mtd-mac-address = <&factory 0x8004>;
};
&switch0 {
ports {
port@4 {
status = "okay";
label = "lan";
};
};
};
&state_default {
gpio {
groups = "uart3", "uart2", "jtag", "wdt";
function = "gpio";
};
};
&xhci {
status = "disabled";
};

View File

@ -11,10 +11,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -16,10 +16,6 @@
led-upgrade = &led_power_green;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -0,0 +1,41 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7621_elecom_wrc-gs.dtsi"
/ {
compatible = "elecom,wrc-1750gs", "mediatek,mt7621-soc";
model = "ELECOM WRC-1750GS";
};
&partitions {
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0xb00000>;
};
partition@b50000 {
label = "tm_pattern";
reg = <0xb50000 0x380000>;
read-only;
};
partition@ed0000 {
label = "tm_key";
reg = <0xed0000 0x80000>;
read-only;
};
partition@f50000 {
label = "art_block";
reg = <0xf50000 0x30000>;
read-only;
};
partition@f80000 {
label = "user_data";
reg = <0xf80000 0x80000>;
read-only;
};
};

View File

@ -0,0 +1,41 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7621_elecom_wrc-gs.dtsi"
/ {
compatible = "elecom,wrc-1750gsv", "mediatek,mt7621-soc";
model = "ELECOM WRC-1750GSV";
};
&partitions {
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0xb00000>;
};
partition@b50000 {
label = "tm_pattern";
reg = <0xb50000 0x380000>;
read-only;
};
partition@ed0000 {
label = "tm_key";
reg = <0xed0000 0x80000>;
read-only;
};
partition@f50000 {
label = "nvram";
reg = <0xf50000 0x30000>;
read-only;
};
partition@f80000 {
label = "user_data";
reg = <0xf80000 0x80000>;
read-only;
};
};

View File

@ -1,9 +1,41 @@
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include "mt7621_elecom_wrc-gst.dtsi"
#include "mt7621_elecom_wrc-gs.dtsi"
/ {
compatible = "elecom,wrc-1900gst", "mediatek,mt7621-soc";
model = "ELECOM WRC-1900GST";
};
&partitions {
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0xb00000>;
};
partition@b50000 {
label = "tm_pattern";
reg = <0xb50000 0x380000>;
read-only;
};
partition@ed0000 {
label = "tm_key";
reg = <0xed0000 0x80000>;
read-only;
};
partition@f50000 {
label = "art_block";
reg = <0xf50000 0x30000>;
read-only;
};
partition@f80000 {
label = "user_data";
reg = <0xf80000 0x80000>;
read-only;
};
};

View File

@ -1,8 +1,40 @@
/dts-v1/;
#include "mt7621_elecom_wrc-gst.dtsi"
#include "mt7621_elecom_wrc-gs.dtsi"
/ {
compatible = "elecom,wrc-2533gst", "mediatek,mt7621-soc";
model = "ELECOM WRC-2533GST";
};
&partitions {
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0xb00000>;
};
partition@b50000 {
label = "tm_pattern";
reg = <0xb50000 0x380000>;
read-only;
};
partition@ed0000 {
label = "tm_key";
reg = <0xed0000 0x80000>;
read-only;
};
partition@f50000 {
label = "art_block";
reg = <0xf50000 0x30000>;
read-only;
};
partition@f80000 {
label = "user_data";
reg = <0xf80000 0x80000>;
read-only;
};
};

View File

@ -0,0 +1,41 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7621_elecom_wrc-gs.dtsi"
/ {
compatible = "elecom,wrc-2533gst2", "mediatek,mt7621-soc";
model = "ELECOM WRC-2533GST2";
};
&partitions {
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0x1800000>;
};
partition@1850000 {
label = "tm_pattern";
reg = <0x1850000 0x400000>;
read-only;
};
partition@1c50000 {
label = "tm_key";
reg = <0x1c50000 0x100000>;
read-only;
};
partition@1d50000 {
label = "nvram";
reg = <0x1d50000 0xb0000>;
read-only;
};
partition@1e00000 {
label = "user_data";
reg = <0x1e00000 0x200000>;
read-only;
};
};

View File

@ -11,10 +11,7 @@
led-failsafe = &led_power_green;
led-running = &led_power_green;
led-upgrade = &led_power_green;
};
chosen {
bootargs = "console=ttyS0,57600";
label-mac-device = &wan;
};
leds {
@ -92,7 +89,7 @@
&switch0 {
ports {
port@0 {
wan: port@0 {
status = "okay";
label = "wan";
mtd-mac-address = <&factory 0xe006>;
@ -126,9 +123,9 @@
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
spi-max-frequency = <40000000>;
partitions {
partitions: partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
@ -150,36 +147,6 @@
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0xb00000>;
};
partition@b50000 {
label = "tm_pattern";
reg = <0xb50000 0x380000>;
read-only;
};
partition@ed0000 {
label = "tm_key";
reg = <0xed0000 0x80000>;
read-only;
};
partition@f50000 {
label = "art_block";
reg = <0xf50000 0x30000>;
read-only;
};
partition@f80000 {
label = "user_data";
reg = <0xf80000 0x80000>;
read-only;
};
};
};
};
@ -193,7 +160,34 @@
&pcie {
status = "okay";
/* WRC-xxxxGST has MT7615 for 2.4/5 GHz wifi, but it's not supported */
};
&pcie0 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>;
led {
led-sources = <0>;
led-active-low;
};
};
};
&pcie1 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
led {
led-sources = <0>;
led-active-low;
};
};
};
&xhci {

View File

@ -16,10 +16,6 @@
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -14,10 +14,6 @@
label-mac-device = &ethernet;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -16,10 +16,6 @@
led-upgrade = &led_status;
};
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -16,10 +16,6 @@
led-upgrade = &led_status;
};
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -14,10 +14,6 @@
label-mac-device = &wan;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -17,10 +17,6 @@
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -18,10 +18,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -10,10 +10,6 @@
compatible = "iptime,a8004t", "mediatek,mt7621-soc";
model = "ipTIME A8004T";
chosen {
bootargs = "console=ttyS0,57600";
};
aliases {
led-boot = &led_cpu;
led-failsafe = &led_cpu;

View File

@ -18,10 +18,6 @@
label-mac-device = &wan;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -0,0 +1,55 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7621_linksys_ea7xxx.dtsi"
/ {
compatible = "linksys,ea7300-v1", "mediatek,mt7621-soc";
model = "Linksys EA7300 v1";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
wan_green {
label = "ea7300-v1:green:wan";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
lan1_green {
label = "ea7300-v1:green:lan1";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
lan2_green {
label = "ea7300-v1:green:lan2";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
lan3_green {
label = "ea7300-v1:green:lan3";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
lan4_green {
label = "ea7300-v1:green:lan4";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "ea7300-v1:white:power";
gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
};
wps {
label = "ea7300-v1:green:wps";
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};
};
};

View File

@ -1,10 +1,7 @@
// 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>
#include "mt7621_linksys_ea7xxx.dtsi"
/ {
compatible = "linksys,ea7500-v2", "mediatek,mt7621-soc";
@ -17,10 +14,6 @@
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
@ -59,149 +52,4 @@
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};
};
keys {
compatible = "gpio-keys";
wps {
label = "wps";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&nand {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "boot";
reg = <0x0 0x80000>;
read-only;
};
partition@80000 {
label = "u_env";
reg = <0x80000 0x40000>;
read-only;
};
factory: partition@c0000 {
label = "factory";
reg = <0xc0000 0x40000>;
read-only;
};
partition@100000 {
label = "s_env";
reg = <0x100000 0x40000>;
};
partition@140000 {
label = "devinfo";
reg = <0x140000 0x40000>;
read-only;
};
partition@180000 {
label = "kernel";
reg = <0x180000 0x400000>;
};
partition@580000 {
label = "ubi";
reg = <0x580000 0x2400000>;
};
partition@2980000 {
label = "alt_kernel";
reg = <0x2980000 0x400000>;
read-only;
};
partition@2d80000 {
label = "alt_rootfs";
reg = <0x2d80000 0x2400000>;
read-only;
};
partition@5180000 {
label = "sysdiag";
reg = <0x5180000 0x100000>;
read-only;
};
partition@5280000 {
label = "syscfg";
reg = <0x5280000 0x2d00000>;
read-only;
};
};
};
&state_default {
gpio {
groups = "i2c", "uart2", "uart3", "jtag", "wdt";
function = "gpio";
};
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
};
};
&pcie1 {
mt76@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 {
status = "okay";
label = "lan1";
};
port@2 {
status = "okay";
label = "lan2";
};
port@3 {
status = "okay";
label = "lan3";
};
port@4 {
status = "okay";
label = "lan4";
};
};
};

View File

@ -0,0 +1,157 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
chosen {
bootargs = "console=ttyS0,115200";
};
keys {
compatible = "gpio-keys";
wps {
label = "wps";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&nand {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "boot";
reg = <0x0 0x80000>;
read-only;
};
partition@80000 {
label = "u_env";
reg = <0x80000 0x40000>;
read-only;
};
factory: partition@c0000 {
label = "factory";
reg = <0xc0000 0x40000>;
read-only;
};
partition@100000 {
label = "s_env";
reg = <0x100000 0x40000>;
};
partition@140000 {
label = "devinfo";
reg = <0x140000 0x40000>;
read-only;
};
partition@180000 {
label = "kernel";
reg = <0x180000 0x400000>;
};
partition@580000 {
label = "ubi";
reg = <0x580000 0x2400000>;
};
partition@2980000 {
label = "alt_kernel";
reg = <0x2980000 0x400000>;
read-only;
};
partition@2d80000 {
label = "alt_rootfs";
reg = <0x2d80000 0x2400000>;
read-only;
};
partition@5180000 {
label = "sysdiag";
reg = <0x5180000 0x100000>;
read-only;
};
partition@5280000 {
label = "syscfg";
reg = <0x5280000 0x2d00000>;
read-only;
};
};
};
&state_default {
gpio {
groups = "i2c", "uart2", "uart3", "jtag", "wdt";
function = "gpio";
};
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
};
};
&pcie1 {
mt76@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 {
status = "okay";
label = "lan1";
};
port@2 {
status = "okay";
label = "lan2";
};
port@3 {
status = "okay";
label = "lan3";
};
port@4 {
status = "okay";
label = "lan4";
};
};
};

View File

@ -16,10 +16,6 @@
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -6,10 +6,6 @@
compatible = "mediatek,ap-mt7621a-v60", "mediatek,mt7621-soc";
model = "Mediatek AP-MT7621A-V60 EVB";
chosen {
bootargs = "console=ttyS0,57600";
};
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "Audio-I2S";

View File

@ -5,10 +5,6 @@
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "Mediatek MT7621 evaluation board";
chosen {
bootargs = "console=ttyS0,57600";
};
};
&nand {

View File

@ -0,0 +1,72 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
/ {
chosen {
bootargs = "console=ttyS0,115200";
};
keys: keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <33000000>;
partitions: partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "RouterBoot";
reg = <0x0 0x40000>;
read-only;
compatible = "mikrotik,routerboot-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader1";
reg = <0x0 0x0>;
read-only;
};
hard_config {
read-only;
};
partition@10000 {
label = "bootloader2";
reg = <0x10000 0xf000>;
read-only;
};
soft_config {
};
partition@30000 {
label = "bios";
reg = <0x30000 0x1000>;
read-only;
};
};
};
};
};

View File

@ -1,10 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7621.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include "mt7621_mikrotik_routerboard-7xx.dtsi"
/ {
compatible = "mikrotik,routerboard-750gr3", "mediatek,mt7621-soc";
@ -17,10 +14,6 @@
led-upgrade = &led_usr;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
@ -35,135 +28,11 @@
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
};
keys {
compatible = "gpio-keys";
mode {
label = "mode";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
};
reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
gpio_export {
compatible = "gpio-export";
#size-cells = <0>;
buzzer {
/* Beeper requires PWM for frequency selection */
gpio-export,name = "buzzer";
gpio-export,output = <0>;
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
usb_power {
gpio-export,name = "usb_power";
gpio-export,output = <1>;
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <20000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "RouterBoot";
reg = <0x0 0x40000>;
read-only;
compatible = "mikrotik,routerboot-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader1";
reg = <0x0 0x0>;
read-only;
};
hard_config: hard_config {
read-only;
};
partition@10000 {
label = "bootloader2";
reg = <0x10000 0xf000>;
read-only;
};
soft_config {
};
partition@30000 {
label = "bios";
reg = <0x30000 0x1000>;
read-only;
};
};
partition@40000 {
compatible = "mikrotik,minor";
label = "firmware";
reg = <0x040000 0xfc0000>;
};
};
};
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 {
status = "okay";
label = "lan2";
};
port@2 {
status = "okay";
label = "lan3";
};
port@3 {
status = "okay";
label = "lan4";
};
port@4 {
status = "okay";
label = "lan5";
};
};
};
&state_default {
gpio {
/* via gpio7 (uart3 group) the PoE status can be read */
groups = "uart2", "uart3", "jtag", "wdt";
groups = "uart2", "jtag", "wdt";
function = "gpio";
};
};
&sdhci {
status = "okay";
};

View File

@ -0,0 +1,69 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7621_mikrotik_routerboard-7xx.dtsi"
/ {
compatible = "mikrotik,routerboard-760igs", "mediatek,mt7621-soc";
model = "MikroTik RouterBOARD 760iGS";
aliases {
led-boot = &led_pwr;
led-failsafe = &led_pwr;
led-running = &led_pwr;
led-upgrade = &led_pwr;
};
leds {
compatible = "gpio-leds";
led_pwr: pwr {
label = "routerboard-760igs:blue:pwr";
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
sfp {
label = "routerboard-760igs:blue:sfp";
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
};
};
sfp1: sfp1 {
compatible = "sff,sfp";
i2c-bus = <&i2c>;
los-gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
mod-def0-gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
tx-disable-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <1000>;
};
};
&mdio {
ephy7: ethernet-phy@7 {
reg = <7>;
sfp = <&sfp1>;
};
};
&gmac1 {
status = "okay";
label = "sfp";
phy-handle = <&ephy7>;
};
&i2c {
status = "okay";
};
&state_default {
gpio {
/* gpio7 (uart3 group) goes high when
* port5 (PoE out) is cabled to a
* Mikrotik PoE-in capable port,
* such as port1 on another rb760iGS */
groups = "uart2", "uart3", "jtag", "wdt";
function = "gpio";
};
};

View File

@ -0,0 +1,72 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621_mikrotik.dtsi"
/ {
gpio_export {
compatible = "gpio-export";
#size-cells = <0>;
buzzer {
/* Beeper requires PWM for frequency selection */
gpio-export,name = "buzzer";
gpio-export,output = <0>;
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
usb_power {
gpio-export,name = "usb_power";
gpio-export,output = <1>;
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
};
};
&keys {
mode {
label = "mode";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
};
};
&partitions {
partition@40000 {
compatible = "mikrotik,minor";
label = "firmware";
reg = <0x040000 0xfc0000>;
};
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 {
status = "okay";
label = "lan2";
};
port@2 {
status = "okay";
label = "lan3";
};
port@3 {
status = "okay";
label = "lan4";
};
port@4 {
status = "okay";
label = "lan5";
};
};
};
&sdhci {
status = "okay";
};

View File

@ -1,9 +1,6 @@
/dts-v1/;
#include "mt7621.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include "mt7621_mikrotik.dtsi"
/ {
compatible = "mikrotik,routerboard-m11g", "mediatek,mt7621-soc";
@ -16,10 +13,6 @@
led-upgrade = &led_usr;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
@ -54,16 +47,6 @@
};
};
keys {
compatible = "gpio-keys";
res {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
pcie0_vcc_reg {
compatible = "regulator-fixed";
regulator-name = "pcie0_vcc";
@ -77,59 +60,11 @@
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <33000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "RouterBoot";
reg = <0x0 0x40000>;
read-only;
compatible = "mikrotik,routerboot-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader1";
reg = <0x0 0x0>;
read-only;
};
hard_config: hard_config {
read-only;
};
partition@10000 {
label = "bootloader2";
reg = <0x10000 0xf000>;
read-only;
};
soft_config {
};
partition@30000 {
label = "bios";
reg = <0x30000 0x1000>;
read-only;
};
};
partition@40000 {
compatible = "mikrotik,minor";
label = "firmware";
reg = <0x040000 0xFC0000>;
};
};
&partitions {
partition@40000 {
compatible = "mikrotik,minor";
label = "firmware";
reg = <0x040000 0xfc0000>;
};
};

View File

@ -1,9 +1,6 @@
/dts-v1/;
#include "mt7621.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include "mt7621_mikrotik.dtsi"
/ {
compatible = "mikrotik,routerboard-m33g", "mediatek,mt7621-soc";
@ -16,10 +13,6 @@
led-upgrade = &led_usr;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
@ -29,16 +22,6 @@
};
};
keys {
compatible = "gpio-keys";
res {
label = "res";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
pcie0_vcc_reg {
compatible = "regulator-fixed";
regulator-name = "pcie0_vcc";
@ -88,54 +71,6 @@
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <33000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "RouterBoot";
reg = <0x0 0x40000>;
read-only;
compatible = "mikrotik,routerboot-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader1";
reg = <0x0 0x0>;
read-only;
};
hard_config: hard_config {
read-only;
};
partition@10000 {
label = "bootloader2";
reg = <0x10000 0xf000>;
read-only;
};
soft_config {
};
partition@30000 {
label = "bios";
reg = <0x30000 0x1000>;
read-only;
};
};
};
};
flash@1 {
compatible = "jedec,spi-nor";
reg = <1>;
@ -151,7 +86,7 @@
partition@40000 {
compatible = "mikrotik,minor";
label = "firmware";
reg = <0x040000 0xFC0000>;
reg = <0x040000 0xfc0000>;
};
};
};

View File

@ -9,10 +9,6 @@
compatible = "mqmaker,witi", "mediatek,mt7621-soc";
model = "MQmaker WiTi";
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -17,10 +17,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -17,10 +17,6 @@
led-upgrade = &power_amber;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -16,10 +16,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -12,10 +12,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -16,10 +16,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -0,0 +1,167 @@
// SPDX-License-Identifier: GPL-2.0 or MIT
/dts-v1/;
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "netgear,wac104", "mediatek,mt7621-soc";
model = "Netgear WAC104";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &gmac0;
};
keys {
compatible = "gpio-keys";
wps {
label = "wps";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
wifi {
label = "wifi";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
};
reset {
label = "reset";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
leds {
compatible = "gpio-leds";
wps {
label = "wac104:green:wps";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "wac104:green:power";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
wifi {
label = "wac104:green:wifi";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
};
&gmac0 {
mtd-mac-address = <&factory 0x4>;
};
&nand {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x100000>;
read-only;
};
partition@100000 {
label = "SC PID";
reg = <0x100000 0x100000>;
read-only;
};
partition@200000 {
label = "kernel";
reg = <0x200000 0x400000>;
};
partition@600000 {
label = "ubi";
reg = <0x600000 0x1c00000>;
};
factory: partition@2e00000 {
label = "factory";
reg = <0x2e00000 0x100000>;
read-only;
};
partition@4200000 {
label = "reserved";
reg = <0x4200000 0x3c00000>;
read-only;
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&pcie1 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
&state_default {
gpio {
groups = "uart3", "jtag", "wdt";
function = "gpio";
};
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
port@1 {
status = "okay";
label = "lan3";
};
port@2 {
status = "okay";
label = "lan2";
};
port@3 {
status = "okay";
label = "lan1";
};
};
};
&xhci {
status = "disabled";
};

View File

@ -0,0 +1,25 @@
// SPDX-License-Identifier: GPL-2.0-only
/dts-v1/;
#include "mt7621_netgear_sercomm_chj.dtsi"
/ {
compatible = "netgear,wac124", "mediatek,mt7621-soc";
model = "Netgear WAC124";
};
&led_power {
label = "wac124:green:power";
};
&led_usb {
label = "wac124:green:usb";
};
&led_internet {
label = "wac124:green:wan";
};
&led_wifi {
label = "wac124:green:wifi";
};

View File

@ -17,10 +17,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -16,10 +16,6 @@
led-upgrade = &led_blue;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -16,10 +16,6 @@
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -15,10 +15,6 @@
led-upgrade = &led_wps;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -9,10 +9,6 @@
compatible = "storylink,sap-g3200u3", "mediatek,mt7621-soc";
model = "STORYLiNK SAP-G3200U3";
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -17,10 +17,6 @@
led-upgrade = &led_sys;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -16,10 +16,6 @@
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -0,0 +1,64 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7621_tplink_rexx0-v1.dtsi"
/ {
compatible = "tplink,re500-v1", "mediatek,mt7621-soc";
model = "TP-Link RE500 v1";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
led_power: power {
label = "re500-v1:blue:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
wifi2g {
label = "re500-v1:blue:wifi2g";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wifi5g {
label = "re500-v1:blue:wifi5g";
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wps_red {
label = "re500-v1:red:wps";
gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
};
wps_blue {
label = "re500-v1:blue:wps";
gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
};
eth_act {
label = "re500-v1:green:eth_act";
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
eth_link {
label = "re500-v1:green:eth_link";
gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
};
};
};
&state_default {
gpio {
groups = "rgmii2", "wdt";
function = "gpio";
};
};

View File

@ -1,10 +1,7 @@
// 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>
#include "mt7621_tplink_rexx0-v1.dtsi"
/ {
compatible = "tplink,re650-v1", "mediatek,mt7621-soc";
@ -15,11 +12,6 @@
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
@ -31,13 +23,15 @@
};
wifi2g {
label = "re650-v1:blue:wifi2G";
label = "re650-v1:blue:wifi2g";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wifi5g {
label = "re650-v1:blue:wifi5G";
label = "re650-v1:blue:wifi5g";
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wps_red {
@ -60,124 +54,8 @@
gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
wps {
label = "wps";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_WPS_BUTTON>;
};
power {
label = "power";
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_POWER>;
};
led {
label = "led";
gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_LIGHTS_TOGGLE>;
};
reset {
label = "reset";
gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_RESTART>;
};
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x20000>;
read-only;
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x20000 0xde0000>;
};
config: partition@e00000 {
label = "config";
reg = <0xe00000 0x50000>;
read-only;
};
/* range 0xe50000 to 0xff0000 is empty in vendor
* firmware, so we do not use it either
*/
radio: partition@ff0000 {
label = "radio";
reg = <0xff0000 0x10000>;
read-only;
};
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
mtd-mac-address = <&config 0x10008>;
mtd-mac-address-increment = <1>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
&pcie1 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
mtd-mac-address = <&config 0x10008>;
mtd-mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&gmac0 {
mtd-mac-address = <&config 0x10008>;
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan";
};
};
};
&state_default {
gpio {
groups = "rgmii2", "wdt";

View File

@ -0,0 +1,127 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
aliases {
label-mac-device = &gmac0;
};
keys {
compatible = "gpio-keys";
wps {
label = "wps";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_WPS_BUTTON>;
};
power {
label = "power";
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_POWER>;
};
led {
label = "led";
gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_LIGHTS_TOGGLE>;
};
reset {
label = "reset";
gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_RESTART>;
};
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x20000>;
read-only;
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x20000 0xde0000>;
};
config: partition@e00000 {
label = "config";
reg = <0xe00000 0x50000>;
read-only;
};
/* range 0xe50000 to 0xff0000 is empty in vendor
* firmware, so we do not use it either
*/
radio: partition@ff0000 {
label = "radio";
reg = <0xff0000 0x10000>;
read-only;
};
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
mtd-mac-address = <&config 0x10008>;
mtd-mac-address-increment = <1>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
&pcie1 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
mtd-mac-address = <&config 0x10008>;
mtd-mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&gmac0 {
mtd-mac-address = <&config 0x10008>;
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan";
};
};
};

View File

@ -8,10 +8,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -0,0 +1,184 @@
// 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 = "wavlink,wl-wn531a6", "mediatek,mt7621-soc";
model = "Wavlink WL-WN531A6";
aliases {
led-boot = &led_status_red;
led-failsafe = &led_status_red;
led-running = &led_status_blue;
led-upgrade = &led_status_red;
};
keys {
compatible = "gpio-keys";
reset {
label = "Reset Button";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
touch { /* RH6015C touch sensor -> GPIO 14 */
label = "Touch Button";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
};
turbo {
label = "Turbo Button";
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
};
wps {
label = "WPS Button";
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
leds {
compatible = "gpio-leds";
led_status_blue: status_blue {
label = "wl-wn531a6:blue:power";
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
};
led_status_red: status_red {
label = "wl-wn531a6:red:power";
gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
};
wifi2g {
label = "wl-wn531a6:blue:wifi2g";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
};
&i2c {
status = "okay";
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "config";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0xeb0000>;
};
partition@f00000 {
label = "vendor";
reg = <0xf00000 0x100000>;
read-only;
};
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
&pcie1 {
mt76@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&gmac0 {
mtd-mac-address = <&factory 0xe000>;
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
port@1 {
status = "okay";
label = "lan2";
};
port@2 {
status = "okay";
label = "lan3";
};
port@3 {
status = "okay";
label = "lan4";
};
port@4 {
status = "okay";
label = "wan";
mtd-mac-address = <&factory 0xe006>;
};
};
};
&state_default {
gpio {
groups = "rgmii2", "jtag", "wdt";
function = "gpio";
};
};
&uartlite2 {
status = "okay";
};

View File

@ -8,10 +8,6 @@
label-mac-device = &wan;
};
chosen {
bootargs = "console=ttyS0,57600";
};
keys {
compatible = "gpio-keys";

View File

@ -0,0 +1,150 @@
// 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 = "winstars,ws-wn583a6", "mediatek,mt7621-soc";
model = "Winstars WS-WN583A6";
aliases {
led-boot = &led_status_red;
led-failsafe = &led_status_red;
led-running = &led_status_blue;
led-upgrade = &led_status_red;
};
leds {
compatible = "gpio-leds";
night_light_white {
label = "ws-wn583a6:white:night_light";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
led_status_blue: status_blue {
label = "ws-wn583a6:blue:status";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
status_amber {
label = "ws-wn583a6:amber:status";
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
};
led_status_red: status_red {
label = "ws-wn583a6:red:status";
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <104000000>;
m25p,fast-read;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "config";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0x7b0000>;
};
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
};
};
&pcie1 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
&gmac0 {
mtd-mac-address = <&factory 0xe000>;
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "wan";
mtd-mac-address = <&factory 0xe006>;
};
port@1 {
status = "okay";
label = "lan";
};
};
};
&state_default {
gpio {
groups = "jtag", "wdt", "rgmii2";
function = "gpio";
};
};
&xhci {
status = "disabled";
};

View File

@ -14,7 +14,7 @@
led-failsafe = &led_status_red;
led-running = &led_status_blue;
led-upgrade = &led_status_yellow;
label-mac-device = &ethernet;
label-mac-device = &gmac0;
};
chosen {
@ -190,19 +190,28 @@
};
};
&ethernet {
compatible = "mediatek,ralink-mt7621-eth";
mediatek,switch = <&gsw>;
&gmac0 {
mtd-mac-address = <&factory 0xe006>;
};
&switch0 {
/delete-property/ compatible;
phy-mode = "rgmii";
};
ports {
port@1 {
status = "okay";
label = "wan";
mtd-mac-address = <&factory 0xe000>;
};
&gsw {
compatible = "mediatek,ralink-mt7621-gsw";
port@2 {
status = "okay";
label = "lan2";
};
port@3 {
status = "okay";
label = "lan1";
};
};
};
&state_default {

View File

@ -17,10 +17,6 @@
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";

View File

@ -0,0 +1,174 @@
// 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 = "zyxel,wap6805", "mediatek,mt7621-soc";
model = "ZyXEL WAP6805";
aliases {
led-boot = &led_status_green;
led-failsafe = &led_status_red;
led-running = &led_status_green;
led-upgrade = &led_status_green;
label-mac-device = &gmac0;
};
leds {
compatible = "gpio-leds";
led_status_red: status_red {
label = "wap6805:red:status";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
status_blink {
label = "wap6805:blink:status";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
led_status_green: status_green {
label = "wap6805:green:status";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
};
keys {
compatible = "gpio-keys";
wps {
label = "wps";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&nand {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "Bootloader";
reg = <0x0 0x100000>;
read-only;
};
partition@100000 {
label = "MRD";
reg = <0x100000 0x100000>;
read-only;
};
factory: partition@200000 {
label = "Factory";
reg = <0x200000 0x100000>;
read-only;
};
partition@300000 {
label = "Config";
reg = <0x300000 0x100000>;
};
partition@400000 {
label = "Kernel";
reg = <0x400000 0x2000000>;
};
partition@800000 {
label = "ubi";
reg = <0x800000 0x1c00000>;
};
partition@2400000 {
label = "Kernel2";
reg = <0x2400000 0x2000000>;
};
partition@4400000 {
label = "Private";
reg = <0x4400000 0x100000>;
};
partition@4500000 {
label = "Log";
reg = <0x4500000 0x1000000>;
};
partition@5500000 {
label = "App";
reg = <0x5500000 0x2b00000>;
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0>;
};
};
&gmac0 {
mtd-mac-address = <&factory 0xe000>;
};
&gmac1 {
status = "okay";
fixed-link {
speed = <1000>;
full-duplex;
};
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
port@1 {
status = "okay";
label = "lan3";
};
port@2 {
status = "okay";
label = "lan2";
};
port@3 {
status = "okay";
label = "lan1";
};
};
};
&xhci {
status = "disabled";
};
&state_default {
gpio {
groups = "i2c", "uart3", "jtag", "wdt";
function = "gpio";
};
};

View File

@ -0,0 +1,34 @@
// SPDX-License-Identifier: GPL-2.0+
/dts-v1/;
#include "mt7628an_asus_rt-n1x.dtsi"
/ {
compatible = "asus,rt-n10p-v3", "mediatek,mt7628an-soc";
model = "Asus RT-N10P V3";
leds {
compatible = "gpio-leds";
led_power: power {
label = "rt-n10p-v3:green:power";
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
wlan {
label = "rt-n10p-v3:green:wlan";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wan {
label = "rt-n10p-v3:green:wan";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
lan {
label = "rt-n10p-v3:green:lan";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
};
};
};

View File

@ -0,0 +1,34 @@
// SPDX-License-Identifier: GPL-2.0+
/dts-v1/;
#include "mt7628an_asus_rt-n1x.dtsi"
/ {
compatible = "asus,rt-n11p-b1", "mediatek,mt7628an-soc";
model = "Asus RT-N11P B1";
leds {
compatible = "gpio-leds";
led_power: power {
label = "rt-n11p-b1:green:power";
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
wlan {
label = "rt-n11p-b1:green:wlan";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wan {
label = "rt-n11p-b1:green:wan";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
lan {
label = "rt-n11p-b1:green:lan";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
};
};
};

View File

@ -0,0 +1,34 @@
// SPDX-License-Identifier: GPL-2.0+
/dts-v1/;
#include "mt7628an_asus_rt-n1x.dtsi"
/ {
compatible = "asus,rt-n12-vp-b1", "mediatek,mt7628an-soc";
model = "Asus RT-N12 VP B1";
leds {
compatible = "gpio-leds";
led_power: power {
label = "rt-n12-vp-b1:green:power";
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
wlan {
label = "rt-n12-vp-b1:green:wlan";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wan {
label = "rt-n12-vp-b1:green:wan";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
lan {
label = "rt-n12-vp-b1:green:lan";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
};
};
};

View File

@ -1,30 +1,16 @@
/dts-v1/;
// SPDX-License-Identifier: GPL-2.0+
#include "mt7620n.dtsi"
#include "mt7628an.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "ravpower,wd03", "ralink,mt7620n-soc";
model = "Ravpower WD03";
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
green-wifi {
label = "wd03:green:wifi";
gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
};
blue-wifi {
label = "wd03:blue:wifi";
gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
};
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
keys {
@ -32,31 +18,19 @@
reset {
label = "reset";
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&gpio2 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&i2c {
status = "okay";
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
spi-max-frequency = <40000000>;
partitions {
compatible = "fixed-partitions";
@ -90,25 +64,33 @@
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
&ethernet {
mtd-mac-address = <&factory 0x4000>;
mtd-mac-address = <&factory 0x4>;
};
&esw {
mediatek,portmap = <0x2f>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
status = "okay";
};
&state_default {
gpio {
groups = "wled", "ephy";
groups = "i2c", "p0led_an", "p1led_an", "refclk", "wled_an";
function = "gpio";
};
};
&usbphy {
status = "disabled";
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};

View File

@ -72,7 +72,7 @@
};
&esw {
mediatek,portmap = <0x3>;
mediatek,portmap = <0x3e>;
mediatek,portdisable = <0x3c>;
};

View File

@ -0,0 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7628an_jotale_js76x8.dtsi"
/ {
compatible = "jotale,js76x8-16m", "jotale,js76x8", "mediatek,mt7628an-soc";
model = "Jotale JS76x8 (16M)";
};
&firmware {
reg = <0x50000 0xfb0000>;
};

View File

@ -0,0 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7628an_jotale_js76x8.dtsi"
/ {
compatible = "jotale,js76x8-32m", "jotale,js76x8", "mediatek,mt7628an-soc";
model = "Jotale JS76x8 (32M)";
};
&firmware {
reg = <0x50000 0x1fb0000>;
};

View File

@ -0,0 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7628an_jotale_js76x8.dtsi"
/ {
compatible = "jotale,js76x8-8m", "mediatek,mt7628an-soc";
model = "Jotale JS76x8 (8M)";
};
&firmware {
reg = <0x50000 0x7b0000>;
};

View File

@ -0,0 +1,125 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7628an.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "jotale,js76x8", "mediatek,mt7628an-soc";
aliases {
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
led_system: system {
label = "js76x8:green:system";
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
wifi {
label = "js76x8:green:wifi";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>;
};
};
};
&state_default {
gpio {
groups = "refclk", "wdt", "wled_an";
function = "gpio";
};
};
&spi0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
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;
};
firmware: partition@50000 {
compatible = "denx,uimage";
label = "firmware";
/* reg property is set based on flash size in DTS files */
};
};
};
};
&i2c {
status = "okay";
};
&i2s {
status = "okay";
};
&uart1 {
status = "okay";
};
&uart2 {
status = "okay";
};
&ethernet {
mtd-mac-address = <&factory 0x28>;
};
&sdhci {
status = "okay";
mediatek,cd-low;
};
&wmac {
status = "okay";
};

View File

@ -0,0 +1,105 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7628an_netgear_r6xxx.dtsi"
/ {
compatible = "netgear,r6020", "mediatek,mt7628an-soc";
model = "Netgear R6020";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
lan {
label = "r6020:green:lan";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "r6020:green:power";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
wlan2g_green {
label = "r6020:green:wlan2g";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan2g_orange {
label = "r6020:orange:wlan2g";
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
};
wan_green {
label = "r6020:green:wan";
gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
wan_orange {
label = "r6020:orange:wan";
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
};
};
&state_default {
gpio {
groups = "p0led_an", "p1led_an", "p2led_an", "p3led_an",
"p4led_an", "wdt", "wled_an";
function = "gpio";
};
};
&partitions {
partition@90000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x90000 0x6f0000>;
};
partition@780000 {
label = "ML";
reg = <0x780000 0x20000>;
read-only;
};
partition@7a0000 {
label = "ML1";
reg = <0x7a0000 0x20000>;
read-only;
};
partition@7c0000 {
label = "ML2";
reg = <0x7c0000 0x20000>;
read-only;
};
partition@7e0000 {
label = "POT";
reg = <0x7e0000 0x10000>;
read-only;
};
partition@7f0000 {
label = "reserved";
reg = <0x7f0000 0x10000>;
read-only;
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};

View File

@ -0,0 +1,82 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7628an_netgear_r6xxx.dtsi"
/ {
compatible = "netgear,r6080", "mediatek,mt7628an-soc";
model = "Netgear R6080";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &ethernet;
};
leds {
compatible = "gpio-leds";
lan {
label = "r6080:green:lan";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "r6080:green:power";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
wlan2g_green {
label = "r6080:green:wlan2g";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan2g_orange {
label = "r6080:orange:wlan2g";
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
};
wan_green {
label = "r6080:green:wan";
gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
wan_orange {
label = "r6080:orange:wan";
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
};
};
&state_default {
gpio {
groups = "p0led_an", "p1led_an", "p2led_an", "p3led_an",
"p4led_an", "wdt", "wled_an";
function = "gpio";
};
};
&partitions {
partition@90000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x90000 0x760000>;
};
partition@7f0000 {
label = "reserved";
reg = <0x7f0000 0x10000>;
read-only;
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};

View File

@ -1,9 +1,6 @@
/dts-v1/;
#include "mt7628an.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "mt7628an_netgear_r6xxx.dtsi"
/ {
compatible = "netgear,r6120", "mediatek,mt7628an-soc";
@ -17,16 +14,6 @@
label-mac-device = &ethernet;
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
leds {
compatible = "gpio-leds";
@ -43,6 +30,7 @@
wlan2g_green {
label = "r6120:green:wlan2g";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan2g_orange {
@ -76,77 +64,27 @@
&state_default {
gpio {
groups = "p0led_an", "p1led_an", "p2led_an",
"p3led_an", "p4led_an", "wdt",
"wled_an", "uart1";
groups = "p0led_an", "p1led_an", "p2led_an", "p3led_an",
"p4led_an", "wdt", "wled_an", "uart1";
function = "gpio";
};
};
&spi0 {
status = "okay";
&partitions {
partition@90000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x90000 0xf60000>;
};
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x40000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x20000>;
read-only;
};
partition@60000 {
label = "nvram";
reg = <0x60000 0x30000>;
read-only;
};
partition@90000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x90000 0xf60000>;
};
partition@ff0000 {
label = "reserved";
reg = <0xff0000 0x10000>;
read-only;
};
};
partition@ff0000 {
label = "reserved";
reg = <0xff0000 0x10000>;
read-only;
};
};
&wmac {
status = "okay";
};
&ethernet {
&wifi5 {
mtd-mac-address = <&factory 0x4>;
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&factory 0x4>;
mtd-mac-address-increment = <(2)>;
};
mtd-mac-address-increment = <(2)>;
};

View File

@ -0,0 +1,73 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7628an.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <86000000>;
m25p,fast-read;
partitions: partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x40000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x20000>;
read-only;
};
partition@60000 {
label = "nvram";
reg = <0x60000 0x30000>;
read-only;
};
};
};
};
&wmac {
status = "okay";
};
&ethernet {
mtd-mac-address = <&factory 0x4>;
};
&pcie {
status = "okay";
};
&pcie0 {
wifi5: wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
};
};

View File

@ -0,0 +1,202 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7628an.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "ravpower,rp-wd009", "mediatek,mt7628an-soc";
model = "RAVPower RP-WD009";
aliases {
led-boot = &led_globe;
led-failsafe = &led_globe;
led-running = &led_globe;
led-upgrade = &led_globe;
};
chosen {
bootargs = "console=ttyS0,57600";
};
leds {
compatible = "gpio-leds";
led_globe: globe {
label = "rp-wd009:white:globe";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
wlan2 {
label = "rp-wd009:white:wlan2";
gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
wlan5 {
label = "rp-wd009:white:wlan5";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
sd_white {
label = "rp-wd009:white:sd";
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
};
sd_red {
label = "rp-wd009:red:sd";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
/* Power interrupt on Pin 39 */
rfkill {
label = "rfkill";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
};
backup {
label = "backup";
gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
linux,code = <KEY_COPY>;
};
};
};
&gpio {
mt7610-power {
gpio-hog;
gpios = <20 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "mt7610-power";
};
};
&state_default {
gpio {
groups = "uart1", "wled_an", "p0led_an", "p2led_an", "p3led_an",
"p4led_an", "uart2", "pwm0", "i2s";
function = "gpio";
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
&sdhci {
status = "okay";
};
&i2c {
status = "okay";
/* Custom PMIC at 0x0a */
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5470000 6000000>;
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "config";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
label = "loader";
reg = <0x50000 0x180000>;
};
partition@1d0000 {
label = "params";
reg = <0x1d0000 0x10000>;
read-only;
};
partition@1e0000 {
label = "user_backup";
reg = <0x1e0000 0x10000>;
read-only;
};
partition@1f0000 {
label = "user";
reg = <0x1f0000 0x10000>;
read-only;
};
partition@200000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x200000 0xdf0000>;
};
partition@ff0000 {
label = "mode";
reg = <0xff0000 0x10000>;
read-only;
};
};
};
};
&wmac {
status = "okay";
};
&ethernet {
mtd-mac-address = <&factory 0x4>;
};

View File

@ -0,0 +1,70 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7628an_tplink_re200.dtsi"
/ {
compatible = "tplink,re200-v3", "mediatek,mt7628an-soc";
model = "TP-Link RE200 v3";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
wps {
label = "re200-v3:green:wps";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
wifi {
label = "re200-v3:green:wifi";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
lan {
label = "re200-v3:green:lan";
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "re200-v3:green:power";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
wifi2g_green {
label = "re200-v3:green:wifi2g";
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wifi5g_green {
label = "re200-v3:green:wifi5g";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wifi2g_red {
label = "re200-v3:red:wifi2g";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
wifi5g_red {
label = "re200-v3:red:wifi5g";
gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
};
};
&state_default {
gpio {
groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an",
"p0led_an", "wled_an", "i2c", "wdt", "refclk";
function = "gpio";
};
};

View File

@ -0,0 +1,70 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7628an_tplink_re200.dtsi"
/ {
compatible = "tplink,re220-v2", "mediatek,mt7628an-soc";
model = "TP-Link RE220 v2";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
wps {
label = "re220-v2:green:wps";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
wifi {
label = "re220-v2:green:wifi";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
lan {
label = "re220-v2:green:lan";
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "re220-v2:green:power";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
wifi2g_green {
label = "re220-v2:green:wifi2g";
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wifi5g_green {
label = "re220-v2:green:wifi5g";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wifi2g_red {
label = "re220-v2:red:wifi2g";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
wifi5g_red {
label = "re220-v2:red:wifi5g";
gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
};
};
&state_default {
gpio {
groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an",
"p0led_an", "wled_an", "i2c", "wdt", "refclk";
function = "gpio";
};
};

Some files were not shown because too many files have changed in this diff Show More