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
|
|
|
/ {
|
2017-07-27 16:49:06 +00:00
|
|
|
compatible = "netis,wf-2881", "mediatek,mt7621-soc";
|
2015-11-24 18:29:26 +00:00
|
|
|
model = "NETIS WF-2881";
|
|
|
|
|
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;
|
2019-10-02 13:01:11 +00:00
|
|
|
label-mac-device = ðernet;
|
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 {
|
|
|
|
label = "wf-2881:green:usb";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 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 {
|
2015-11-24 18:29:26 +00:00
|
|
|
label = "wf-2881:green:wps";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 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";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 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
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
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
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "uart3", "uart2";
|
|
|
|
ralink,function = "gpio";
|
2015-11-24 18:29:26 +00:00
|
|
|
};
|
|
|
|
};
|