1 // SPDX-License-Identifier: GPL-2.0-only
3 * Common CPCAP configuration used on Motorola phones
8 compatible = "motorola,cpcap", "st,6556002";
10 interrupt-parent = <&gpio1>;
11 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
13 #interrupt-cells = <2>;
16 spi-max-frequency = <9600000>;
22 compatible = "motorola,mapphone-cpcap-adc";
23 interrupts-extended = <&cpcap 8 0>;
24 interrupt-names = "adcdone";
25 #io-channel-cells = <1>;
28 cpcap_battery: battery {
29 compatible = "motorola,cpcap-battery";
30 interrupts-extended = <
31 &cpcap 6 0 &cpcap 5 0 &cpcap 3 0
32 &cpcap 20 0 &cpcap 54 0 &cpcap 57 0
35 "eol", "lowbph", "lowbpl",
36 "chrgcurr1", "battdetb",
38 io-channels = <&cpcap_adc 0 &cpcap_adc 1
39 &cpcap_adc 5 &cpcap_adc 6>;
40 io-channel-names = "battdetb", "battp",
41 "chg_isense", "batti";
42 power-supplies = <&cpcap_charger>;
45 cpcap_charger: charger {
46 compatible = "motorola,mapphone-cpcap-charger";
47 interrupts-extended = <
48 &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0
49 &cpcap 22 0 &cpcap 21 0 &cpcap 20 0 &cpcap 19 0
53 "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
54 "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld",
56 mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW
57 &gpio3 23 GPIO_ACTIVE_LOW>;
58 io-channels = <&cpcap_adc 0 &cpcap_adc 1
59 &cpcap_adc 2 &cpcap_adc 5
61 io-channel-names = "battdetb", "battp",
66 cpcap_regulator: regulator {
67 compatible = "motorola,mapphone-cpcap-regulator";
69 cpcap_regulators: regulators {
73 cpcap_audio: audio-codec {
74 #sound-dai-cells = <1>;
77 cpcap_audio_codec0: endpoint {
81 cpcap_audio_codec1: endpoint {
87 compatible = "motorola,cpcap-rtc";
89 interrupt-parent = <&cpcap>;
90 interrupts = <39 IRQ_TYPE_NONE>, <26 IRQ_TYPE_NONE>;
93 power_button: button {
94 compatible = "motorola,cpcap-pwrbutton";
96 interrupts = <23 IRQ_TYPE_NONE>;
100 compatible = "motorola,mapphone-cpcap-usb-phy";
101 pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>;
102 pinctrl-1 = <&usb_ulpi_pins>;
103 pinctrl-2 = <&usb_utmi_pins>;
104 pinctrl-3 = <&uart3_pins>;
105 pinctrl-names = "default", "ulpi", "utmi", "uart";
107 interrupts-extended = <
108 &cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0
109 &cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0
113 "id_ground", "id_float", "se0conn", "vbusvld",
114 "sessvld", "sessend", "se1", "dm", "dp";
115 mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH
116 &gpio1 0 GPIO_ACTIVE_HIGH>;
117 io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>;
118 io-channel-names = "vbus", "id";
119 vusb-supply = <&vusb>;
123 compatible = "motorola,cpcap-led-red";
125 label = "status-led:red";
128 led_green: led-green {
129 compatible = "motorola,cpcap-led-green";
131 label = "status-led:green";
135 compatible = "motorola,cpcap-led-blue";
137 label = "status-led:blue";
141 compatible = "motorola,cpcap-led-adl";
143 label = "button-backlight";
147 compatible = "motorola,cpcap-led-cp";
149 label = "shift-key-light";
156 regulator-min-microvolt = <5050000>;
157 regulator-max-microvolt = <5050000>;
158 regulator-enable-ramp-delay = <50000>;
163 regulator-min-microvolt = <2900000>;
164 regulator-max-microvolt = <2900000>;
165 regulator-enable-ramp-delay = <1000>;
168 /* Used by DSS and is the "zerov_regulator" trigger for SoC off mode */
170 regulator-min-microvolt = <1800000>;
171 regulator-max-microvolt = <1800000>;
172 regulator-enable-ramp-delay = <1000>;
177 regulator-min-microvolt = <1800000>;
178 regulator-max-microvolt = <1800000>;
179 regulator-enable-ramp-delay = <1000>;
183 regulator-min-microvolt = <1875000>;
184 regulator-max-microvolt = <1875000>;
185 regulator-enable-ramp-delay = <1000>;
189 regulator-min-microvolt = <1500000>;
190 regulator-max-microvolt = <3150000>;
191 regulator-enable-ramp-delay = <1000>;
195 regulator-min-microvolt = <2775000>;
196 regulator-max-microvolt = <2775000>;
197 regulator-enable-ramp-delay = <1000>;
201 /* Used by eMMC at mmc2 */
203 regulator-min-microvolt = <2900000>;
204 regulator-max-microvolt = <2900000>;
205 regulator-enable-ramp-delay = <1000>;
209 regulator-min-microvolt = <1200000>;
210 regulator-max-microvolt = <1800000>;
211 regulator-enable-ramp-delay = <100>;
215 regulator-min-microvolt = <2775000>;
216 regulator-max-microvolt = <2775000>;
217 regulator-enable-ramp-delay = <1000>;
221 regulator-min-microvolt = <2775000>;
222 regulator-max-microvolt = <2775000>;
223 regulator-enable-ramp-delay = <1000>;
227 regulator-min-microvolt = <2500000>;
228 regulator-max-microvolt = <2775000>;
229 regulator-enable-ramp-delay = <100>;
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1900000>;
235 regulator-enable-ramp-delay = <1000>;
238 /* Used by micro-SDIO at mmc1 */
240 regulator-min-microvolt = <3000000>;
241 regulator-max-microvolt = <3000000>;
242 regulator-enable-ramp-delay = <1000>;
246 regulator-min-microvolt = <1800000>;
247 regulator-max-microvolt = <2900000>;
248 regulator-enable-ramp-delay = <1000>;
252 regulator-min-microvolt = <1800000>;
253 regulator-max-microvolt = <2900000>;
254 regulator-enable-ramp-delay = <1000>;
258 regulator-min-microvolt = <1300000>;
259 regulator-max-microvolt = <3000000>;
260 regulator-enable-ramp-delay = <500>;
264 regulator-min-microvolt = <3300000>;
265 regulator-max-microvolt = <3300000>;
266 regulator-enable-ramp-delay = <1000>;
270 regulator-min-microvolt = <2775000>;
271 regulator-max-microvolt = <2775000>;
272 regulator-enable-ramp-delay = <1000>;
273 regulator-initial-mode = <0x00>; /* NORMAL */