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

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



Simple conversion of this straight forward binding.

Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Cc: Ismail H. Kose <ihkose@gmail.com>
Link: https://lore.kernel.org/r/20201031134110.724233-19-jic23@kernel.org


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 6918ed88
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
Maxim Integrated DS4422/DS4424 7-bit Sink/Source Current DAC Device Driver

Datasheet publicly available at:
https://datasheets.maximintegrated.com/en/ds/DS4422-DS4424.pdf

Required properties:
	- compatible: Should be one of
		maxim,ds4422
		maxim,ds4424
	- reg: Should contain the DAC I2C address

Optional properties:
	- vcc-supply: Power supply is optional. If not defined, driver will ignore it.

Example:
	ds4224@10 {
		compatible = "maxim,ds4424";
		reg = <0x10>; /* When A0, A1 pins are ground */
		vcc-supply = <&vcc_3v3>;
	};
+45 −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,ds4424.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Maxim Integrated DS4422/DS4424 7-bit Sink/Source Current DAC

maintainers:
  - Ismail Kose <ihkose@gmail.com>

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

properties:
  compatible:
    enum:
      - maxim,ds4422
      - maxim,ds4424

  reg:
    maxItems: 1

  vcc-supply: true

required:
  - compatible
  - reg

additionalProperties: false

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

        dac@10 {
            compatible = "maxim,ds4424";
            reg = <0x10>; /* When A0, A1 pins are ground */
            vcc-supply = <&vcc_3v3>;
        };
    };
...