15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 25def4c47SEmmanuel Vadot%YAML 1.2 35def4c47SEmmanuel Vadot--- 45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/atmel,sama9260-adc.yaml# 55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65def4c47SEmmanuel Vadot 75def4c47SEmmanuel Vadottitle: AT91 sama9260 and similar Analog to Digital Converter (ADC) 85def4c47SEmmanuel Vadot 95def4c47SEmmanuel Vadotmaintainers: 105def4c47SEmmanuel Vadot - Alexandre Belloni <alexandre.belloni@bootlin.com> 115def4c47SEmmanuel Vadot 125def4c47SEmmanuel Vadotproperties: 135def4c47SEmmanuel Vadot compatible: 145def4c47SEmmanuel Vadot enum: 155def4c47SEmmanuel Vadot - atmel,at91sam9260-adc 165def4c47SEmmanuel Vadot - atmel,at91sam9rl-adc 175def4c47SEmmanuel Vadot - atmel,at91sam9g45-adc 185def4c47SEmmanuel Vadot - atmel,at91sam9x5-adc 195def4c47SEmmanuel Vadot - atmel,at91sama5d3-adc 205def4c47SEmmanuel Vadot 215def4c47SEmmanuel Vadot reg: 225def4c47SEmmanuel Vadot maxItems: 1 235def4c47SEmmanuel Vadot 245def4c47SEmmanuel Vadot interrupts: 255def4c47SEmmanuel Vadot maxItems: 1 265def4c47SEmmanuel Vadot 275def4c47SEmmanuel Vadot clocks: 285def4c47SEmmanuel Vadot minItems: 2 295def4c47SEmmanuel Vadot maxItems: 2 305def4c47SEmmanuel Vadot 315def4c47SEmmanuel Vadot clock-names: 325def4c47SEmmanuel Vadot items: 335def4c47SEmmanuel Vadot - const: adc_clk 345def4c47SEmmanuel Vadot - const: adc_op_clk 355def4c47SEmmanuel Vadot 365def4c47SEmmanuel Vadot atmel,adc-channels-used: 375def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 385def4c47SEmmanuel Vadot description: Bitmask of the channels muxed and enabled for this device 395def4c47SEmmanuel Vadot 405def4c47SEmmanuel Vadot atmel,adc-startup-time: 415def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 425def4c47SEmmanuel Vadot description: 435def4c47SEmmanuel Vadot Startup Time of the ADC in microseconds as defined in the datasheet 445def4c47SEmmanuel Vadot 455def4c47SEmmanuel Vadot atmel,adc-vref: 465def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 475def4c47SEmmanuel Vadot description: Reference voltage in millivolts for the conversions 485def4c47SEmmanuel Vadot 495def4c47SEmmanuel Vadot atmel,adc-use-external-triggers: 505def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 515def4c47SEmmanuel Vadot description: Enable the external triggers 525def4c47SEmmanuel Vadot 535def4c47SEmmanuel Vadot atmel,adc-use-res: 545def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/string 555def4c47SEmmanuel Vadot description: 565def4c47SEmmanuel Vadot String corresponding to an identifier from atmel,adc-res-names property. 575def4c47SEmmanuel Vadot If not specified, the highest resolution will be used. 585def4c47SEmmanuel Vadot enum: 59*aa1a8ff2SEmmanuel Vadot - lowres 60*aa1a8ff2SEmmanuel Vadot - highres 615def4c47SEmmanuel Vadot 625def4c47SEmmanuel Vadot atmel,adc-sleep-mode: 635def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 645def4c47SEmmanuel Vadot description: Enable sleep mode when no conversion 655def4c47SEmmanuel Vadot 665def4c47SEmmanuel Vadot atmel,adc-sample-hold-time: 675def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 685def4c47SEmmanuel Vadot description: Sample and Hold Time in microseconds 695def4c47SEmmanuel Vadot 705def4c47SEmmanuel Vadot atmel,adc-ts-wires: 715def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 725def4c47SEmmanuel Vadot description: | 735def4c47SEmmanuel Vadot Number of touchscreen wires. Must be set to enable touchscreen. 745def4c47SEmmanuel Vadot NOTE: when adc touchscreen is enabled, the adc hardware trigger will be 755def4c47SEmmanuel Vadot disabled. Since touchscreen will occupy the trigger register. 765def4c47SEmmanuel Vadot enum: 775def4c47SEmmanuel Vadot - 4 785def4c47SEmmanuel Vadot - 5 795def4c47SEmmanuel Vadot 805def4c47SEmmanuel Vadot atmel,adc-ts-pressure-threshold: 815def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 825def4c47SEmmanuel Vadot description: 835def4c47SEmmanuel Vadot Pressure threshold for touchscreen. 845def4c47SEmmanuel Vadot 855def4c47SEmmanuel Vadot "#io-channel-cells": 865def4c47SEmmanuel Vadot const: 1 875def4c47SEmmanuel Vadot 885def4c47SEmmanuel VadotadditionalProperties: false 895def4c47SEmmanuel Vadot 905def4c47SEmmanuel Vadotrequired: 915def4c47SEmmanuel Vadot - compatible 925def4c47SEmmanuel Vadot - reg 935def4c47SEmmanuel Vadot - interrupts 945def4c47SEmmanuel Vadot - clocks 955def4c47SEmmanuel Vadot - clock-names 965def4c47SEmmanuel Vadot - atmel,adc-channels-used 975def4c47SEmmanuel Vadot - atmel,adc-startup-time 985def4c47SEmmanuel Vadot - atmel,adc-vref 995def4c47SEmmanuel Vadot 1005def4c47SEmmanuel Vadotexamples: 1015def4c47SEmmanuel Vadot - | 1025def4c47SEmmanuel Vadot #include <dt-bindings/dma/at91.h> 1035def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 1045def4c47SEmmanuel Vadot soc { 1055def4c47SEmmanuel Vadot #address-cells = <1>; 1065def4c47SEmmanuel Vadot #size-cells = <1>; 1075def4c47SEmmanuel Vadot 1085def4c47SEmmanuel Vadot adc@fffb0000 { 1095def4c47SEmmanuel Vadot compatible = "atmel,at91sam9260-adc"; 1105def4c47SEmmanuel Vadot reg = <0xfffb0000 0x100>; 1115def4c47SEmmanuel Vadot interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>; 1125def4c47SEmmanuel Vadot clocks = <&adc_clk>, <&adc_op_clk>; 1135def4c47SEmmanuel Vadot clock-names = "adc_clk", "adc_op_clk"; 1145def4c47SEmmanuel Vadot atmel,adc-channels-used = <0xff>; 1155def4c47SEmmanuel Vadot atmel,adc-startup-time = <40>; 1165def4c47SEmmanuel Vadot atmel,adc-use-external-triggers; 1175def4c47SEmmanuel Vadot atmel,adc-vref = <3300>; 1185def4c47SEmmanuel Vadot atmel,adc-use-res = "lowres"; 1195def4c47SEmmanuel Vadot }; 1205def4c47SEmmanuel Vadot }; 1215def4c47SEmmanuel Vadot... 122