185f554df74d7319ec47c41bf81e3bc4b4eaf883
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_widora_neo.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "widora,neo", "mediatek,mt7628an-soc";
8
9 aliases {
10 led-boot = &led_wifi;
11 led-failsafe = &led_wifi;
12 led-running = &led_wifi;
13 led-upgrade = &led_wifi;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_wifi: wifi {
24 label = "orange:wifi";
25 gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
26 default-state = "on";
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 wps {
34 label = "reset";
35 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 };
38 };
39
40 wgpio: gpio-wifi {
41 compatible = "mediatek,gpio-wifi";
42 #address-cells = <1>;
43 #size-cells = <0>;
44 gpio-controller;
45 #gpio-cells = <2>;
46 };
47 };
48
49 &state_default {
50 gpio {
51 groups = "gpio";
52 function = "gpio";
53 };
54
55 perst {
56 groups = "perst";
57 function = "gpio";
58 };
59
60 refclk {
61 groups = "refclk";
62 function = "gpio";
63 };
64
65 i2s {
66 groups = "i2s";
67 function = "gpio";
68 };
69
70 spis {
71 groups = "spis";
72 function = "gpio";
73 };
74
75 wled_kn {
76 groups = "wled_kn";
77 function = "gpio";
78 };
79
80 wled_an {
81 groups = "wled_an";
82 function = "wled_an";
83 };
84
85 wdt {
86 groups = "wdt";
87 function = "gpio";
88 };
89 };
90
91 &i2c {
92 status = "okay";
93 };
94
95 &uart1 {
96 status = "okay";
97 };
98
99 &uart2 {
100 status = "okay";
101 };
102
103 &pwm {
104 status = "okay";
105 };
106
107 &ethernet {
108 mtd-mac-address = <&factory 0x28>;
109 };
110
111 &sdhci {
112 status = "okay";
113 mediatek,cd-low;
114 };
115
116 &wmac {
117 status = "okay";
118
119 mediatek,mtd-eeprom = <&factory 0x0>;
120 };