]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/ste-href.dtsi
ARM: ux500: correct I2C address of ambient light sensor
[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
15 / {
16         memory {
17                 reg = <0x00000000 0x20000000>;
18         };
19
20         gpio_keys {
21                 compatible = "gpio-keys";
22                 #address-cells = <1>;
23                 #size-cells = <0>;
24
25                 button@1 {
26                         linux,code = <11>;
27                         label = "SFH7741 Proximity Sensor";
28                 };
29         };
30
31         soc {
32                 uart@80120000 {
33                         status = "okay";
34                 };
35
36                 uart@80121000 {
37                         status = "okay";
38                 };
39
40                 uart@80007000 {
41                         status = "okay";
42                 };
43
44                 i2c@80004000 {
45                         tc3589x@42 {
46                                 compatible = "tc3589x";
47                                 reg = <0x42>;
48                                 interrupt-parent = <&gpio6>;
49                                 interrupts = <25 IRQ_TYPE_EDGE_RISING>;
50
51                                 interrupt-controller;
52                                 #interrupt-cells = <2>;
53
54                                 tc3589x_gpio: tc3589x_gpio {
55                                         compatible = "tc3589x-gpio";
56                                         interrupts = <0 IRQ_TYPE_EDGE_RISING>;
57
58                                         interrupt-controller;
59                                         #interrupt-cells = <2>;
60                                         gpio-controller;
61                                         #gpio-cells = <2>;
62                                 };
63                         };
64                 };
65
66                 i2c@80128000 {
67                         lp5521@33 {
68                                 compatible = "national,lp5521";
69                                 reg = <0x33>;
70                                 label = "lp5521_pri";
71                                 clock-mode = /bits/ 8 <2>;
72                                 chan0 {
73                                         led-cur = /bits/ 8 <0x2f>;
74                                         max-cur = /bits/ 8 <0x5f>;
75                                         linux,default-trigger = "heartbeat";
76                                 };
77                                 chan1 {
78                                         led-cur = /bits/ 8 <0x2f>;
79                                         max-cur = /bits/ 8 <0x5f>;
80                                 };
81                                 chan2 {
82                                         led-cur = /bits/ 8 <0x2f>;
83                                         max-cur = /bits/ 8 <0x5f>;
84                                 };
85                         };
86                         lp5521@34 {
87                                 compatible = "national,lp5521";
88                                 reg = <0x34>;
89                                 label = "lp5521_sec";
90                                 clock-mode = /bits/ 8 <2>;
91                                 chan0 {
92                                         led-cur = /bits/ 8 <0x2f>;
93                                         max-cur = /bits/ 8 <0x5f>;
94                                 };
95                                 chan1 {
96                                         led-cur = /bits/ 8 <0x2f>;
97                                         max-cur = /bits/ 8 <0x5f>;
98                                 };
99                                 chan2 {
100                                         led-cur = /bits/ 8 <0x2f>;
101                                         max-cur = /bits/ 8 <0x5f>;
102                                 };
103                         };
104                         bh1780@29 {
105                                 compatible = "rohm,bh1780gli";
106                                 reg = <0x29>;
107                         };
108                 };
109
110                 // External Micro SD slot
111                 sdi0_per1@80126000 {
112                         arm,primecell-periphid = <0x10480180>;
113                         max-frequency = <100000000>;
114                         bus-width = <4>;
115                         mmc-cap-sd-highspeed;
116                         mmc-cap-mmc-highspeed;
117                         vmmc-supply = <&ab8500_ldo_aux3_reg>;
118                         vqmmc-supply = <&vmmci>;
119
120                         cd-gpios  = <&tc3589x_gpio 3 0x4>;
121
122                         status = "okay";
123                 };
124
125                 // WLAN SDIO channel
126                 sdi1_per2@80118000 {
127                         arm,primecell-periphid = <0x10480180>;
128                         max-frequency = <100000000>;
129                         bus-width = <4>;
130
131                         status = "okay";
132                 };
133
134                 // PoP:ed eMMC
135                 sdi2_per3@80005000 {
136                         arm,primecell-periphid = <0x10480180>;
137                         max-frequency = <100000000>;
138                         bus-width = <8>;
139                         mmc-cap-mmc-highspeed;
140
141                         status = "okay";
142                 };
143
144                 // On-board eMMC
145                 sdi4_per2@80114000 {
146                         arm,primecell-periphid = <0x10480180>;
147                         max-frequency = <100000000>;
148                         bus-width = <8>;
149                         mmc-cap-mmc-highspeed;
150                         vmmc-supply = <&ab8500_ldo_aux2_reg>;
151
152                         status = "okay";
153                 };
154
155                 sound {
156                         compatible = "stericsson,snd-soc-mop500";
157
158                         stericsson,cpu-dai = <&msp1 &msp3>;
159                         stericsson,audio-codec = <&codec>;
160                 };
161
162                 msp1: msp@80124000 {
163                         status = "okay";
164                 };
165
166                 msp3: msp@80125000 {
167                         status = "okay";
168                 };
169
170                 prcmu@80157000 {
171                         ab8500 {
172                                 ab8500-gpio {
173                                         compatible = "stericsson,ab8500-gpio";
174                                 };
175
176                                 ab8500-regulators {
177                                         ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
178                                                 regulator-name = "V-DISPLAY";
179                                         };
180
181                                         ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
182                                                 regulator-name = "V-eMMC1";
183                                         };
184
185                                         ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
186                                                 regulator-name = "V-MMC-SD";
187                                         };
188
189                                         ab8500_ldo_intcore_reg: ab8500_ldo_intcore {
190                                                 regulator-name = "V-INTCORE";
191                                         };
192
193                                         ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
194                                                 regulator-name = "V-TVOUT";
195                                         };
196
197                                         ab8500_ldo_usb_reg: ab8500_ldo_usb {
198                                                 regulator-name = "dummy";
199                                         };
200
201                                         ab8500_ldo_audio_reg: ab8500_ldo_audio {
202                                                 regulator-name = "V-AUD";
203                                         };
204
205                                         ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
206                                                 regulator-name = "V-AMIC1";
207                                         };
208
209                                         ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 {
210                                                 regulator-name = "V-AMIC2";
211                                         };
212
213                                         ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
214                                                 regulator-name = "V-DMIC";
215                                         };
216
217                                         ab8500_ldo_ana_reg: ab8500_ldo_ana {
218                                                 regulator-name = "V-CSI/DSI";
219                                         };
220                                 };
221                         };
222                 };
223         };
224 };