Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/adc/aspeed,ast2600-adc.yaml
54449 views
1
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2
%YAML 1.2
3
---
4
$id: http://devicetree.org/schemas/iio/adc/aspeed,ast2600-adc.yaml#
5
$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7
title: ADC that forms part of an ASPEED server management processor.
8
9
maintainers:
10
- Billy Tsai <billy_tsai@aspeedtech.com>
11
12
description: |
13
• 10-bits resolution for 16 voltage channels.
14
• The device split into two individual engine and each contains 8 voltage
15
channels.
16
• Channel scanning can be non-continuous.
17
• Programmable ADC clock frequency.
18
• Programmable upper and lower threshold for each channels.
19
• Interrupt when larger or less than threshold for each channels.
20
• Support hysteresis for each channels.
21
• Built-in a compensating method.
22
• Built-in a register to trim internal reference voltage.
23
• Internal or External reference voltage.
24
• Support 2 Internal reference voltage 1.2v or 2.5v.
25
• Integrate dividing circuit for battery sensing.
26
27
properties:
28
compatible:
29
enum:
30
- aspeed,ast2600-adc0
31
- aspeed,ast2600-adc1
32
- aspeed,ast2700-adc0
33
- aspeed,ast2700-adc1
34
description:
35
Their trimming data, which is used to calibrate internal reference volage,
36
locates in different address of OTP.
37
38
reg:
39
maxItems: 1
40
41
clocks:
42
maxItems: 1
43
description:
44
Input clock used to derive the sample clock. Expected to be the
45
SoC's APB clock.
46
47
interrupts:
48
maxItems: 1
49
50
resets:
51
maxItems: 1
52
53
"#io-channel-cells":
54
const: 1
55
56
vref-supply:
57
description:
58
The external regulator supply ADC reference voltage.
59
60
aspeed,int-vref-microvolt:
61
enum: [1200000, 2500000]
62
description:
63
ADC internal reference voltage in microvolts.
64
65
aspeed,battery-sensing:
66
type: boolean
67
description:
68
Inform the driver that last channel will be used to sensor battery.
69
70
required:
71
- compatible
72
- reg
73
- clocks
74
- resets
75
- "#io-channel-cells"
76
77
additionalProperties: false
78
79
examples:
80
- |
81
#include <dt-bindings/clock/ast2600-clock.h>
82
adc0: adc@1e6e9000 {
83
compatible = "aspeed,ast2600-adc0";
84
reg = <0x1e6e9000 0x100>;
85
clocks = <&syscon ASPEED_CLK_APB2>;
86
resets = <&syscon ASPEED_RESET_ADC>;
87
#io-channel-cells = <1>;
88
aspeed,int-vref-microvolt = <2500000>;
89
};
90
adc1: adc@1e6e9100 {
91
compatible = "aspeed,ast2600-adc1";
92
reg = <0x1e6e9100 0x100>;
93
clocks = <&syscon ASPEED_CLK_APB2>;
94
resets = <&syscon ASPEED_RESET_ADC>;
95
#io-channel-cells = <1>;
96
aspeed,int-vref-microvolt = <2500000>;
97
};
98
...
99
100