ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3052_sitecom_wl-351.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 = "sitecom,wl-351", "ralink,rt3052-soc";
9 model = "Sitecom WL-351 v1 002";
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 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 = "u-boot-env";
37 reg = <0x30000 0x10000>;
38 read-only;
39 };
40
41 partition@40000 {
42 label = "factory";
43 reg = <0x40000 0x10000>;
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_4: macaddr@4 {
56 reg = <0x4 0x6>;
57 };
58 };
59 };
60
61 partition@50000 {
62 compatible = "denx,uimage";
63 label = "firmware";
64 reg = <0x50000 0x3b0000>;
65 };
66 };
67 };
68
69 leds {
70 compatible = "gpio-leds";
71
72 led_power: power {
73 function = LED_FUNCTION_POWER;
74 color = <LED_COLOR_ID_AMBER>;
75 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
76 };
77
78 unpopulated {
79 label = "amber:unpopulated";
80 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
81 };
82
83 unpopulated2 {
84 label = "blue:unpopulated";
85 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
86 };
87 };
88
89 keys {
90 compatible = "gpio-keys-polled";
91 poll-interval = <20>;
92
93 reset {
94 label = "reset";
95 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_RESTART>;
97 };
98
99 wps {
100 label = "wps";
101 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_WPS_BUTTON>;
103 };
104 };
105
106 rtl8366rb {
107 compatible = "realtek,rtl8366rb";
108 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
109 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
110 };
111 };
112
113 &state_default {
114 gpio {
115 groups = "spi", "i2c", "jtag", "mdio", "uartf";
116 function = "gpio";
117 };
118 };
119
120 &ethernet {
121 nvmem-cells = <&macaddr_factory_4>;
122 nvmem-cell-names = "mac-address";
123 pinctrl-names = "default";
124 pinctrl-0 = <&rgmii_pins>;
125 };
126
127 &esw {
128 ralink,rgmii = <1>;
129 mediatek,portmap = <0x3f>;
130 ralink,fct2 = <0x0002500c>;
131 /*
132 * ext phy base addr 31, rx/tx clock skew 0,
133 * turbo mii off, rgmi 3.3v off, port 5 polling off
134 * port5: enabled, gige, full-duplex, rx/tx-flow-control
135 * port6: enabled, gige, full-duplex, rx/tx-flow-control
136 */
137 ralink,fpa2 = <0x1f003fff>;
138 };
139
140 &wmac {
141 nvmem-cells = <&eeprom_factory_0>;
142 nvmem-cell-names = "eeprom";
143 };
144
145 &otg {
146 status = "okay";
147 };