2016-05-09 09:32:52 +03:00
|
|
|
#include "mt7620a.dtsi"
|
2016-03-01 09:17:06 +00:00
|
|
|
|
2017-07-29 10:14:07 +08:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2016-11-11 22:43:08 +01:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2016-03-01 09:17:06 +00:00
|
|
|
/ {
|
2017-07-29 10:14:07 +08:00
|
|
|
compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
|
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
aliases {
|
2018-08-28 06:54:27 +02:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2018-07-16 16:27:22 +08:00
|
|
|
};
|
|
|
|
|
2016-05-10 13:41:46 +03:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
|
|
|
|
2018-12-30 12:42:53 +01:00
|
|
|
leds {
|
2016-05-10 13:41:46 +03:00
|
|
|
compatible = "gpio-leds";
|
2019-09-20 14:03:02 +02:00
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
led_power: power {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:power";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
2019-09-20 14:03:02 +02:00
|
|
|
|
2016-05-10 13:41:46 +03:00
|
|
|
usb {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:usb";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
|
2018-08-13 17:14:08 +02:00
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
2019-09-20 14:03:02 +02:00
|
|
|
|
2016-05-10 13:41:46 +03:00
|
|
|
air {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:wifi";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 12:17:25 +01:00
|
|
|
keys {
|
2019-09-20 14:03:02 +02:00
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
2016-05-10 13:41:46 +03:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
2016-11-11 22:43:08 +01:00
|
|
|
linux,code = <KEY_RESTART>;
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdhci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x4>;
|
2020-05-14 15:41:31 +02:00
|
|
|
|
2020-08-03 23:11:01 +02:00
|
|
|
mediatek,portmap = "llllw";
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
2020-05-07 22:13:27 +09:00
|
|
|
ralink,mtd-eeprom = <&factory 0x0>;
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&state_default {
|
|
|
|
default {
|
2020-04-12 20:58:29 +08:00
|
|
|
groups = "i2c", "uartf", "wled", "spi refclk", "pa";
|
|
|
|
function = "gpio";
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
2016-05-09 09:32:52 +03:00
|
|
|
};
|