[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210113151808.4628-3-jonathan.albrieux@gmail.com>
Date: Wed, 13 Jan 2021 16:18:08 +0100
From: Jonathan Albrieux <jonathan.albrieux@...il.com>
To: linux-kernel@...r.kernel.org
Cc: ~postmarketos/upstreaming@...ts.sr.ht,
Jonathan Albrieux <jonathan.albrieux@...il.com>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org
Subject: [PATCH 2/2] arm64: dts: qcom: pm8916: Add batt_id channel node
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>;
};
Add VADC_LR_MUX2_BAT_ID accordingly.
Signed-off-by: Jonathan Albrieux <jonathan.albrieux@...il.com>
---
arch/arm64/boot/dts/qcom/pm8916.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pm8916.dtsi b/arch/arm64/boot/dts/qcom/pm8916.dtsi
index a7663bf867ec..854e51883289 100644
--- a/arch/arm64/boot/dts/qcom/pm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm8916.dtsi
@@ -95,6 +95,11 @@
adc-chan@f {
reg = <VADC_VDD_VADC>;
};
+ adc-chan@g {
+ reg = <VADC_LR_MUX2_BAT_ID>;
+ qcom,hw-settle-time = <2000>;
+ qcom,ratiometric;
+ };
};
rtc@...0 {
--
2.17.1
Powered by blists - more mailing lists