lantiq: remove mac-address-increment
[openwrt/staging/hauke.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / danube_arcadyan_arv7525pw.dts
1 #include "danube.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 compatible = "arcadyan,arv7525pw", "lantiq,xway", "lantiq,danube";
7 model = "Speedport W303V Typ A";
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 = &power_green;
20 led-internet = &online;
21 led-wifi = &wifi;
22 };
23
24 memory@0 {
25 device_type = "memory";
26 reg = <0x0 0x2000000>;
27 };
28
29 keys {
30 compatible = "gpio-keys-polled";
31 poll-interval = <100>;
32
33 wps {
34 label = "wps";
35 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 };
38 reset {
39 label = "reset";
40 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 };
44
45 leds {
46 compatible = "gpio-leds";
47 power_green: power {
48 label = "green:power";
49 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
50 default-state = "keep";
51 };
52 power_red: power1 {
53 label = "red:power";
54 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
55 };
56 online: online {
57 label = "green:online";
58 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
59 };
60 voice {
61 label = "green:telefonie";
62 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
63 };
64 voice2 {
65 label = "red:telefonie";
66 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
67 };
68 wifi: wifi {
69 label = "green:wlan";
70 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
71 };
72 };
73 };
74
75 &gpio {
76 pinctrl-names = "default";
77 pinctrl-0 = <&state_default>;
78
79 state_default: pinmux {
80 exin {
81 lantiq,groups = "exin1";
82 lantiq,function = "exin";
83 };
84 };
85 };
86
87 &gsw {
88 phy-mode = "mii";
89 nvmem-cells = <&macaddr_boardconfig_16>;
90 nvmem-cell-names = "mac-address";
91 };
92
93 &localbus {
94 flash@0 {
95 compatible = "lantiq,nor";
96 bank-width = <2>;
97 reg = <0 0x0 0x2000000>;
98
99 partitions {
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 partition@0 {
105 label = "uboot";
106 reg = <0x00000 0x10000>;
107 read-only;
108 };
109
110 partition@10000 {
111 label = "u-boot-env";
112 reg = <0x10000 0x10000>;
113 read-only;
114 };
115
116 partition@20000 {
117 label = "firmware";
118 reg = <0x20000 0x3d0000>;
119 };
120
121 boardconfig: partition@3f0000 {
122 label = "board_config";
123 reg = <0x3f0000 0x10000>;
124 read-only;
125
126 nvmem-layout {
127 compatible = "fixed-layout";
128 #address-cells = <1>;
129 #size-cells = <1>;
130
131 macaddr_boardconfig_16: macaddr@16 {
132 reg = <0x16 0x6>;
133 };
134 };
135 };
136 };
137 };
138 };
139
140 &pci0 {
141 status = "okay";
142
143 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
144 pinctrl-names = "default";
145
146 interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
147
148 wifi@0,0 {
149 compatible = "pci0,0";
150 reg = <0x7000 0 0 0 0>;
151 ralink,mtd-eeprom = <&boardconfig 0x410>;
152 };
153 };
154
155 &vmmc {
156 status = "okay";
157 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
158 };