31 lines
863 B
Text
31 lines
863 B
Text
QPNP-MISC
|
|
|
|
QPNP-MISC provides a way to read the PMIC part number and revision.
|
|
|
|
Required properties:
|
|
- compatible : should be "qcom,qpnp-misc"
|
|
- reg : offset and length of the PMIC peripheral register map.
|
|
|
|
Optional properties:
|
|
- qcom,pwm-sel: Select PWM source. Possible values:
|
|
0: LOW
|
|
1: PWM1_in
|
|
2: PWM2_in
|
|
3: PWM1_in & PWM2_in
|
|
- qcom,enable-gp-driver: Enable the GP driver. Should only be specified
|
|
if a non-zero PWM source is specified under
|
|
"qcom,pwm-sel" property.
|
|
|
|
- qcom,support-twm-config Enable configuration for TWM mode.
|
|
|
|
- qcom,twm-mode The TWM mode which PMIC enters post power-off.
|
|
Valid only if 'qcom,support-twm-config' is
|
|
defined. If not specified, the default mode
|
|
is 3.
|
|
Example:
|
|
qcom,misc@900 {
|
|
compatible = "qcom,qpnp-misc";
|
|
reg = <0x900 0x100>;
|
|
qcom,pwm-sel = <2>;
|
|
qcom,enable-gp-driver;
|
|
};
|