07:20
fossdd has quit [Remote host closed the connection]
07:20
fossdd has joined #msm8937-mainline
13:39
<
hacker420[m] >
barni2000 which defconfig do I pick?
13:40
<
barni2000[m] >
my config based on msm8917 config from the pmaports but i can send my config
13:40
<
barni2000[m] >
i have not created a config fragment or a clean defconfig yet
13:40
<
hacker420[m] >
barni2000[m]: sure
13:41
<
hacker420[m] >
btw, charging on G5 seems to be wired to pmi8952
13:41
<
barni2000[m] >
pmi8952 is pmi8950
13:42
<
hacker420[m] >
battery as well
13:43
<
barni2000[m] >
for normal charging most msm8937 devices are using pmi8950_charger (pmic charger) and for fast charging they are using other smb charging chip
13:43
<
barni2000[m] >
so in general 2 charging chip is there
13:43
<
hacker420[m] >
yeah I am not interested in fast charge for now
13:44
<
barni2000[m] >
i have sent example from kenzo you can use that, i can help with the values
13:44
<
hacker420[m] >
especially seeing that I can't see that chip in schematics
13:48
<
barni2000[m] >
it seems cedric does not support fastcharge
13:48
<
hacker420[m] >
barni2000[m]: hmmm
13:48
<
hacker420[m] >
I remember it was advertising some quickcharge thing
13:48
<
hacker420[m] >
doesn't matter
13:49
<
hacker420[m] >
where is the kenzo example?
13:51
<
barni2000[m] >
you can search in chat history btw
13:53
<
hacker420[m] >
barni2000[m]: blame neochat for search being broken
13:58
<
hacker420[m] >
I assume I also need this
14:02
<
hacker420[m] >
so now how do I adapt these values?
14:05
<
barni2000[m] >
in recovery ```cat /sys/class/power_supply/.../*
14:06
<
barni2000[m] >
s//.../*//.../*```/
14:08
<
hacker420[m] >
so this for example on battery?
14:09
<
barni2000[m] >
you will need full_design
14:09
<
hacker420[m] >
it's the same
14:10
<
barni2000[m] >
there are charger and bms under the power_supply
14:10
<
hacker420[m] >
~ # cat /sys/class/power_supply/battery/voltage_max_design
14:10
<
hacker420[m] >
4400000
14:11
<
barni2000[m] >
so you have the charge_full_design and voltage_design what is left?
14:12
<
hacker420[m] >
under bms
14:12
<
hacker420[m] >
~ # cat /sys/class/power_supply/bms/voltage_min
14:13
<
barni2000[m] >
does not really matter
14:14
<
hacker420[m] >
so do I just chuck out voltage-min from dts?
14:14
<
barni2000[m] >
i always use 3.4v for 4.4v max
14:14
<
hacker420[m] >
here's what I have for now
14:15
<
barni2000[m] >
it seems fine you can set constant-charge-current-max lower to be more safe
14:15
<
barni2000[m] >
in my example it is 1A
14:16
<
hacker420[m] >
`constant-charge-current-max-microamp = <1000000>;`
14:17
<
barni2000[m] >
double check everything 0 + can mess up everything
14:17
<
hacker420[m] >
any changes in fg or smbcharger?
14:17
<
barni2000[m] >
* check everything one 0 +
14:17
<
barni2000[m] >
no just copy them
14:18
<
hacker420[m] >
looks good then
14:18
<
hacker420[m] >
anything else?
14:19
<
barni2000[m] >
have you cherry-picked the driver commits?
14:19
<
hacker420[m] >
which driver commits?
14:19
<
barni2000[m] >
fg and charger
14:19
<
hacker420[m] >
I grabbed your branch
14:19
<
barni2000[m] >
my branch does not contains pmi8959 charger/fg drivers yet
14:19
<
barni2000[m] >
s/pmi8959/pmi8950/
14:21
<
barni2000[m] >
from resin to kenzo dt
14:21
<
hacker420[m] >
do I grab all those?
14:22
<
hacker420[m] >
wait how do I pick them from a different fork
14:24
<
barni2000[m] >
you can add a new remote any time
14:25
<
hacker420[m] >
right
14:26
<
hacker420[m] >
but will this stupid ass internet let me fetch it
14:26
<
hacker420[m] >
I couldn't fully clone the git repo
14:26
<
hacker420[m] >
kept giving me errors
14:26
<
hacker420[m] >
unless there is some way for me to make them all into a patch
14:28
<
hacker420[m] >
ok idea
14:28
<
hacker420[m] >
I'll just grab the patches from all of them for now
14:40
<
hacker420[m] >
do I enable something else?
14:40
<
hacker420[m] >
` │ │ <M> Qualcomm Switch-Mode Battery Charger │ │ `
14:44
<
barni2000[m] >
it is not that
14:45
<
hacker420[m] >
which one is it then?
14:48
<
barni2000[m] >
when you start make it will prompt the new drivers
14:48
<
barni2000[m] >
CHARGER_QCOM_SMBCHG but this is it
14:49
<
hacker420[m] >
barni2000[m]: that's the one I enabled
14:49
<
hacker420[m] >
also make didn't prompt anything
14:49
<
barni2000[m] >
i was not remembered correctly
14:49
<
hacker420[m] >
guess I just wait until this builds then enable it
14:50
<
hacker420[m] >
because didn't on this run
14:50
<
hacker420[m] >
do I set it as module or built in
14:50
<
barni2000[m] >
module is fine
14:50
<
barni2000[m] >
don't forget enable fg also
15:26
<
hacker420[m] >
` │ │ <M> Qualcomm PMIC fuel gauge driver │ │ `
16:09
<
hacker420[m] >
do I need to modprobe them after startup?
16:10
<
hacker420[m] >
if I didn't put them in initfs
16:10
<
hacker420[m] >
wait no it's there
16:11
<
hacker420[m] >
why does phosh report 0 on the battery then
16:11
<
hacker420[m] >
oh I see
16:12
<
hacker420[m] >
[ 14.182092] genirq: Flags mismatch irq 23. 00002003 (usbin-src-det) vs. 00002003 (200f000.spmi:pmic@2:usb-detect@1300)
16:12
<
hacker420[m] >
[ 14.182157] qcom-smbchg 200f000.spmi:pmic@2:smbchager@1000: failed to request usbin-src-det IRQ: 0000000091861ea8
16:12
<
hacker420[m] >
[ 14.182174] qcom-smbchg 200f000.spmi:pmic@2:smbchager@1000: probe with driver qcom-smbchg failed with error -16
16:13
<
hacker420[m] >
so what to do with this
16:13
<
hacker420[m] >
did I miss something in dts?
16:19
<
hacker420[m] >
or is it a missing commit
16:23
<
barni2000[m] >
it is collision between the two usb-id
16:36
<
hacker420[m] >
weird
16:37
<
hacker420[m] >
I reverted it, rebuilt kernel, sideloaded the new kernel package and I still get the same error
16:38
<
hacker420[m] >
everything appears to have reverted fine
16:39
<
barni2000[m] >
ok then replace extcon with charger one and remove pmi8950_vbus
16:41
<
barni2000[m] >
```extcon = <&pmi8950_smbcharger>;```
16:44
<
hacker420[m] >
removed vbus too
16:44
<
barni2000[m] >
and disable pmi8950_vbus
16:44
<
barni2000[m] >
i hope it is disabled ind pmi8950.dtsi
16:44
<
hacker420[m] >
disable or can I remove it entirely
16:44
<
barni2000[m] >
s/ind/in/
16:45
<
hacker420[m] >
add status disabled to this?
16:51
<
hacker420[m] >
still fails and now I have no usb
16:51
<
barni2000[m] >
wait try to disable the usb-id one
16:52
<
hacker420[m] >
reenable the vbus?
16:54
<
barni2000[m] >
not needed yet
16:54
<
hacker420[m] >
so have both disabled
16:55
<
hacker420[m] >
any dts changes?
16:55
<
barni2000[m] >
hacker420[m]: yes
16:55
<
barni2000[m] >
hacker420[m]: thats all
16:59
<
hacker420[m] >
now it sees the battery
16:59
<
hacker420[m] >
and knows that it's charging
17:00
<
hacker420[m] >
have to verify the level with twrp though
17:01
<
hacker420[m] >
looks to be valid
17:01
<
hacker420[m] >
twrp says 94%
17:01
<
hacker420[m] >
phosh said 95%
17:03
<
hacker420[m] >
ok it's valid now
17:03
<
hacker420[m] >
phosh says 94% too
18:15
<
hacker420[m] >
there was some app to see charging parameters
18:15
<
hacker420[m] >
but the name escapes me atm
18:34
<
hacker420[m] >
funnily enough this has less glitches than my j5 2016
18:39
<
hacker420[m] >
hm usb seems broken though
19:01
<
barni2000[m] >
you can use dummy-extcon then
19:01
<
barni2000[m] >
check riva or ugglite
19:16
<
hacker420[m] >
is this fine?
19:17
<
hacker420[m] >
ah wait I think the closing brackets are in the wrong place
19:18
<
barni2000[m] >
why you put it in the regulator config?
19:18
<
barni2000[m] >
it should be in the / block
19:18
<
hacker420[m] >
that's where it is on riva
19:21
<
barni2000[m] >
idk why it is there maybe i have do some wrong cut/paste
19:23
<
hacker420[m] >
still nothing
19:23
<
hacker420[m] >
even in the right block
19:24
<
barni2000[m] >
```extcon = <&pmi8950_smbcharger>;```
19:24
<
barni2000[m] >
replace the extcon
19:25
<
hacker420[m] >
ahhh
19:26
<
hacker420[m] >
to usb_vbus?
19:28
<
hacker420[m] >
btw does venus work?
19:29
<
hacker420[m] >
hacker420[m]: yeah works now
19:32
<
barni2000[m] >
i have updated riva's dt
19:34
<
hacker420[m] >
battery looks to be charging fine
19:38
<
hacker420[m] >
so I'll probably wait for you to merge in all the changes before I send my dts
19:44
<
hacker420[m] >
wait
19:44
<
hacker420[m] >
why does everything on the branch suddenly have 11 minutes ago commits
19:45
<
barni2000[m] >
because i have force pushed
19:56
<
hacker420[m] >
btw what would I need to do to try enabling OTG
19:56
<
hacker420[m] >
if that is even possible in the current state
19:58
<
barni2000[m] >
it depends from the device
19:58
<
barni2000[m] >
as far as i know motorolas using external direction detect
19:59
<
barni2000[m] >
charger is there for vbus supply
19:59
<
barni2000[m] >
but that also could be different
20:00
<
barni2000[m] >
qcom,usbid-gpio = <0xa7 0x61 0x00>;
20:02
<
barni2000[m] >
snps-femto-phy driver should be modfied to handle the init-seqs
20:02
<
barni2000[m] >
you will need gpio-extcon
20:03
<
barni2000[m] >
linux,extcon-usb-gpio
20:03
<
barni2000[m] >
CONFIG_EXTCON_USB_GPIO
20:07
<
hacker420[m] >
ok the hell
20:07
<
hacker420[m] >
so was benchmarking the phone with unixbench
20:07
<
hacker420[m] >
it randomly died and popped up the low power message from the bootloader
20:08
<
hacker420[m] >
I boot into BL and it says battery charge OK
20:08
<
hacker420[m] >
I boot into TWRP next and it shows 25% charge
20:08
<
hacker420[m] >
is the battery that badly degraded or what
20:08
<
hacker420[m] >
phosh iirc showed around 40-50%
20:12
<
hacker420[m] >
this phone isn't new so I can't count battery degradation out
20:36
<
hacker420[m] >
and it seems to benchmark fine under power
20:36
<
hacker420[m] >
so yeah it does really seem like degradation
20:40
<
hacker420[m] >
also lol
20:40
<
hacker420[m] >
unixbench results are better on mainline
21:13
<
hacker420[m] >
plasma mobile runs decently as well on here
21:31
<
hacker420[m] >
<barni2000[m]> "snps-femto-phy driver should..." <- you sure?
21:31
<
hacker420[m] >
in other dtses I just see it defined right in the device's dts
21:32
<
hacker420[m] >
unless you mean it's a different format or something
21:33
<
barni2000[m] >
hacker420[m]: yes 28nm-snp-femto-phy does not supports custom init seqs
21:33
<
barni2000[m] >
it is hardcoded
21:34
<
hacker420[m] >
barni2000[m]: guess for convenient testing?
21:35
<
hacker420[m] >
yeah I see it's hardcoded
21:36
<
barni2000[m] >
i can do some thing similar what is in the msm8916 driver
22:13
jojo_autoboy[m] has joined #msm8937-mainline
22:13
<
jojo_autoboy[m] >
<hacker420[m]> "unixbench results are better..." <- huh?