xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/rohm,bd79703.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2# Copyright 2024 ROHM Semiconductor.
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/iio/dac/rohm,bd79703.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: ROHM BD79700, BD79701, BD79702 and BD79703 DACs
9
10maintainers:
11  - Matti Vaittinen <mazziesaccount@gmail.com>
12
13description: |
14  The ROHM BD7970[0,1,2,3] are 8-bit DACs. The BD79700 has 2 channels,
15  BD79701 3 channels, BD79702 4 channels and BD79703 has 6 channels.
16  Datasheets for BD79702 and BD79703 can be found from
17  https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79702fv-lb_bd79703fv-lb-e.pdf
18  and for the BD79700 and the BD79701 from
19  https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79700fvm-lb_bd79701fvm-lb-e.pdf
20
21properties:
22  compatible:
23    enum:
24      - rohm,bd79700
25      - rohm,bd79701
26      - rohm,bd79702
27      - rohm,bd79703
28
29  reg:
30    maxItems: 1
31
32  spi-max-frequency:
33    maximum: 30000000
34
35  vfs-supply:
36    description:
37      The regulator to use as a full scale voltage. The voltage should be
38      between 2.7V .. VCC. Not present on BD79700 and BD79701.
39
40  vcc-supply:
41    description:
42      The regulator supplying the operating voltage. Should be between
43      2.7V ... 5.5V. Is used also as a Vfs on BD79700 and BD79701.
44
45required:
46  - compatible
47  - reg
48  - spi-max-frequency
49  - vcc-supply
50
51if:
52  properties:
53    compatible:
54      contains:
55        enum:
56          - rohm,bd79702
57          - rohm,bd79703
58then:
59  required:
60    - vfs-supply
61
62allOf:
63  - $ref: /schemas/spi/spi-peripheral-props.yaml#
64
65unevaluatedProperties: false
66
67examples:
68  - |
69    spi {
70        #address-cells = <1>;
71        #size-cells = <0>;
72
73        dac@0 {
74            compatible = "rohm,bd79703";
75            reg = <0>;
76            spi-max-frequency = <30000000>;
77            vcc-supply = <&vcc>;
78            vfs-supply = <&vref>;
79        };
80    };
81...
82