Fresh pull from upstream lede-17.01 branch to fix several outstanding
[librecmc/librecmc.git] / target / linux / ramips / dts / WT3020-8M.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "wt3020", "ralink,mt7620n-soc";
9         model = "Nexx WT3020 (8M)";
10
11         gpio-keys-polled {
12                 compatible = "gpio-keys-polled";
13                 #address-cells = <1>;
14                 #size-cells = <0>;
15                 poll-interval = <20>;
16
17                 reset {
18                         label = "reset";
19                         gpios = <&gpio0 1 1>;
20                         linux,code = <KEY_RESTART>;
21                 };
22         };
23
24         gpio-leds {
25                 compatible = "gpio-leds";
26
27                 power {
28                         label = "wt3020:blue:power";
29                         gpios = <&gpio3 0 0>;
30                 };
31         };
32 };
33
34 &gpio2 {
35         status = "okay";
36 };
37
38 &gpio3 {
39         status = "okay";
40 };
41
42 &spi0 {
43         status = "okay";
44
45         m25p80@0 {
46                 #address-cells = <1>;
47                 #size-cells = <1>;
48                 compatible = "jedec,spi-nor";
49                 reg = <0>;
50                 spi-max-frequency = <10000000>;
51
52                 partition@0 {
53                         label = "u-boot";
54                         reg = <0x0 0x30000>;
55                         read-only;
56                 };
57
58                 partition@30000 {
59                         label = "u-boot-env";
60                         reg = <0x30000 0x10000>;
61                         read-only;
62                 };
63
64                 factory: partition@40000 {
65                         label = "factory";
66                         reg = <0x40000 0x10000>;
67                         read-only;
68                 };
69
70                 partition@50000 {
71                         label = "firmware";
72                         reg = <0x50000 0x7b0000>;
73                 };
74         };
75 };
76
77 &ehci {
78         status = "okay";
79 };
80
81 &ohci {
82         status = "okay";
83 };
84
85 &ethernet {
86         mtd-mac-address = <&factory 0x4>;
87         mediatek,portmap = "wllll";
88 };
89
90 &wmac {
91         ralink,mtd-eeprom = <&factory 0>;
92 };
93
94 &pinctrl {
95         state_default: pinctrl0 {
96                 default {
97                         ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
98                         ralink,function = "gpio";
99                 };
100         };
101 };