ramips: fix pci/pcie related dtc warnings
[openwrt/staging/wigyori.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 #address-cells = <1>;
19 #size-cells = <0>;
20 poll-interval = <20>;
21
22 reset {
23 label = "reset";
24 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31
32 led_power: power {
33 label = "wlr-6000:red:power";
34 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
35 };
36
37 ops {
38 label = "wlr-6000:white:ops";
39 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
40 };
41 };
42
43 gpio_export {
44 compatible = "gpio-export";
45 #size-cells = <0>;
46
47 usb {
48 gpio-export,name = "usb";
49 gpio-export,output = <1>;
50 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
51 };
52 };
53 };
54
55 &gpio1 {
56 status = "okay";
57 };
58
59 &pinctrl {
60 state_default: pinctrl0 {
61 gpio {
62 ralink,group = "i2c", "jtag", "uartf";
63 ralink,function = "gpio";
64 };
65 };
66 };
67
68 &ethernet {
69 status = "okay";
70 mtd-mac-address = <&factory 0x8004>;
71 mtd-mac-address-increment = <1>;
72
73 port@0 {
74 phy-handle = <&phy0>;
75 phy-mode = "rgmii";
76 };
77
78 mdio-bus {
79 status = "okay";
80
81 phy0: ethernet-phy@0 {
82 reg = <0>;
83 phy-mode = "rgmii";
84
85 qca,ar8327-initvals = <
86 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
87 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
88 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
89 0x50 0xc437c437 /* LED Control Register 0 */
90 0x54 0xc337c337 /* LED Control Register 1 */
91 0x58 0x00000000 /* LED Control Register 2 */
92 0x5c 0x03ffff00 /* LED Control Register 3 */
93 0x7c 0x0000007e /* PORT0_STATUS */
94 0x94 0x0000007e /* PORT6 STATUS */
95 >;
96 };
97 };
98 };
99
100 &spi0 {
101 status = "okay";
102
103 m25p80@0 {
104 #address-cells = <1>;
105 #size-cells = <1>;
106 compatible = "jedec,spi-nor";
107 reg = <0>;
108 spi-max-frequency = <8600000>;
109 m25p,fast-read;
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 label = "firmware";
131 reg = <0x50000 0x713000>;
132 };
133
134 partition@763000 {
135 label = "manufacture";
136 reg = <0x763000 0x7D000>;
137 read-only;
138 };
139
140 partition@7E0000 {
141 label = "backup";
142 reg = <0x7E0000 0x10000>;
143 read-only;
144 };
145
146 partition@7F0000 {
147 label = "storage";
148 reg = <0x7F0000 0x10000>;
149 read-only;
150 };
151 };
152 };
153
154 &pci {
155 status = "okay";
156 };
157
158 &pci1 {
159 status = "okay";
160
161 wifi@0,0 {
162 compatible = "pci1814,3091";
163 reg = <0x10000 0 0 0 0>;
164 ralink,mtd-eeprom = <&factory 0x8000>;
165 };
166 };
167
168 &wmac {
169 status = "okay";
170 ralink,2ghz = <0>;
171 ralink,mtd-eeprom = <&factory 0x0>;
172 };
173
174 &ehci {
175 status = "okay";
176 };
177
178 &ohci {
179 status = "okay";
180 };