9b5eb0626759434b8e697529e3a4ebdfaa27147b
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / 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 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x8000000>;
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 led_wifi: wifi {
29 label = "widora:orange:wifi";
30 gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
31 default-state = "on";
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys-polled";
37 poll-interval = <20>;
38
39 wps {
40 label = "reset";
41 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 };
44 };
45
46 wgpio: gpio-wifi {
47 compatible = "mediatek,gpio-wifi";
48 #address-cells = <1>;
49 #size-cells = <0>;
50 gpio-controller;
51 #gpio-cells = <2>;
52 };
53 };
54
55 &pinctrl {
56 state_default: pinctrl0 {
57 gpio {
58 ralink,group = "gpio";
59 ralink,function = "gpio";
60 };
61
62 perst {
63 ralink,group = "perst";
64 ralink,function = "gpio";
65 };
66
67 refclk {
68 ralink,group = "refclk";
69 ralink,function = "gpio";
70 };
71
72 i2s {
73 ralink,group = "i2s";
74 ralink,function = "gpio";
75 };
76
77 spis {
78 ralink,group = "spis";
79 ralink,function = "gpio";
80 };
81
82 wled_kn {
83 ralink,group = "wled_kn";
84 ralink,function = "gpio";
85 };
86
87 wled_an {
88 ralink,group = "wled_an";
89 ralink,function = "wled_an";
90 };
91
92 wdt {
93 ralink,group = "wdt";
94 ralink,function = "gpio";
95 };
96 };
97 };
98
99 &i2c {
100 status = "okay";
101 };
102
103 &uart1 {
104 status = "okay";
105 };
106
107 &uart2 {
108 status = "okay";
109 };
110
111 &pwm {
112 status = "okay";
113 };
114
115 &ethernet {
116 mtd-mac-address = <&factory 0x28>;
117 };
118
119 &sdhci {
120 status = "okay";
121 mediatek,cd-low;
122 };
123
124 &wmac {
125 status = "okay";
126 };