2016-05-09 06:32:52 +00:00
|
|
|
#include "mt7620a.dtsi"
|
2016-03-01 09:17:06 +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>
|
|
|
|
|
2016-03-01 09:17:06 +00:00
|
|
|
/ {
|
2017-07-29 02:14:07 +00:00
|
|
|
compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
|
|
|
led-status = &led_power;
|
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-07-16 08:27:22 +00:00
|
|
|
led_power: power {
|
2016-05-10 10:41:46 +00:00
|
|
|
label = "zbt-we826:green:power";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
usb {
|
|
|
|
label = "zbt-we826:green:usb";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
air {
|
|
|
|
label = "zbt-we826:green:wifi";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <20>;
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdhci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x4>;
|
2017-02-14 13:08:59 +00:00
|
|
|
mediatek,portmap = "wllll";
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,mtd-eeprom = <&factory 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
default {
|
|
|
|
ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
2016-05-09 06:32:52 +00:00
|
|
|
};
|