[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220106125947.139523-2-gengcixi@gmail.com>
Date: Thu, 6 Jan 2022 20:59:41 +0800
From: Cixi Geng <gengcixi@...il.com>
To: orsonzhai@...il.com, baolin.wang7@...il.com, zhang.lyra@...il.com,
jic23@...nel.org, lars@...afoo.de, robh+dt@...nel.org,
lgirdwood@...il.com, broonie@...nel.org
Cc: yuming.zhu1@...soc.com, linux-iio@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/7] dt-bindings:iio:adc: add sprd,ump9620-adc dtbindings
From: Cixi Geng <cixi.geng1@...soc.com>
sprd,ump9620-adc is one variant of sc27xx series, add ump9620 in
dtbindings.
Signed-off-by: Chunyan Zhang <zhang.lyra@...il.com>
Signed-off-by: Cixi Geng <cixi.geng1@...soc.com>
---
.../bindings/iio/adc/sprd,sc2720-adc.yaml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/sprd,sc2720-adc.yaml b/Documentation/devicetree/bindings/iio/adc/sprd,sc2720-adc.yaml
index caa3ee0b4b8c..cd20ff17e58c 100644
--- a/Documentation/devicetree/bindings/iio/adc/sprd,sc2720-adc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/sprd,sc2720-adc.yaml
@@ -20,6 +20,7 @@ properties:
- sprd,sc2723-adc
- sprd,sc2730-adc
- sprd,sc2731-adc
+ - sprd,ump9620-adc
reg:
maxItems: 1
@@ -36,11 +37,29 @@ properties:
nvmem-cells:
maxItems: 2
+if:
+ not:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - sprd,ump9620-adc
+then:
nvmem-cell-names:
items:
- const: big_scale_calib
- const: small_scale_calib
+else:
+ nvmem-cell-names:
+ items:
+ - const: big_scale_calib1
+ - const: big_scale_calib2
+ - const: small_scale_calib1
+ - const: small_scale_calib2
+ - const: vbat_det_cal1
+ - const: vbat_det_cal2
+
required:
- compatible
- reg
--
2.25.1
Powered by blists - more mailing lists