Skip to contentSkip to conversation

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

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

Subsystems (3)
lore
Share & tools
lore

Marcus Folkesson

author maintainer
#0 lore raw

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

Rewrite bindings to use json-schema vocabulary.

---
 .../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
#2 lore raw
Quoted 8 lines · On Fri, 8 Nov 2019 08:40:56 +0100 Marcus Folkesson…
Quoted 3 lines · Marcus Folkesson

Rewrite bindings to use json-schema vocabulary.

Forgot Robs tag from v2

You also forgot a change log. I'll assume this is preferred to the v2 I applied earlier so I've dropped that and applied this one.

Jonathan

Quoted 1 line