external_power_changed:当一个 power supply 设备存在 supply 设备,且该 power supply 设备的属性发生改变(如online、offline)时,power supply core 会调用该回调函数,通知 power supply 设备 driver,以便让它做出相应的处理。 set_charged:外部模块通知 power supply 设备 driver,该 power supply 设备的状态改变了。
/* Run-time specific power supply configuration */structpower_supply_config{structdevice_node*of_node;structfwnode_handle*fwnode;/* Driver private data */void*drv_data;char**supplied_to;size_t num_supplicants;};/* Description of power supply */structpower_supply_desc{constchar*name;enumpower_...
< 备用电池 By: jixuan 2021年6月15日POWER_SUPPLY_TYPE_MAINS, POWER_SUPPLY_TYPE_USB,/* Standard Downstream Port */POWER_SUPPLY_TYPE_USB_DCP,/* Dedicated Charging Port */POWER_SUPPLY_TYPE_USB_CDP,/* Charging Downstream Port */POWER_SUPPLY_TYPE_USB_ACA,/* Accessory Charger Adapters */POWER...
Below figures show some examples of USB Type-C applications and related Richtek power management ICs : Figure 2. Figure 2 shows a typical USB-PD adapter charging solution, where the adapter power supply provides an adjustable USB bus voltage 5V, 9V, 15V or 20V based on the request of th...
1)struct power_supply struct power_supply为power supply class的核心数据结构,用于抽象PSY设备。其定义如下: 1: /* include/linux/power_supply.h */ 2: struct power_supply { 3: const char *name; 4: enum power_supply_type type; 5: enum power_supply_property *properties; ...
* 具体可参考USB组织的规范,或者参考博客:http://www.cash.idv.tw/wordpress/?p=8334*/POWER_SUPPLY_TYPE_USB,/*Standard Downstream Port*/POWER_SUPPLY_TYPE_USB_DCP,/*Dedicated Charging Port*/POWER_SUPPLY_TYPE_USB_CDP,/*Charging Downstream Port*/POWER_SUPPLY_TYPE_USB_ACA,/*Accessory Charger Adapte...
USB-PD ('PD' stands for 'Power Delivery') is a universal standard that can fast-charge a variety of devices that use USB-C to deliver increased power (more than 7.5 W) to devices with greater power demands. Devices can request higher currents and supply voltages from compliant USB-PD hos...
This facilitates bi-directional power flow which can seamless change direction, identified as Fast Role Swap (FRS) – a power bank for example, can have a single USB Type-CTM connection to a laptop which automatically switches from charge to discharge. A Programmable Power Supply (PPS) function...
• Test USB Type-C cables for voltage drop • Test the capacity of battery powered power banks which have USB connectors. • Test for ripple on the power supply (sampling rate of 1Khz) Warnings – Important – Please read. • Do not touch or cover heatsink during operation as it ...
USB Type-C® Power Delivery (PD) controller – 10 configurable GPIOs – BC1.2 charging support – 3.3V LDO output for dead battery support – Power supply from 3.3V or VBUS source – 1 I2C primary port – 1 I2C secondary port 2 Applications • Power tools, power banks, retail ...