Skip to contentSkip to conversation

dt-bindings: iio: adc: Migrate MCP3911 documentation to yaml

PATCH Superseded Marcus Folkesson 3 participants 3 messages Nov 6, 2019 – Nov 10, 2019

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Marcus Folkesson

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: iio: adc: Migrate MCP3911 documentation to yaml

Rewrite bindings to use json-schema vocabulary.

---

Notes:
v2:
- Remove descriptor for reg and spi-max-frequency (Rob)
- Write better description for clocks and vref-supply (Rob)
- Remove max-items for vref-supply

 .../devicetree/bindings/iio/adc/mcp3911.txt   | 30 --------
 .../bindings/iio/adc/microchip,mcp3911.yaml   | 71 +++++++++++++++++++
 MAINTAINERS                                   |  2 +-
 3 files changed, 72 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/iio/adc/mcp3911.txt
 create mode 100644 Documentation/devicetree/bindings/iio/adc/microchip,mcp3911.yaml
Documentation/devicetree/bindings/iio/adc/mcp3911.txt deleted +0 -30
deleted file mode 100644
index 3071f48fb30b..000000000000
@@ -1,30 +0,0 @@
-* Microchip MCP3911 Dual channel analog front end (ADC)
-
-Required properties:
- - compatible: Should be "microchip,mcp3911"
- - reg: SPI chip select number for the device
-
-Recommended properties:
- - spi-max-frequency: Definition as per
-	 Documentation/devicetree/bindings/spi/spi-bus.txt.
-	 Max frequency for this chip is 20MHz.
-
-Optional properties:
- - clocks: Phandle and clock identifier for sampling clock
- - interrupt-parent: Phandle to the parent interrupt controller
- - interrupts: IRQ line for the ADC
- - microchip,device-addr: Device address when multiple MCP3911 chips are present on the
-	same SPI bus. Valid values are 0-3. Defaults to 0.
- - vref-supply: Phandle to the external reference voltage supply.
-
-Example:
-adc@0 {
-	compatible = "microchip,mcp3911";
-	reg = <0>;
-	interrupt-parent = <&gpio5>;
-	interrupts = <15 IRQ_TYPE_EDGE_RISING>;
-	spi-max-frequency = <20000000>;
-	microchip,device-addr = <0>;
-	vref-supply = <&vref_reg>;
-	clocks = <&xtal>;
-};
Documentation/devicetree/bindings/iio/adc/microchip,mcp3911.yaml new file +71 -0

71 lines not on this page · raw message

MAINTAINERS +1 -1
index e51a68bf8ca8..fbccc9d450ff 100644
@@ -10723,7 +10723,7 @@ M:	Kent Gustavsson <[email protected]>
 L:	[email protected]
 S:	Supported
 F:	drivers/iio/adc/mcp3911.c
-F:	Documentation/devicetree/bindings/iio/adc/mcp3911.txt
+F:	Documentation/devicetree/bindings/iio/adc/microchip,mcp3911.yaml
 
 MICROCHIP NAND DRIVER
 M:	Tudor Ambarus <[email protected]>
Signature · 1 line
2.23.0
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 11 lines · Marcus Folkesson

Rewrite bindings to use json-schema vocabulary.

---

Notes:
v2:
- Remove descriptor for reg and spi-max-frequency (Rob)
- Write better description for clocks and vref-supply (Rob)
- Remove max-items for vref-supply

Quoted 7 lines
 .../devicetree/bindings/iio/adc/mcp3911.txt   | 30 --------
 .../bindings/iio/adc/microchip,mcp3911.yaml   | 71 +++++++++++++++++++
 MAINTAINERS                                   |  2 +-
 3 files changed, 72 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/iio/adc/mcp3911.txt
 create mode 100644 Documentation/devicetree/bindings/iio/adc/microchip,mcp3911.yaml
maintainer
#2 lore raw
Quoted 20 lines · On Wed, 6 Nov 2019 19:02:59 -0600 Rob Herring <[email protected]> wrote:
Quoted 11 lines · Marcus Folkesson

Rewrite bindings to use json-schema vocabulary.

---

Notes:
v2:
- Remove descriptor for reg and spi-max-frequency (Rob)
- Write better description for clocks and vref-supply (Rob)
- Remove max-items for vref-supply

Quoted 7 lines
 .../devicetree/bindings/iio/adc/mcp3911.txt   | 30 --------
 .../bindings/iio/adc/microchip,mcp3911.yaml   | 71 +++++++++++++++++++
 MAINTAINERS                                   |  2 +-
 3 files changed, 72 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/iio/adc/mcp3911.txt
 create mode 100644 Documentation/devicetree/bindings/iio/adc/microchip,mcp3911.yaml
Quoted 1 line

Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to poke at it.

Thanks,

Jonathan