linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Allow VADC_LR_MUX2_BAT_ID channel proper reading
@ 2021-01-13 15:18 Jonathan Albrieux
  2021-01-13 15:18 ` [PATCH 1/2] iio:adc:qcom-spmi-vadc: add default scale to LR_MUX2_BAT_ID channel Jonathan Albrieux
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Albrieux @ 2021-01-13 15:18 UTC (permalink / raw)
  To: linux-kernel
  Cc: ~postmarketos/upstreaming, Jonathan Albrieux, Andy Gross,
	Bjorn Andersson, devicetree, Jonathan Cameron,
	Lars-Peter Clausen, linux-arm-msm, linux-iio,
	Peter Meerwald-Stadler, Rob Herring

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(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-16 18:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13 15:18 [PATCH 0/2] Allow VADC_LR_MUX2_BAT_ID channel proper reading Jonathan Albrieux
2021-01-13 15:18 ` [PATCH 1/2] iio:adc:qcom-spmi-vadc: add default scale to LR_MUX2_BAT_ID channel Jonathan Albrieux
2021-01-15 16:30   ` Bjorn Andersson
2021-01-16 17:47     ` Jonathan Cameron
2021-01-16 18:52       ` Jonathan Albrieux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).