ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3052_dlink_dap-1350.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 = "dlink,dap-1350", "ralink,rt3052-soc";
9 model = "D-Link DAP-1350";
10
11 aliases {
12 led-boot = &led_power_blue;
13 led-failsafe = &led_power_blue;
14 led-running = &led_power_blue;
15 led-upgrade = &led_power_blue;
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 = "devdata";
41 reg = <0x30000 0x10000>;
42 read-only;
43
44 nvmem-layout {
45 compatible = "fixed-layout";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 eeprom_devdata_0: eeprom@0 {
50 reg = <0x0 0x200>;
51 };
52
53 macaddr_devdata_2e: macaddr@2e {
54 reg = <0x2e 0x6>;
55 };
56 };
57 };
58
59 partition@40000 {
60 label = "devconf";
61 reg = <0x40000 0x30000>;
62 read-only;
63 };
64
65 partition@70000 {
66 label = "devlang";
67 reg = <0x70000 0x40000>;
68 read-only;
69 };
70
71 partition@b0000 {
72 compatible = "denx,uimage";
73 label = "firmware";
74 reg = <0xb0000 0x750000>;
75 };
76 };
77 };
78
79 leds {
80 compatible = "gpio-leds";
81
82 led_power_blue: power {
83 function = LED_FUNCTION_POWER;
84 color = <LED_COLOR_ID_BLUE>;
85 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
86 };
87
88 power2 {
89 function = LED_FUNCTION_POWER;
90 color = <LED_COLOR_ID_RED>;
91 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
92 };
93
94 wps {
95 function = LED_FUNCTION_WPS;
96 color = <LED_COLOR_ID_BLUE>;
97 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
98 };
99 };
100
101 keys {
102 compatible = "gpio-keys-polled";
103 poll-interval = <20>;
104
105 reset {
106 label = "reset";
107 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
108 linux,code = <KEY_RESTART>;
109 };
110
111 wps {
112 label = "wps";
113 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_WPS_BUTTON>;
115 };
116
117 rt {
118 label = "rt";
119 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
120 linux,code = <BTN_0>;
121 };
122
123 ap {
124 label = "ap";
125 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
126 linux,code = <BTN_1>;
127 };
128 };
129 };
130
131 &state_default {
132 gpio {
133 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
134 function = "gpio";
135 };
136 };
137
138 &ethernet {
139 nvmem-cells = <&macaddr_devdata_2e>;
140 nvmem-cell-names = "mac-address";
141 };
142
143 &esw {
144 mediatek,portmap = <0x2f>;
145 };
146
147 &wmac {
148 nvmem-cells = <&eeprom_devdata_0>;
149 nvmem-cell-names = "eeprom";
150 };
151
152 &otg {
153 status = "okay";
154 };