lantiq: remove mac-address-increment
[openwrt/staging/hauke.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / ar9_buffalo_wbmr-hp-g300h.dts
1 #include "ar9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 compatible = "buffalo,wbmr-hp-g300h", "lantiq,xway", "lantiq,ar9";
7 model = "Buffalo WBMR-HP-G300H";
8
9 chosen {
10 bootargs = "console=ttyLTQ0,115200";
11 };
12
13 aliases {
14 led-boot = &power_green;
15 led-failsafe = &power_red;
16 led-running = &power_green;
17 led-upgrade = &power_green;
18
19 led-dsl = &dsl;
20 led-internet = &online_green;
21 led-usb = &led_usb;
22 led-wifi = &wifi;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x4000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
33
34 wps {
35 label = "wps";
36 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
38 };
39 reset {
40 label = "reset";
41 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44 eject {
45 label = "eject";
46 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_EJECTCD>;
48 };
49 movie {
50 label = "movie";
51 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_VIDEO>;
53 };
54 };
55
56 leds {
57 compatible = "gpio-leds";
58
59 power_green: power {
60 label = "green:power";
61 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
62 default-state = "keep";
63 };
64 power_red: power2 {
65 label = "red:power";
66 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
67 };
68 security {
69 label = "yellow:security";
70 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
71 };
72 wifi: wifi {
73 label = "green:wireless";
74 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
75 };
76 dsl: dsl {
77 label = "green:dsl";
78 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
79 };
80 online_green: online {
81 label = "green:internet";
82 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
83 };
84 online2 {
85 label = "red:internet";
86 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
87 };
88 movie {
89 label = "blue:movie";
90 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
91 };
92 led_usb: usb {
93 label = "green:usb";
94 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
95 default-state = "on";
96 };
97 };
98
99 usb_vbus: regulator-usb-vbus {
100 compatible = "regulator-fixed";
101
102 regulator-name = "USB_VBUS";
103
104 regulator-min-microvolt = <5000000>;
105 regulator-max-microvolt = <5000000>;
106
107 gpio = <&gpio 36 GPIO_ACTIVE_HIGH>;
108 enable-active-high;
109 };
110 };
111
112 &gpio {
113 pinctrl-names = "default";
114 pinctrl-0 = <&state_default>;
115
116 state_default: pinmux {
117 pci-in {
118 lantiq,groups = "req1";
119 lantiq,output = <0>;
120 lantiq,open-drain = <1>;
121 lantiq,pull = <2>;
122 };
123 pci-out {
124 lantiq,groups = "gnt1";
125 lantiq,output = <1>;
126 lantiq,pull = <0>;
127 };
128 pci_rst {
129 lantiq,pins = "io21";
130 lantiq,pull = <0>;
131 lantiq,output = <1>;
132 };
133 };
134 };
135
136 &gsw {
137 phy-mode = "rgmii";
138 nvmem-cells = <&macaddr_boardconfig_10024>;
139 nvmem-cell-names = "mac-address";
140 };
141
142 &pci0 {
143 status = "okay";
144 };
145
146 &localbus {
147 flash@0 {
148 compatible = "lantiq,nor";
149 bank-width = <2>;
150 reg = <0 0x0 0x2000000>;
151
152 partitions {
153 compatible = "fixed-partitions";
154 #address-cells = <1>;
155 #size-cells = <1>;
156
157 partition@0 {
158 label = "uboot";
159 reg = <0x00000 0x40000>;
160 read-only;
161 };
162
163 partition@40000 {
164 label = "u-boot-env";
165 reg = <0x40000 0x20000>;
166 read-only;
167 };
168
169 partition@20000 {
170 label = "firmware";
171 reg = <0x60000 0x1f20000>;
172 };
173
174 boardconfig: partition@1fc0000 {
175 label = "board";
176 reg = <0x1fc0000 0x20000>;
177 read-only;
178
179 nvmem-layout {
180 compatible = "fixed-layout";
181 #address-cells = <1>;
182 #size-cells = <1>;
183
184 macaddr_boardconfig_10024: macaddr@10024 {
185 reg = <0x10024 0x6>;
186 };
187 };
188 };
189
190 partition@1fe0000 {
191 label = "calibration";
192 reg = <0x1fe0000 0x20000>;
193 read-only;
194 };
195 };
196 };
197 };
198
199 &usb_phy0 {
200 status = "okay";
201 };
202
203 &usb0 {
204 status = "okay";
205 vbus-supply = <&usb_vbus>;
206 };