如何看regulator使能的情况
/sys/class/regulator下有所有的regular,如

每个节点有如下的属性
- cpu0-cpu 使用者名字
- device
- max_microvolts 最大电压
- microvolts
- min_microvolts 最小电压
- name 电源名字
- num_users 当前的使用者数量(use_count)
- of_node dts配置信息
- power
- state 当前状态(打开或关闭)
- subsystem
- suspend_disk_state
- suspend_mem_state
- suspend_standby_state
- type 电源类型(电压或电流)
- uevent
查看/d/regulator/regulator_summary有所有电源的信息,如

use 同上面的num_users(use_count) (_regulator_enable+1 _regulator_disable-1)该参数可表明当前ldo的开光状态
open当前打开次数(open_count)(_regulator_get+1 _regulator_put-1)


浙公网安备 33010602011771号