Skip to content

Commit

Permalink
dt-bindings:iio:adc:cosmic,10001-adc yaml conversion
Browse files Browse the repository at this point in the history
I don't really know much about this one, hence the binding is
a simple conversion of what was in the txt file.

Note that I have taken on maintenance of this binding as I don't
have a recent address for Phani Movva.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200909175946.395313-14-jic23@kernel.org
  • Loading branch information
Jonathan Cameron authored and Jonathan Cameron committed Sep 21, 2020
1 parent 6e7625a commit 1f3b187
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Documentation/devicetree/bindings/iio/adc/cc10001_adc.txt

This file was deleted.

59 changes: 59 additions & 0 deletions Documentation/devicetree/bindings/iio/adc/cosmic,10001-adc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/cosmic,10001-adc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Cosmic Circuits CC-10001 ADC

maintainers:
- Jonathan Cameron <jic23@kernel.org>

description:
Cosmic Circuits 10001 10-bit ADC device.

properties:
compatible:
const: cosmic,10001-adc

reg:
maxItems: 1

adc-reserved-channels:
$ref: /schemas/types.yaml#/definitions/uint32
description:
Bitmask of reserved channels, i.e. channels that cannot be
used by the OS.

clocks:
maxItems: 1

clock-names:
const: adc

vref-supply: true

"#io-channel-cells":
const: 1


required:
- compatible
- reg
- clocks
- clock-names
- vref-supply

additionalProperties: false

examples:
- |
adc@18101600 {
compatible = "cosmic,10001-adc";
reg = <0x18101600 0x24>;
adc-reserved-channels = <0x2>;
clocks = <&adc_clk>;
clock-names = "adc";
vref-supply = <&reg_1v8>;
};
...

0 comments on commit 1f3b187

Please sign in to comment.