Skip to content

Instantly share code, notes, and snippets.

@ramamoorthyhs
Created December 26, 2024 19:40
Show Gist options
  • Select an option

  • Save ramamoorthyhs/7560eca6110fafc77b51894fa2c0fd22 to your computer and use it in GitHub Desktop.

Select an option

Save ramamoorthyhs/7560eca6110fafc77b51894fa2c0fd22 to your computer and use it in GitHub Desktop.
TPS65215 + AM62L Test Logs
// PMIC I2C Address: 0x30
root@am62lxx-evm:~# i2cdetect -y -r 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@am62lxx-evm:~# ls /sys/bus/i2c/devices/0-0030/
driver of_node supplier:platform:4084000.pinctrl tps65215-regulator.1.auto
gpiochip2 power supplier:platform:bus@f0000 tps65219-pwrbutton.3.auto
modalias regulator supplier:platform:regulator-1 uevent
name subsystem tps65215-gpio.2.auto
root@am62lxx-evm:~# cat /sys/bus/i2c/devices/0-0030/gpiochip2/uevent
MAJOR=254
MINOR=2
DEVNAME=gpiochip2
DEVTYPE=gpio_chip
OF_NAME=pmic
OF_FULLNAME=/bus@f0000/bus@b00000/i2c@2b200000/pmic@30
OF_COMPATIBLE_0=ti,tps65215
OF_COMPATIBLE_N=1
root@am62lxx-evm:~# for i in $(ls /sys/class/regulator); do echo -n $i ": " ; cat /sys/class/regulator/$i/name; done
regulator.0 : regulator-dummy
regulator.1 : vmain_pd
regulator.10 : wlan_en
regulator.2 : vcc_3v3_sys
regulator.3 : vcc_1v8
regulator.4 : VDD_CORE
regulator.5 : DVDD_1V8
regulator.6 : VDD_LPDDR4
regulator.7 : VDD_2V5
regulator.8 : VDDA_1V8
regulator.9 : wlan_lten
PMIC Bucks:
regulator.4 : VDD_CORE
regulator.5 : DVDD_1V8
regulator.6 : VDD_LPDDR4
PMIC LDOs:
regulator.7 : VDD_2V5
regulator.8 : VDDA_1V8
root@am62lxx-evm:~# cat /sys/kernel/debug/regulator/regulator_summary
regulator use open bypass opmode voltage current min max
---------------------------------------------------------------------------------------
regulator-dummy 3 2 0 unknown 0mV 0mA 0mV 0mV
2-0023-vcc 1 0mA 0mV 0mV
2-0022-vcc 1 0mA 0mV 0mV
vmain_pd 2 1 0 unknown 5000mV 0mA 5000mV 5000mV
vcc_3v3_sys 7 6 0 unknown 3300mV 0mA 3300mV 3300mV
vcc_1v8 1 0 0 unknown 1800mV 0mA 1800mV 1800mV
VDD_CORE 1 0 0 normal 750mV 0mA 750mV 750mV
DVDD_1V8 1 0 0 standby 1800mV 0mA 1800mV 1800mV
VDD_LPDDR4 1 0 0 standby 1100mV 0mA 1100mV 1100mV
VDD_2V5 1 0 0 standby 2500mV 0mA 2500mV 2500mV
VDDA_1V8 1 0 0 normal 1800mV 0mA 1800mV 1800mV
wlan_lten 1 1 0 unknown 3300mV 0mA 3300mV 3300mV
wlan_en 0 1 0 unknown 1800mV 0mA 1800mV 1800mV
fa20000.mmc-vmmc 0 0mA 1650mV 1950mV
root@am62lxx-evm:~# for i in $(ls /sys/class/regulator); do echo -n $i ": " ; cat /sys/class/regulator/$i/microvolts; done
regulator.4 : 750000
regulator.5 : 1800000
regulator.6 : 1100000
regulator.7 : 2500000
regulator.8 : 1800000
root@am62lxx-evm:~# for i in $(ls /sys/class/regulator); do echo -n $i ": " ; cat /sys/class/regulator/$i/min_microvolts; done
regulator.4 : 750000
regulator.5 : 1800000
regulator.6 : 1100000
regulator.7 : 2500000
regulator.8 : 1800000
root@am62lxx-evm:~# for i in $(ls /sys/class/regulator); do echo -n $i ": " ; cat /sys/class/regulator/$i/max_microvolts; done
regulator.4 : 750000
regulator.5 : 1800000
regulator.6 : 1100000
regulator.7 : 2500000
regulator.8 : 1800000
root@am62lxx-evm:~# for i in $(ls /sys/class/regulator); do echo -n $i ": " ; cat /sys/class/regulator/$i/state; done
regulator.4 : enabled
regulator.5 : enabled
regulator.6 : enabled
regulator.7 : enabled
regulator.8 : enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment