linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles
@ 2022-10-31 18:24 Luca Weiss
  2022-10-31 18:24 ` [PATCH v2 2/2] ARM: dts: qcom: pm8941: fix iadc node Luca Weiss
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Luca Weiss @ 2022-10-31 18:24 UTC (permalink / raw)
  To: linux-arm-msm
  Cc: ~postmarketos/upstreaming, phone-devel, afd, Luca Weiss,
	Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
	Krzysztof Kozlowski, linux-iio, devicetree, linux-kernel

As in other bindings, let's use specific compatibles together with the
fallback compatible. Adjust the bindings for it.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
Changes in v2:
* New patch

 .../devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml        | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml
index 2a94db688830..fa855baa368c 100644
--- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml
@@ -18,7 +18,10 @@ description: |
 
 properties:
   compatible:
-    const: qcom,spmi-iadc
+    items:
+      - enum:
+          - qcom,pm8941-iadc
+      - const: qcom,spmi-iadc
 
   reg:
     description: IADC base address and length in the SPMI PMIC register map
@@ -50,7 +53,7 @@ examples:
         #address-cells = <1>;
         #size-cells = <0>;
         pmic_iadc: adc@3600 {
-            compatible = "qcom,spmi-iadc";
+            compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc";
             reg = <0x3600>;
             interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
             qcom,external-resistor-micro-ohms = <10000>;
-- 
2.38.1


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

* [PATCH v2 2/2] ARM: dts: qcom: pm8941: fix iadc node
  2022-10-31 18:24 [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles Luca Weiss
@ 2022-10-31 18:24 ` Luca Weiss
  2022-11-02 18:33   ` Krzysztof Kozlowski
  2022-11-02 16:31 ` [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles Rob Herring
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Luca Weiss @ 2022-10-31 18:24 UTC (permalink / raw)
  To: linux-arm-msm
  Cc: ~postmarketos/upstreaming, phone-devel, afd, Luca Weiss,
	Konrad Dybcio, Neil Armstrong, Andy Gross, Bjorn Andersson,
	Rob Herring, Krzysztof Kozlowski, devicetree, linux-kernel

The spmi-pmic bindings require the iadc node to be named just 'adc'.

Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
Changes in v2:
* Drop changing double compatible, now bindings are adjusted
* Pick up tags

 arch/arm/boot/dts/qcom-pm8941.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi
index a9e83836bf86..cd957a1e7cdf 100644
--- a/arch/arm/boot/dts/qcom-pm8941.dtsi
+++ b/arch/arm/boot/dts/qcom-pm8941.dtsi
@@ -131,7 +131,7 @@ adc-chan@30 {
 			};
 		};
 
