From: Neil Armstrong <neil.armstrong@linaro.org>
To: Luca Weiss <luca@z3ntu.xyz>, linux-arm-msm@vger.kernel.org
Cc: ~postmarketos/upstreaming@lists.sr.ht,
phone-devel@vger.kernel.org, Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] ARM: dts: qcom: pm8941: fix vadc channel node names
Date: Mon, 26 Sep 2022 10:44:51 +0200 [thread overview]
Message-ID: <638ca37e-2d2f-0247-8584-01002dea7e06@linaro.org> (raw)
In-Reply-To: <20220925161821.78030-1-luca@z3ntu.xyz>
On 25/09/2022 18:18, Luca Weiss wrote:
> Node names for the channel are supposed to be adc-chan@REG.
>
> Use this format and at the same time sort the nodes by reg value.
>
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> ---
> arch/arm/boot/dts/qcom-pm8941.dtsi | 25 ++++++++++++++++---------
> 1 file changed, 16 insertions(+), 9 deletions(-)
>
> diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi
> index 9cd49deb9fa7..3c15eecf2f21 100644
> --- a/arch/arm/boot/dts/qcom-pm8941.dtsi
> +++ b/arch/arm/boot/dts/qcom-pm8941.dtsi
> @@ -101,26 +101,33 @@ pm8941_vadc: adc@3100 {
> #size-cells = <0>;
> #io-channel-cells = <1>;
>
> - bat_temp {
> - reg = <VADC_LR_MUX1_BAT_THERM>;
> +
> + adc-chan@6 {
> + reg = <VADC_VBAT_SNS>;
> };
> - die_temp {
> +
> + adc-chan@8 {
> reg = <VADC_DIE_TEMP>;
> };
> - ref_625mv {
> +
> + adc-chan@9 {
> reg = <VADC_REF_625MV>;
> };
> - ref_1250v {
> +
> + adc-chan@10 {
> reg = <VADC_REF_1250MV>;
> };
> - ref_gnd {
> +
> + adc-chan@14 {
> reg = <VADC_GND_REF>;
> };
> - ref_vdd {
> +
> + adc-chan@15 {
> reg = <VADC_VDD_VADC>;
> };
> - vbat_sns {
> - reg = <VADC_VBAT_SNS>;
> +
> + adc-chan@48 {
> + reg = <VADC_LR_MUX1_BAT_THERM>;
> };
> };
>
Here aswell, I don't see where this is required, bindings doesn't mandate this naming:
patternProperties:
"^.*@[0-9a-f]+$":
Neil
next prev parent reply other threads:[~2022-09-26 8:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-25 16:18 [PATCH 1/2] ARM: dts: qcom: pm8941: fix vadc channel node names Luca Weiss
2022-09-25 16:18 ` [PATCH 2/2] ARM: dts: qcom: pm8941: fix iadc node Luca Weiss
2022-09-26 8:45 ` Neil Armstrong
2022-09-26 8:54 ` Krzysztof Kozlowski
2022-09-26 15:05 ` Luca Weiss
2022-09-28 7:26 ` Krzysztof Kozlowski
2022-09-27 12:43 ` Konrad Dybcio
2022-09-26 8:44 ` Neil Armstrong [this message]
2022-09-26 8:54 ` [PATCH 1/2] ARM: dts: qcom: pm8941: fix vadc channel node names Krzysztof Kozlowski
2022-09-27 13:03 ` Konrad Dybcio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=638ca37e-2d2f-0247-8584-01002dea7e06@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@somainline.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luca@z3ntu.xyz \
--cc=phone-devel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.