Path: blob/main/sys/contrib/device-tree/Bindings/iio/adc/at91_adc.txt
48406 views
* AT91's Analog to Digital Converter (ADC)12Required properties:3- compatible: Should be "atmel,<chip>-adc"4<chip> can be "at91sam9260", "at91sam9g45" or "at91sam9x5"5- reg: Should contain ADC registers location and length6- interrupts: Should contain the IRQ line for the ADC7- clock-names: tuple listing input clock names.8Required elements: "adc_clk", "adc_op_clk".9- clocks: phandles to input clocks.10- atmel,adc-channels-used: Bitmask of the channels muxed and enabled for this11device12- atmel,adc-startup-time: Startup Time of the ADC in microseconds as13defined in the datasheet14- atmel,adc-vref: Reference voltage in millivolts for the conversions15- atmel,adc-res: List of resolutions in bits supported by the ADC. List size16must be two at least.17- atmel,adc-res-names: Contains one identifier string for each resolution18in atmel,adc-res property. "lowres" and "highres"19identifiers are required.2021Optional properties:22- atmel,adc-use-external-triggers: Boolean to enable the external triggers23- atmel,adc-use-res: String corresponding to an identifier from24atmel,adc-res-names property. If not specified, the highest25resolution will be used.26- atmel,adc-sleep-mode: Boolean to enable sleep mode when no conversion27- atmel,adc-sample-hold-time: Sample and Hold Time in microseconds28- atmel,adc-ts-wires: Number of touchscreen wires. Should be 4 or 5. If this29value is set, then the adc driver will enable touchscreen30support.31NOTE: when adc touchscreen is enabled, the adc hardware trigger will be32disabled. Since touchscreen will occupy the trigger register.33- atmel,adc-ts-pressure-threshold: a pressure threshold for touchscreen. It34makes touch detection more precise.3536Optional trigger Nodes:37- Required properties:38* trigger-name: Name of the trigger exposed to the user39* trigger-value: Value to put in the Trigger register40to activate this trigger41- Optional properties:42* trigger-external: Is the trigger an external trigger?4344Examples:45adc0: adc@fffb0000 {46#address-cells = <1>;47#size-cells = <0>;48compatible = "atmel,at91sam9260-adc";49reg = <0xfffb0000 0x100>;50interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;51clocks = <&adc_clk>, <&adc_op_clk>;52clock-names = "adc_clk", "adc_op_clk";53atmel,adc-channels-used = <0xff>;54atmel,adc-startup-time = <40>;55atmel,adc-use-external-triggers;56atmel,adc-vref = <3300>;57atmel,adc-res = <8 10>;58atmel,adc-res-names = "lowres", "highres";59atmel,adc-use-res = "lowres";6061trigger0 {62trigger-name = "external-rising";63trigger-value = <0x1>;64trigger-external;65};66trigger1 {67trigger-name = "external-falling";68trigger-value = <0x2>;69trigger-external;70};7172trigger2 {73trigger-name = "external-any";74trigger-value = <0x3>;75trigger-external;76};7778trigger3 {79trigger-name = "continuous";80trigger-value = <0x6>;81};82};838485