Merge tag 'for-linus' of git://linux-c6x.org/git/projects/linux-c6x-upstreaming
[sfrench/cifs-2.6.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                 cpcap_usb2_phy: phy {
69                         compatible = "motorola,mapphone-cpcap-usb-phy";
70                         pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>;
71                         pinctrl-1 = <&usb_ulpi_pins>;
72                         pinctrl-2 = <&usb_utmi_pins>;
73                         pinctrl-3 = <&uart3_pins>;
74                         pinctrl-names = "default", "ulpi", "utmi", "uart";
75                         #phy-cells = <0>;
76                         interrupts-extended = <
77                                 &cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0
78                                 &cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0
79                                 &cpcap 48 1
80                         >;
81                         interrupt-names =
82                                 "id_ground", "id_float", "se0conn", "vbusvld",
83                                 "sessvld", "sessend", "se1", "dm", "dp";
84                         mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH
85                                       &gpio1 0 GPIO_ACTIVE_HIGH>;
86                         io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>;
87                         io-channel-names = "vbus", "id";
88                         vusb-supply = <&vusb>;
89                 };
90
91                 led_red: led-red {
92                         compatible = "motorola,cpcap-led-red";
93                         vdd-supply = <&sw5>;
94                         label = "status-led:red";
95                 };
96
97                 led_green: led-green {
98                         compatible = "motorola,cpcap-led-green";
99                         vdd-supply = <&sw5>;
100                         label = "status-led:green";
101                 };
102
103                 led_blue: led-blue {
104                         compatible = "motorola,cpcap-led-blue";
105                         vdd-supply = <&sw5>;
106                         label = "status-led:blue";
107                 };
108
109                 led_adl: led-adl {
110                         compatible = "motorola,cpcap-led-adl";
111                         vdd-supply = <&sw5>;
112                         label = "button-backlight";
113                 };
114
115                 led_cp: led-cp {
116                         compatible = "motorola,cpcap-led-cp";
117                         vdd-supply = <&sw5>;
118                         label = "shift-key-light";
119                 };
120         };
121 };
122
123 &cpcap_regulators {
124         sw5: SW5 {
125                 regulator-min-microvolt = <5050000>;
126                 regulator-max-microvolt = <5050000>;
127                 regulator-enable-ramp-delay = <50000>;
128                 regulator-boot-on;
129         };
130
131         vcam: VCAM {
132                 regulator-min-microvolt = <2900000>;
133                 regulator-max-microvolt = <2900000>;
134                 regulator-enable-ramp-delay = <1000>;
135         };
136
137         /* Used by DSS */
138         vcsi: VCSI {
139                 regulator-min-microvolt = <1800000>;
140                 regulator-max-microvolt = <1800000>;
141                 regulator-enable-ramp-delay = <1000>;
142                 regulator-boot-on;
143         };
144
145         vdac: VDAC {
146                 regulator-min-microvolt = <1800000>;
147                 regulator-max-microvolt = <1800000>;
148                 regulator-enable-ramp-delay = <1000>;
149         };
150
151         vdig: VDIG {
152                 regulator-min-microvolt = <1875000>;
153                 regulator-max-microvolt = <1875000>;
154                 regulator-enable-ramp-delay = <1000>;
155         };
156
157         vfuse: VFUSE {
158                 regulator-min-microvolt = <1500000>;
159                 regulator-max-microvolt = <3150000>;
160                 regulator-enable-ramp-delay = <1000>;
161         };
162
163         vhvio: VHVIO {
164                 regulator-min-microvolt = <2775000>;
165                 regulator-max-microvolt = <2775000>;
166                 regulator-enable-ramp-delay = <1000>;
167                 regulator-always-on;
168         };
169
170         /* Used by eMMC at mmc2 */
171         vsdio: VSDIO {
172                 regulator-min-microvolt = <2900000>;
173                 regulator-max-microvolt = <2900000>;
174                 regulator-enable-ramp-delay = <1000>;
175         };
176
177         vpll: VPLL {
178                 regulator-min-microvolt = <1200000>;
179                 regulator-max-microvolt = <1800000>;
180                 regulator-enable-ramp-delay = <100>;
181         };
182
183         vrf1: VRF1 {
184                 regulator-min-microvolt = <2775000>;
185                 regulator-max-microvolt = <2775000>;
186                 regulator-enable-ramp-delay = <1000>;
187         };
188
189         vrf2: VRF2 {
190                 regulator-min-microvolt = <2775000>;
191                 regulator-max-microvolt = <2775000>;
192                 regulator-enable-ramp-delay = <1000>;
193         };
194
195         vrfref: VRFREF {
196                 regulator-min-microvolt = <2500000>;
197                 regulator-max-microvolt = <2775000>;
198                 regulator-enable-ramp-delay = <100>;
199         };
200
201         vwlan1: VWLAN1 {
202                 regulator-min-microvolt = <1800000>;
203                 regulator-max-microvolt = <1900000>;
204                 regulator-enable-ramp-delay = <1000>;
205         };
206
207         /* Used by micro-SDIO at mmc1 */
208         vwlan2: VWLAN2 {
209                 regulator-min-microvolt = <3000000>;
210                 regulator-max-microvolt = <3000000>;
211                 regulator-enable-ramp-delay = <1000>;
212         };
213
214         vsim: VSIM {
215                 regulator-min-microvolt = <1800000>;
216                 regulator-max-microvolt = <2900000>;
217                 regulator-enable-ramp-delay = <1000>;
218         };
219
220         vsimcard: VSIMCARD {
221                 regulator-min-microvolt = <1800000>;
222                 regulator-max-microvolt = <2900000>;
223                 regulator-enable-ramp-delay = <1000>;
224         };
225
226         vvib: VVIB {
227                 regulator-min-microvolt = <1300000>;
228                 regulator-max-microvolt = <3000000>;
229                 regulator-enable-ramp-delay = <500>;
230         };
231
232         vusb: VUSB {
233                 regulator-min-microvolt = <3300000>;
234                 regulator-max-microvolt = <3300000>;
235                 regulator-enable-ramp-delay = <1000>;
236         };
237
238         vaudio: VAUDIO {
239                 regulator-min-microvolt = <2775000>;
240                 regulator-max-microvolt = <2775000>;
241                 regulator-enable-ramp-delay = <1000>;
242         };
243 };