ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_dlink_dir-300-b1.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,dir-300-b1", "ralink,rt3050-soc";
9 model = "D-Link DIR-300 B1";
10
11 aliases {
12 led-boot = &led_status_green;
13 led-failsafe = &led_status_green;
14 led-running = &led_status_green;
15 led-upgrade = &led_status_green;
16 };
17
18 flash@1f000000 {
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x800000>;
21 bank-width = <2>;
22 device-width = <2>;
23
24 partitions {
25 compatible = "fixed-partitions";
26 #address-cells = <1>;
27 #size-cells = <1>;
28
29 partition@0 {
30 label = "u-boot";
31 reg = <0x0 0x30000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "devdata";
37 reg = <0x30000 0x10000>;
38 read-only;
39
40 nvmem-layout {
41 compatible = "fixed-layout";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 eeprom_devdata_4000: eeprom@4000 {
46 reg = <0x4000 0x200>;
47 };
48
49 macaddr_devdata_4004: macaddr@4004 {
50 reg = <0x4004 0x6>;
51 };
52 };
53 };
54
55 partition@40000 {
56 label = "devconf";
57 reg = <0x40000 0x10000>;
58 read-only;
59 };
60
61 partition@50000 {
62 compatible = "denx,uimage";
63 label = "firmware";
64 reg = <0x50000 0x3b0000>;
65 };
66 };
67 };
68
69 keys {
70 compatible = "gpio-keys-polled";
71 poll-interval = <20>;
72
73 reset {
74 label = "reset";
75 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
77 };
78
79 wps {
80 label = "wps";
81 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
83 };
84 };
85
86 leds {
87 compatible = "gpio-leds";
88
89 status {
90 function = LED_FUNCTION_STATUS;
91 color = <LED_COLOR_ID_AMBER>;
92 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
93 };
94
95 led_status_green: status2 {
96 function = LED_FUNCTION_STATUS;
97 color = <LED_COLOR_ID_GREEN>;
98 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
99 };
100
101 wan {
102 function = LED_FUNCTION_WAN;
103 color = <LED_COLOR_ID_AMBER>;
104 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
105 };
106
107 wan2 {
108 function = LED_FUNCTION_WAN;
109 color = <LED_COLOR_ID_GREEN>;
110 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
111 };
112
113 wps {
114 function = LED_FUNCTION_WPS;
115 color = <LED_COLOR_ID_BLUE>;
116 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
117 };
118 };
119 };
120
121 &state_default {
122 gpio {
123 groups = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
124 function = "gpio";
125 };
126 };
127
128 &ethernet {
129 nvmem-cells = <&macaddr_devdata_4004>;
130 nvmem-cell-names = "mac-address";
131 };
132
133 &esw {
134 mediatek,portmap = <0x2f>;
135 };
136
137 &wmac {
138 nvmem-cells = <&eeprom_devdata_4000>;
139 nvmem-cell-names = "eeprom";
140 };