xref: /linux/Documentation/devicetree/bindings/iio/adc/rohm,bd79104.yaml (revision db4a3f0fbedb0398f77b9047e8b8bb2b49f355bb)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/rohm,bd79104.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ROHM Semiconductor BD79104 ADC
8
9maintainers:
10  - Matti Vaittinen <mazziesaccount@gmail.com>
11
12description: |
13  12 bit SPI ADC with 8 channels.
14
15properties:
16  compatible:
17    oneOf:
18      - enum:
19          - rohm,bd79100
20          - rohm,bd79101
21          - rohm,bd79102
22          - rohm,bd79104
23      - items:
24          - const: rohm,bd79103
25          - const: rohm,bd79104
26
27  reg:
28    maxItems: 1
29
30  vdd-supply: true
31  iovdd-supply: true
32
33# The component data-sheet says the frequency is 20M. I, however, found
34# that the ROHM evaluation board BD79104FV-EVK-001 had problems with 20M.
35# I have successfully used it with 4M. My _assumption_ is that this is not
36# the limitation of the component itself, but a limitation of the EVK.
37  spi-max-frequency:
38    maximum: 20000000
39
40  "#io-channel-cells":
41    const: 1
42
43  spi-cpha: true
44  spi-cpol: true
45
46required:
47  - compatible
48  - reg
49  - vdd-supply
50  - iovdd-supply
51  - spi-cpha
52  - spi-cpol
53
54allOf:
55  - $ref: /schemas/spi/spi-peripheral-props.yaml#
56
57unevaluatedProperties: false
58
59examples:
60  - |
61    spi {
62        #address-cells = <1>;
63        #size-cells = <0>;
64
65        adc@0 {
66            compatible = "rohm,bd79104";
67            reg = <0>;
68            vdd-supply = <&vdd_supply>;
69            iovdd-supply = <&iovdd_supply>;
70            spi-max-frequency = <4000000>;
71            spi-cpha;
72            spi-cpol;
73            #io-channel-cells = <1>;
74        };
75    };
76...
77