Commit b120365f authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

dt-bindings:iio:dac:ti,dac7311 yaml conversion



Very simple conversion of this binding from txt to yaml.

Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Cc: Charles-Antoine Couret <charles-antoine.couret@essensium.com>
Link: https://lore.kernel.org/r/20201031134110.724233-14-jic23@kernel.org
parent 3eccfe57
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
TI DAC7311 device tree bindings

Required properties:
- compatible: must be set to:
	* "ti,dac7311"
	* "ti,dac6311"
	* "ti,dac5311"
- reg: spi chip select number for the device
- vref-supply: The regulator supply for ADC reference voltage

Optional properties:
- spi-max-frequency: Max SPI frequency to use

Example:

	spi_master {
		dac@0 {
			compatible = "ti,dac7311";
			reg = <0>; /* CS0 */
			spi-max-frequency = <1000000>;
			vref-supply = <&vdd_supply>;
		};
	};
+49 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/dac/ti,dac7311.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Texas Instruments DAC5311 and similar SPI DACs

maintainers:
  - Charles-Antoine Couret <charles-antoine.couret@essensium.com>

properties:
  compatible:
    enum:
      - ti,dac7311
      - ti,dac6311
      - ti,dac5311

  reg:
    maxItems: 1

  vref-supply:
    description:
      Reference voltage must be supplied to establish the scaling of the
      output voltage.

  spi-max-frequency: true

required:
  - compatible
  - reg
  - vref-supply

additionalProperties: false

examples:
  - |
    spi {
        #address-cells = <1>;
        #size-cells = <0>;

        dac@0 {
            compatible = "ti,dac7311";
            reg = <0>; /* CS0 */
            spi-max-frequency = <1000000>;
            vref-supply = <&vdd_supply>;
        };
    };
...