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