Bump version to v1.5 and start work on adding 4.19 kernel suppot
[librecmc/librecmc.git] / target / linux / ramips / dts / WIDORA-NEO.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "mediatek,widora-neo", "mediatek,mt7628an-soc";
9         model = "Widora-NEO";
10
11         chosen {
12                 bootargs = "console=ttyS0,115200";
13         };
14
15         memory@0 {
16                 device_type = "memory";
17                 reg = <0x0 0x8000000>;
18         };
19
20         gpio-leds {
21                 compatible = "gpio-leds";
22
23                 wifi {
24                         label = "widora:orange:wifi";
25                         gpios = <&wgpio 0 0>;
26                         default-state = "on";
27                 };
28         };
29
30         gpio-keys-polled {
31                 compatible = "gpio-keys-polled";
32                 #address-cells = <1>;
33                 #size-cells = <0>;
34                 poll-interval = <20>;
35
36                 wps {
37                         label = "reset";
38                         gpios = <&gpio1 6 1>;
39                         linux,code = <KEY_WPS_BUTTON>;
40                 };
41         };
42
43         wgpio: gpio-wifi {
44                 compatible = "mediatek,gpio-wifi";
45                 #address-cells = <1>;
46                 #size-cells = <0>;
47                 gpio-controller;
48                 #gpio-cells = <2>;
49         };
50 };
51
52 &pinctrl {
53         state_default: pinctrl0 {
54                 gpio {
55                         ralink,group = "gpio";
56                         ralink,function = "gpio";
57                 };
58
59                 perst {
60                         ralink,group = "perst";
61                         ralink,function = "gpio";
62                 };
63
64                 refclk {
65                         ralink,group = "refclk";
66                         ralink,function = "gpio";
67                 };
68
69                 i2s {
70                         ralink,group = "i2s";
71                         ralink,function = "gpio";
72                 };
73
74                 spis {
75                         ralink,group = "spis";
76                         ralink,function = "gpio";
77                 };
78
79                 wled_kn {
80                         ralink,group = "wled_kn";
81                         ralink,function = "gpio";
82                 };
83
84                 wled_an {
85                         ralink,group = "wled_an";
86                         ralink,function = "wled_an";
87                 };
88
89                 wdt {
90                         ralink,group = "wdt";
91                         ralink,function = "gpio";
92                 };
93         };
94 };
95
96
97 &spi0 {
98         status = "okay";
99
100         pinctrl-names = "default";
101         pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
102
103         m25p80@0 {
104                 #address-cells = <1>;
105                 #size-cells = <1>;
106                 compatible = "jedec,spi-nor";
107                 reg = <0>;
108                 spi-max-frequency = <40000000>;
109                 m25p,chunked-io = <31>;
110
111                 partition@0 {
112                         label = "u-boot";
113                         reg = <0x0 0x30000>;
114                         read-only;
115                 };
116
117                 partition@30000 {
118                         label = "u-boot-env";
119                         reg = <0x30000 0x10000>;
120                 };
121
122                 factory: partition@40000 {
123                         label = "factory";
124                         reg = <0x40000 0x10000>;
125                         read-only;
126                 };
127
128                 partition@50000 {
129                         label = "firmware";
130                         reg = <0x50000 0x0fb0000>;
131                 };
132         };
133
134         spidev@1 {
135                 #address-cells = <1>;
136                 #size-cells = <1>;
137                 compatible = "linux,spidev";
138                 reg = <1>;
139                 spi-max-frequency = <40000000>;
140         };
141 };
142
143 &i2c {
144         status = "okay";
145 };
146
147 &uart1 {
148         status = "okay";
149 };
150
151 &uart2 {
152         status = "okay";
153 };
154
155 &pwm {
156         status = "okay";
157 };
158
159 &ethernet {
160         mtd-mac-address = <&factory 0x28>;
161 };
162
163 &sdhci {
164         status = "okay";
165         mediatek,cd-low;
166 };
167
168 &wmac {
169         status = "okay";
170 };