ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3052_huawei_hg255d.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 = "huawei,hg255d", "ralink,rt3052-soc";
9 model = "HuaWei HG255D";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 flash@1f000000 {
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x1000000>;
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 0x40000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "u-boot-env";
37 reg = <0x40000 0x20000>;
38 read-only;
39 };
40
41 partition@60000 {
42 label = "factory";
43 reg = <0x60000 0x20000>;
44 read-only;
45
46 nvmem-layout {
47 compatible = "fixed-layout";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 eeprom_factory_0: eeprom@0 {
52 reg = <0x0 0x200>;
53 };
54
55 macaddr_factory_28: macaddr@28 {
56 reg = <0x28 0x6>;
57 };
58 };
59 };
60
61 partition@80000 {
62 compatible = "denx,uimage";
63 label = "firmware";
64 reg = <0x80000 0xf60000>;
65 };
66
67 partition@fa0000 {
68 label = "factory-orig";
69 reg = <0xfa0000 0x20000>;
70 read-only;
71 };
72 };
73 };
74
75 leds {
76 compatible = "gpio-leds";
77
78 led_power: power {
79 function = LED_FUNCTION_POWER;
80 color = <LED_COLOR_ID_GREEN>;
81 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
82 };
83
84 internet {
85 label = "green:internet";
86 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
87 };
88
89 wifi {
90 function = LED_FUNCTION_WLAN;
91 color = <LED_COLOR_ID_GREEN>;
92 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
93 };
94
95 usb {
96 function = LED_FUNCTION_USB;
97 color = <LED_COLOR_ID_GREEN>;
98 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
99 trigger-sources = <&otg_port1>;
100 linux,default-trigger = "usbport";
101 };
102
103 wps {
104 function = LED_FUNCTION_WPS;
105 color = <LED_COLOR_ID_GREEN>;
106 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
107 };
108
109 voice {
110 label = "green:voice";
111 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
112 };
113 };
114
115 keys {
116 compatible = "gpio-keys-polled";
117 poll-interval = <10>;
118
119 reset {
120 label = "reset";
121 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
122 linux,code = <KEY_RESTART>;
123 };
124
125 wps {
126 label = "wps";
127 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
128 linux,code = <KEY_WPS_BUTTON>;
129 };
130
131 rfkill {
132 label = "rfkill";
133 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
134 linux,code = <KEY_RFKILL>;
135 };
136 };
137 };
138
139 &state_default {
140 gpio {
141 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
142 function = "gpio";
143 };
144 };
145
146 &ethernet {
147 nvmem-cells = <&macaddr_factory_28>;
148 nvmem-cell-names = "mac-address";
149 };
150
151 &esw {
152 mediatek,portmap = <0x2f>;
153 };
154
155 &wmac {
156 nvmem-cells = <&eeprom_factory_0>;
157 nvmem-cell-names = "eeprom";
158 };
159
160 &otg {
161 status = "okay";
162 };