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 = <3000000>;
20 compatible = "motorola,mapphone-cpcap-adc";
21 interrupts-extended = <&cpcap 8 0>;
22 interrupt-names = "adcdone";
23 #io-channel-cells = <1>;
26 cpcap_battery: battery {
27 compatible = "motorola,cpcap-battery";
28 interrupts-extended = <
29 &cpcap 6 0 &cpcap 5 0 &cpcap 3 0
30 &cpcap 20 0 &cpcap 54 0
33 "eol", "lowbph", "lowbpl",
34 "chrgcurr1", "battdetb";
35 io-channels = <&cpcap_adc 0 &cpcap_adc 1
36 &cpcap_adc 5 &cpcap_adc 6>;
37 io-channel-names = "battdetb", "battp",
38 "chg_isense", "batti";
39 power-supplies = <&cpcap_charger>;
42 cpcap_charger: charger {
43 compatible = "motorola,mapphone-cpcap-charger";
44 interrupts-extended = <
45 &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0
46 &cpcap 22 0 &cpcap 20 0 &cpcap 19 0 &cpcap 54 0
49 "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
50 "rvrs_mode", "chrgcurr1", "vbusvld", "battdetb";
51 mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW
52 &gpio3 23 GPIO_ACTIVE_LOW>;
53 io-channels = <&cpcap_adc 0 &cpcap_adc 1
54 &cpcap_adc 2 &cpcap_adc 5
56 io-channel-names = "battdetb", "battp",
61 cpcap_regulator: regulator {
62 compatible = "motorola,mapphone-cpcap-regulator";
64 cpcap_regulators: regulators {
68 cpcap_audio: audio-codec {
69 #sound-dai-cells = <1>;
72 cpcap_audio_codec0: endpoint {
76 cpcap_audio_codec1: endpoint {
82 compatible = "motorola,cpcap-rtc";
84 interrupt-parent = <&cpcap>;
85 interrupts = <39 IRQ_TYPE_NONE>, <26 IRQ_TYPE_NONE>;
88 power_button: button {
89 compatible = "motorola,cpcap-pwrbutton";
91 interrupts = <23 IRQ_TYPE_NONE>;
95 compatible = "motorola,mapphone-cpcap-usb-phy";
96 pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>;
97 pinctrl-1 = <&usb_ulpi_pins>;
98 pinctrl-2 = <&usb_utmi_pins>;
99 pinctrl-3 = <&uart3_pins>;
100 pinctrl-names = "default", "ulpi", "utmi", "uart";
102 interrupts-extended = <
103 &cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0
104 &cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0
108 "id_ground", "id_float", "se0conn", "vbusvld",
109 "sessvld", "sessend", "se1", "dm", "dp";
110 mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH
111 &gpio1 0 GPIO_ACTIVE_HIGH>;
112 io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>;
113 io-channel-names = "vbus", "id";
114 vusb-supply = <&vusb>;
118 compatible = "motorola,cpcap-led-red";
120 label = "status-led:red";
123 led_green: led-green {
124 compatible = "motorola,cpcap-led-green";
126 label = "status-led:green";
130 compatible = "motorola,cpcap-led-blue";
132 label = "status-led:blue";
136 compatible = "motorola,cpcap-led-adl";
138 label = "button-backlight";
142 compatible = "motorola,cpcap-led-cp";
144 label = "shift-key-light";
151 regulator-min-microvolt = <5050000>;
152 regulator-max-microvolt = <5050000>;
153 regulator-enable-ramp-delay = <50000>;
158 regulator-min-microvolt = <2900000>;
159 regulator-max-microvolt = <2900000>;
160 regulator-enable-ramp-delay = <1000>;
165 regulator-min-microvolt = <1800000>;
166 regulator-max-microvolt = <1800000>;
167 regulator-enable-ramp-delay = <1000>;
172 regulator-min-microvolt = <1800000>;
173 regulator-max-microvolt = <1800000>;
174 regulator-enable-ramp-delay = <1000>;
178 regulator-min-microvolt = <1875000>;
179 regulator-max-microvolt = <1875000>;
180 regulator-enable-ramp-delay = <1000>;
184 regulator-min-microvolt = <1500000>;
185 regulator-max-microvolt = <3150000>;
186 regulator-enable-ramp-delay = <1000>;
190 regulator-min-microvolt = <2775000>;
191 regulator-max-microvolt = <2775000>;
192 regulator-enable-ramp-delay = <1000>;
196 /* Used by eMMC at mmc2 */
198 regulator-min-microvolt = <2900000>;
199 regulator-max-microvolt = <2900000>;
200 regulator-enable-ramp-delay = <1000>;
204 regulator-min-microvolt = <1200000>;
205 regulator-max-microvolt = <1800000>;
206 regulator-enable-ramp-delay = <100>;
210 regulator-min-microvolt = <2775000>;
211 regulator-max-microvolt = <2775000>;
212 regulator-enable-ramp-delay = <1000>;
216 regulator-min-microvolt = <2775000>;
217 regulator-max-microvolt = <2775000>;
218 regulator-enable-ramp-delay = <1000>;
222 regulator-min-microvolt = <2500000>;
223 regulator-max-microvolt = <2775000>;
224 regulator-enable-ramp-delay = <100>;
228 regulator-min-microvolt = <1800000>;
229 regulator-max-microvolt = <1900000>;
230 regulator-enable-ramp-delay = <1000>;
233 /* Used by micro-SDIO at mmc1 */
235 regulator-min-microvolt = <3000000>;
236 regulator-max-microvolt = <3000000>;
237 regulator-enable-ramp-delay = <1000>;
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <2900000>;
243 regulator-enable-ramp-delay = <1000>;
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <2900000>;
249 regulator-enable-ramp-delay = <1000>;
253 regulator-min-microvolt = <1300000>;
254 regulator-max-microvolt = <3000000>;
255 regulator-enable-ramp-delay = <500>;
259 regulator-min-microvolt = <3300000>;
260 regulator-max-microvolt = <3300000>;
261 regulator-enable-ramp-delay = <1000>;
265 regulator-min-microvolt = <2775000>;
266 regulator-max-microvolt = <2775000>;
267 regulator-enable-ramp-delay = <1000>;
268 regulator-initial-mode = <0x00>; /* NORMAL */