-
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: aspeed,ast2400 yaml conversion
Simple txt to yaml conversion. Part of a general move to convert all the IIO bindings over to yaml. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Joel Stanley <joel@jms.id.au> Cc: Rick Altherr <raltherr@google.com> Cc: Joel Stanley <joel@jms.id.au> Cc: Andrew Jeffery <andrew@aj.id.au> Link: https://lore.kernel.org/r/20200909175946.395313-5-jic23@kernel.org
- Loading branch information
Jonathan Cameron
authored and
Jonathan Cameron
committed
Sep 21, 2020
1 parent
994235f
commit f384720
Showing
2 changed files
with
55 additions
and
22 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
Documentation/devicetree/bindings/iio/adc/aspeed,ast2400-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,55 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/iio/adc/aspeed,ast2400-adc.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: ADC that forms part of an ASPEED server management processor. | ||
|
||
maintainers: | ||
- Joel Stanley <joel@jms.id.au> | ||
|
||
description: | ||
This device is a 10-bit converter for 16 voltage channels. All inputs are | ||
single ended. | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- aspeed,ast2400-adc | ||
- aspeed,ast2500-adc | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
description: | ||
Input clock used to derive the sample clock. Expected to be the | ||
SoC's APB clock. | ||
|
||
resets: | ||
maxItems: 1 | ||
|
||
"#io-channel-cells": | ||
const: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- resets | ||
- "#io-channel-cells" | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/aspeed-clock.h> | ||
adc@1e6e9000 { | ||
compatible = "aspeed,ast2400-adc"; | ||
reg = <0x1e6e9000 0xb0>; | ||
clocks = <&syscon ASPEED_CLK_APB>; | ||
resets = <&syscon ASPEED_RESET_ADC>; | ||
#io-channel-cells = <1>; | ||
}; | ||
... |
This file was deleted.
Oops, something went wrong.