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