lantiq: enable cpu temp driver for selected boards
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV8539PW22.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV8539PW22 - Speedport W 504V Typ A";
7
8     chosen {
9             leds {
10                         boot = &power_green;
11                         failsafe = &power_red;
12                         running = &power_green;
13
14                     dsl = &dsl_green;
15                     internet = &online_green;
16                     wifi = &wireless_green;
17             };
18     };
19
20         memory@0 {
21                 reg = <0x0 0x4000000>;
22         };
23
24         sram@1F000000 {
25                 vmmc@107000 {
26                         status = "okay";
27                         gpios = <&gpio 31 0>;
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                         ath9k_eep {
71                                 compatible = "ath9k,eeprom";
72                                 ath,eep-flash = <&art 0x400>;
73                                 ath,mac-offset = <0x16>;
74                                 ath,mac-increment = <1>;
75                                 ath,pci-slot = <14>;
76                                 ath,eep-endian;
77                                 ath,arv-ath9k-fix;
78                         };
79                 };
80
81                 gpio: pinmux@E100B10 {
82                         pinctrl-names = "default";
83                         pinctrl-0 = <&state_default>;
84
85                         state_default: pinmux {
86                                 pci_in {
87                                         lantiq,groups = "req1";
88                                         lantiq,function = "pci";
89                                         lantiq,open-drain = <1>;
90                                         lantiq,pull = <2>;
91                                         lantiq,output = <0>;
92                                 };
93                                 pci_out {
94                                         lantiq,groups = "gnt1";
95                                         lantiq,function = "pci";
96                                         lantiq,output = <1>;
97                                 };
98                                 pci_rst {
99                                         lantiq,pins = "io21";
100                                         lantiq,pull = <2>;
101                                         lantiq,output = <1>;
102                                 };
103                                 relay {
104                                         lantiq,pins = "io31";
105                                         lantiq,output = <1>;
106                                 };
107                         };
108                 };
109
110                 etop@E180000 {
111                         phy-mode = "mii";
112                         mtd-mac-address = <&art 0x16>;
113                 };
114
115                 pci@E105400 {
116                         status = "okay";
117                         gpio-reset = <&gpio 21 0>;
118                 };
119
120                 ifxhcd@E101000 {
121                         status = "okay";
122                         gpios = <&gpio 14 0>;
123                         lantiq,portmask = <0x3>;
124                 };
125
126         };
127
128         gpio-keys-polled {
129                 compatible = "gpio-keys-polled";
130                 #address-cells = <1>;
131                 #size-cells = <0>;
132                 poll-interval = <100>;
133
134                 wlan {
135                         label = "wlan";
136                         gpios = <&gpio 29 1>;
137                         linux,code = <0x211>;
138                 };
139                 reset {
140                         label = "reset";
141                         gpios = <&gpio 30 1>;
142                         linux,code = <0x198>;
143                 };
144         };
145
146         gpio-leds {
147                 compatible = "gpio-leds";
148
149                 power_green: power-green {
150                         label = "arv8539pw22:green:power";
151                         gpios = <&gpio 24 1>;
152                         default-state = "keep";
153                 };
154                 power_red: power-red {
155                         label = "arv8539pw22:red:power";
156                         gpios = <&gpio 4 1>;
157                 };
158
159                 dsl_green: dsl-green {
160                         label = "arv8539pw22:green:dsl";
161                         gpios = <&gpio 5 1>;
162                 };
163
164                 online_green: online-green {
165                         label = "arv8539pw22:green:online";
166                         gpios = <&gpio 6 1>;
167                 };
168
169                 wireless_green: wireless-green {
170                         label = "arv8539pw22:green:wlan";
171                         gpios = <&gpio 8 1>;
172                 };
173                 /*
174                         telefonie green is missing
175                 */
176         };
177 };
178