Skip to content

Commit

Permalink
arm64: dts: qcom: msm8916-thwc-mf601xx: Add LBC and BMS
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Xiwen <[email protected]>
  • Loading branch information
185264646 committed May 22, 2023
1 parent 08065d5 commit 0580683
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions arch/arm64/boot/dts/qcom/msm8916-thwc-mf601xx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@
};
};

battery: battery {
compatible = "simple-battery";
voltage-min-design-microvolt = <3400000>;
voltage-max-design-microvolt = <4200000>;
energy-full-design-microwatt-hours = <7770000>;
charge-full-design-microamp-hours = <2100000>;

ocv-capacity-celsius = <25>;
ocv-capacity-table-0 = <4189000 100>, <4073000 95>,
<4044000 90>, <4039000 85>, <4032000 80>, <4025000 75>,
<4008000 70>, <3974000 65>, <3953000 60>, <3912000 55>,
<3884000 50>, <3858000 45>, <3849000 40>, <3839000 35>,
<3816000 30>, <3774000 25>, <3690000 20>, <3647000 16>,
<3611000 13>, <3539000 11>, <3477000 10>, <3421000 9>,
<3388000 8>, <3364000 7>, <3328000 6>, <3235000 5>,
<3174000 4>, <3096000 3>, <3062000 2>, <3035000 1>,
<3000000 0>;
};

gpio-keys {
compatible = "gpio-keys";

Expand Down Expand Up @@ -84,9 +103,27 @@
status = "okay";
};

&pm8916_bms {
monitored-battery = <&battery>;
power-supplies = <&pm8916_charger>;

status = "okay";
};

&pm8916_charger {
qcom,vdd-safe = <4200000>;
qcom,ibat-safe = <500000>;

monitored-battery = <&battery>;

status = "okay";
};

#if 0
&pm8916_usbin {
status = "okay";
};
#endif

&sdhc_1 {
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
Expand All @@ -105,14 +142,14 @@
};

&usb {
extcon = <&pm8916_usbin>;
extcon = <&pm8916_charger>;
usb-role-switch;

status = "okay";
};

&usb_hs_phy {
extcon = <&pm8916_usbin>;
extcon = <&pm8916_charger>;
};

&wcnss {
Expand Down

0 comments on commit 0580683

Please sign in to comment.