07432e231a375dce340fec6aefd8873936189c32
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MZK-EX300NP.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6 compatible = "ralink,mt7620a-soc";
7 model = "Planex MZK-EX300NP";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 wifi {
13 label = "mzk-ex300np:green:wifi";
14 gpios = <&gpio3 0 1>;
15 };
16
17 wps {
18 label = "mzk-ex300np:green:wps";
19 gpios = <&gpio1 5 1>;
20 };
21
22 rep {
23 label = "mzk-ex300np:blue:rep";
24 gpios = <&gpio1 4 1>;
25 };
26
27 wifi1 {
28 label = "mzk-ex300np:blue:wifi1";
29 gpios = <&gpio1 1 1>;
30 };
31
32 wifi2 {
33 label = "mzk-ex300np:blue:wifi2";
34 gpios = <&gpio1 2 1>;
35 };
36
37 wifi3 {
38 label = "mzk-ex300np:blue:wifi3";
39 gpios = <&gpio1 0 1>;
40 };
41 };
42
43 gpio-keys-polled {
44 compatible = "gpio-keys-polled";
45 #address-cells = <1>;
46 #size-cells = <0>;
47 poll-interval = <20>;
48
49 reset {
50 label = "reset";
51 gpios = <&gpio0 1 1>;
52 linux,code = <0x198>;
53 };
54
55 wps {
56 label = "wps";
57 gpios = <&gpio1 3 0>;
58 linux,code = <0x211>;
59 };
60 };
61 };
62
63 &gpio1 {
64 status = "okay";
65 };
66
67 &gpio3 {
68 status = "okay";
69 };
70
71 &spi0 {
72 status = "okay";
73
74 m25p80@0 {
75 #address-cells = <1>;
76 #size-cells = <1>;
77 compatible = "jedec,spi-nor";
78 reg = <0 0>;
79 linux,modalias = "m25p80", "w25q64";
80 spi-max-frequency = <10000000>;
81
82 partition@0 {
83 label = "u-boot";
84 reg = <0x0 0x30000>;
85 read-only;
86 };
87
88 partition@30000 {
89 label = "u-boot-env";
90 reg = <0x30000 0x10000>;
91 read-only;
92 };
93
94 factory: partition@40000 {
95 label = "factory";
96 reg = <0x40000 0x10000>;
97 read-only;
98 };
99
100 partition@50000 {
101 label = "firmware";
102 reg = <0x50000 0x730000>;
103 };
104
105 partition@780000 {
106 label = "Udata";
107 reg = <0x780000 0x80000>;
108 };
109 };
110 };
111
112 &pinctrl {
113 state_default: pinctrl0 {
114 gpio {
115 ralink,group = "i2c", "spi refclk", "rgmii1", "wled";
116 ralink,function = "gpio";
117 };
118 };
119 };
120
121 &ethernet {
122 pinctrl-names = "default";
123 pinctrl-0 = <&ephy_pins>;
124 mtd-mac-address = <&factory 0x4>;
125 mediatek,portmap = "llllw";
126 };
127
128 &wmac {
129 ralink,mtd-eeprom = <&factory 0>;
130 };