lantiq: fix console print
[openwrt/staging/chunkeey.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 };
94
95 ifxhcd@E101000 {
96 status = "okay";
97 };
98 };
99
100 gpio-keys-polled {
101 compatible = "gpio-keys-polled";
102 #address-cells = <1>;
103 #size-cells = <0>;
104 poll-interval = <100>;
105
106 rfkill {
107 label = "rfkill";
108 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_RFKILL>;
110 };
111 dect {
112 label = "dect";
113 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_PHONE>;
115 };
116 };
117
118 gpio-leds {
119 compatible = "gpio-leds";
120 power: power {
121 label = "fritz7320:green:power";
122 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
123 default-state = "keep";
124 };
125 voice {
126 label = "fritz7320:green:fon";
127 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
128 };
129 dect {
130 label = "fritz7320:green:dect";
131 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
132 };
133 wlan: wlan {
134 label = "fritz7320:green:wlan";
135 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
136 };
137 info_green: info_green {
138 label = "fritz7320:green:info";
139 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
140 };
141 info_red {
142 label = "fritz7320:red:info";
143 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
144 };
145 };
146 };
147
148 &pci0 {
149 status = "okay";
150 req-mask = <0xf>;
151 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
152
153 wifi@0,0 {
154 compatible = "pci0,0";
155 reg = <0x7000 0 0 0 0>;
156 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
157 };
158 };