569d0a951cbe41b38261e7e67894a468190406f3
[openwrt/openwrt.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 linux,modalias = "m25p80", "w25q64";
82 spi-max-frequency = <10000000>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x0 0x30000>;
87 read-only;
88 };
89
90 partition@30000 {
91 label = "u-boot-env";
92 reg = <0x30000 0x10000>;
93 read-only;
94 };
95
96 factory: partition@40000 {
97 label = "factory";
98 reg = <0x40000 0x10000>;
99 read-only;
100 };
101
102 partition@50000 {
103 label = "firmware";
104 reg = <0x50000 0x730000>;
105 };
106
107 partition@780000 {
108 label = "Udata";
109 reg = <0x780000 0x80000>;
110 };
111 };
112 };
113
114 &pinctrl {
115 state_default: pinctrl0 {
116 gpio {
117 ralink,group = "i2c", "spi refclk", "rgmii1", "wled";
118 ralink,function = "gpio";
119 };
120 };
121 };
122
123 &ethernet {
124 pinctrl-names = "default";
125 pinctrl-0 = <&ephy_pins>;
126 mtd-mac-address = <&factory 0x4>;
127 mediatek,portmap = "llllw";
128 };
129
130 &wmac {
131 ralink,mtd-eeprom = <&factory 0>;
132 };