Skip to content

Allow VADC_LR_MUX2_BAT_ID channel proper reading

Jonathan Albrieux linux-arm-msm linux-devicetree linux-iio lkml 1 version Applied

Status from this message: Applied to the fixes-togreg branch of iio.git and marked for stable.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2iio:adc:qcom-spmi-vadc: add default scale to LR_MUX2_BAT_ID channeldrivers/iio/adc/qcom-spmi-vadc.c+1 -13 replies
2/2arm64: dts: qcom: pm8916: Add batt_id channel nodearch/arm64/boot/dts/qcom/pm8916.dtsi+5 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchBjorn Andersson
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Allow VADC_LR_MUX2_BAT_ID channel proper reading

Working on a battery charger and fuel gauge driver it happened to have the need to read from VADC_LR_MUX2_BAT_ID channel. Here is the declaration from downstream msm8916.dtsi:

	chan@31 {
		label = "batt_id";
		reg = <0x31>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "ratiometric";
		qcom,scale-function = <0>;
		qcom,hw-settle-time = <0xb>;
		qcom,fast-avg-setup = <0>;
	};

Those two patches set channel scaling accordingly and add it to pm8916 device tree.

Jonathan Albrieux (2):
iio:adc:qcom-spmi-vadc: add default scale to LR_MUX2_BAT_ID channel
arm64: dts: qcom: pm8916: Add batt_id channel node

 arch/arm64/boot/dts/qcom/pm8916.dtsi | 5 +++++
 drivers/iio/adc/qcom-spmi-vadc.c     | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
Signature · 1 line
2.17.1