ramips: rtxxxx: remove mac-address-increment
[openwrt/staging/hauke.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 nvmem-cells = <&macaddr_factory_8004 1>;
68 nvmem-cell-names = "mac-address";
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 nvmem-layout {
129 compatible = "fixed-layout";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 eeprom_factory_0: eeprom@0 {
134 reg = <0x0 0x200>;
135 };
136
137 eeprom_factory_8000: eeprom@8000 {
138 reg = <0x8000 0x200>;
139 };
140
141 macaddr_factory_8004: macaddr@8004 {
142 compatible = "mac-base";
143 reg = <0x8004 0x6>;
144 #nvmem-cell-cells = <1>;
145 };
146 };
147 };
148
149 partition@50000 {
150 compatible = "denx,uimage";
151 label = "firmware";
152 reg = <0x50000 0x713000>;
153 };
154
155 partition@763000 {
156 label = "manufacture";
157 reg = <0x763000 0x7D000>;
158 read-only;
159 };
160
161 partition@7E0000 {
162 label = "backup";
163 reg = <0x7E0000 0x10000>;
164 read-only;
165 };
166
167 partition@7F0000 {
168 label = "storage";
169 reg = <0x7F0000 0x10000>;
170 read-only;
171 };
172 };
173 };
174 };
175
176 &pci {
177 status = "okay";
178 };
179
180 &pci1 {
181 status = "okay";
182
183 wifi@0,0 {
184 compatible = "pci1814,3091";
185 reg = <0x10000 0 0 0 0>;
186 nvmem-cells = <&eeprom_factory_8000>;
187 nvmem-cell-names = "eeprom";
188 };
189 };
190
191 &wmac {
192 ralink,2ghz = <0>;
193 nvmem-cells = <&eeprom_factory_0>;
194 nvmem-cell-names = "eeprom";
195 };
196
197 &ehci {
198 status = "okay";
199 };
200
201 &ohci {
202 status = "okay";
203 };