ramips: enable external amplifier for D-Link DIR-810L
[openwrt/openwrt.git] / target / linux / ramips / dts / MZK-EX750NP.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "planex,mzk-ex750np", "ralink,mt7620a-soc";
10 model = "Planex MZK-EX750NP";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_power: power {
23 label = "mzk-ex750np:red:power";
24 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
25 };
26
27 wifi {
28 label = "mzk-ex750np:red:wifi";
29 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
30 };
31
32 wps {
33 label = "mzk-ex750np:green:wps";
34 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
35 };
36
37 rep {
38 label = "mzk-ex750np:blue:rep";
39 gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
40 };
41
42 wifi1 {
43 label = "mzk-ex750np:blue:wifi1";
44 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
45 };
46
47 wifi2 {
48 label = "mzk-ex750np:blue:wifi2";
49 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
50 };
51
52 wifi3 {
53 label = "mzk-ex750np:blue:wifi3";
54 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
55 };
56 };
57
58 keys {
59 compatible = "gpio-keys-polled";
60 poll-interval = <20>;
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 m25p80@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
115 partition@50000 {
116 compatible = "denx,uimage";
117 label = "firmware";
118 reg = <0x50000 0x730000>;
119 };
120
121 partition@780000 {
122 label = "Udata";
123 reg = <0x780000 0x80000>;
124 };
125 };
126 };
127 };
128
129 &pinctrl {
130 state_default: pinctrl0 {
131 gpio {
132 ralink,group = "uartf", "nd_sd", "rgmii2", "wled";
133 ralink,function = "gpio";
134 };
135 };
136 };
137
138 &ethernet {
139 pinctrl-names = "default";
140 pinctrl-0 = <&ephy_pins>;
141 mtd-mac-address = <&factory 0x4>;
142 mediatek,portmap = "llllw";
143 };
144
145 &wmac {
146 ralink,mtd-eeprom = <&factory 0>;
147 };
148
149 &pcie {
150 status = "okay";
151 };
152
153 &pcie0 {
154 mt76@0,0 {
155 reg = <0x0000 0 0 0 0>;
156 mediatek,mtd-eeprom = <&factory 0x8000>;
157 };
158 };