Skip to contentSkip to conversation

dt-bindings: iio: adc: maxim,max1118 yaml conversion

PATCH In review Jonathan Cameron 2 participants 3 messages Aug 1, 2020 – Aug 6, 2020

Subsystems (2)
lore
Share & tools
lore

Jonathan Cameron

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: iio: adc: maxim,max1118 yaml conversion

From: Jonathan Cameron <[email protected]>

Simple device with a simple conversion. Special handling needed for the max1118 which is the only supported part that has an external reference voltage.

---
v2:
* Added additionalProperties: false. Other changes are to make this work.
* Move the vref-supply definition up
* Add an else clause

.../devicetree/bindings/iio/adc/max1118.txt | 21 -------

 .../bindings/iio/adc/maxim,max1118.yaml       | 62 +++++++++++++++++++
 2 files changed, 62 insertions(+), 21 deletions(-)
Documentation/devicetree/bindings/iio/adc/max1118.txt deleted +0 -21
deleted file mode 100644
index cf33d0b15a6d..000000000000
@@ -1,21 +0,0 @@
-* MAX1117/MAX1118/MAX1119 8-bit, dual-channel ADCs
-
-Required properties:
- - compatible: Should be one of
-	* "maxim,max1117"
-	* "maxim,max1118"
-	* "maxim,max1119"
- - reg: spi chip select number for the device
- - (max1118 only) vref-supply: The regulator supply for ADC reference voltage
-
-Recommended properties:
- - spi-max-frequency: Definition as per
-		Documentation/devicetree/bindings/spi/spi-bus.txt
-
-Example:
-adc@0 {
-	compatible = "maxim,max1118";
-	reg = <0>;
-	vref-supply = <&vdd_supply>;
-	spi-max-frequency = <1000000>;
-};
Documentation/devicetree/bindings/iio/adc/maxim,max1118.yaml new file +62 -0

62 lines not on this page · raw message

Signature · 1 line
2.27.0
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 14 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

Simple device with a simple conversion. Special handling needed for the max1118 which is the only supported part that has an external reference voltage.

---
v2:
* Added additionalProperties: false. Other changes are to make this work.
* Move the vref-supply definition up
* Add an else clause

Quoted 4 lines

.../devicetree/bindings/iio/adc/max1118.txt | 21 -------

 .../bindings/iio/adc/maxim,max1118.yaml       | 62 +++++++++++++++++++
 2 files changed, 62 insertions(+), 21 deletions(-)
author maintainer
#2 lore raw
Quoted 15 lines · On Mon, 3 Aug 2020 15:58:26 -0600 Rob Herring <[email protected]> wrote:
Quoted 14 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

Simple device with a simple conversion. Special handling needed for the max1118 which is the only supported part that has an external reference voltage.

---
v2:
* Added additionalProperties: false. Other changes are to make this work.
* Move the vref-supply definition up
* Add an else clause

Quoted 6 lines
Quoted 4 lines

.../devicetree/bindings/iio/adc/max1118.txt | 21 -------

 .../bindings/iio/adc/maxim,max1118.yaml       | 62 +++++++++++++++++++
 2 files changed, 62 insertions(+), 21 deletions(-)

Thanks,

Applied to the togreg branch off iio.git and pushed out as testing for autobuilders etc.

Jonathan