ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_planex_mzk-ex750np.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "planex,mzk-ex750np", "ralink,mt7620a-soc";
9 model = "Planex MZK-EX750NP";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_power: power {
22 function = LED_FUNCTION_POWER;
23 color = <LED_COLOR_ID_RED>;
24 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
25 };
26
27 wifi {
28 label = "red:wifi";
29 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
30 };
31
32 wps {
33 function = LED_FUNCTION_WPS;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
36 };
37
38 rep {
39 label = "blue:rep";
40 gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
41 };
42
43 wifi1 {
44 label = "blue:wifi1";
45 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
46 };
47
48 wifi2 {
49 label = "blue:wifi2";
50 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
51 };
52
53 wifi3 {
54 label = "blue:wifi3";
55 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
56 };
57 };
58
59 keys {
60 compatible = "gpio-keys";
61
62 reset {
63 label = "reset";
64 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
66 };
67
68 wps {
69 label = "wps";
70 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
71 linux,code = <KEY_RFKILL>;
72 };
73 };
74 };
75
76 &gpio2 {
77 status = "okay";
78 };
79
80 &gpio3 {
81 status = "okay";
82 };
83
84 &spi0 {
85 status = "okay";
86
87 flash@0 {
88 compatible = "jedec,spi-nor";
89 reg = <0>;
90 spi-max-frequency = <10000000>;
91
92 partitions {
93 compatible = "fixed-partitions";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 partition@0 {
98 label = "u-boot";
99 reg = <0x0 0x30000>;
100 read-only;
101 };
102
103 partition@30000 {
104 label = "u-boot-env";
105 reg = <0x30000 0x10000>;
106 read-only;
107 };
108
109 factory: partition@40000 {
110 label = "factory";
111 reg = <0x40000 0x10000>;
112 read-only;
113
114 nvmem-layout {
115 compatible = "fixed-layout";
116 #address-cells = <1>;
117 #size-cells = <1>;
118
119 eeprom_factory_0: eeprom@0 {
120 reg = <0x0 0x200>;
121 };
122
123 eeprom_factory_8000: eeprom@8000 {
124 reg = <0x8000 0x200>;
125 };
126
127 macaddr_factory_4: macaddr@4 {
128 reg = <0x4 0x6>;
129 };
130 };
131 };
132
133 partition@50000 {
134 compatible = "denx,uimage";
135 label = "firmware";
136 reg = <0x50000 0x730000>;
137 };
138
139 partition@780000 {
140 label = "Udata";
141 reg = <0x780000 0x80000>;
142 };
143 };
144 };
145 };
146
147 &state_default {
148 gpio {
149 groups = "uartf", "nd_sd", "rgmii2", "wled";
150 function = "gpio";
151 };
152 };
153
154 &ethernet {
155 pinctrl-names = "default";
156 pinctrl-0 = <&ephy_pins>;
157
158 nvmem-cells = <&macaddr_factory_4>;
159 nvmem-cell-names = "mac-address";
160
161 mediatek,portmap = "llllw";
162 };
163
164 &wmac {
165 nvmem-cells = <&eeprom_factory_0>;
166 nvmem-cell-names = "eeprom";
167 };
168
169 &pcie {
170 status = "okay";
171 };
172
173 &pcie0 {
174 mt76@0,0 {
175 reg = <0x0000 0 0 0 0>;
176 nvmem-cells = <&eeprom_factory_8000>;
177 nvmem-cell-names = "eeprom";
178 };
179 };