xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/rohm,bd79703.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
12846c905SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
22846c905SEmmanuel Vadot# Copyright 2024 ROHM Semiconductor.
32846c905SEmmanuel Vadot%YAML 1.2
42846c905SEmmanuel Vadot---
52846c905SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/dac/rohm,bd79703.yaml#
62846c905SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
72846c905SEmmanuel Vadot
8*ae5de77eSEmmanuel Vadottitle: ROHM BD79700, BD79701, BD79702 and BD79703 DACs
92846c905SEmmanuel Vadot
102846c905SEmmanuel Vadotmaintainers:
112846c905SEmmanuel Vadot  - Matti Vaittinen <mazziesaccount@gmail.com>
122846c905SEmmanuel Vadot
132846c905SEmmanuel Vadotdescription: |
14*ae5de77eSEmmanuel Vadot  The ROHM BD7970[0,1,2,3] are 8-bit DACs. The BD79700 has 2 channels,
15*ae5de77eSEmmanuel Vadot  BD79701 3 channels, BD79702 4 channels and BD79703 has 6 channels.
16*ae5de77eSEmmanuel Vadot  Datasheets for BD79702 and BD79703 can be found from
172846c905SEmmanuel Vadot  https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79702fv-lb_bd79703fv-lb-e.pdf
18*ae5de77eSEmmanuel Vadot  and for the BD79700 and the BD79701 from
19*ae5de77eSEmmanuel Vadot  https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79700fvm-lb_bd79701fvm-lb-e.pdf
202846c905SEmmanuel Vadot
212846c905SEmmanuel Vadotproperties:
222846c905SEmmanuel Vadot  compatible:
23*ae5de77eSEmmanuel Vadot    enum:
24*ae5de77eSEmmanuel Vadot      - rohm,bd79700
25*ae5de77eSEmmanuel Vadot      - rohm,bd79701
26*ae5de77eSEmmanuel Vadot      - rohm,bd79702
27*ae5de77eSEmmanuel Vadot      - rohm,bd79703
282846c905SEmmanuel Vadot
292846c905SEmmanuel Vadot  reg:
302846c905SEmmanuel Vadot    maxItems: 1
312846c905SEmmanuel Vadot
322846c905SEmmanuel Vadot  spi-max-frequency:
332846c905SEmmanuel Vadot    maximum: 30000000
342846c905SEmmanuel Vadot
352846c905SEmmanuel Vadot  vfs-supply:
362846c905SEmmanuel Vadot    description:
37*ae5de77eSEmmanuel Vadot      The regulator to use as a full scale voltage. The voltage should be
38*ae5de77eSEmmanuel Vadot      between 2.7V .. VCC. Not present on BD79700 and BD79701.
392846c905SEmmanuel Vadot
402846c905SEmmanuel Vadot  vcc-supply:
412846c905SEmmanuel Vadot    description:
42*ae5de77eSEmmanuel Vadot      The regulator supplying the operating voltage. Should be between
43*ae5de77eSEmmanuel Vadot      2.7V ... 5.5V. Is used also as a Vfs on BD79700 and BD79701.
442846c905SEmmanuel Vadot
452846c905SEmmanuel Vadotrequired:
462846c905SEmmanuel Vadot  - compatible
472846c905SEmmanuel Vadot  - reg
482846c905SEmmanuel Vadot  - spi-max-frequency
492846c905SEmmanuel Vadot  - vcc-supply
502846c905SEmmanuel Vadot
51*ae5de77eSEmmanuel Vadotif:
52*ae5de77eSEmmanuel Vadot  properties:
53*ae5de77eSEmmanuel Vadot    compatible:
54*ae5de77eSEmmanuel Vadot      contains:
55*ae5de77eSEmmanuel Vadot        enum:
56*ae5de77eSEmmanuel Vadot          - rohm,bd79702
57*ae5de77eSEmmanuel Vadot          - rohm,bd79703
58*ae5de77eSEmmanuel Vadotthen:
59*ae5de77eSEmmanuel Vadot  required:
60*ae5de77eSEmmanuel Vadot    - vfs-supply
61*ae5de77eSEmmanuel Vadot
622846c905SEmmanuel VadotallOf:
632846c905SEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
642846c905SEmmanuel Vadot
65*ae5de77eSEmmanuel VadotunevaluatedProperties: false
662846c905SEmmanuel Vadot
672846c905SEmmanuel Vadotexamples:
682846c905SEmmanuel Vadot  - |
692846c905SEmmanuel Vadot    spi {
702846c905SEmmanuel Vadot        #address-cells = <1>;
712846c905SEmmanuel Vadot        #size-cells = <0>;
722846c905SEmmanuel Vadot
732846c905SEmmanuel Vadot        dac@0 {
742846c905SEmmanuel Vadot            compatible = "rohm,bd79703";
752846c905SEmmanuel Vadot            reg = <0>;
762846c905SEmmanuel Vadot            spi-max-frequency = <30000000>;
772846c905SEmmanuel Vadot            vcc-supply = <&vcc>;
782846c905SEmmanuel Vadot            vfs-supply = <&vref>;
792846c905SEmmanuel Vadot        };
802846c905SEmmanuel Vadot    };
812846c905SEmmanuel Vadot...
82