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