Commit 9de14fa2 authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

dt-bindings:iio:dac:maxim,max5821 yaml conversion



Simple txt to yaml conversion for this binding description.

Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Cc: Philippe Reynes <tremyfr@yahoo.fr>
Link: https://lore.kernel.org/r/20201031134110.724233-22-jic23@kernel.org
parent 6ced946a
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
Maxim max5821 DAC device driver

Required properties:
	- compatible: Must be "maxim,max5821"
	- reg: Should contain the DAC I2C address
	- vref-supply: Phandle to the vref power supply

Example:

	max5821@38 {
		compatible = "maxim,max5821";
		reg = <0x38>;
		vref-supply = <&reg_max5821>;
	};
+44 −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/maxim,max5821.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Maxim max5821 dual 10-bit DAC

maintainers:
  - Philippe Reynes <tremyfr@yahoo.fr>

description: |
  Datasheet publicly available at:
  https://datasheets.maximintegrated.com/en/ds/MAX5821.pdf

properties:
  compatible:
    const: maxim,max5821

  reg:
    maxItems: 1

  vref-supply: true

required:
  - compatible
  - reg
  - vref-supply

additionalProperties: false

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

        dac@38 {
            compatible = "maxim,max5821";
            reg = <0x38>;
            vref-supply = <&reg_max5821>;
        };
    };
...