-		pm8941_iadc: iadc@3600 {
+		pm8941_iadc: adc@3600 {
 			compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc";
 			reg = <0x3600>;
 			interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
-- 
2.38.1


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

* Re: [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles
  2022-10-31 18:24 [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles Luca Weiss
  2022-10-31 18:24 ` [PATCH v2 2/2] ARM: dts: qcom: pm8941: fix iadc node Luca Weiss
@ 2022-11-02 16:31 ` Rob Herring
  2022-11-06 12:13   ` Jonathan Cameron
  2022-11-02 18:33 ` Krzysztof Kozlowski
  2022-11-08  1:27 ` (subset) " Bjorn Andersson
  3 siblings, 1 reply; 9+ messages in thread
From: Rob Herring @ 2022-11-02 16:31 UTC (permalink / raw)
  To: Luca Weiss
  Cc: linux-arm-msm, ~postmarketos/upstreaming, phone-devel, afd,
	Jonathan Cameron, Lars-Peter Clausen, Krzysztof Kozlowski,
	linux-iio, devicetree, linux-kernel

On Mon, Oct 31, 2022 at 07:24:54PM +0100, Luca Weiss wrote:
> As in other bindings, let's use specific compatibles together with the
> fallback compatible. Adjust the bindings for it.

You should state users are already doing this.

> 
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> ---
> Changes in v2:
> * New patch
> 
>  .../devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml        | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Acked-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH v2 2/2] ARM: dts: qcom: pm8941: fix iadc node
  2022-10-31 18:24 ` [PATCH v2 2/2] ARM: dts: qcom: pm8941: fix iadc node Luca Weiss
@ 2022-11-02 18:33   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-02 18:33 UTC (permalink / raw)
  To: Luca Weiss, linux-arm-msm
  Cc: ~postmarketos/upstreaming, phone-devel, afd, Konrad Dybcio,
	Neil Armstrong, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, devicetree, linux-kernel

On 31/10/2022 14:24, Luca Weiss wrote:
> The spmi-pmic bindings require the iadc node to be named just 'adc'.
> 
> Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> ---
> Changes in v2:
> * Drop changing double compatible, now bindings are adjusted
> * Pick up tags
> 


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles
  2022-10-31 18:24 [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles Luca Weiss
  2022-10-31 18:24 ` [PATCH v2 2/2] ARM: dts: qcom: pm8941: fix iadc node Luca Weiss
  2022-11-02 16:31 ` [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles Rob Herring
@ 2022-11-02 18:33 ` Krzysztof Kozlowski
  2022-11-08  1:27 ` (subset) " Bjorn Andersson
  3 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-02 18:33 UTC (permalink / raw)
  To: Luca Weiss, linux-arm-msm
  Cc: ~postmarketos/upstreaming, phone-devel, afd, Jonathan Cameron,
	Lars-Peter Clausen, Rob Herring, Krzysztof Kozlowski, linux-iio,
	devicetree, linux-kernel

On 31/10/2022 14:24, Luca Weiss wrote:
> As in other bindings, let's use specific compatibles together with the
> fallback compatible. Adjust the bindings for it.
> 
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> ---
> Changes in v2:
> * New patch

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles
  2022-11-02 16:31 ` [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles Rob Herring
@ 2022-11-06 12:13   ` Jonathan Cameron
  2022-11-18 17:10     ` Luca Weiss
  0 siblings, 1 reply; 9+ messages in thread
From: Jonathan Cameron @ 2022-11-06 12:13 UTC (permalink / raw)
  To: Rob Herring
  Cc: Luca Weiss, linux-arm-msm, ~postmarketos/upstreaming,
	phone-devel, afd, Lars-Peter Clausen, Krzysztof Kozlowski,
	linux-iio, devicetree, linux-kernel

On Wed, 2 Nov 2022 11:31:36 -0500
Rob Herring <robh@kernel.org> wrote:

> On Mon, Oct 31, 2022 at 07:24:54PM +0100, Luca Weiss wrote:
> > As in other bindings, let's use specific compatibles together with the
> > fallback compatible. Adjust the bindings for it.  
> 
> You should state users are already doing this.
> 
I can fix that up whilst applying.  However it raises the question:
Should I treat this as a fix, or a tidy up (that can wait for next merge window)?

I'm also fine with this going with the other patch in the series (that lore
found for me as it didn't go to linux-iio) if that makes more sense.

If that happens

Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Jonathan

> > 
> > Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> > ---
> > Changes in v2:
> > * New patch
> > 
> >  .../devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml        | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)  
> 
> Acked-by: Rob Herring <robh@kernel.org>


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

* Re: (subset) [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles
  2022-10-31 18:24 [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles Luca Weiss
                   ` (2 preceding siblings ...)
  2022-11-02 18:33 ` Krzysztof Kozlowski
@ 2022-11-08  1:27 ` Bjorn Andersson
  3 siblings, 0 replies; 9+ messages in thread
From: Bjorn Andersson @ 2022-11-08  1:27 UTC (permalink / raw)
  To: luca, linux-arm-msm
  Cc: lars, devicetree, robh+dt, ~postmarketos/upstreaming,
	krzysztof.kozlowski+dt, afd, phone-devel, linux-kernel,
	linux-iio, jic23

On Mon, 31 Oct 2022 19:24:54 +0100, Luca Weiss wrote:
> As in other bindings, let's use specific compatibles together with the
> fallback compatible. Adjust the bindings for it.
> 
> 

Applied, thanks!

[2/2] ARM: dts: qcom: pm8941: fix iadc node
      commit: f659cd2770767c5ceabadace1b334df9de468eae

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

* Re: [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles
  2022-11-06 12:13   ` Jonathan Cameron
@ 2022-11-18 17:10     ` Luca Weiss
  2022-11-23 20:53       ` Jonathan Cameron
  0 siblings, 1 reply; 9+ messages in thread
From: Luca Weiss @ 2022-11-18 17:10 UTC (permalink / raw)
  To: Rob Herring, Jonathan Cameron
  Cc: linux-arm-msm, ~postmarketos/upstreaming, phone-devel, afd,
	Lars-Peter Clausen, Krzysztof Kozlowski, linux-iio, devicetree,
	linux-kernel

Hi Jonathan,

On Sonntag, 6. November 2022 13:13:10 CET Jonathan Cameron wrote:
> On Wed, 2 Nov 2022 11:31:36 -0500
> 
> Rob Herring <robh@kernel.org> wrote:
> > On Mon, Oct 31, 2022 at 07:24:54PM +0100, Luca Weiss wrote:
> > > As in other bindings, let's use specific compatibles together with the
> > > fallback compatible. Adjust the bindings for it.
> > 
> > You should state users are already doing this.
> 
> I can fix that up whilst applying.  However it raises the question:
> Should I treat this as a fix, or a tidy up (that can wait for next merge
> window)?
> 
> I'm also fine with this going with the other patch in the series (that lore
> found for me as it didn't go to linux-iio) if that makes more sense.
> 

Sorry for the delay in answering.
The dts patch (2/2) has already been picked up through qcom tree, so I think 
you can apply this one to your tree.
It's definitely not urgent, so next merge window would be perfect.

Regards
Luca

> If that happens
> 
> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> 
> Jonathan
> 
> > > Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> > > ---
> > > Changes in v2:
> > > * New patch
> > > 
> > >  .../devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml        | 7 +++++--
> > >  1 file changed, 5 insertions(+), 2 deletions(-)
> > 
> > Acked-by: Rob Herring <robh@kernel.org>





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

* Re: [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles
  2022-11-18 17:10     ` Luca Weiss
@ 2022-11-23 20:53       ` Jonathan Cameron
  0 siblings, 0 replies; 9+ messages in thread
From: Jonathan Cameron @ 2022-11-23 20:53 UTC (permalink / raw)
  To: Luca Weiss
  Cc: Rob Herring, linux-arm-msm, ~postmarketos/upstreaming,
	phone-devel, afd, Lars-Peter Clausen, Krzysztof Kozlowski,
	linux-iio, devicetree, linux-kernel

On Fri, 18 Nov 2022 18:10:17 +0100
Luca Weiss <luca@z3ntu.xyz> wrote:

> Hi Jonathan,
> 
> On Sonntag, 6. November 2022 13:13:10 CET Jonathan Cameron wrote:
> > On Wed, 2 Nov 2022 11:31:36 -0500
> > 
> > Rob Herring <robh@kernel.org> wrote:  
> > > On Mon, Oct 31, 2022 at 07:24:54PM +0100, Luca Weiss wrote:  
> > > > As in other bindings, let's use specific compatibles together with the
> > > > fallback compatible. Adjust the bindings for it.  
> > > 
> > > You should state users are already doing this.  
> > 
> > I can fix that up whilst applying.  However it raises the question:
> > Should I treat this as a fix, or a tidy up (that can wait for next merge
> > window)?
> > 
> > I'm also fine with this going with the other patch in the series (that lore
> > found for me as it didn't go to linux-iio) if that makes more sense.
> >   
> 
> Sorry for the delay in answering.
> The dts patch (2/2) has already been picked up through qcom tree, so I think 
> you can apply this one to your tree.
> It's definitely not urgent, so next merge window would be perfect.

Applied
> 
> Regards
> Luca
> 
> > If that happens
> > 
> > Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> > 
> > Jonathan
> >   
> > > > Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> > > > ---
> > > > Changes in v2:
> > > > * New patch
> > > > 
> > > >  .../devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml        | 7 +++++--
> > > >  1 file changed, 5 insertions(+), 2 deletions(-)  
> > > 
> > > Acked-by: Rob Herring <robh@kernel.org>  
> 
> 
> 
> 


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

end of thread, other threads:[~2022-11-23 20:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-31 18:24 [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles Luca Weiss
2022-10-31 18:24 ` [PATCH v2 2/2] ARM: dts: qcom: pm8941: fix iadc node Luca Weiss
2022-11-02 18:33   ` Krzysztof Kozlowski
2022-11-02 16:31 ` [PATCH v2 1/2] dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles Rob Herring
2022-11-06 12:13   ` Jonathan Cameron
2022-11-18 17:10     ` Luca Weiss
2022-11-23 20:53       ` Jonathan Cameron
2022-11-02 18:33 ` Krzysztof Kozlowski
2022-11-08  1:27 ` (subset) " Bjorn Andersson

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