Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10fd7410 authored by Tirupathi Reddy's avatar Tirupathi Reddy
Browse files

misc: qpnp: add snapshot of qpnp-misc documentation



qpnp-misc driver supports accessing MISC peripheral registers
in certain PMICs.

This is snapshot of the qpnp-misc device documentation as of msm-4.9
'commit 98cddae6cdce ("Merge "msm: camera: Fix media_entity
assignment")'.

Change-Id: Ic1e820e98dceb66195c56785e50590f1ba92f830
Signed-off-by: default avatarTirupathi Reddy <tirupath@codeaurora.org>
parent 4cec0cd6
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
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.

Example:
	qcom,misc@900 {
		compatible = "qcom,qpnp-misc";
		reg = <0x900 0x100>;
		qcom,pwm-sel = <2>;
		qcom,enable-gp-driver;
	};