blob: 5e7cf4bf5afb3a350f48d578a146cdfd7092cc8c [file] [log] [blame]
Lee Jonesd1b8bfa2012-09-26 13:29:09 +01001/*
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
Linus Walleij90c40252013-05-29 19:15:39 +020012#include <dt-bindings/interrupt-controller/irq.h>
Linus Walleij2ce05a12013-08-07 15:37:52 +020013#include "ste-dbx5x0.dtsi"
Lee Jonesd1b8bfa2012-09-26 13:29:09 +010014
15/ {
16 memory {
17 reg = <0x00000000 0x20000000>;
18 };
19
Lee Jones6b8db132012-09-26 17:09:17 +010020 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
Gabriel Fernandezb1ba1432013-03-01 14:38:07 +010031 soc {
Lee Jonesd1b8bfa2012-09-26 13:29:09 +010032 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>;
Linus Walleij90c40252013-05-29 19:15:39 +020049 interrupts = <25 IRQ_TYPE_EDGE_RISING>;
Lee Jonesd1b8bfa2012-09-26 13:29:09 +010050
51 interrupt-controller;
52 #interrupt-cells = <2>;
53
54 tc3589x_gpio: tc3589x_gpio {
55 compatible = "tc3589x-gpio";
Linus Walleij90c40252013-05-29 19:15:39 +020056 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
Lee Jonesd1b8bfa2012-09-26 13:29:09 +010057
58 interrupt-controller;
59 #interrupt-cells = <2>;
60 gpio-controller;
61 #gpio-cells = <2>;
62 };
63 };
64 };
65
66 i2c@80128000 {
Linus Walleij2bd73782013-05-22 10:09:39 +020067 lp5521@33 {
68 compatible = "national,lp5521";
Lee Jonesd1b8bfa2012-09-26 13:29:09 +010069 reg = <0x33>;
Linus Walleij2bd73782013-05-22 10:09:39 +020070 label = "lp5521_pri";
71 clock-mode = /bits/ 8 <2>;
72 chan0 {
73 led-cur = /bits/ 8 <0x2f>;
74 max-cur = /bits/ 8 <0x5f>;
Linus Walleij385d61c2013-09-15 12:01:07 +020075 linux,default-trigger = "heartbeat";
Linus Walleij2bd73782013-05-22 10:09:39 +020076 };
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 };
Lee Jonesd1b8bfa2012-09-26 13:29:09 +010085 };
Linus Walleij2bd73782013-05-22 10:09:39 +020086 lp5521@34 {
87 compatible = "national,lp5521";
Lee Jonesd1b8bfa2012-09-26 13:29:09 +010088 reg = <0x34>;
Linus Walleij2bd73782013-05-22 10:09:39 +020089 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 };
Lee Jonesd1b8bfa2012-09-26 13:29:09 +0100103 };
Linus Walleijd5942242013-06-04 11:50:32 +0200104 bh1780@29 {
Lee Jonesd1b8bfa2012-09-26 13:29:09 +0100105 compatible = "rohm,bh1780gli";
106 reg = <0x33>;
107 };
108 };
109
110 // External Micro SD slot
111 sdi0_per1@80126000 {
112 arm,primecell-periphid = <0x10480180>;
Linus Walleij90ccde42013-05-27 13:15:05 +0200113 max-frequency = <100000000>;
Lee Jonesd1b8bfa2012-09-26 13:29:09 +0100114 bus-width = <4>;
115 mmc-cap-sd-highspeed;
116 mmc-cap-mmc-highspeed;
117 vmmc-supply = <&ab8500_ldo_aux3_reg>;
Lee Jonesd05b0662012-12-06 15:08:45 +0000118 vqmmc-supply = <&vmmci>;
Lee Jonesd1b8bfa2012-09-26 13:29:09 +0100119
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>;
Linus Walleij90ccde42013-05-27 13:15:05 +0200128 max-frequency = <100000000>;
Lee Jonesd1b8bfa2012-09-26 13:29:09 +0100129 bus-width = <4>;
130
131 status = "okay";
132 };
133
134 // PoP:ed eMMC
135 sdi2_per3@80005000 {
136 arm,primecell-periphid = <0x10480180>;
Linus Walleij90ccde42013-05-27 13:15:05 +0200137 max-frequency = <100000000>;
Lee Jonesd1b8bfa2012-09-26 13:29:09 +0100138 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>;
Linus Walleij90ccde42013-05-27 13:15:05 +0200147 max-frequency = <100000000>;
Lee Jonesd1b8bfa2012-09-26 13:29:09 +0100148 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 {
Arnd Bergmannd52701d32013-03-12 09:39:01 +0100171 ab8500 {
Lee Jonesd1b8bfa2012-09-26 13:29:09 +0100172 ab8500-regulators {
173 ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
174 regulator-name = "V-DISPLAY";
175 };
176
177 ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
178 regulator-name = "V-eMMC1";
179 };
180
181 ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
182 regulator-name = "V-MMC-SD";
183 };
184
Fabio Baltieri99b38ee2013-04-09 11:16:56 +0200185 ab8500_ldo_intcore_reg: ab8500_ldo_intcore {
Lee Jonesd1b8bfa2012-09-26 13:29:09 +0100186 regulator-name = "V-INTCORE";
187 };
188
189 ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
190 regulator-name = "V-TVOUT";
191 };
192
193 ab8500_ldo_usb_reg: ab8500_ldo_usb {
194 regulator-name = "dummy";
195 };
196
197 ab8500_ldo_audio_reg: ab8500_ldo_audio {
198 regulator-name = "V-AUD";
199 };
200
201 ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
202 regulator-name = "V-AMIC1";
203 };
204
Fabio Baltieri5510ed92013-05-30 15:27:42 +0200205 ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 {
Lee Jonesd1b8bfa2012-09-26 13:29:09 +0100206 regulator-name = "V-AMIC2";
207 };
208
209 ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
210 regulator-name = "V-DMIC";
211 };
212
213 ab8500_ldo_ana_reg: ab8500_ldo_ana {
214 regulator-name = "V-CSI/DSI";
215 };
216 };
217 };
218 };
219 };
220};