1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/aspeed,ast2400-adc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ADC that forms part of an ASPEED server management processor.
8
9maintainers:
10  - Joel Stanley <joel@jms.id.au>
11
12description:
13  This device is a 10-bit converter for 16 voltage channels.  All inputs are
14  single ended.
15
16properties:
17  compatible:
18    enum:
19      - aspeed,ast2400-adc
20      - aspeed,ast2500-adc
21
22  reg:
23    maxItems: 1
24
25  clocks:
26    description:
27      Input clock used to derive the sample clock. Expected to be the
28      SoC's APB clock.
29
30  resets:
31    maxItems: 1
32
33  "#io-channel-cells":
34    const: 1
35
36required:
37  - compatible
38  - reg
39  - clocks
40  - resets
41  - "#io-channel-cells"
42
43additionalProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/clock/aspeed-clock.h>
48    adc@1e6e9000 {
49        compatible = "aspeed,ast2400-adc";
50        reg = <0x1e6e9000 0xb0>;
51        clocks = <&syscon ASPEED_CLK_APB>;
52        resets = <&syscon ASPEED_RESET_ADC>;
53        #io-channel-cells = <1>;
54    };
55...
56