• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/cosmic,10001-adc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Cosmic Circuits CC-10001 ADC
8
9maintainers:
10  - Jonathan Cameron <jic23@kernel.org>
11
12description:
13  Cosmic Circuits 10001 10-bit ADC device.
14
15properties:
16  compatible:
17    const: cosmic,10001-adc
18
19  reg:
20    maxItems: 1
21
22  adc-reserved-channels:
23    $ref: /schemas/types.yaml#/definitions/uint32
24    description:
25      Bitmask of reserved channels, i.e. channels that cannot be
26      used by the OS.
27
28  clocks:
29    maxItems: 1
30
31  clock-names:
32    const: adc
33
34  vref-supply: true
35
36  "#io-channel-cells":
37    const: 1
38
39
40required:
41  - compatible
42  - reg
43  - clocks
44  - clock-names
45  - vref-supply
46
47additionalProperties: false
48
49examples:
50  - |
51    adc@18101600 {
52        compatible = "cosmic,10001-adc";
53        reg = <0x18101600 0x24>;
54        adc-reserved-channels = <0x2>;
55        clocks = <&adc_clk>;
56        clock-names = "adc";
57        vref-supply = <&reg_1v8>;
58    };
59...
60