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