ramips: remove model name from LED labels
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3883_sitecom_wlr-6000.dts
1 #include "rt3883.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "sitecom,wlr-6000", "ralink,rt3883-soc";
8 model = "Sitecom WLR-6000";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 keys {
18 compatible = "gpio-keys-polled";
19 poll-interval = <20>;
20
21 reset {
22 label = "reset";
23 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_power: power {
32 label = "red:power";
33 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
34 };
35
36 ops {
37 label = "white:ops";
38 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 gpio_export {
43 compatible = "gpio-export";
44 #size-cells = <0>;
45
46 usb {
47 gpio-export,name = "usb";
48 gpio-export,output = <1>;
49 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
50 };
51 };
52 };
53
54 &gpio1 {
55 status = "okay";
56 };
57
58 &state_default {
59 gpio {
60 groups = "i2c", "jtag", "uartf";
61 function = "gpio";
62 };
63 };
64
65 &ethernet {
66 status = "okay";
67 mtd-mac-address = <&factory 0x8004>;
68 mtd-mac-address-increment = <1>;
69
70 port@0 {
71 phy-handle = <&phy0>;
72 phy-mode = "rgmii";
73 };
74
75 mdio-bus {
76 status = "okay";
77
78 phy0: ethernet-phy@0 {
79 reg = <0>;
80 phy-mode = "rgmii";
81
82 qca,ar8327-initvals = <
83 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
84 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
85 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
86 0x50 0xc437c437 /* LED Control Register 0 */
87 0x54 0xc337c337 /* LED Control Register 1 */
88 0x58 0x00000000 /* LED Control Register 2 */
89 0x5c 0x03ffff00 /* LED Control Register 3 */
90 0x7c 0x0000007e /* PORT0_STATUS */
91 0x94 0x0000007e /* PORT6 STATUS */
92 >;
93 };
94 };
95 };
96
97 &spi0 {
98 status = "okay";
99
100 flash@0 {
101 compatible = "jedec,spi-nor";
102 reg = <0>;
103 spi-max-frequency = <8600000>;
104 m25p,fast-read;
105
106 partitions {
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 partition@0 {
112 label = "u-boot";
113 reg = <0x0 0x30000>;
114 read-only;
115 };
116
117 partition@30000 {
118 label = "u-boot-env";
119 reg = <0x30000 0x10000>;
120 read-only;
121 };
122
123 factory: partition@40000 {
124 label = "factory";
125 reg = <0x40000 0x10000>;
126 read-only;
127 };
128
129 partition@50000 {
130 compatible = "denx,uimage";
131 label = "firmware";
132 reg = <0x50000 0x713000>;
133 };
134
135 partition@763000 {
136 label = "manufacture";
137 reg = <0x763000 0x7D000>;
138 read-only;
139 };
140
141 partition@7E0000 {
142 label = "backup";
143 reg = <0x7E0000 0x10000>;
144 read-only;
145 };
146
147 partition@7F0000 {
148 label = "storage";
149 reg = <0x7F0000 0x10000>;
150 read-only;
151 };
152 };
153 };
154 };
155
156 &pci {
157 status = "okay";
158 };
159
160 &pci1 {
161 status = "okay";
162
163 wifi@0,0 {
164 compatible = "pci1814,3091";
165 reg = <0x10000 0 0 0 0>;
166 ralink,mtd-eeprom = <&factory 0x8000>;
167 };
168 };
169
170 &wmac {
171 status = "okay";
172 ralink,2ghz = <0>;
173 ralink,mtd-eeprom = <&factory 0x0>;
174 };
175
176 &ehci {
177 status = "okay";
178 };
179
180 &ohci {
181 status = "okay";
182 };