ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3052_alfa-network_w502u.dts
1 #include "rt3050.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 = "alfa-network,w502u", "ralink,rt3052-soc";
9 model = "ALFA Network W502U";
10
11 aliases {
12 led-boot = &led_wps;
13 led-failsafe = &led_wps;
14 led-running = &led_wps;
15 led-upgrade = &led_wps;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 flash@1f000000 {
23 compatible = "cfi-flash";
24 reg = <0x1f000000 0x800000>;
25 bank-width = <2>;
26 device-width = <2>;
27
28 partitions {
29 compatible = "fixed-partitions";
30 #address-cells = <1>;
31 #size-cells = <1>;
32
33 partition@0 {
34 label = "u-boot";
35 reg = <0x0 0x30000>;
36 read-only;
37 };
38
39 partition@30000 {
40 label = "u-boot-env";
41 reg = <0x30000 0x10000>;
42 read-only;
43 };
44
45 partition@40000 {
46 label = "factory";
47 reg = <0x40000 0x10000>;
48 read-only;
49
50 nvmem-layout {
51 compatible = "fixed-layout";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 eeprom_factory_0: eeprom@0 {
56 reg = <0x0 0x200>;
57 };
58
59 macaddr_factory_28: macaddr@28 {
60 reg = <0x28 0x6>;
61 };
62 };
63 };
64
65 partition@50000 {
66 compatible = "denx,uimage";
67 label = "firmware";
68 reg = <0x50000 0x7b0000>;
69 };
70 };
71 };
72
73 leds {
74 compatible = "gpio-leds";
75
76 usb {
77 function = LED_FUNCTION_USB;
78 color = <LED_COLOR_ID_BLUE>;
79 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
80 trigger-sources = <&otg_port1>;
81 linux,default-trigger = "usbport";
82 };
83
84 led_wps: wps {
85 function = LED_FUNCTION_WPS;
86 color = <LED_COLOR_ID_BLUE>;
87 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
88 };
89 };
90
91 keys {
92 compatible = "gpio-keys-polled";
93 poll-interval = <20>;
94
95 reset {
96 label = "reset";
97 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_RESTART>;
99 };
100
101 wps {
102 label = "wps";
103 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_WPS_BUTTON>;
105 };
106 };
107 };
108
109 &state_default {
110 gpio {
111 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
112 function = "gpio";
113 };
114 };
115
116 &ethernet {
117 nvmem-cells = <&macaddr_factory_28>;
118 nvmem-cell-names = "mac-address";
119 };
120
121 &esw {
122 mediatek,portmap = <0x3e>;
123 };
124
125 &wmac {
126 nvmem-cells = <&eeprom_factory_0>;
127 nvmem-cell-names = "eeprom";
128 };
129
130 &otg {
131 status = "okay";
132 };