ramips: set F5D8235 v1 usb led trigger via devicetree
[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 compatible = "sitecom,wlr-6000", "ralink,rt3883-soc";
10 model = "Sitecom WLR-6000";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 reset {
21 label = "reset";
22 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25 };
26
27 gpio-leds {
28 compatible = "gpio-leds";
29
30 led_power: power {
31 label = "wlr-6000:red:power";
32 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
33 };
34
35 ops {
36 label = "wlr-6000:white:ops";
37 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 gpio_export {
42 compatible = "gpio-export";
43 #size-cells = <0>;
44
45 usb {
46 gpio-export,name = "usb";
47 gpio-export,output = <1>;
48 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
49 };
50 };
51 };
52
53 &gpio1 {
54 status = "okay";
55 };
56
57 &pinctrl {
58 state_default: pinctrl0 {
59 gpio {
60 ralink,group = "i2c", "jtag", "uartf";
61 ralink,function = "gpio";
62 };
63 };
64 };
65
66 &ethernet {
67 status = "okay";
68 mtd-mac-address = <&factory 0x8004>;
69 mtd-mac-address-increment = <1>;
70
71 port@0 {
72 phy-handle = <&phy0>;
73 phy-mode = "rgmii";
74 };
75
76 mdio-bus {
77 status = "okay";
78
79 phy0: ethernet-phy@0 {
80 reg = <0>;
81 phy-mode = "rgmii";
82
83 qca,ar8327-initvals = <
84 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
85 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
86 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
87 0x50 0xc437c437 /* LED Control Register 0 */
88 0x54 0xc337c337 /* LED Control Register 1 */
89 0x58 0x00000000 /* LED Control Register 2 */
90 0x5c 0x03ffff00 /* LED Control Register 3 */
91 0x7c 0x0000007e /* PORT0_STATUS */
92 0x94 0x0000007e /* PORT6 STATUS */
93 >;
94 };
95 };
96 };
97
98 &spi0 {
99 status = "okay";
100
101 m25p80@0 {
102 compatible = "jedec,spi-nor";
103 reg = <0>;
104 spi-max-frequency = <8600000>;
105 m25p,fast-read;
106
107 partitions {
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
110 #size-cells = <1>;
111
112 partition@0 {
113 label = "u-boot";
114 reg = <0x0 0x30000>;
115 read-only;
116 };
117
118 partition@30000 {
119 label = "u-boot-env";
120 reg = <0x30000 0x10000>;
121 read-only;
122 };
123
124 factory: partition@40000 {
125 label = "factory";
126 reg = <0x40000 0x10000>;
127 read-only;
128 };
129
130 partition@50000 {
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 };