ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_asus_wl-330n3g.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 = "asus,wl-330n3g", "ralink,rt3050-soc";
9 model = "Asus WL-330N3G";
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 leds {
19 compatible = "gpio-leds";
20
21 3g {
22 label = "blue:3g";
23 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
24 };
25
26 3g2 {
27 label = "red:3g";
28 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
29 };
30
31 led_power: power {
32 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_BLUE>;
34 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys-polled";
40 poll-interval = <20>;
41
42 reset {
43 label = "reset";
44 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
46 };
47
48 wps {
49 label = "wps";
50 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 };
53 };
54 };
55
56 &spi0 {
57 status = "okay";
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <10000000>;
63
64 partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x0 0x30000>;
72 read-only;
73 };
74
75 partition@30000 {
76 label = "u-boot-env";
77 reg = <0x30000 0x10000>;
78 read-only;
79 };
80
81 partition@40000 {
82 label = "factory";
83 reg = <0x40000 0x10000>;
84 read-only;
85
86 nvmem-layout {
87 compatible = "fixed-layout";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 eeprom_factory_0: eeprom@0 {
92 reg = <0x0 0x200>;
93 };
94
95 macaddr_factory_4: macaddr@4 {
96 reg = <0x4 0x6>;
97 };
98 };
99 };
100
101 partition@50000 {
102 compatible = "denx,uimage";
103 label = "firmware";
104 reg = <0x50000 0x3b0000>;
105 };
106 };
107 };
108 };
109
110 &state_default {
111 gpio {
112 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
113 function = "gpio";
114 };
115 };
116
117 &ethernet {
118 nvmem-cells = <&macaddr_factory_4>;
119 nvmem-cell-names = "mac-address";
120 };
121
122 &esw {
123 mediatek,portmap = <0x3e>;
124 };
125
126 &wmac {
127 nvmem-cells = <&eeprom_factory_0>;
128 nvmem-cell-names = "eeprom";
129 };
130
131 &otg {
132 status = "okay";
133 };