151 lines
3.5 KiB
Text
151 lines
3.5 KiB
Text
|
|
|
||
|
|
&tlmm {
|
||
|
|
sc760x_irq_default: sc760x_irq_default {
|
||
|
|
mux {
|
||
|
|
pins = "gpio89";
|
||
|
|
function = "gpio";
|
||
|
|
};
|
||
|
|
|
||
|
|
config {
|
||
|
|
pins = "gpio89";
|
||
|
|
drive-strength = <2>;
|
||
|
|
bias-disable;
|
||
|
|
input-enable;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
sc760x_enable: sc760x_enable {
|
||
|
|
mux {
|
||
|
|
pins = "gpio30";
|
||
|
|
function = "gpio";
|
||
|
|
};
|
||
|
|
|
||
|
|
config {
|
||
|
|
pins = "gpio30";
|
||
|
|
drive-strength = <2>;
|
||
|
|
bias-disable; /* NO PULL */
|
||
|
|
output-high;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
sc760x_disable: sc760x_disable {
|
||
|
|
mux {
|
||
|
|
pins = "gpio30";
|
||
|
|
function = "gpio";
|
||
|
|
};
|
||
|
|
|
||
|
|
config {
|
||
|
|
pins = "gpio30";
|
||
|
|
drive-strength = <2>;
|
||
|
|
output-low;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
&qupv3_se8_spi {
|
||
|
|
status = "disabled";
|
||
|
|
};
|
||
|
|
|
||
|
|
&aliases {
|
||
|
|
i2c1 = "/soc/i2c@880000";
|
||
|
|
};
|
||
|
|
|
||
|
|
&qupv3_se8_i2c {
|
||
|
|
status = "ok";
|
||
|
|
cw2217b_flip: cw2217b-battery-flip@64 {
|
||
|
|
compatible = "cellwise,cw2217";
|
||
|
|
reg = <0x64>;
|
||
|
|
sense_r_mohm = <5>;
|
||
|
|
df-serialnum = "SB18D80976";
|
||
|
|
vdd-i2c-supply = <&L15B>;
|
||
|
|
fg-psy-name = "flip_battery";
|
||
|
|
factory_mode_ntc_exist = <1>;
|
||
|
|
#include "bat_setting/CW_LN110X-atl-1165mah.dtsi"
|
||
|
|
};
|
||
|
|
|
||
|
|
sc760x_balance: sc760x-balance@52{
|
||
|
|
compatible = "southchip,sc7603_master";
|
||
|
|
reg = <0x52>;
|
||
|
|
interrupt-parent = <&tlmm>;
|
||
|
|
interrupts = <89 0>;
|
||
|
|
pinctrl-names = "default", "sc760x_enable", "sc760x_disable";
|
||
|
|
pinctrl-0 = <&sc760x_irq_default>;
|
||
|
|
pinctrl-1 = <&sc760x_enable>;
|
||
|
|
pinctrl-2 = <&sc760x_disable>;
|
||
|
|
|
||
|
|
sc,sc760x,bat-chg-lim-disable = <0>;
|
||
|
|
sc,sc760x,bat-chg-lim = <39>; /*50 + val * 50*/
|
||
|
|
sc,sc760x,pow-lim-disable = <0>;
|
||
|
|
sc,sc760x,ilim-disable = <0>;
|
||
|
|
sc,sc760x,load-switch-disable = <0>;
|
||
|
|
sc,sc760x,low-power-mode-enable = <0>;
|
||
|
|
sc,sc760x,itrichg = <3>; /*12.5 + val * 12.5*/
|
||
|
|
sc,sc760x,iprechg = <2>; /*50 + val * 50*/
|
||
|
|
sc,sc760x,vfc-chg = <2>; /*2800 + val * 50*/
|
||
|
|
sc,sc760x,chg-ovp-disable = <0>;
|
||
|
|
sc,sc760x,chg-ovp = <0>; /*0:5.0V 1:5.6V*/
|
||
|
|
sc,sc760x,bat-ovp-disable = <1>;
|
||
|
|
sc,sc760x,bat-ovp = <14>; /*4000 + val *50*/
|
||
|
|
sc,sc760x,chg-ocp-disable = <0>;
|
||
|
|
sc,sc760x,chg-ocp = <2>; /*10000 + val * 1000*/
|
||
|
|
sc,sc760x,dsg-ocp-disable = <0>;
|
||
|
|
sc,sc760x,dsg-ocp = <2>; /*10000 + val * 1000*/
|
||
|
|
sc,sc760x,tdie-flt-disable = <0>;
|
||
|
|
sc,sc760x,tdie-alm-disable = <1>;
|
||
|
|
sc,sc760x,tdie-alm = <9>; /*80 + val * 5*/
|
||
|
|
|
||
|
|
init-charger-disabled;
|
||
|
|
iterm-microamp = <200000>;
|
||
|
|
ichg-max-microamp = <1700000>;
|
||
|
|
vchg-max-microvolt = <4600000>;
|
||
|
|
ichg-microamp = <700000>;
|
||
|
|
vchg-microvolt = <4400000>;
|
||
|
|
|
||
|
|
mmi,ichg-invert-polority;
|
||
|
|
mmi,ext-usb-psy-name = "usb";
|
||
|
|
mmi,ext-wls-psy-name = "wireless";
|
||
|
|
mmi,fg-psy-name = "flip_battery";
|
||
|
|
mmi,chrg-iterm-ma = <100>;
|
||
|
|
mmi,fg-iterm-ma = <100>;
|
||
|
|
mmi,max-fv-mv = <4500>;
|
||
|
|
mmi,max-fcc-ma = <1700>;
|
||
|
|
mmi,demo-fv-mv = <4000>;
|
||
|
|
mmi,df-serialnum = "SB18D80976";
|
||
|
|
mmi,mmi-temp-zones = <0 4200 235 0>,
|
||
|
|
<10 4250 587 352>,
|
||
|
|
<15 4250 1175 821>,
|
||
|
|
<45 4300 1700 1515>,
|
||
|
|
<45 4350 1515 1175>,
|
||
|
|
<60 4200 1175 0>;
|
||
|
|
|
||
|
|
mmi,paired-id = <0x00000001>;
|
||
|
|
mmi,thermal-mitigation = <1700000 1500000 1000000 800000 500000 300000 100000>;
|
||
|
|
/* the thermal-ratio is nums * step, and the step is 0.5 */
|
||
|
|
mmi,thermal-ratio-nums = <5>;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
&mmi_charger {
|
||
|
|
mmi,pd-power-max = <45000>;
|
||
|
|
mmi,dcp-power-max = <7500>;
|
||
|
|
mmi,wls-power-max = <15000>;
|
||
|
|
mmi,upper-limit-capacity = <75>;
|
||
|
|
mmi,ibat-calc-alignment-time = <1000>;
|
||
|
|
};
|
||
|
|
|
||
|
|
&battery_charger {
|
||
|
|
mmi,combo-batt-psy = <&mmi_charger>;
|
||
|
|
qcom,thermal-mitigation = <4675000 4000000 3000000 2000000 1000000 300000 100000>;
|
||
|
|
qcom,wireless-fw-name = "cps4019.bin";
|
||
|
|
};
|
||
|
|
|
||
|
|
&qti_glink_charger {
|
||
|
|
mmi,max-fv-mv = <4550>;
|
||
|
|
mmi,main-battery-enabled;
|
||
|
|
mmi,paired-id = <0x00010000>;
|
||
|
|
mmi,partner_psy_name = "charger";
|
||
|
|
//mmi,shutdown-empty-vbat-mv = <3000>;
|
||
|
|
};
|
||
|
|
|
||
|
|
&bm_adsp_ulog {
|
||
|
|
categories = /bits/ 64 <0x1FFFBFFFFF>;
|
||
|
|
};
|