4cc491531276125e3bfe8950314d5f39b6a5defd
[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 chosen {
11 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
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 ath9k_eep {
69 compatible = "ath9k,eeprom";
70 ath,eep-flash = <&ath9k_cal 0x985>;
71 ath,device-id = /bits/ 16 <0xff1d 0x2d>;
72 ath,eep-endian;
73 ath,eep-swap;
74 };
75
76 gpio: pinmux@E100B10 {
77 pinctrl-names = "default";
78 pinctrl-0 = <&state_default>;
79
80 state_default: pinmux {
81 pci {
82 lantiq,groups = "gnt1", "req1", "req2", "req3", "req4", "gnt2", "gnt3", "gnt4";
83 lantiq,function = "pci";
84 };
85 pci-in {
86 lantiq,groups = "req1", "req2", "req3", "req4";
87 lantiq,output = <0>;
88 lantiq,open-drain = <1>;
89 lantiq,pull = <2>;
90 };
91 pci-out {
92 lantiq,groups = "gnt1", "gnt2", "gnt3", "gnt4";
93 lantiq,output = <1>;
94 lantiq,pull = <0>;
95 };
96 };
97 };
98
99 etop@E180000 {
100 phy-mode = "mii";
101 };
102
103 ifxhcd@E101000 {
104 status = "okay";
105 };
106
107 pci@E105400 {
108 status = "okay";
109 req-mask = <0xf>;
110 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
111 };
112 };
113
114 gpio-keys-polled {
115 compatible = "gpio-keys-polled";
116 #address-cells = <1>;
117 #size-cells = <0>;
118 poll-interval = <100>;
119
120 rfkill {
121 label = "rfkill";
122 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
123 linux,code = <KEY_RFKILL>;
124 };
125 dect {
126 label = "dect";
127 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
128 linux,code = <KEY_PHONE>;
129 };
130 };
131
132 gpio-leds {
133 compatible = "gpio-leds";
134 power: power {
135 label = "fritz7320:green:power";
136 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
137 default-state = "keep";
138 };
139 voice {
140 label = "fritz7320:green:fon";
141 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
142 };
143 dect {
144 label = "fritz7320:green:dect";
145 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
146 };
147 wlan: wlan {
148 label = "fritz7320:green:wlan";
149 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
150 };
151 info_green: info_green {
152 label = "fritz7320:green:info";
153 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
154 };
155 info_red {
156 label = "fritz7320:red:info";
157 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
158 };
159 };
160 };