122 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/adc/atmel,sama9260-adc.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: AT91 sama9260 and similar Analog to Digital Converter (ADC)8 9maintainers:10 - Alexandre Belloni <alexandre.belloni@bootlin.com>11 12properties:13 compatible:14 enum:15 - atmel,at91sam9260-adc16 - atmel,at91sam9rl-adc17 - atmel,at91sam9g45-adc18 - atmel,at91sam9x5-adc19 - atmel,at91sama5d3-adc20 21 reg:22 maxItems: 123 24 interrupts:25 maxItems: 126 27 clocks:28 minItems: 229 maxItems: 230 31 clock-names:32 items:33 - const: adc_clk34 - const: adc_op_clk35 36 atmel,adc-channels-used:37 $ref: /schemas/types.yaml#/definitions/uint3238 description: Bitmask of the channels muxed and enabled for this device39 40 atmel,adc-startup-time:41 $ref: /schemas/types.yaml#/definitions/uint3242 description:43 Startup Time of the ADC in microseconds as defined in the datasheet44 45 atmel,adc-vref:46 $ref: /schemas/types.yaml#/definitions/uint3247 description: Reference voltage in millivolts for the conversions48 49 atmel,adc-use-external-triggers:50 $ref: /schemas/types.yaml#/definitions/flag51 description: Enable the external triggers52 53 atmel,adc-use-res:54 $ref: /schemas/types.yaml#/definitions/string55 description:56 String corresponding to an identifier from atmel,adc-res-names property.57 If not specified, the highest resolution will be used.58 enum:59 - lowres60 - highres61 62 atmel,adc-sleep-mode:63 $ref: /schemas/types.yaml#/definitions/flag64 description: Enable sleep mode when no conversion65 66 atmel,adc-sample-hold-time:67 $ref: /schemas/types.yaml#/definitions/uint3268 description: Sample and Hold Time in microseconds69 70 atmel,adc-ts-wires:71 $ref: /schemas/types.yaml#/definitions/uint3272 description: |73 Number of touchscreen wires. Must be set to enable touchscreen.74 NOTE: when adc touchscreen is enabled, the adc hardware trigger will be75 disabled. Since touchscreen will occupy the trigger register.76 enum:77 - 478 - 579 80 atmel,adc-ts-pressure-threshold:81 $ref: /schemas/types.yaml#/definitions/uint3282 description:83 Pressure threshold for touchscreen.84 85 "#io-channel-cells":86 const: 187 88additionalProperties: false89 90required:91 - compatible92 - reg93 - interrupts94 - clocks95 - clock-names96 - atmel,adc-channels-used97 - atmel,adc-startup-time98 - atmel,adc-vref99 100examples:101 - |102 #include <dt-bindings/dma/at91.h>103 #include <dt-bindings/interrupt-controller/irq.h>104 soc {105 #address-cells = <1>;106 #size-cells = <1>;107 108 adc@fffb0000 {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";119 };120 };121...122