看了下 /sys/class/power_supply/
目录下的节点,有一些异常:
正常的:
battery
lrwxrwxrwx 1 root root 0 2021-03-08 12:16 bbc -> ../../devices/platform/soc/884000.i2c/i2c-4/4-006b/power_supply/bbc
lrwxrwxrwx 1 root root 0 1970-07-28 03:47 bms -> ../../devices/platform/soc/884000.i2c/i2c-4/4-0055/power_supply/bms
lrwxrwxrwx 1 root root 0 2021-03-08 12:16 charge_pump_master -> ../../devices/platform/soc/884000.i2c/i2c-4/4-0034/884000.i2c:qcom,smb1396@34:qcom,div2_cp/power_supply/charge_pump_master
lrwxrwxrwx 1 root root 0 2021-03-08 12:16 cp_slave -> ../../devices/platform/soc/884000.i2c/i2c-4/4-0035/884000.i2c:qcom,smb1396@35:qcom,div2_cp_slave/power_supply/cp_slave
lrwxrwxrwx 1 root root 0 2021-03-08 12:16 cp_wdog -> ../../devices/platform/soc/88c000.i2c/i2c-6/6-002a/power_supply/cp_wdog
lrwxrwxrwx 1 root root 0 2021-03-08 12:16 dc -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/dc
lrwxrwxrwx 1 root root 0 2021-03-08 12:16 idt -> ../../devices/platform/soc/888000.i2c/i2c-5/5-003b/power_supply/idt
lrwxrwxrwx 1 root root 0 2021-03-08 12:16 main -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/main
lrwxrwxrwx 1 root root 0 2021-03-08 12:16 pc_port -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/pc_port
lrwxrwxrwx 1 root root 0 2021-03-08 12:16 usb -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/usb
lrwxrwxrwx 1 root root 0 1970-07-28 03:48 wireless -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/wireless
异常的:
lrwxrwxrwx 1 root root 0 2021-03-08 12:50 battery -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/battery
lrwxrwxrwx 1 root root 0 2021-03-08 12:50 bbc -> ../../devices/platform/soc/884000.i2c/i2c-4/4-006b/power_supply/bbc
lrwxrwxrwx 1 root root 0 1970-07-28 04:21 bms -> ../../devices/platform/soc/884000.i2c/i2c-4/4-0055/power_supply/bms
lrwxrwxrwx 1 root root 0 2021-03-08 12:50 dc -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/dc
lrwxrwxrwx 1 root root 0 2021-03-08 12:50 idt -> ../../devices/platform/soc/888000.i2c/i2c-5/5-003b/power_supply/idt
lrwxrwxrwx 1 root root 0 2021-03-08 12:50 main -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/main
lrwxrwxrwx 1 root root 0 2021-03-08 12:50 pc_port -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/pc_port
lrwxrwxrwx 1 root root 0 2021-03-08 12:50 usb -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/usb
lrwxrwxrwx 1 root root 0 1970-07-28 04:21 wireless -> ../../devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/wireless
少了几个:charge_pump_master,cp_slave,cp_wdog