Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/adc/cosmic,10001-adc.yaml
54378 views
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
7
title: Cosmic Circuits CC-10001 ADC
8
9
maintainers:
10
- Jonathan Cameron <jic23@kernel.org>
11
12
description:
13
Cosmic Circuits 10001 10-bit ADC device.
14
15
properties:
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
required:
40
- compatible
41
- reg
42
- clocks
43
- clock-names
44
- vref-supply
45
46
additionalProperties: false
47
48
examples:
49
- |
50
adc@18101600 {
51
compatible = "cosmic,10001-adc";
52
reg = <0x18101600 0x24>;
53
adc-reserved-channels = <0x2>;
54
clocks = <&adc_clk>;
55
clock-names = "adc";
56
vref-supply = <&reg_1v8>;
57
};
58
...
59
60