2015-11-24 18:29:26 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2015-12-11 15:02:13 +00:00
|
|
|
#include "mt7621.dtsi"
|
2015-11-24 18:29:26 +00:00
|
|
|
|
2017-07-29 02:14:07 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2016-11-11 21:43:08 +00:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2015-11-24 18:29:26 +00:00
|
|
|
/ {
|
2019-10-08 13:21:13 +00:00
|
|
|
compatible = "netis,wf2881", "mediatek,mt7621-soc";
|
|
|
|
model = "NETIS WF2881";
|
2015-11-24 18:29:26 +00:00
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_wps;
|
|
|
|
led-failsafe = &led_wps;
|
|
|
|
led-running = &led_wps;
|
|
|
|
led-upgrade = &led_wps;
|
2020-03-18 15:38:58 +00:00
|
|
|
label-mac-device = &gmac0;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2015-11-24 18:29:26 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,57600";
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2015-11-24 18:29:26 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
usb {
|
2019-10-08 13:21:13 +00:00
|
|
|
label = "wf2881:green:usb";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
2018-08-13 15:14:08 +00:00
|
|
|
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
|
|
|
|
linux,default-trigger = "usbport";
|
2015-11-24 18:29:26 +00:00
|
|
|
};
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_wps: wps {
|
2019-10-08 13:21:13 +00:00
|
|
|
label = "wf2881:green:wps";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
2015-11-24 18:29:26 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2019-09-20 12:03:02 +00:00
|
|
|
compatible = "gpio-keys";
|
2015-11-24 18:29:26 +00:00
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
2015-11-24 18:29:26 +00:00
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
|
2016-11-18 07:39:05 +00:00
|
|
|
&nand {
|
|
|
|
status = "okay";
|
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
2019-10-02 13:01:11 +00:00
|
|
|
reg = <0x0 0x80000>;
|
2018-08-01 20:32:34 +00:00
|
|
|
read-only;
|
|
|
|
};
|
2016-11-18 07:39:05 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partition@80000 {
|
|
|
|
label = "config";
|
|
|
|
reg = <0x80000 0x80000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2016-11-18 07:39:05 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
factory: partition@100000 {
|
|
|
|
label = "factory";
|
|
|
|
reg = <0x100000 0x40000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2016-11-18 07:39:05 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partition@140000 {
|
|
|
|
label = "firmware";
|
2019-10-02 13:01:11 +00:00
|
|
|
reg = <0x140000 0x7e40000>;
|
2019-10-02 13:12:28 +00:00
|
|
|
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "kernel";
|
|
|
|
reg = <0x0 0x400000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@400000 {
|
|
|
|
label = "ubi";
|
|
|
|
reg = <0x400000 0x7a40000>;
|
|
|
|
};
|
2018-08-01 20:32:34 +00:00
|
|
|
};
|
2016-11-18 07:39:05 +00:00
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
2018-07-21 14:19:46 +00:00
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
|
2018-07-21 14:19:46 +00:00
|
|
|
&pcie0 {
|
2019-10-02 13:01:11 +00:00
|
|
|
wifi@0,0 {
|
|
|
|
compatible = "mediatek,mt76";
|
2018-07-21 14:19:46 +00:00
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x8000>;
|
|
|
|
ieee80211-freq-limit = <5000000 6000000>;
|
2019-10-02 13:01:11 +00:00
|
|
|
|
|
|
|
led {
|
|
|
|
led-sources = <2>;
|
|
|
|
led-active-low;
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2018-07-21 14:19:46 +00:00
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
|
2018-07-21 14:19:46 +00:00
|
|
|
&pcie1 {
|
2019-10-02 13:01:11 +00:00
|
|
|
wifi@0,0 {
|
|
|
|
compatible = "mediatek,mt76";
|
2018-07-21 14:19:46 +00:00
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x0000>;
|
|
|
|
ieee80211-freq-limit = <2400000 2500000>;
|
2019-10-02 13:01:11 +00:00
|
|
|
|
|
|
|
led {
|
|
|
|
led-sources = <2>;
|
|
|
|
led-active-low;
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-03-18 15:38:58 +00:00
|
|
|
&gmac0 {
|
2019-10-02 13:01:11 +00:00
|
|
|
mtd-mac-address = <&factory 0xe000>;
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2015-11-24 18:29:26 +00:00
|
|
|
|
2020-03-18 15:38:58 +00:00
|
|
|
&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>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-03-13 13:27:03 +00:00
|
|
|
groups = "uart3", "uart2";
|
|
|
|
function = "gpio";
|
2015-11-24 18:29:26 +00:00
|
|
|
};
|
|
|
|
};
|