1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/adc/aspeed,ast2600-adc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ADC that forms part of an ASPEED server management processor.
10 - Billy Tsai <billy_tsai@aspeedtech.com>
13 • 10-bits resolution for 16 voltage channels.
14 • The device split into two individual engine and each contains 8 voltage
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.
33 Their trimming data, which is used to calibrate internal reference volage,
34 locates in different address of OTP.
42 Input clock used to derive the sample clock. Expected to be the
53 The external regulator supply ADC reference voltage.
55 aspeed,int-vref-microvolt:
56 enum: [1200000, 2500000]
58 ADC internal reference voltage in microvolts.
60 aspeed,battery-sensing:
63 Inform the driver that last channel will be used to sensor battery.
72 additionalProperties: false
76 #include <dt-bindings/clock/ast2600-clock.h>
78 compatible = "aspeed,ast2600-adc0";
79 reg = <0x1e6e9000 0x100>;
80 clocks = <&syscon ASPEED_CLK_APB2>;
81 resets = <&syscon ASPEED_RESET_ADC>;
82 #io-channel-cells = <1>;
83 aspeed,int-vref-microvolt = <2500000>;
86 compatible = "aspeed,ast2600-adc1";
87 reg = <0x1e6e9100 0x100>;
88 clocks = <&syscon ASPEED_CLK_APB2>;
89 resets = <&syscon ASPEED_RESET_ADC>;
90 #io-channel-cells = <1>;
91 aspeed,int-vref-microvolt = <2500000>;