lantiq: fix avm fritz box mac addresses
[lede.git] / target / linux / lantiq / dts / FRITZ7320.dts
1 /dts-v1/;
2
3 #include "ar9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "FRITZ7320 - 1&1 HomeServer";
9
10         chosen {
11                 bootargs = "console=ttyLTQ0,115200";
12         };
13
14         aliases {
15                 led-boot = &power;
16                 led-failsafe = &power;
17                 led-running = &power;
18
19                 led-internet = &info_green;
20                 led-dsl = &power;
21                 led-wifi = &wlan;
22         };
23
24         memory@0 {
25                 reg = <0x0 0x4000000>;
26         };
27
28         fpi@10000000 {
29                 localbus@0 {
30                         nor-boot@0 {
31                                 compatible = "lantiq,nor";
32                                 bank-width = <2>;
33                                 reg = <0 0x0 0x1000000>;
34                                 #address-cells = <1>;
35                                 #size-cells = <1>;
36
37                                 partitions {
38                                         compatible = "fixed-partitions";
39                                         #address-cells = <1>;
40                                         #size-cells = <1>;
41
42                                         ath9k_cal: partition@0 {
43                                                 label = "urlader";
44                                                 reg = <0x00000 0x20000>;
45                                                 read-only;
46                                         };
47
48                                         partition@20000 {
49                                                 label = "firmware";
50                                                 reg = <0x20000 0xf60000>;
51                                         };
52
53                                         partition@f80000 {
54                                                 label = "tffs (1)";
55                                                 reg = <0xf80000 0x40000>;
56                                                 read-only;
57                                         };
58
59                                         partition@fc0000 {
60                                                 label = "tffs (2)";
61                                                 reg = <0xfc0000 0x40000>;
62                                                 read-only;
63                                         };
64                                 };
65                         };
66                 };
67
68                 gpio: pinmux@E100B10 {
69                         pinctrl-names = "default";
70                         pinctrl-0 = <&state_default>;
71
72                         state_default: pinmux {
73                                 pci {
74                                         lantiq,groups = "gnt1", "req1", "req2", "req3", "req4", "gnt2", "gnt3", "gnt4";
75                                         lantiq,function = "pci";
76                                 };
77                                 pci-in {
78                                         lantiq,groups = "req1", "req2", "req3", "req4";
79                                         lantiq,output = <0>;
80                                         lantiq,open-drain = <1>;
81                                         lantiq,pull = <2>;
82                                 };
83                                 pci-out {
84                                         lantiq,groups = "gnt1", "gnt2", "gnt3", "gnt4";
85                                         lantiq,output = <1>;
86                                         lantiq,pull = <0>;
87                                 };
88                         };
89                 };
90
91                 etop@E180000 {
92                         phy-mode = "mii";
93                         mtd-mac-address = <&ath9k_cal 0xa91>;
94                         mtd-mac-address-increment = <(-2)>;
95                 };
96
97                 ifxhcd@E101000 {
98                         status = "okay";
99                 };
100         };
101
102         gpio-keys-polled {
103                 compatible = "gpio-keys-polled";
104                 #address-cells = <1>;
105                 #size-cells = <0>;
106                 poll-interval = <100>;
107
108                 rfkill {
109                         label = "rfkill";
110                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
111                         linux,code = <KEY_RFKILL>;
112                 };
113                 dect {
114                         label = "dect";
115                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
116                         linux,code = <KEY_PHONE>;
117                 };
118         };
119
120         gpio-leds {
121                 compatible = "gpio-leds";
122                 power: power {
123                         label = "fritz7320:green:power";
124                         gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
125                         default-state = "keep";
126                 };
127                 voice {
128                         label = "fritz7320:green:fon";
129                         gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
130                 };
131                 dect {
132                         label = "fritz7320:green:dect";
133                         gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
134                 };
135                 wlan: wlan {
136                         label = "fritz7320:green:wlan";
137                         gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
138                 };
139                 info_green: info_green {
140                         label = "fritz7320:green:info";
141                         gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
142                 };
143                 info_red {
144                         label = "fritz7320:red:info";
145                         gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
146                 };
147         };
148 };
149
150 &pci0 {
151         status = "okay";
152         req-mask = <0xf>;
153         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
154
155         wifi@0,0 {
156                 compatible = "pci0,0";
157                 reg = <0x7000 0 0 0 0>;
158                 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
159         };
160 };