1354f23acSHaibo Chen# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2354f23acSHaibo Chen%YAML 1.2 3354f23acSHaibo Chen--- 4354f23acSHaibo Chen$id: http://devicetree.org/schemas/iio/adc/nxp,imx93-adc.yaml# 5354f23acSHaibo Chen$schema: http://devicetree.org/meta-schemas/core.yaml# 6354f23acSHaibo Chen 7354f23acSHaibo Chentitle: NXP iMX93 ADC 8354f23acSHaibo Chen 9354f23acSHaibo Chenmaintainers: 10354f23acSHaibo Chen - Haibo Chen <haibo.chen@nxp.com> 11354f23acSHaibo Chen 12354f23acSHaibo Chendescription: 13354f23acSHaibo Chen The ADC on iMX93 is a 8-channel 12-bit 1MS/s ADC with 4 channels 14354f23acSHaibo Chen connected to pins. it support normal and inject mode, include 15354f23acSHaibo Chen One-Shot and Scan (continuous) conversions. Programmable DMA 16354f23acSHaibo Chen enables for each channel Also this ADC contain alternate analog 17354f23acSHaibo Chen watchdog thresholds, select threshold through input ports. And 18354f23acSHaibo Chen also has Self-test logic and Software-initiated calibration. 19354f23acSHaibo Chen 20354f23acSHaibo Chenproperties: 21354f23acSHaibo Chen compatible: 22354f23acSHaibo Chen const: nxp,imx93-adc 23354f23acSHaibo Chen 24354f23acSHaibo Chen reg: 25354f23acSHaibo Chen maxItems: 1 26354f23acSHaibo Chen 27354f23acSHaibo Chen interrupts: 28354f23acSHaibo Chen items: 29354f23acSHaibo Chen - description: WDGnL, watchdog threshold interrupt requests. 30354f23acSHaibo Chen - description: WDGnH, watchdog threshold interrupt requests. 31354f23acSHaibo Chen - description: normal conversion, include EOC (End of Conversion), 32354f23acSHaibo Chen ECH (End of Chain), JEOC (End of Injected Conversion) and 33354f23acSHaibo Chen JECH (End of injected Chain). 34354f23acSHaibo Chen 35354f23acSHaibo Chen clocks: 36354f23acSHaibo Chen maxItems: 1 37354f23acSHaibo Chen 38354f23acSHaibo Chen clock-names: 39354f23acSHaibo Chen const: ipg 40354f23acSHaibo Chen 41354f23acSHaibo Chen vref-supply: 42354f23acSHaibo Chen description: 43354f23acSHaibo Chen The reference voltage which used to establish channel scaling. 44354f23acSHaibo Chen 45354f23acSHaibo Chen "#io-channel-cells": 46354f23acSHaibo Chen const: 1 47354f23acSHaibo Chen 48354f23acSHaibo Chenrequired: 49354f23acSHaibo Chen - compatible 50354f23acSHaibo Chen - reg 51354f23acSHaibo Chen - interrupts 52354f23acSHaibo Chen - clocks 53354f23acSHaibo Chen - clock-names 54354f23acSHaibo Chen - vref-supply 55354f23acSHaibo Chen - "#io-channel-cells" 56354f23acSHaibo Chen 57354f23acSHaibo ChenadditionalProperties: false 58354f23acSHaibo Chen 59354f23acSHaibo Chenexamples: 60354f23acSHaibo Chen - | 61354f23acSHaibo Chen #include <dt-bindings/interrupt-controller/irq.h> 62354f23acSHaibo Chen #include <dt-bindings/clock/imx93-clock.h> 63354f23acSHaibo Chen #include <dt-bindings/interrupt-controller/arm-gic.h> 64354f23acSHaibo Chen soc { 65354f23acSHaibo Chen #address-cells = <1>; 66354f23acSHaibo Chen #size-cells = <1>; 67354f23acSHaibo Chen adc@44530000 { 68354f23acSHaibo Chen compatible = "nxp,imx93-adc"; 69354f23acSHaibo Chen reg = <0x44530000 0x10000>; 70354f23acSHaibo Chen interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>, 71354f23acSHaibo Chen <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>, 72*ca1e2b91SPeng Fan <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>; 73354f23acSHaibo Chen clocks = <&clk IMX93_CLK_ADC1_GATE>; 74354f23acSHaibo Chen clock-names = "ipg"; 75354f23acSHaibo Chen vref-supply = <®_vref_1v8>; 76354f23acSHaibo Chen #io-channel-cells = <1>; 77354f23acSHaibo Chen }; 78354f23acSHaibo Chen }; 79354f23acSHaibo Chen... 80