MSM8909+Android5.1.1电池管理(2)--qpnp-linear-charger.txt驱动学习概要
参考文件
\kernel\Documentation\power\qpnp-linear-charger.txt---下面是学习此文件
\kernel\Documentation\devicetree\bindings\power\qpnp-linear-charger.txt
1. 简介
The QPNP linear charger driver implementsinput and external peripheral power management for 8916 chipsets. The input canbe supplied to the device via USB path. Output paths is the VPH_PWR rail.
QPNP线性充电器驱动实现8916芯片集(msm8916和pm8916)输入和外部外围电路管理,通过USB路径输入到设备和输出路径是VPH_PWR。
2. 软件描述
2.1 设计目标
The qpnp-linear-charger driver interacts asa consumer and producer for
various input and output power information,as well as relaying information
to userspace.
qpnp-linear-charger驱动作为一个消费者和生产者交互各种输入和输出电源信息,而且转发这些信息给用户空间
Given the abundance of configurations fordifferent board designs it is important to distinguish between configurationswhich are required versus those available to be configured at compile and atrun time. The target of this design is to achieve this as follows:
为不同板设计给出丰富的配置,重要的是可区分编译时需配置的配置和运行时配置,这个设计目的可通过下面的内容来达到:
(1) 编译时选项在设备树文件定义
参考Documentation/devicetree/bindings/power/qpnp-linear-charger.txt,对应设备树文件\kernel\arch\arm\boot\dts\qcom\msm-pm8909.dtsi下的设备节点
pm8909_chg: qcom,charger {