dt-bindings: iio: adc: Migrate MCP3911 documentation to yaml
Subsystems (3)
Marcus Folkesson
maintainerPATCH v3 1/1 dt-bindings: iio: adc: Migrate MCP3911 documentation to yaml
Rewrite bindings to use json-schema vocabulary.
Signed-off-by Marcus Folkesson <[email protected]>
--- .../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
@@ -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
@@ -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
Quoted 3 lines · Marcus Folkesson
Rewrite bindings to use json-schema vocabulary.
Signed-off-by Marcus Folkesson <[email protected]>
Forgot Robs tag from v2
Reviewed-by Rob Herring <[email protected]>
Jonathan Cameron
maintainerQuoted 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.
Signed-off-by Marcus Folkesson <[email protected]>Forgot Robs tag from v2
Reviewed-by Rob Herring <[email protected]>
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