lantiq: use ath9k device tree bindings binding/owl-loader
[librecmc/librecmc.git] / target / linux / lantiq / dts / ARV8539PW22.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "ARV8539PW22 - Speedport W 504V Typ A";
9
10         aliases {
11                 led-boot = &power_green;
12                 led-failsafe = &power_red;
13                 led-running = &power_green;
14
15                 led-dsl = &dsl_green;
16                 led-internet = &online_green;
17                 led-wifi = &wireless_green;
18         };
19
20         memory@0 {
21                 reg = <0x0 0x4000000>;
22         };
23
24         sram@1F000000 {
25                 vmmc@107000 {
26                         status = "okay";
27                         gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
28                 };
29         };
30
31         fpi@10000000 {
32                 localbus@0 {
33                         nor-boot@0 {
34                                 compatible = "lantiq,nor";
35                                 bank-width = <2>;
36                                 reg = <0 0x0 0x800000>;
37                                 #address-cells = <1>;
38                                 #size-cells = <1>;
39
40                                 partitions {
41                                         compatible = "fixed-partitions";
42                                         #address-cells = <1>;
43                                         #size-cells = <1>;
44
45                                         partition@0 {
46                                                 label = "uboot";
47                                                 reg = <0x00000 0x30000>;        /* 192 KiB */
48                                                 read-only;
49                                         };
50
51                                         partition@30000 {
52                                                 label = "uboot";
53                                                 reg = <0x30000 0x10000>;        /* 64 KiB */
54                                                 read-only;
55                                         };
56
57                                         partition@40000 {
58                                                 label = "firmware";
59                                                 reg = <0x40000 0x7B0000>;       /* 7872 KiB */
60                                         };
61
62                                         art: partition@7F0000 {
63                                                 label = "art";
64                                                 reg = <0x7F0000 0x10000>;       /* 64 KiB*/
65                                                 read-only;
66                                         };
67                                 };
68                         };
69                 };
70
71                 gpio: pinmux@E100B10 {
72                         pinctrl-names = "default";
73                         pinctrl-0 = <&state_default>;
74
75                         state_default: pinmux {
76                                 pci_in {
77                                         lantiq,groups = "req1";
78                                         lantiq,function = "pci";
79                                         lantiq,open-drain = <1>;
80                                         lantiq,pull = <2>;
81                                         lantiq,output = <0>;
82                                 };
83                                 pci_out {
84                                         lantiq,groups = "gnt1";
85                                         lantiq,function = "pci";
86                                         lantiq,output = <1>;
87                                 };
88                                 pci_rst {
89                                         lantiq,pins = "io21";
90                                         lantiq,pull = <2>;
91                                         lantiq,output = <1>;
92                                 };
93                                 relay {
94                                         lantiq,pins = "io31";
95                                         lantiq,output = <1>;
96                                 };
97                         };
98                 };
99
100                 etop@E180000 {
101                         phy-mode = "mii";
102                         mtd-mac-address = <&art 0x16>;
103                 };
104
105                 ifxhcd@E101000 {
106                         status = "okay";
107                         gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
108                         lantiq,portmask = <0x3>;
109                 };
110         };
111
112         gpio-keys-polled {
113                 compatible = "gpio-keys-polled";
114                 #address-cells = <1>;
115                 #size-cells = <0>;
116                 poll-interval = <100>;
117
118                 wlan {
119                         label = "wlan";
120                         gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
121                         linux,code = <KEY_WPS_BUTTON>;
122                 };
123                 reset {
124                         label = "reset";
125                         gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
126                         linux,code = <KEY_RESTART>;
127                 };
128                 /* key DECT is missing */
129         };
130
131         gpio-leds {
132                 compatible = "gpio-leds";
133
134                 power_green: power-green {
135                         label = "arv8539pw22:green:power";
136                         gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
137                         default-state = "keep";
138                 };
139                 power_red: power-red {
140                         label = "arv8539pw22:red:power";
141                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
142                 };
143
144                 dsl_green: dsl-green {
145                         label = "arv8539pw22:green:dsl";
146                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
147                 };
148
149                 online_green: online-green {
150                         label = "arv8539pw22:green:online";
151                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
152                 };
153
154                 wireless_green: wireless-green {
155                         label = "arv8539pw22:green:wlan";
156                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
157                 };
158                 /*
159                         telefonie green is missing
160                 */
161         };
162 };
163
164 &pci0 {
165         status = "okay";
166         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
167
168         wifi@168c,0029 {
169                 compatible = "pci168c,0029";
170                 reg = <0x7000 0 0 0 0>;
171                 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
172                 mtd-mac-address = <&art 0x16>;
173                 mtd-mac-address-increment = <1>;
174         };
175 };