0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/cosmic,10001-adc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Cosmic Circuits CC-10001 ADC
0008
0009 maintainers:
0010 - Jonathan Cameron <jic23@kernel.org>
0011
0012 description:
0013 Cosmic Circuits 10001 10-bit ADC device.
0014
0015 properties:
0016 compatible:
0017 const: cosmic,10001-adc
0018
0019 reg:
0020 maxItems: 1
0021
0022 adc-reserved-channels:
0023 $ref: /schemas/types.yaml#/definitions/uint32
0024 description:
0025 Bitmask of reserved channels, i.e. channels that cannot be
0026 used by the OS.
0027
0028 clocks:
0029 maxItems: 1
0030
0031 clock-names:
0032 const: adc
0033
0034 vref-supply: true
0035
0036 "#io-channel-cells":
0037 const: 1
0038
0039
0040 required:
0041 - compatible
0042 - reg
0043 - clocks
0044 - clock-names
0045 - vref-supply
0046
0047 additionalProperties: false
0048
0049 examples:
0050 - |
0051 adc@18101600 {
0052 compatible = "cosmic,10001-adc";
0053 reg = <0x18101600 0x24>;
0054 adc-reserved-channels = <0x2>;
0055 clocks = <&adc_clk>;
0056 clock-names = "adc";
0057 vref-supply = <®_1v8>;
0058 };
0059 ...