1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/adc/atmel,sama9260-adc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: AT91 sama9260 and similar Analog to Digital Converter (ADC)
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
15 - atmel,at91sam9260-adc
16 - atmel,at91sam9rl-adc
17 - atmel,at91sam9g45-adc
18 - atmel,at91sam9x5-adc
19 - atmel,at91sama5d3-adc
36 atmel,adc-channels-used:
37 $ref: /schemas/types.yaml#/definitions/uint32
38 description: Bitmask of the channels muxed and enabled for this device
40 atmel,adc-startup-time:
41 $ref: /schemas/types.yaml#/definitions/uint32
43 Startup Time of the ADC in microseconds as defined in the datasheet
46 $ref: /schemas/types.yaml#/definitions/uint32
47 description: Reference voltage in millivolts for the conversions
49 atmel,adc-use-external-triggers:
50 $ref: /schemas/types.yaml#/definitions/flag
51 description: Enable the external triggers
54 $ref: /schemas/types.yaml#/definitions/string
56 String corresponding to an identifier from atmel,adc-res-names property.
57 If not specified, the highest resolution will be used.
63 $ref: /schemas/types.yaml#/definitions/flag
64 description: Enable sleep mode when no conversion
66 atmel,adc-sample-hold-time:
67 $ref: /schemas/types.yaml#/definitions/uint32
68 description: Sample and Hold Time in microseconds
71 $ref: /schemas/types.yaml#/definitions/uint32
73 Number of touchscreen wires. Must be set to enable touchscreen.
74 NOTE: when adc touchscreen is enabled, the adc hardware trigger will be
75 disabled. Since touchscreen will occupy the trigger register.
80 atmel,adc-ts-pressure-threshold:
81 $ref: /schemas/types.yaml#/definitions/uint32
83 Pressure threshold for touchscreen.
88 additionalProperties: false
96 - atmel,adc-channels-used
97 - atmel,adc-startup-time
102 #include <dt-bindings/dma/at91.h>
103 #include <dt-bindings/interrupt-controller/irq.h>
105 #address-cells = <1>;
109 compatible = "atmel,at91sam9260-adc";
110 reg = <0xfffb0000 0x100>;
111 interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
112 clocks = <&adc_clk>, <&adc_op_clk>;
113 clock-names = "adc_clk", "adc_op_clk";
114 atmel,adc-channels-used = <0xff>;
115 atmel,adc-startup-time = <40>;
116 atmel,adc-use-external-triggers;
117 atmel,adc-vref = <3300>;
118 atmel,adc-use-res = "lowres";