Skip to content

Instantly share code, notes, and snippets.

@ramamoorthyhs
Last active January 16, 2025 22:17
Show Gist options
  • Select an option

  • Save ramamoorthyhs/0793f7813332d94423ca1baee02f62c9 to your computer and use it in GitHub Desktop.

Select an option

Save ramamoorthyhs/0793f7813332d94423ca1baee02f62c9 to your computer and use it in GitHub Desktop.
TPS65214 + 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:~# cat /sys/kernel/debug/regulator/regulator_summary
regulator use open bypass opmode voltage current min max
---------------------------------------------------------------------------------------
regulator-dummy 3 3 0 unknown 0mV 0mA 0mV 0mV
1-0051-vcc 0 0mA 0mV 0mV
2-0023-vcc 1 0mA 0mV 0mV
2-0022-vcc 1 0mA 0mV 0mV
vmain_pd 7 6 0 unknown 5000mV 0mA 5000mV 5000mV
vcc_3v3_sys 2 4 0 unknown 3300mV 0mA 3300mV 3300mV
2-001b-DRVDD 0 0mA 0mV 0mV
2-001b-AVDD 0 0mA 0mV 0mV
2-001b-IOVDD 0 0mA 0mV 0mV
vcc_1v8 1 1 0 unknown 1800mV 0mA 1800mV 1800mV
2-001b-DVDD 0 0mA 0mV 0mV
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_1V8 1 0 0 normal 1800mV 0mA 1800mV 1800mV
VDDA_V75 1 0 0 standby 750mV 0mA 750mV 750mV
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:~# ls /sys/bus/i2c/devices/0-0030/
driver of_node supplier:platform:4084000.pinctrl tps65214-regulator.1.auto
gpiochip2 power supplier:platform:bus@f0000 tps65219-pwrbutton.3.auto
modalias regulator supplier:platform:regulator-1 uevent
name subsystem tps65214-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,tps65214
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_1V8
regulator.8 : VDDA_V75
regulator.9 : wlan_lten
PMIC Bucks:
regulator.4 : VDD_CORE
regulator.5 : DVDD_1V8
regulator.6 : VDD_LPDDR4
PMIC LDOs:
regulator.7 : VDD_1V8
regulator.8 : VDDA_V75
root@am62lxx-evm:~# for i in $(ls /sys/class/regulator); do echo -n $i ": " ; cat /sys/class/regulator/$i/microvolts; done
regulator.0 : cat: /sys/class/regulator/regulator.0/microvolts: No such file or directory
regulator.4 : 750000
regulator.5 : 1800000
regulator.6 : 1100000
regulator.7 : 1800000
regulator.8 : 750000
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 : 1800000
regulator.8 : 750000
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 : 1800000
regulator.8 : 750000
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