Skip to content

arm64: boot: dts: qcom: msm8939-asus-z00t: add charger and USB-OTG#426

Draft
erikas9987 wants to merge 2 commits intomsm8916-mainline:wip/msm8916/6.19-rc6from
erikas9987:smb358
Draft

arm64: boot: dts: qcom: msm8939-asus-z00t: add charger and USB-OTG#426
erikas9987 wants to merge 2 commits intomsm8916-mainline:wip/msm8916/6.19-rc6from
erikas9987:smb358

Conversation

@erikas9987
Copy link

This commit adds the Summit SMB358 charging IC and the USB-OTG GPIO powered by its VBUS regulator.
Unfortunately, due to how heavily the device driver is modified in downstream, the contents of this PR are just an attempt to match the register set as close as it's possible.
The value for constant-charge-voltage-max-microvolt can be found here (downstream says 4380mV but we round it to 4400mV so the clamp_val function in mainline driver can properly set the bits)
The value for constant-charge-current-max-microamp can be found here (ASUS actually sets different fast charge values for ZE551KL and ZD551KL, but LineageOS downstream has merged their configurations and confirmed it works either way)
The value for charge-term-current-microamp can be found here
The value for operating-range-celsius was taken from a downstream kernel register dump, I couldn't find where in the driver code it was being set.
The value for summit,charge-current-compensation-microamp can be found
here
The value for summit,enable-charge-control can be found here (ASUS actually toggles this in the driver, but the comment says it's only needed for Asus Fonepad, so this is more of a guess)
summit,soft-compensation-mode is taken from here, but this function is not being called anywhere in the driver...
Currently charging is capped to 1A as a safety measure.

This device uses Summit SMB358 as its charging IC. This commit adds the
device tree configuration for it and adds additional properties for the
battery.

Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
This device has GPIO 121 set as its OTG gpio. This commit adds a pin
configuration node to an existing USB extcon for it.

Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
@erikas9987
Copy link
Author

Currently unplugging the device from a charging source will cause the battery to keep reporting as charging. Does anyone know why?

@erikas9987 erikas9987 marked this pull request as draft January 23, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant