Commit 1668ef26 authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

dt-binding:iio:adc:ti,ads124s08: txt to yaml format conversion.



Simple binding so straight forward format conversion.

Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarDan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20201031184854.745828-38-jic23@kernel.org
parent a4e6bf69
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/ti,ads124s08.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Texas Instruments' ads124s08 and ads124s06 ADC chip

maintainers:
  - Dan Murphy <dmurphy@ti.com>

properties:
  compatible:
    enum:
      - ti,ads124s06
      - ti,ads124s08

  reg:
    maxItems: 1

  spi-max-frequency: true

  spi-cpha: true

  reset-gpios:
    maxItems: 1

  "#io-channel-cells":
    const: 1

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    spi {
        #address-cells = <1>;
        #size-cells = <0>;

        adc@0 {
            compatible = "ti,ads124s08";
            reg = <0>;
            spi-max-frequency = <1000000>;
            spi-cpha;
            reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
        };
    };
...
+0 −25
Original line number Diff line number Diff line
* Texas Instruments' ads124s08 and ads124s06 ADC chip

Required properties:
 - compatible :
	"ti,ads124s08"
	"ti,ads124s06"
 - reg : spi chip select number for the device

Recommended properties:
 - spi-max-frequency : Definition as per
		Documentation/devicetree/bindings/spi/spi-bus.txt
 - spi-cpha : Definition as per
		Documentation/devicetree/bindings/spi/spi-bus.txt

Optional properties:
 - reset-gpios : GPIO pin used to reset the device.

Example:
adc@0 {
	compatible = "ti,ads124s08";
	reg = <0>;
	spi-max-frequency = <1000000>;
	spi-cpha;
	reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
};