2016-05-28 10:04:17 +00:00
|
|
|
#include "mt7628an.dtsi"
|
|
|
|
|
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-05-28 10:04:17 +00:00
|
|
|
/ {
|
2017-07-29 02:14:07 +00:00
|
|
|
compatible = "widora,neo", "mediatek,mt7628an-soc";
|
2016-05-28 10:04:17 +00:00
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_wifi;
|
|
|
|
led-failsafe = &led_wifi;
|
|
|
|
led-running = &led_wifi;
|
|
|
|
led-upgrade = &led_wifi;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2016-05-28 10:04:17 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
|
|
|
|
|
|
|
memory@0 {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x8000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_wifi: wifi {
|
2016-05-28 10:04:17 +00:00
|
|
|
label = "widora:orange:wifi";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
|
2016-05-28 10:04:17 +00:00
|
|
|
default-state = "on";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "reset";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
2016-11-11 21:43:08 +00:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
2016-05-28 10:04:17 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
wgpio: gpio-wifi {
|
|
|
|
compatible = "mediatek,gpio-wifi";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
|
|
|
ralink,group = "gpio";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
|
|
|
|
perst {
|
|
|
|
ralink,group = "perst";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
|
|
|
|
refclk {
|
|
|
|
ralink,group = "refclk";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2s {
|
|
|
|
ralink,group = "i2s";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
|
|
|
|
spis {
|
|
|
|
ralink,group = "spis";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
|
|
|
|
wled_kn {
|
|
|
|
ralink,group = "wled_kn";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
|
|
|
|
wled_an {
|
|
|
|
ralink,group = "wled_an";
|
|
|
|
ralink,function = "wled_an";
|
|
|
|
};
|
|
|
|
|
|
|
|
wdt {
|
|
|
|
ralink,group = "wdt";
|
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pwm {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
mtd-mac-address = <&factory 0x28>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdhci {
|
|
|
|
status = "okay";
|
|
|
|
mediatek,cd-low;
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
|
|
|
};
|