map220v / sm8150-mainline

WIP Mainline kernel for Xiaomi Pad 5
Other
33 stars 16 forks source link

Xiaomi nabu wifi drivers. And where pm8150b_fg pull battery data #10

Closed catmengi closed 8 months ago

catmengi commented 8 months ago

Which wifi drivers does xiaomi nabu use? Which driver is handling pm8150b_fg. And does all charging drivers and pm8150b_fg(especially it) pull info from battery node in dts?

map220v commented 8 months ago

WCN3991(ath10k) driver is used for wifi, although schematic says that we have WCN3998, nabu seem to be the only sm8150 device that uses different qualcomm's wifi/bluetooth chip.

qcom_fg is used for reading pm8150b fuelgauge regs like MONOTONIC_SOC which contains battery percentage. Idk if all fuelgauges use battery node, here battery node is used to know battery capacity(used in linux to properly calculate time until battery charge is depleted) and min/max output voltage.