Skip to content

Commit a40f1ab

Browse files
committed
arm64: boot: dts: qcom: msm8939-asus-z00t: add charger
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
1 parent 40117b1 commit a40f1ab

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

arch/arm64/boot/dts/qcom/msm8939-asus-z00t.dts

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <dt-bindings/gpio/gpio.h>
99
#include <dt-bindings/input/input.h>
1010
#include <dt-bindings/interrupt-controller/irq.h>
11+
#include <dt-bindings/power/summit,smb347-charger.h>
1112

1213
/ {
1314
model = "Asus ZenFone 2 Laser/Selfie (1080p)";
@@ -22,11 +23,16 @@
2223

2324
battery: battery {
2425
compatible = "simple-battery";
26+
2527
device-chemistry = "lithium-ion-polymer";
2628
voltage-min-design-microvolt = <3400000>;
2729
voltage-max-design-microvolt = <4400000>;
30+
constant-charge-voltage-max-microvolt = <4400000>;
31+
constant-charge-current-max-microamp = <2000000>;
2832
energy-full-design-microwatt-hours = <11500000>;
2933
charge-full-design-microamp-hours = <3000000>;
34+
charge-term-current-microamp = <80000>;
35+
operating-range-celsius = <10 65>;
3036

3137
ocv-capacity-celsius = <(-20) 0 25 40 60>;
3238
ocv-capacity-table-0 = <4378000 100>, <4220000 95>, <4125000 90>,
@@ -127,7 +133,7 @@
127133
usb_id: usb-id {
128134
compatible = "linux,extcon-usb-gpio";
129135
id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
130-
pinctrl-0 = <&usb_id_default>;
136+
pinctrl-0 = <&usb_id_default>, <&usb_id_switch_default>;
131137
pinctrl-names = "default";
132138
};
133139
};
@@ -165,6 +171,28 @@
165171
};
166172
};
167173

174+
&blsp_i2c4 {
175+
status = "okay";
176+
177+
charger: charger@6a {
178+
compatible = "summit,smb358";
179+
reg = <0x6a>;
180+
181+
summit,enable-charge-control = <SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW>;
182+
summit,enable-usb-charging;
183+
184+
monitored-battery = <&battery>;
185+
186+
usb_vbus: usb-vbus {
187+
regulator-name = "usb_vbus";
188+
regulator-min-microvolt = <5000000>;
189+
regulator-max-microvolt = <5000000>;
190+
regulator-min-microamp = <750000>;
191+
regulator-max-microamp = <750000>;
192+
};
193+
};
194+
};
195+
168196
&blsp_i2c5 {
169197
status = "okay";
170198

@@ -246,6 +274,7 @@
246274

247275
&pm8916_bms {
248276
monitored-battery = <&battery>;
277+
power-supplies = <&charger>;
249278

250279
status = "okay";
251280
};
@@ -290,6 +319,7 @@
290319

291320
&usb {
292321
extcon = <&usb_id>, <&usb_id>;
322+
vbus-supply = <&usb_vbus>;
293323

294324
status = "okay";
295325
};
@@ -396,4 +426,11 @@
396426
drive-strength = <2>;
397427
bias-disable;
398428
};
429+
430+
usb_id_switch_default: usb-id-switch-default-state {
431+
pins = "gpio121";
432+
function = "gpio";
433+
drive-strength = <6>;
434+
output-high;
435+
};
399436
};

0 commit comments

Comments
 (0)