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 {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2016-05-10 10:41:46 +00:00
|
|
|
compatible = "gpio-leds";
|
2019-09-20 12:03:02 +00:00
|
|
|
|
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
|
|
|
};
|
2019-09-20 12:03:02 +00:00
|
|
|
|
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>;
|
2018-08-13 15:14:08 +00:00
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
2019-09-20 12:03:02 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2019-09-20 12:03:02 +00:00
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
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
|
|
|
};
|