.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * 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 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | &mcspi1 { |
---|
.. | .. |
---|
32 | 29 | compatible = "motorola,cpcap-battery"; |
---|
33 | 30 | interrupts-extended = < |
---|
34 | 31 | &cpcap 6 0 &cpcap 5 0 &cpcap 3 0 |
---|
35 | | - &cpcap 20 0 &cpcap 54 0 |
---|
| 32 | + &cpcap 20 0 &cpcap 54 0 &cpcap 57 0 |
---|
36 | 33 | >; |
---|
37 | 34 | interrupt-names = |
---|
38 | 35 | "eol", "lowbph", "lowbpl", |
---|
39 | | - "chrgcurr1", "battdetb"; |
---|
| 36 | + "chrgcurr1", "battdetb", |
---|
| 37 | + "cccal"; |
---|
40 | 38 | io-channels = <&cpcap_adc 0 &cpcap_adc 1 |
---|
41 | 39 | &cpcap_adc 5 &cpcap_adc 6>; |
---|
42 | 40 | io-channel-names = "battdetb", "battp", |
---|
.. | .. |
---|
48 | 46 | compatible = "motorola,mapphone-cpcap-charger"; |
---|
49 | 47 | interrupts-extended = < |
---|
50 | 48 | &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0 |
---|
51 | | - &cpcap 22 0 &cpcap 20 0 &cpcap 19 0 &cpcap 54 0 |
---|
| 49 | + &cpcap 22 0 &cpcap 21 0 &cpcap 20 0 &cpcap 19 0 |
---|
| 50 | + &cpcap 54 0 |
---|
52 | 51 | >; |
---|
53 | 52 | interrupt-names = |
---|
54 | 53 | "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn", |
---|
55 | | - "rvrs_mode", "chrgcurr1", "vbusvld", "battdetb"; |
---|
| 54 | + "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld", |
---|
| 55 | + "battdetb"; |
---|
56 | 56 | mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW |
---|
57 | 57 | &gpio3 23 GPIO_ACTIVE_LOW>; |
---|
58 | 58 | io-channels = <&cpcap_adc 0 &cpcap_adc 1 |
---|