Message ID | 20230106-pm7250b-bat_id-v1-0-82ca8f2db741@fairphone.com |
---|---|
Headers | show |
Series | Support ADC5_BAT_ID_100K_PU and use on PM7250b | expand |
On 6.01.2023 16:39, Luca Weiss wrote: > Add a node describing the ADC5_BAT_ID_100K_PU channel with the > properties taken from downstream kernel. > > Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > arch/arm64/boot/dts/qcom/pm7250b.dtsi | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boot/dts/qcom/pm7250b.dtsi > index 61f7a6345150..d709d955a2f5 100644 > --- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi > +++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi > @@ -110,6 +110,14 @@ adc-chan@1e { > label = "chg_mid"; > }; > > + adc-chan@4b { > + reg = <ADC5_BAT_ID_100K_PU>; > + qcom,hw-settle-time = <200>; > + qcom,pre-scaling = <1 1>; > + qcom,ratiometric; > + label = "bat_id"; > + }; > + > adc-chan@83 { > reg = <ADC5_VPH_PWR>; > qcom,pre-scaling = <1 3>; >
On Fri, 06 Jan 2023 16:39:41 +0100, Luca Weiss wrote: > Add the bat_id channel to vadc driver and add channel to pm7250b dts. > > Applied, thanks! [2/2] arm64: dts: qcom: pm7250b: Add BAT_ID vadc channel commit: 7592ba4d3e9bf1cce40323f59e48f4ca03b105e9 Best regards,
Add the bat_id channel to vadc driver and add channel to pm7250b dts. To: Andy Gross <agross@kernel.org> To: Bjorn Andersson <andersson@kernel.org> To: Konrad Dybcio <konrad.dybcio@linaro.org> To: Jonathan Cameron <jic23@kernel.org> To: Lars-Peter Clausen <lars@metafoo.de> To: Rob Herring <robh+dt@kernel.org> To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: ~postmarketos/upstreaming@lists.sr.ht Cc: phone-devel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org Cc: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> --- Luca Weiss (2): iio: adc: qcom-spmi-adc5: define ADC5_BAT_ID_100K_PU channel arm64: dts: qcom: pm7250b: Add BAT_ID vadc channel arch/arm64/boot/dts/qcom/pm7250b.dtsi | 8 ++++++++ drivers/iio/adc/qcom-spmi-adc5.c | 2 ++ 2 files changed, 10 insertions(+) --- base-commit: 88603b6dc419445847923fcb7fe5080067a30f98 change-id: 20230106-pm7250b-bat_id-1050c2f6d016 Best regards,