xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/marvell,berlin2-adc.yaml (revision 25ecdc7d52770caf1c9b44b5ec11f468f6b636f3)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/marvell,berlin2-adc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Berlin 2 Analog to Digital Converter (ADC)
8
9maintainers:
10  - Antoine Tenart <antoine.tenart@free-electrons.com>
11
12description:
13  The Berlin ADC has 8 channels, with one connected to a temperature sensor.
14  It is part of the system controller register set. The ADC node should be a
15  sub-node of the system controller node.
16
17properties:
18  compatible:
19    const: marvell,berlin2-adc
20
21  interrupts:
22    minItems: 2
23    maxItems: 2
24
25  interrupt-names:
26    items:
27      - const: adc
28      - const: tsen
29
30  "#io-channel-cells":
31    const: 1
32
33required:
34  - compatible
35  - interrupts
36  - interrupt-names
37
38additionalProperties: false
39
40examples:
41  - |
42    sysctrl {
43        adc {
44            compatible = "marvell,berlin2-adc";
45            interrupt-parent = <&sic>;
46            interrupts = <12>, <14>;
47            interrupt-names = "adc", "tsen";
48        };
49    };
50...
51