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