forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * 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.
74 */
85
96 &mcspi1 {
....@@ -32,11 +29,12 @@
3229 compatible = "motorola,cpcap-battery";
3330 interrupts-extended = <
3431 &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
3633 >;
3734 interrupt-names =
3835 "eol", "lowbph", "lowbpl",
39
- "chrgcurr1", "battdetb";
36
+ "chrgcurr1", "battdetb",
37
+ "cccal";
4038 io-channels = <&cpcap_adc 0 &cpcap_adc 1
4139 &cpcap_adc 5 &cpcap_adc 6>;
4240 io-channel-names = "battdetb", "battp",
....@@ -48,11 +46,13 @@
4846 compatible = "motorola,mapphone-cpcap-charger";
4947 interrupts-extended = <
5048 &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
5251 >;
5352 interrupt-names =
5453 "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
55
- "rvrs_mode", "chrgcurr1", "vbusvld", "battdetb";
54
+ "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld",
55
+ "battdetb";
5656 mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW
5757 &gpio3 23 GPIO_ACTIVE_LOW>;
5858 io-channels = <&cpcap_adc 0 &cpcap_adc 1