Path: blob/master/Documentation/devicetree/bindings/iio/adc/atmel,sama9260-adc.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/adc/atmel,sama9260-adc.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: AT91 sama9260 and similar Analog to Digital Converter (ADC)78maintainers:9- Alexandre Belloni <alexandre.belloni@bootlin.com>1011properties:12compatible:13enum:14- atmel,at91sam9260-adc15- atmel,at91sam9rl-adc16- atmel,at91sam9g45-adc17- atmel,at91sam9x5-adc18- atmel,at91sama5d3-adc1920reg:21maxItems: 12223interrupts:24maxItems: 12526clocks:27minItems: 228maxItems: 22930clock-names:31items:32- const: adc_clk33- const: adc_op_clk3435atmel,adc-channels-used:36$ref: /schemas/types.yaml#/definitions/uint3237description: Bitmask of the channels muxed and enabled for this device3839atmel,adc-startup-time:40$ref: /schemas/types.yaml#/definitions/uint3241description:42Startup Time of the ADC in microseconds as defined in the datasheet4344atmel,adc-vref:45$ref: /schemas/types.yaml#/definitions/uint3246description: Reference voltage in millivolts for the conversions4748atmel,adc-use-external-triggers:49$ref: /schemas/types.yaml#/definitions/flag50description: Enable the external triggers5152atmel,adc-use-res:53$ref: /schemas/types.yaml#/definitions/string54description:55String corresponding to an identifier from atmel,adc-res-names property.56If not specified, the highest resolution will be used.57enum:58- lowres59- highres6061atmel,adc-sleep-mode:62$ref: /schemas/types.yaml#/definitions/flag63description: Enable sleep mode when no conversion6465atmel,adc-sample-hold-time:66$ref: /schemas/types.yaml#/definitions/uint3267description: Sample and Hold Time in microseconds6869atmel,adc-ts-wires:70$ref: /schemas/types.yaml#/definitions/uint3271description: |72Number of touchscreen wires. Must be set to enable touchscreen.73NOTE: when adc touchscreen is enabled, the adc hardware trigger will be74disabled. Since touchscreen will occupy the trigger register.75enum:76- 477- 57879atmel,adc-ts-pressure-threshold:80$ref: /schemas/types.yaml#/definitions/uint3281description:82Pressure threshold for touchscreen.8384"#io-channel-cells":85const: 18687additionalProperties: false8889required:90- compatible91- reg92- interrupts93- clocks94- clock-names95- atmel,adc-channels-used96- atmel,adc-startup-time97- atmel,adc-vref9899examples:100- |101#include <dt-bindings/dma/at91.h>102#include <dt-bindings/interrupt-controller/irq.h>103soc {104#address-cells = <1>;105#size-cells = <1>;106107adc@fffb0000 {108compatible = "atmel,at91sam9260-adc";109reg = <0xfffb0000 0x100>;110interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;111clocks = <&adc_clk>, <&adc_op_clk>;112clock-names = "adc_clk", "adc_op_clk";113atmel,adc-channels-used = <0xff>;114atmel,adc-startup-time = <40>;115atmel,adc-use-external-triggers;116atmel,adc-vref = <3300>;117atmel,adc-use-res = "lowres";118};119};120...121122123