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

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