]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/ste-href.dtsi
ARM: ux500: move MUSB pin config to device tree
[karo-tx-linux.git] / arch / arm / boot / dts / ste-href.dtsi
1 /*
2  * Copyright 2012 ST-Ericsson AB
3  *
4  * The code contained herein is licensed under the GNU General Public
5  * License. You may obtain a copy of the GNU General Public License
6  * Version 2 or later at the following locations:
7  *
8  * http://www.opensource.org/licenses/gpl-license.html
9  * http://www.gnu.org/copyleft/gpl.html
10  */
11
12 #include <dt-bindings/interrupt-controller/irq.h>
13 #include "ste-dbx5x0.dtsi"
14 #include "ste-href-family-pinctrl.dtsi"
15
16 / {
17         memory {
18                 reg = <0x00000000 0x20000000>;
19         };
20
21         gpio_keys {
22                 compatible = "gpio-keys";
23                 #address-cells = <1>;
24                 #size-cells = <0>;
25
26                 button@1 {
27                         linux,code = <11>;
28                         label = "SFH7741 Proximity Sensor";
29                 };
30         };
31
32         soc {
33                 usb_per5@a03e0000 {
34                         pinctrl-names = "default", "sleep";
35                         pinctrl-0 = <&musb_default_mode>;
36                         pinctrl-1 = <&musb_sleep_mode>;
37                 };
38
39                 uart@80120000 {
40                         pinctrl-names = "default", "sleep";
41                         pinctrl-0 = <&uart0_default_mode>;
42                         pinctrl-1 = <&uart0_sleep_mode>;
43                         status = "okay";
44                 };
45
46                 uart@80121000 {
47                         pinctrl-names = "default", "sleep";
48                         pinctrl-0 = <&uart1_default_mode>;
49                         pinctrl-1 = <&uart1_sleep_mode>;
50                         status = "okay";
51                 };
52
53                 uart@80007000 {
54                         pinctrl-names = "default", "sleep";
55                         pinctrl-0 = <&uart2_default_mode>;
56                         pinctrl-1 = <&uart2_sleep_mode>;
57                         status = "okay";
58                 };
59
60                 i2c@80004000 {
61                         pinctrl-names = "default","sleep";
62                         pinctrl-0 = <&i2c0_default_mode>;
63                         pinctrl-1 = <&i2c0_sleep_mode>;
64                 };
65
66                 i2c@80122000 {
67                         pinctrl-names = "default","sleep";
68                         pinctrl-0 = <&i2c1_default_mode>;
69                         pinctrl-1 = <&i2c1_sleep_mode>;
70                 };
71
72                 i2c@80128000 {
73                         pinctrl-names = "default","sleep";
74                         pinctrl-0 = <&i2c2_default_mode>;
75                         pinctrl-1 = <&i2c2_sleep_mode>;
76                         lp5521@33 {
77                                 compatible = "national,lp5521";
78                                 reg = <0x33>;
79                                 label = "lp5521_pri";
80                                 clock-mode = /bits/ 8 <2>;
81                                 chan0 {
82                                         led-cur = /bits/ 8 <0x2f>;
83                                         max-cur = /bits/ 8 <0x5f>;
84                                         linux,default-trigger = "heartbeat";
85                                 };
86                                 chan1 {
87                                         led-cur = /bits/ 8 <0x2f>;
88                                         max-cur = /bits/ 8 <0x5f>;
89                                 };
90                                 chan2 {
91                                         led-cur = /bits/ 8 <0x2f>;
92                                         max-cur = /bits/ 8 <0x5f>;
93                                 };
94                         };
95                         lp5521@34 {
96                                 compatible = "national,lp5521";
97                                 reg = <0x34>;
98                                 label = "lp5521_sec";
99                                 clock-mode = /bits/ 8 <2>;
100                                 chan0 {
101                                         led-cur = /bits/ 8 <0x2f>;
102                                         max-cur = /bits/ 8 <0x5f>;
103                                 };
104                                 chan1 {
105                                         led-cur = /bits/ 8 <0x2f>;
106                                         max-cur = /bits/ 8 <0x5f>;
107                                 };
108                                 chan2 {
109                                         led-cur = /bits/ 8 <0x2f>;
110                                         max-cur = /bits/ 8 <0x5f>;
111                                 };
112                         };
113                         bh1780@29 {
114                                 compatible = "rohm,bh1780gli";
115                                 reg = <0x29>;
116                         };
117                 };
118
119                 i2c@80110000 {
120                         pinctrl-names = "default","sleep";
121                         pinctrl-0 = <&i2c3_default_mode>;
122                         pinctrl-1 = <&i2c3_sleep_mode>;
123                 };
124
125                 // External Micro SD slot
126                 sdi0_per1@80126000 {
127                         arm,primecell-periphid = <0x10480180>;
128                         max-frequency = <100000000>;
129                         bus-width = <4>;
130                         mmc-cap-sd-highspeed;
131                         mmc-cap-mmc-highspeed;
132                         vmmc-supply = <&ab8500_ldo_aux3_reg>;
133                         vqmmc-supply = <&vmmci>;
134                         pinctrl-names = "default", "sleep";
135                         pinctrl-0 = <&sdi0_default_mode>;
136                         pinctrl-1 = <&sdi0_sleep_mode>;
137
138                         cd-gpios  = <&tc3589x_gpio 3 0x4>;
139
140                         status = "okay";
141                 };
142
143                 // WLAN SDIO channel
144                 sdi1_per2@80118000 {
145                         arm,primecell-periphid = <0x10480180>;
146                         max-frequency = <100000000>;
147                         bus-width = <4>;
148                         pinctrl-names = "default", "sleep";
149                         pinctrl-0 = <&sdi1_default_mode>;
150                         pinctrl-1 = <&sdi1_sleep_mode>;
151
152                         status = "okay";
153                 };
154
155                 // PoP:ed eMMC
156                 sdi2_per3@80005000 {
157                         arm,primecell-periphid = <0x10480180>;
158                         max-frequency = <100000000>;
159                         bus-width = <8>;
160                         mmc-cap-mmc-highspeed;
161                         pinctrl-names = "default", "sleep";
162                         pinctrl-0 = <&sdi2_default_mode>;
163                         pinctrl-1 = <&sdi2_sleep_mode>;
164
165                         status = "okay";
166                 };
167
168                 // On-board eMMC
169                 sdi4_per2@80114000 {
170                         arm,primecell-periphid = <0x10480180>;
171                         max-frequency = <100000000>;
172                         bus-width = <8>;
173                         mmc-cap-mmc-highspeed;
174                         vmmc-supply = <&ab8500_ldo_aux2_reg>;
175                         pinctrl-names = "default", "sleep";
176                         pinctrl-0 = <&sdi4_default_mode>;
177                         pinctrl-1 = <&sdi4_sleep_mode>;
178
179                         status = "okay";
180                 };
181
182                 sound {
183                         compatible = "stericsson,snd-soc-mop500";
184
185                         stericsson,cpu-dai = <&msp1 &msp3>;
186                         stericsson,audio-codec = <&codec>;
187                 };
188
189                 msp0: msp@80123000 {
190                         pinctrl-names = "default";
191                         pinctrl-0 = <&msp0_default_mode>;
192                         status = "okay";
193                 };
194
195                 msp1: msp@80124000 {
196                         pinctrl-names = "default";
197                         pinctrl-0 = <&msp1_default_mode>;
198                         status = "okay";
199                 };
200
201                 msp2: msp@80117000 {
202                         pinctrl-names = "default";
203                         pinctrl-0 = <&msp2_default_mode>;
204                         status = "okay";
205                 };
206
207                 msp3: msp@80125000 {
208                         status = "okay";
209                 };
210
211                 prcmu@80157000 {
212                         ab8500 {
213                                 ab8500-gpio {
214                                         compatible = "stericsson,ab8500-gpio";
215                                 };
216
217                                 ab8500-regulators {
218                                         ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
219                                                 regulator-name = "V-DISPLAY";
220                                         };
221
222                                         ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
223                                                 regulator-name = "V-eMMC1";
224                                         };
225
226                                         ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
227                                                 regulator-name = "V-MMC-SD";
228                                         };
229
230                                         ab8500_ldo_intcore_reg: ab8500_ldo_intcore {
231                                                 regulator-name = "V-INTCORE";
232                                         };
233
234                                         ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
235                                                 regulator-name = "V-TVOUT";
236                                         };
237
238                                         ab8500_ldo_usb_reg: ab8500_ldo_usb {
239                                                 regulator-name = "dummy";
240                                         };
241
242                                         ab8500_ldo_audio_reg: ab8500_ldo_audio {
243                                                 regulator-name = "V-AUD";
244                                         };
245
246                                         ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
247                                                 regulator-name = "V-AMIC1";
248                                         };
249
250                                         ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 {
251                                                 regulator-name = "V-AMIC2";
252                                         };
253
254                                         ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
255                                                 regulator-name = "V-DMIC";
256                                         };
257
258                                         ab8500_ldo_ana_reg: ab8500_ldo_ana {
259                                                 regulator-name = "V-CSI/DSI";
260                                         };
261                                 };
262                         };
263                 };
264         };
265 };