ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / MLW221.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "mlw221", "ralink,mt7620n-soc";
9 model = "Kingston MLW221";
10
11 gpio-leds {
12 compatible = "gpio-leds";
13
14 system {
15 label = "mlw221:blue:system";
16 gpios = <&gpio2 3 1>;
17 };
18
19 wifi {
20 label = "mlw221:blue:wifi";
21 gpios = <&gpio3 0 1>;
22 };
23 };
24
25 gpio-keys-polled {
26 compatible = "gpio-keys-polled";
27 #address-cells = <1>;
28 #size-cells = <0>;
29 poll-interval = <20>;
30
31 reset {
32 label = "reset";
33 gpios = <&gpio0 1 1>;
34 linux,code = <KEY_RESTART>;
35 };
36
37 system {
38 label = "system";
39 gpios = <&gpio0 2 1>;
40 linux,code = <KEY_RFKILL>;
41 };
42 };
43 };
44
45 &gpio0 {
46 status = "okay";
47 };
48
49 &gpio2 {
50 status = "okay";
51 };
52
53 &gpio3 {
54 status = "okay";
55 };
56
57 &spi0 {
58 status = "okay";
59
60 m25p80@0 {
61 #address-cells = <1>;
62 #size-cells = <1>;
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 linux,modalias = "m25p80", "s25fl129p1";
66 spi-max-frequency = <10000000>;
67
68 partition@0 {
69 label = "u-boot";
70 reg = <0x0 0x30000>;
71 read-only;
72 };
73
74 partition@30000 {
75 label = "u-boot-env";
76 reg = <0x30000 0x10000>;
77 read-only;
78 };
79
80 factory: partition@40000 {
81 label = "factory";
82 reg = <0x40000 0x10000>;
83 read-only;
84 };
85
86 partition@50000 {
87 label = "firmware";
88 reg = <0x50000 0xf60000>;
89 };
90
91 partition@fb0000 {
92 label = "user-config";
93 reg = <0xfb0000 0x50000>;
94 };
95 };
96 };
97
98 &ehci {
99 status = "okay";
100 };
101
102 &ohci {
103 status = "okay";
104 };
105
106 &ethernet {
107 mtd-mac-address = <&factory 0x4>;
108 mediatek,portmap = "wllll";
109 };
110
111 &wmac {
112 ralink,mtd-eeprom = <&factory 0>;
113 };
114
115 &pinctrl {
116 state_default: pinctrl0 {
117 default {
118 ralink,group = "i2c", "ephy", "wled";
119 ralink,function = "gpio";
120 };
121 };
122 };