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";
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2016-05-28 10:04:17 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2019-09-20 12:03:02 +00:00
|
|
|
compatible = "gpio-keys";
|
2016-05-28 10:04:17 +00:00
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "reset";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 38 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>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "gpio";
|
|
|
|
function = "gpio";
|
2019-12-22 20:26:01 +00:00
|
|
|
};
|
2016-05-28 10:04:17 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
perst {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "perst";
|
|
|
|
function = "gpio";
|
2019-12-22 20:26:01 +00:00
|
|
|
};
|
2016-05-28 10:04:17 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
refclk {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "refclk";
|
|
|
|
function = "gpio";
|
2019-12-22 20:26:01 +00:00
|
|
|
};
|
2016-05-28 10:04:17 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
i2s {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2s";
|
|
|
|
function = "gpio";
|
2019-12-22 20:26:01 +00:00
|
|
|
};
|
2016-05-28 10:04:17 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
spis {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "spis";
|
|
|
|
function = "gpio";
|
2019-12-22 20:26:01 +00:00
|
|
|
};
|
2016-05-28 10:04:17 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
wled_kn {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "wled_kn";
|
|
|
|
function = "gpio";
|
2019-12-22 20:26:01 +00:00
|
|
|
};
|
2016-05-28 10:04:17 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
wled_an {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "wled_an";
|
|
|
|
function = "wled_an";
|
2019-12-22 20:26:01 +00:00
|
|
|
};
|
2016-05-28 10:04:17 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
wdt {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "wdt";
|
|
|
|
function = "gpio";
|
2016-05-28 10:04:17 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&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";
|
|
|
|
};
|