[Letux-kernel] Kobolino: rc5t619 adc

Andreas Kemnade andreas at kemnade.info
Fri Dec 20 21:15:00 CET 2019


Hi,

in the branch
letux/kobolino/rtc-v5
there is also support for the adc in the pmic. You can display
e.g. USB voltage and battery voltage.
So you have with usb attached:

root at akepd:~# cat /sys/bus/iio/devices/iio\:device0/in_voltage*input
4117000
1232000
4906000
4336000
1394000
2499000
0

and without:
root at akepd:~# sleep 5 ; cat /sys/bus/iio/devices/iio\:device0/in_voltage*input
4184000
0
0
4181000
1402000
2500000
2500000
root at akepd:~# 
root at akepd:~# 

What is unkown is the calculation of LIMMON:
/sys/bus/iio/devices/iio\:device0/in_current0_raw
it corresponds to the current going from VUSB to VSYS,
measured by a shunt between ILP and ILM. Any ideas? For the
voltages things are quite clear from the datasheet.

Regards,
Andreas


More information about the Letux-kernel mailing list