-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Phytium Pe220x SoCs includes an 8-channel, 10-bit single ended ADC. This patch add this ADC's driver support. Signed-off-by: Yang Liu <[email protected]> Signed-off-by: Zhou Yulin <[email protected]> Signed-off-by: Chen Baozi <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Signed-off-by: Hu Yeqing <[email protected]>
- Loading branch information
1 parent
cea699e
commit 5d07dc7
Showing
4 changed files
with
782 additions
and
0 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
Documentation/devicetree/bindings/iio/adc/phytium,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,81 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
# Copyright 2019 Analog Devices Inc. | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/iio/adc/phytium,adi.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Phytium ADC | ||
|
||
maintainers: | ||
- Chen Baozi <[email protected]> | ||
|
||
description: | | ||
This device is a 10-bit converter for 8 voltage channels. All inputs are | ||
single ended. | ||
properties: | ||
compatible: | ||
const: phytium,adc | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
description: Input clock used to derive the sample clock. | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
'#address-cells': | ||
const: 1 | ||
|
||
'#size-cells': | ||
const: 0 | ||
|
||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- interrupts | ||
- '#address-cells' | ||
- '#size-cells' | ||
|
||
examples: | ||
- | | ||
adc0: adc@2807b000 { | ||
compatible = "phytium,adc"; | ||
reg = <0x0 0x2807b000 0x0 0x1000>; | ||
interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&sysclk_48mhz>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
channel@0 { | ||
reg = <0>; | ||
}; | ||
channel@1 { | ||
reg = <1>; | ||
}; | ||
channel@2 { | ||
reg = <2>; | ||
}; | ||
channel@3 { | ||
reg = <3>; | ||
}; | ||
channel@4 { | ||
reg = <4>; | ||
}; | ||
channel@5 { | ||
reg = <5>; | ||
}; | ||
channel@6 { | ||
reg = <5>; | ||
}; | ||
channel@7 { | ||
reg = <7>; | ||
}; | ||
}; |
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
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
Oops, something went wrong.