OSDN Git Service

ARM: ux500: move MSP pin control to the device tree
[tomoyo/tomoyo-test1.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                 uart@80120000 {
34                         pinctrl-names = "default", "sleep";
35                         pinctrl-0 = <&uart0_default_mode>;
36                         pinctrl-1 = <&uart0_sleep_mode>;
37                         status = "okay";
38                 };
39
40                 uart@80121000 {
41                         pinctrl-names = "default", "sleep";
42                         pinctrl-0 = <&uart1_default_mode>;
43                         pinctrl-1 = <&uart1_sleep_mode>;
44                         status = "okay";
45                 };
46
47                 uart@80007000 {
48                         pinctrl-names = "default", "sleep";
49                         pinctrl-0 = <&uart2_default_mode>;
50                         pinctrl-1 = <&uart2_sleep_mode>;
51                         status = "okay";
52                 };
53
54                 i2c@80004000 {
55                         pinctrl-names = "default","sleep";
56                         pinctrl-0 = <&i2c0_default_mode>;
57                         pinctrl-1 = <&i2c0_sleep_mode>;
58                 };
59
60                 i2c@80122000 {
61                         pinctrl-names = "default","sleep";
62                         pinctrl-0 = <&i2c1_default_mode>;
63                         pinctrl-1 = <&i2c1_sleep_mode>;
64                 };
65
66                 i2c@80128000 {
67                         pinctrl-names = "default","sleep";
68                         pinctrl-0 = <&i2c2_default_mode>;
69                         pinctrl-1 = <&i2c2_sleep_mode>;
70                         lp5521@33 {
71                                 compatible = "national,lp5521";
72                                 reg = <0x33>;
73                                 label = "lp5521_pri";
74                                 clock-mode = /bits/ 8 <2>;
75                                 chan0 {
76                                         led-cur = /bits/ 8 <0x2f>;
77                                         max-cur = /bits/ 8 <0x5f>;
78                                         linux,default-trigger = "heartbeat";
79                                 };
80                                 chan1 {
81                                         led-cur = /bits/ 8 <0x2f>;
82                                         max-cur = /bits/ 8 <0x5f>;
83                                 };
84                                 chan2 {
85                                         led-cur = /bits/ 8 <0x2f>;
86                                         max-cur = /bits/ 8 <0x5f>;
87                                 };
88                         };
89                         lp5521@34 {
90                                 compatible = "national,lp5521";
91                                 reg = <0x34>;
92                                 label = "lp5521_sec";
93                                 clock-mode = /bits/ 8 <2>;
94                                 chan0 {
95                                         led-cur = /bits/ 8 <0x2f>;
96                                         max-cur = /bits/ 8 <0x5f>;
97                                 };
98                                 chan1 {
99                                         led-cur = /bits/ 8 <0x2f>;
100                                         max-cur = /bits/ 8 <0x5f>;
101                                 };
102                                 chan2 {
103                                         led-cur = /bits/ 8 <0x2f>;
104                                         max-cur = /bits/ 8 <0x5f>;
105                                 };
106                         };
107                         bh1780@29 {
108                                 compatible = "rohm,bh1780gli";
109                                 reg = <0x29>;
110                         };
111                 };
112
113                 i2c@80110000 {
114                         pinctrl-names = "default","sleep";
115                         pinctrl-0 = <&i2c3_default_mode>;
116                         pinctrl-1 = <&i2c3_sleep_mode>;
117                 };
118
119                 // External Micro SD slot
120                 sdi0_per1@80126000 {
121                         arm,primecell-periphid = <0x10480180>;
122                         max-frequency = <100000000>;
123                         bus-width = <4>;
124                         mmc-cap-sd-highspeed;
125                         mmc-cap-mmc-highspeed;
126                         vmmc-supply = <&ab8500_ldo_aux3_reg>;
127                         vqmmc-supply = <&vmmci>;
128                         pinctrl-names = "default", "sleep";
129                         pinctrl-0 = <&sdi0_default_mode>;
130                         pinctrl-1 = <&sdi0_sleep_mode>;
131
132                         cd-gpios  = <&tc3589x_gpio 3 0x4>;
133
134                         status = "okay";
135                 };
136
137                 // WLAN SDIO channel
138                 sdi1_per2@80118000 {
139                         arm,primecell-periphid = <0x10480180>;
140                         max-frequency = <100000000>;
141                         bus-width = <4>;
142                         pinctrl-names = "default", "sleep";
143                         pinctrl-0 = <&sdi1_default_mode>;
144                         pinctrl-1 = <&sdi1_sleep_mode>;
145
146                         status = "okay";
147                 };
148
149                 // PoP:ed eMMC
150                 sdi2_per3@80005000 {
151                         arm,primecell-periphid = <0x10480180>;
152                         max-frequency = <100000000>;
153                         bus-width = <8>;
154                         mmc-cap-mmc-highspeed;
155                         pinctrl-names = "default", "sleep";
156                         pinctrl-0 = <&sdi2_default_mode>;
157                         pinctrl-1 = <&sdi2_sleep_mode>;
158
159                         status = "okay";
160                 };
161
162                 // On-board eMMC
163                 sdi4_per2@80114000 {
164                         arm,primecell-periphid = <0x10480180>;
165                         max-frequency = <100000000>;
166                         bus-width = <8>;
167                         mmc-cap-mmc-highspeed;
168                         vmmc-supply = <&ab8500_ldo_aux2_reg>;
169                         pinctrl-names = "default", "sleep";
170                         pinctrl-0 = <&sdi4_default_mode>;
171                         pinctrl-1 = <&sdi4_sleep_mode>;
172
173                         status = "okay";
174                 };
175
176                 sound {
177                         compatible = "stericsson,snd-soc-mop500";
178
179                         stericsson,cpu-dai = <&msp1 &msp3>;
180                         stericsson,audio-codec = <&codec>;
181                 };
182
183                 msp0: msp@80123000 {
184                         pinctrl-names = "default";
185                         pinctrl-0 = <&msp0_default_mode>;
186                         status = "okay";
187                 };
188
189                 msp1: msp@80124000 {
190                         pinctrl-names = "default";
191                         pinctrl-0 = <&msp1_default_mode>;
192                         status = "okay";
193                 };
194
195                 msp2: msp@80117000 {
196                         pinctrl-names = "default";
197                         pinctrl-0 = <&msp2_default_mode>;
198                         status = "okay";
199                 };
200
201                 msp3: msp@80125000 {
202                         status = "okay";
203                 };
204
205                 prcmu@80157000 {
206                         ab8500 {
207                                 ab8500-gpio {
208                                         compatible = "stericsson,ab8500-gpio";
209                                 };
210
211                                 ab8500-regulators {
212                                         ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
213                                                 regulator-name = "V-DISPLAY";
214                                         };
215
216                                         ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
217                                                 regulator-name = "V-eMMC1";
218                                         };
219
220                                         ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
221                                                 regulator-name = "V-MMC-SD";
222                                         };
223
224                                         ab8500_ldo_intcore_reg: ab8500_ldo_intcore {
225                                                 regulator-name = "V-INTCORE";
226                                         };
227
228                                         ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
229                                                 regulator-name = "V-TVOUT";
230                                         };
231
232                                         ab8500_ldo_usb_reg: ab8500_ldo_usb {
233                                                 regulator-name = "dummy";
234                                         };
235
236                                         ab8500_ldo_audio_reg: ab8500_ldo_audio {
237                                                 regulator-name = "V-AUD";
238                                         };
239
240                                         ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
241                                                 regulator-name = "V-AMIC1";
242                                         };
243
244                                         ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 {
245                                                 regulator-name = "V-AMIC2";
246                                         };
247
248                                         ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
249                                                 regulator-name = "V-DMIC";
250                                         };
251
252                                         ab8500_ldo_ana_reg: ab8500_ldo_ana {
253                                                 regulator-name = "V-CSI/DSI";
254                                         };
255                                 };
256                         };
257                 };
258         };
259 };