lantiq: copy target to kernel 5.4
[openwrt/staging/chunkeey.git] / target / linux / lantiq / files-4.19 / arch / mips / boot / dts / lantiq / ar9_avm_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 = "AVM FRITZ!Box 7320";
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 led-upgrade = &power;
20
21 led-dsl = &info_green;
22 led-wifi = &wlan;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x4000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
33
34 rfkill {
35 label = "rfkill";
36 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RFKILL>;
38 };
39 dect {
40 label = "dect";
41 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_PHONE>;
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48 power: power {
49 label = "fritz7320:green:power";
50 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
51 default-state = "keep";
52 };
53 voice {
54 label = "fritz7320:green:fon";
55 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
56 };
57 dect {
58 label = "fritz7320:green:dect";
59 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
60 };
61 wlan: wlan {
62 label = "fritz7320:green:wlan";
63 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
64 };
65 info_green: info_green {
66 label = "fritz7320:green:info";
67 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
68 };
69 info_red {
70 label = "fritz7320:red:info";
71 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
72 };
73 };
74 };
75
76 &gsw {
77 phy-mode = "mii";
78 mtd-mac-address = <&ath9k_cal 0xa91>;
79 mtd-mac-address-increment = <(-2)>;
80 };
81
82 &localbus {
83 flash@0 {
84 compatible = "lantiq,nor";
85 bank-width = <2>;
86 reg = <0 0x0 0x1000000>;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 ath9k_cal: partition@0 {
94 label = "urlader";
95 reg = <0x00000 0x20000>;
96 read-only;
97 };
98
99 partition@20000 {
100 label = "firmware";
101 reg = <0x20000 0xf60000>;
102 };
103
104 partition@f80000 {
105 label = "tffs (1)";
106 reg = <0xf80000 0x40000>;
107 read-only;
108 };
109
110 partition@fc0000 {
111 label = "tffs (2)";
112 reg = <0xfc0000 0x40000>;
113 read-only;
114 };
115 };
116 };
117 };
118
119 &pci0 {
120 status = "okay";
121
122 pinctrl-0 = <&pci_gnt1_pins>, <&pci_gnt2_pins>,
123 <&pci_gnt3_pins>, <&pci_gnt4_pins>,
124 <&pci_req1_pins>, <&pci_req2_pins>,
125 <&pci_req3_pins>, <&pci_req4_pins>;
126
127 req-mask = <0xf>;
128 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
129
130 wifi@0,0 {
131 compatible = "pci0,0";
132 reg = <0x7000 0 0 0 0>;
133 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
134 };
135 };
136
137 &usb_phy0 {
138 status = "okay";
139 };
140
141 &usb_phy1 {
142 status = "okay";
143 };
144
145 &usb0 {
146 status = "okay";
147 };
148
149 &usb1 {
150 status = "okay";
151 };