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