ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_dlink_dwr-118-a2.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 #include <dt-bindings/mtd/partitions/uimage.h>
7
8 / {
9 compatible = "dlink,dwr-118-a2", "ralink,mt7620a-soc";
10 model = "D-Link DWR-118 A2";
11
12 aliases {
13 led-boot = &led_internet;
14 led-failsafe = &led_internet;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 wps {
21 label = "wps";
22 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 };
25
26 reset {
27 label = "reset";
28 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 wan {
37 function = LED_FUNCTION_WAN;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
40 };
41
42 led_internet: internet {
43 label = "green:internet";
44 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
45 };
46
47 lan {
48 function = LED_FUNCTION_LAN;
49 color = <LED_COLOR_ID_GREEN>;
50 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
51 };
52
53 wlan2g {
54 label = "green:wlan2g";
55 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
56 };
57
58 usb {
59 function = LED_FUNCTION_USB;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
62 trigger-sources = <&ohci_port1>, <&ehci_port1>;
63 linux,default-trigger = "usbport";
64 };
65 };
66
67 gpio_export {
68 compatible = "gpio-export";
69 #size-cells = <0>;
70
71 usb {
72 gpio-export,name = "usb";
73 gpio-export,output = <1>;
74 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
75 };
76 };
77 };
78
79 &gpio1 {
80 status = "okay";
81 };
82
83 &gpio2 {
84 status = "okay";
85 };
86
87 &gpio3 {
88 status = "okay";
89 };
90
91 &spi0 {
92 status = "okay";
93
94 flash@0 {
95 compatible = "jedec,spi-nor";
96 reg = <0>;
97 spi-max-frequency = <50000000>;
98
99 partitions {
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 partition@0 {
105 label = "jboot";
106 reg = <0x0 0x10000>;
107 read-only;
108 };
109
110 partition@10000 {
111 compatible = "openwrt,uimage", "denx,uimage";
112 openwrt,ih-magic = <IH_MAGIC_OKLI>;
113 openwrt,offset = <0x10000>;
114 label = "firmware";
115 reg = <0x10000 0xfe0000>;
116 };
117
118 partition@ff0000 {
119 label = "config";
120 reg = <0xff0000 0x10000>;
121 read-only;
122
123 nvmem-layout {
124 compatible = "fixed-layout";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 macaddr_config_e4a8: macaddr@e4a8 {
129 compatible = "mac-base";
130 reg = <0xe4a8 0x6>;
131 #nvmem-cell-cells = <1>;
132 };
133 };
134 };
135 };
136 };
137 };
138
139 &ehci {
140 status = "okay";
141 };
142
143 &ohci {
144 status = "okay";
145 };
146
147 &state_default {
148 default {
149 groups = "ephy", "uartf", "spi refclk", "wled";
150 function = "gpio";
151 };
152 };
153
154 &pcie {
155 status = "okay";
156 };
157
158 &pcie0 {
159 wifi@0,0 {
160 reg = <0x0000 0 0 0 0>;
161 ieee80211-freq-limit = <5000000 6000000>;
162 nvmem-cells = <&macaddr_config_e4a8 2>;
163 nvmem-cell-names = "mac-address";
164
165 led {
166 led-sources = <2>;
167 led-active-low;
168 };
169 };
170 };
171
172 &ethernet {
173 pinctrl-names = "default";
174 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
175
176 mediatek,portmap = "wllll";
177
178 port@4 {
179 status = "okay";
180 phy-handle = <&phy0>;
181 phy-mode = "rgmii";
182 };
183
184 mdio-bus {
185 status = "okay";
186
187 phy0: ethernet-phy@0 {
188 reg = <0>;
189 phy-mode = "rgmii-rxid";
190 };
191 };
192 };
193
194 &gsw {
195 mediatek,port4-gmac;
196 mediatek,ephy-base = /bits/ 8 <2>;
197 };