[PATCH v2 1/4] dt-bindings: iio: adc: Add BD7910[0,1,2,3]

Matti Vaittinen posted 4 patches 1 month, 2 weeks ago
[PATCH v2 1/4] dt-bindings: iio: adc: Add BD7910[0,1,2,3]
Posted by Matti Vaittinen 1 month, 2 weeks ago
The ROHM BD79100, BD79101, BD79102, BD79103 are very similar ADCs as the
ROHM BD79104. The BD79100 has only 1 channel. BD79101 has 2 channels and
the BD79102 has 4 channels. Both BD79103 and BD79104 have 4 channels,
and, based on the data sheets, they seem identical from the software
point-of-view.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>

---
Revision history:
 v1 => v2:
 - Drop unnecessary "items"
 - Fix the order of fallback compatible for the bd79103
---
 .../devicetree/bindings/iio/adc/rohm,bd79104.yaml      | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/adc/rohm,bd79104.yaml b/Documentation/devicetree/bindings/iio/adc/rohm,bd79104.yaml
index f0a1347ba4db..d5192ec58f59 100644
--- a/Documentation/devicetree/bindings/iio/adc/rohm,bd79104.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/rohm,bd79104.yaml
@@ -14,7 +14,15 @@ description: |
 
 properties:
   compatible:
-    const: rohm,bd79104
+    oneOf:
+      - enum:
+          - rohm,bd79100
+          - rohm,bd79101
+          - rohm,bd79102
+          - rohm,bd79104
+      - items:
+          - const: rohm,bd79103
+          - const: rohm,bd79104
 
   reg:
     maxItems: 1
-- 
2.50.1

Re: [PATCH v2 1/4] dt-bindings: iio: adc: Add BD7910[0,1,2,3]
Posted by Conor Dooley 1 month, 2 weeks ago

Acked-by: Conor Dooley <conor.dooley@microchip.com>