-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings:iio:adc:cosmic,10001-adc yaml conversion
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
Showing
2 changed files
with
59 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
Documentation/devicetree/bindings/iio/adc/cosmic,10001-adc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = <®_1v8>; | ||
}; | ||
... |