ramips: Change all '/include/' clauses to '#include' so preprocessing can be done...
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / MZK-EX750NP.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6 compatible = "ralink,mt7620a-soc";
7 model = "Planex MZK-EX750NP";
8
9 palmbus@10000000 {
10 gpio2: gpio@660 {
11 status = "okay";
12 };
13
14 gpio3: gpio@688 {
15 status = "okay";
16 };
17
18 spi@b00 {
19 status = "okay";
20
21 m25p80@0 {
22 #address-cells = <1>;
23 #size-cells = <1>;
24 compatible = "jedec,spi-nor";
25 reg = <0 0>;
26 linux,modalias = "m25p80", "w25q64";
27 spi-max-frequency = <10000000>;
28
29 partition@0 {
30 label = "u-boot";
31 reg = <0x0 0x30000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "u-boot-env";
37 reg = <0x30000 0x10000>;
38 read-only;
39 };
40
41 factory: partition@40000 {
42 label = "factory";
43 reg = <0x40000 0x10000>;
44 read-only;
45 };
46
47 partition@50000 {
48 label = "firmware";
49 reg = <0x50000 0x730000>;
50 };
51
52 partition@780000 {
53 label = "Udata";
54 reg = <0x780000 0x80000>;
55 };
56 };
57 };
58 };
59
60 pinctrl {
61 state_default: pinctrl0 {
62 gpio {
63 ralink,group = "uartf", "nd_sd", "rgmii2", "wled";
64 ralink,function = "gpio";
65 };
66 };
67 };
68
69 ethernet@10100000 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&ephy_pins>;
72 mtd-mac-address = <&factory 0x4>;
73 mediatek,portmap = "llllw";
74 };
75
76 wmac@10180000 {
77 ralink,mtd-eeprom = <&factory 0>;
78 };
79
80 pcie@10140000 {
81 status = "okay";
82
83 pcie-bridge {
84 mt76@0,0 {
85 reg = <0x0000 0 0 0 0>;
86 device_type = "pci";
87 mediatek,mtd-eeprom = <&factory 0x8000>;
88 mediatek,2ghz = <0>;
89 };
90 };
91 };
92
93 gpio-leds {
94 compatible = "gpio-leds";
95
96 power {
97 label = "mzk-ex750np:red:power";
98 gpios = <&gpio0 14 1>;
99 };
100
101 wifi {
102 label = "mzk-ex750np:red:wifi";
103 gpios = <&gpio3 0 1>;
104 };
105
106 wps {
107 label = "mzk-ex750np:green:wps";
108 gpios = <&gpio0 10 1>;
109 };
110
111 rep {
112 label = "mzk-ex750np:blue:rep";
113 gpios = <&gpio2 16 1>;
114 };
115
116 wifi1 {
117 label = "mzk-ex750np:blue:wifi1";
118 gpios = <&gpio2 19 1>;
119 };
120
121 wifi2 {
122 label = "mzk-ex750np:blue:wifi2";
123 gpios = <&gpio2 18 1>;
124 };
125
126 wifi3 {
127 label = "mzk-ex750np:blue:wifi3";
128 gpios = <&gpio2 17 1>;
129 };
130 };
131
132 gpio-keys-polled {
133 compatible = "gpio-keys-polled";
134 #address-cells = <1>;
135 #size-cells = <0>;
136 poll-interval = <20>;
137
138 reset {
139 label = "reset";
140 gpios = <&gpio0 9 1>;
141 linux,code = <0x198>;
142 };
143
144 wps {
145 label = "wps";
146 gpios = <&gpio0 13 0>;
147 linux,code = <0x211>;
148 };
149 };
150 };