mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
arm/dts: add qc3p configure
arm/dts Add qc3p configure Change-Id: I6d0d687ff04c47eb6960a13dac69bd2f7fcac962 Signed-off-by: chailu1 <chailu1@lenovo.com> Reviewed-on: https://gerrit.mot.com/1971081 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma <mahj8@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
178f75b844
commit
6df3367b9a
1 changed files with 68 additions and 0 deletions
|
|
@ -11,6 +11,57 @@
|
|||
};
|
||||
|
||||
&pm7250b_charger {
|
||||
#io-channel-cells = <1>;
|
||||
io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>,
|
||||
<&pm7250b_vadc ADC5_USB_IN_I>,
|
||||
<&pm7250b_vadc ADC5_CHG_TEMP>,
|
||||
<&pm7250b_vadc ADC5_DIE_TEMP>,
|
||||
<&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>,
|
||||
<&pm7250b_vadc ADC5_SBUx>,
|
||||
<&pm7250b_vadc ADC5_VPH_PWR>,
|
||||
<&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>,
|
||||
<&pm7250b_qg PSY_IIO_RESISTANCE_ID>,
|
||||
<&pm7250b_qg PSY_IIO_VOLTAGE_NOW>,
|
||||
<&pm7250b_qg PSY_IIO_TEMP>,
|
||||
<&pm7250b_qg PSY_IIO_CAPACITY>,
|
||||
<&pm7250b_qg PSY_IIO_VOLTAGE_OCV>,
|
||||
<&pm7250b_qg PSY_IIO_VOLTAGE_AVG>,
|
||||
<&pm7250b_qg PSY_IIO_DEBUG_BATTERY>,
|
||||
<&pm7250b_qg PSY_IIO_REAL_CAPACITY>,
|
||||
<&pm7250b_qg PSY_IIO_CC_SOC>,
|
||||
<&pm7250b_qg PSY_IIO_CURRENT_NOW>,
|
||||
<&pm7250b_qg PSY_IIO_VOLTAGE_MAX>,
|
||||
<&pm7250b_qg PSY_IIO_CHARGE_FULL>,
|
||||
<&pm7250b_qg PSY_IIO_CHARGE_COUNTER>,
|
||||
<&pm7250b_qg PSY_IIO_CYCLE_COUNT>,
|
||||
<&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>,
|
||||
<&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>,
|
||||
<&sc8549 PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>;
|
||||
io-channel-names = "usb_in_voltage",
|
||||
"usb_in_current",
|
||||
"chg_temp",
|
||||
"die_temp",
|
||||
"conn_temp",
|
||||
"sbux_res",
|
||||
"vph_voltage",
|
||||
"skin_temp",
|
||||
"resistance_id",
|
||||
"voltage_now",
|
||||
"temp",
|
||||
"capacity",
|
||||
"voltage_ocv",
|
||||
"voltage_avg",
|
||||
"debug_battery",
|
||||
"real_capacity",
|
||||
"cc_soc",
|
||||
"current_now",
|
||||
"voltage_max",
|
||||
"charge_full",
|
||||
"charge_counter",
|
||||
"cycle_count",
|
||||
"charge_full_design",
|
||||
"time_to_full_now",
|
||||
"sc8549_input_voltage_now";
|
||||
qcom,fcc-max-ua = <3000000>;
|
||||
qcom,fv-max-uv = <4450000>;
|
||||
qcom,dcp-curr-max = <2000000>;
|
||||
|
|
@ -18,6 +69,8 @@
|
|||
2000000 1500000
|
||||
1200000 900000
|
||||
600000>;
|
||||
mmi,qc3p-support;
|
||||
|
||||
};
|
||||
|
||||
&pm7250b_mmi {
|
||||
|
|
@ -88,6 +141,11 @@
|
|||
<&pm7250b_charger PSY_IIO_TYPEC_MODE>,
|
||||
<&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>,
|
||||
<&pm7250b_charger PSY_IIO_PD_ACTIVE>,
|
||||
/*qc3p start*/
|
||||
<&pm7250b_charger PSY_IIO_USB_REAL_TYPE>,
|
||||
<&pm7250b_charger PSY_IIO_DP_DM>,
|
||||
<&pm7250b_charger PSY_IIO_MMI_QC3P_POWER>,
|
||||
/*qc3p end*/
|
||||
<&sc8549 PSY_IIO_CP_ENABLE>,
|
||||
<&sc8549 PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>,
|
||||
<&sc8549 PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>,
|
||||
|
|
@ -100,6 +158,11 @@
|
|||
"usb_typec_mode",
|
||||
"usb_input_current_settled",
|
||||
"usb_pd_active",
|
||||
/*qc3p start*/
|
||||
"usb_real_type",
|
||||
"battery_dp_dm",
|
||||
"usb_qc3p_power",
|
||||
/*qc3p end*/
|
||||
"sc8549_cp_enable",
|
||||
"sc8549_input_current_now",
|
||||
"sc8549_input_voltage_now",
|
||||
|
|
@ -117,6 +180,11 @@
|
|||
mmi,typec-middle-current = <1500000>;
|
||||
mmi,step-first-current-comp = <0>;
|
||||
mmi,dont-rerun-aicl;
|
||||
/*qc3p start*/
|
||||
mmi,qc3p-max-ibus-ma = <3000>;
|
||||
mmi,qc3p-volt-steps = <20000>;
|
||||
mmi,qc3p-volt-max = <10000000>;
|
||||
/*qc3p end*/
|
||||
mmi,chrg-temp-zones-num = <5>;
|
||||
mmi,mmi-chrg-temp-zones =
|
||||
<0 4200 970 0 0>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue