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