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