Skip to content

Commit 8c066f2

Browse files
committed
arm64: dts: qcom: p024: add battery and charger
1 parent 649e0a0 commit 8c066f2

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

arch/arm64/boot/dts/qcom/msm8916-asus-p024.dts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <dt-bindings/gpio/gpio.h>
88
#include <dt-bindings/input/input.h>
99
#include <dt-bindings/interrupt-controller/irq.h>
10+
#include <dt-bindings/power/summit,smb347-charger.h>
1011

1112
/ {
1213
model = "ASUS ZenPad 8.0";
@@ -58,6 +59,39 @@
5859
pinctrl-names = "default";
5960
pinctrl-0 = <&usb_id_default>;
6061
};
62+
63+
bat: battery {
64+
compatible = "simple-battery";
65+
voltage-min-design-microvolt = <3400000>;
66+
voltage-max-design-microvolt = <4350000>;
67+
energy-full-design-microwatt-hours = <15200000>;
68+
charge-full-design-microamp-hours = <3800000>;
69+
70+
ocv-capacity-celsius = <25>;
71+
ocv-capacity-table-0 = <4331000 100>, <4261000 95>, <4204000 90>,
72+
<4152000 85>, <4102000 80>, <4060000 75>, <3998000 70>,
73+
<3964000 65>, <3924000 60>, <3874000 55>, <3842000 50>,
74+
<3820000 45>, <3800000 40>, <3785000 35>, <3720000 30>,
75+
<3758000 25>, <3735000 20>, <3706000 16>, <3690000 13>,
76+
<3687000 11>, <3686000 10>, <3684000 9>, <3680000 8>,
77+
<3668000 7>, <3640000 6>, <3596000 5>, <3542000 4>,
78+
<3472000 3>, <3378000 2>, <3239000 1>, <3000000 0>;
79+
};
80+
};
81+
82+
&blsp_i2c4 {
83+
power_supply: charger@6a {
84+
compatible = "summit,smb345";
85+
reg = <0x6a>;
86+
87+
summit,enable-charge-control = <SMB3XX_CHG_ENABLE_SW>;
88+
summit,chip-temperature-threshold-celsius = <110>;
89+
summit,usb-current-limit-microamp = <500000>;
90+
summit,enable-usb-charging;
91+
summit,enable-otg-charging;
92+
93+
};
94+
status = "okay";
6195
};
6296

6397
&blsp1_uart2 {
@@ -68,6 +102,11 @@
68102
status = "okay";
69103
};
70104

105+
&pm8916_bms {
106+
monitored-battery = <&bat>;
107+
status = "okay";
108+
};
109+
71110
&sdhc_1 {
72111
pinctrl-names = "default", "sleep";
73112
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;

0 commit comments

Comments
 (0)