]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
ARM: dts: omap4-droid4: Add CPCAP PMIC battery charger configuration
[karo-tx-linux.git] / arch / arm / boot / dts / motorola-cpcap-mapphone.dtsi
1 /*
2  * Common CPCAP configuration used on Motorola phones
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8
9 &mcspi1 {
10         cpcap: pmic@0 {
11                 compatible = "motorola,cpcap", "st,6556002";
12                 reg = <0>;      /* cs0 */
13                 interrupt-parent = <&gpio1>;
14                 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
15                 interrupt-controller;
16                 #interrupt-cells = <2>;
17                 #address-cells = <1>;
18                 #size-cells = <0>;
19                 spi-max-frequency = <3000000>;
20                 spi-cs-high;
21
22                 cpcap_adc: adc {
23                         compatible = "motorola,mapphone-cpcap-adc";
24                         interrupts-extended = <&cpcap 8 0>;
25                         interrupt-names = "adcdone";
26                         #io-channel-cells = <1>;
27                 };
28
29                 cpcap_charger: charger {
30                         compatible = "motorola,mapphone-cpcap-charger";
31                         interrupts-extended = <
32                                 &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0
33                                 &cpcap 22 0 &cpcap 20 0 &cpcap 19 0 &cpcap 54 0
34                         >;
35                         interrupt-names =
36                                 "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
37                                 "rvrs_mode", "chrgcurr1", "vbusvld", "battdetb";
38                         mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW
39                                       &gpio3 23 GPIO_ACTIVE_LOW>;
40                         io-channels = <&cpcap_adc 0 &cpcap_adc 1
41                                        &cpcap_adc 2 &cpcap_adc 5
42                                        &cpcap_adc 6>;
43                         io-channel-names = "battdetb", "battp",
44                                            "vbus", "chg_isense",
45                                            "batti";
46                 };
47
48                 cpcap_regulator: regulator {
49                         compatible = "motorola,mapphone-cpcap-regulator";
50
51                         cpcap_regulators: regulators {
52                         };
53                 };
54
55                 cpcap_rtc: rtc {
56                         compatible = "motorola,cpcap-rtc";
57
58                         interrupt-parent = <&cpcap>;
59                         interrupts = <39 IRQ_TYPE_NONE>, <26 IRQ_TYPE_NONE>;
60                 };
61
62                 power_button: button {
63                         compatible = "motorola,cpcap-pwrbutton";
64
65                         interrupts = <23 IRQ_TYPE_NONE>;
66                 };
67
68                 led_red: led-red {
69                         compatible = "motorola,cpcap-led-red";
70                         vdd-supply = <&sw5>;
71                         label = "status-led:red";
72                 };
73
74                 led_green: led-green {
75                         compatible = "motorola,cpcap-led-green";
76                         vdd-supply = <&sw5>;
77                         label = "status-led:green";
78                 };
79
80                 led_blue: led-blue {
81                         compatible = "motorola,cpcap-led-blue";
82                         vdd-supply = <&sw5>;
83                         label = "status-led:blue";
84                 };
85
86                 led_adl: led-adl {
87                         compatible = "motorola,cpcap-led-adl";
88                         vdd-supply = <&sw5>;
89                         label = "button-backlight";
90                 };
91
92                 led_cp: led-cp {
93                         compatible = "motorola,cpcap-led-cp";
94                         vdd-supply = <&sw5>;
95                         label = "shift-key-light";
96                 };
97         };
98 };
99
100 &cpcap_regulators {
101         sw5: SW5 {
102                 regulator-min-microvolt = <5050000>;
103                 regulator-max-microvolt = <5050000>;
104                 regulator-enable-ramp-delay = <50000>;
105                 regulator-boot-on;
106         };
107
108         vcam: VCAM {
109                 regulator-min-microvolt = <2900000>;
110                 regulator-max-microvolt = <2900000>;
111                 regulator-enable-ramp-delay = <1000>;
112         };
113
114         /* Used by DSS */
115         vcsi: VCSI {
116                 regulator-min-microvolt = <1800000>;
117                 regulator-max-microvolt = <1800000>;
118                 regulator-enable-ramp-delay = <1000>;
119                 regulator-boot-on;
120         };
121
122         vdac: VDAC {
123                 regulator-min-microvolt = <1800000>;
124                 regulator-max-microvolt = <1800000>;
125                 regulator-enable-ramp-delay = <1000>;
126         };
127
128         vdig: VDIG {
129                 regulator-min-microvolt = <1875000>;
130                 regulator-max-microvolt = <1875000>;
131                 regulator-enable-ramp-delay = <1000>;
132         };
133
134         vfuse: VFUSE {
135                 regulator-min-microvolt = <1500000>;
136                 regulator-max-microvolt = <3150000>;
137                 regulator-enable-ramp-delay = <1000>;
138         };
139
140         vhvio: VHVIO {
141                 regulator-min-microvolt = <2775000>;
142                 regulator-max-microvolt = <2775000>;
143                 regulator-enable-ramp-delay = <1000>;
144                 regulator-always-on;
145         };
146
147         /* Used by eMMC at mmc2 */
148         vsdio: VSDIO {
149                 regulator-min-microvolt = <2900000>;
150                 regulator-max-microvolt = <2900000>;
151                 regulator-enable-ramp-delay = <1000>;
152         };
153
154         vpll: VPLL {
155                 regulator-min-microvolt = <1200000>;
156                 regulator-max-microvolt = <1800000>;
157                 regulator-enable-ramp-delay = <100>;
158         };
159
160         vrf1: VRF1 {
161                 regulator-min-microvolt = <2775000>;
162                 regulator-max-microvolt = <2775000>;
163                 regulator-enable-ramp-delay = <1000>;
164         };
165
166         vrf2: VRF2 {
167                 regulator-min-microvolt = <2775000>;
168                 regulator-max-microvolt = <2775000>;
169                 regulator-enable-ramp-delay = <1000>;
170         };
171
172         vrfref: VRFREF {
173                 regulator-min-microvolt = <2500000>;
174                 regulator-max-microvolt = <2775000>;
175                 regulator-enable-ramp-delay = <100>;
176         };
177
178         vwlan1: VWLAN1 {
179                 regulator-min-microvolt = <1800000>;
180                 regulator-max-microvolt = <1900000>;
181                 regulator-enable-ramp-delay = <1000>;
182         };
183
184         /* Used by micro-SDIO at mmc1 */
185         vwlan2: VWLAN2 {
186                 regulator-min-microvolt = <3000000>;
187                 regulator-max-microvolt = <3000000>;
188                 regulator-enable-ramp-delay = <1000>;
189         };
190
191         vsim: VSIM {
192                 regulator-min-microvolt = <1800000>;
193                 regulator-max-microvolt = <2900000>;
194                 regulator-enable-ramp-delay = <1000>;
195         };
196
197         vsimcard: VSIMCARD {
198                 regulator-min-microvolt = <1800000>;
199                 regulator-max-microvolt = <2900000>;
200                 regulator-enable-ramp-delay = <1000>;
201         };
202
203         vvib: VVIB {
204                 regulator-min-microvolt = <1300000>;
205                 regulator-max-microvolt = <3000000>;
206                 regulator-enable-ramp-delay = <500>;
207         };
208
209         vusb: VUSB {
210                 regulator-min-microvolt = <3300000>;
211                 regulator-max-microvolt = <3300000>;
212                 regulator-enable-ramp-delay = <1000>;
213         };
214
215         vaudio: VAUDIO {
216                 regulator-min-microvolt = <2775000>;
217                 regulator-max-microvolt = <2775000>;
218                 regulator-enable-ramp-delay = <1000>;
219         };
220 };