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