Path: blob/master/Documentation/devicetree/bindings/iio/adc/aspeed,ast2600-adc.yaml
54449 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/adc/aspeed,ast2600-adc.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ADC that forms part of an ASPEED server management processor.78maintainers:9- Billy Tsai <billy_tsai@aspeedtech.com>1011description: |12• 10-bits resolution for 16 voltage channels.13• The device split into two individual engine and each contains 8 voltage14channels.15• Channel scanning can be non-continuous.16• Programmable ADC clock frequency.17• Programmable upper and lower threshold for each channels.18• Interrupt when larger or less than threshold for each channels.19• Support hysteresis for each channels.20• Built-in a compensating method.21• Built-in a register to trim internal reference voltage.22• Internal or External reference voltage.23• Support 2 Internal reference voltage 1.2v or 2.5v.24• Integrate dividing circuit for battery sensing.2526properties:27compatible:28enum:29- aspeed,ast2600-adc030- aspeed,ast2600-adc131- aspeed,ast2700-adc032- aspeed,ast2700-adc133description:34Their trimming data, which is used to calibrate internal reference volage,35locates in different address of OTP.3637reg:38maxItems: 13940clocks:41maxItems: 142description:43Input clock used to derive the sample clock. Expected to be the44SoC's APB clock.4546interrupts:47maxItems: 14849resets:50maxItems: 15152"#io-channel-cells":53const: 15455vref-supply:56description:57The external regulator supply ADC reference voltage.5859aspeed,int-vref-microvolt:60enum: [1200000, 2500000]61description:62ADC internal reference voltage in microvolts.6364aspeed,battery-sensing:65type: boolean66description:67Inform the driver that last channel will be used to sensor battery.6869required:70- compatible71- reg72- clocks73- resets74- "#io-channel-cells"7576additionalProperties: false7778examples:79- |80#include <dt-bindings/clock/ast2600-clock.h>81adc0: adc@1e6e9000 {82compatible = "aspeed,ast2600-adc0";83reg = <0x1e6e9000 0x100>;84clocks = <&syscon ASPEED_CLK_APB2>;85resets = <&syscon ASPEED_RESET_ADC>;86#io-channel-cells = <1>;87aspeed,int-vref-microvolt = <2500000>;88};89adc1: adc@1e6e9100 {90compatible = "aspeed,ast2600-adc1";91reg = <0x1e6e9100 0x100>;92clocks = <&syscon ASPEED_CLK_APB2>;93resets = <&syscon ASPEED_RESET_ADC>;94#io-channel-cells = <1>;95aspeed,int-vref-microvolt = <2500000>;96};97...9899100