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

Commit 33a543b9 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

hwmon: qpnp-adc: Add pinctrl property



PMIC GPIO can be configured as an analog input for
reading ADC voltage on supported channels. The GPIO
has to be configured in high impedance state and left
off when the pin is used with the VADC.

Change-Id: Ieb1a6771bbc7f0023c3525083499a6ef841f4b88
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 2be47feb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -46,6 +46,11 @@ Optional properties:
		    1 : Forces a fresh measurement for calibration values at the same time
			measurement is taken.
- qcom,adc-full-scale-code: Full scale code with offset removed.
- pinctrl-names: should be "default" (see pinctrl binding [0]).
- pinctrl-0: a phandle pointing to the pin settings for the
  device (see pinctrl binding [0]).

[0]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt

Client required property:
- qcom,<consumer name>-vadc : The phandle to the corresponding vadc device.