ChanServ changed the topic of #msm8937-mainline to: Boot Linux on your MSM8917/37/40 and QM215 mobile! | GitHub: https://github.com/msm89x7-mainline | Logs: https://oftc.irclog.whitequark.org/msm8937-mainline | Bridged to #msm8937-mainline:kde.org on Matrix
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #msm8937-mainline
funderscore is now known as f_
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #msm8937-mainline
<FieryFlames[m]> https://github.com/FieryFlames/kernel_lenovo_tbx304/blob/LA.UM.5.6.r1-03600-89xx.0/lenovo/tb-x304f/drivers/power/couloMeter.c does this driver look familiar to anyone? to me it looks like a BQ fuel gauge
<FieryFlames[m]> This tablet has 2 batteries and a bit of a abnormal power setup in downstream which has made forward-porting 4.9 and 4.19 annoying (i don't understand what changes are necessary)
<FieryFlames[m]> once i get mainline going later ill i2c probe it
<barni2000[m]> i guess it measuring Coulomb
<barni2000[m]> btw it uses pmi8937 with smb charger as i see from dts
<FieryFlames[m]> <barni2000[m]> "btw it uses pmi8937 with smb..." <- yeah it's a standard charger but the fuel gauge isn't
<barni2000[m]> i see standard fg also
<FieryFlames[m]> afaik their modifications to power drivers use this driver to read batt level, and also use it to detect otg..?
<FieryFlames[m]> you can't just look at the dts, they have driver changes too
<barni2000[m]> i will check qpnp-fg also
<barni2000[m]> ig it is needed for otg
<FieryFlames[m]> the fg changes are less than smbcharger but both have usage of coulometer (which i still suspect is a bq chip)
<barni2000[m]> but bq chips have datasheet and river
<barni2000[m]> s/river/driver/
<barni2000[m]> do you have schematic?
<FieryFlames[m]> ye 1s
<barni2000[m]> check the charger
<FieryFlames[m]> but look at the cm driver, it's function names and usage of the i2c device line up with a bq device
<barni2000[m]> someone get paid for these changes. :'( where is the clean code polices
<FieryFlames[m]> haha right
<barni2000[m]> btw as i see these changes mostly related to otg and fg and charging could work without these
<FieryFlames[m]> on 4.9 forward-port charging and fg worked but usb wasn't good
<FieryFlames[m]> usb was fine actually i think
<FieryFlames[m]> but it would only charge on chargers without qcom quick charge
<FieryFlames[m]> and it didn't detect charging stop or start properly
<FieryFlames[m]> it would work but it would just increase % without saying charging
<FieryFlames[m]> oo, newer driver exists in https://github.com/mohancm/android_kernel_lenovo_TB-X605LC
<FieryFlames[m]> this might help me with downstream
<FieryFlames[m]> i'll try out your mainline branch later tonight, i think mainline will be easiest to investigate this chip