1*354f23acSHaibo Chen# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*354f23acSHaibo Chen%YAML 1.2 3*354f23acSHaibo Chen--- 4*354f23acSHaibo Chen$id: http://devicetree.org/schemas/iio/adc/nxp,imx93-adc.yaml# 5*354f23acSHaibo Chen$schema: http://devicetree.org/meta-schemas/core.yaml# 6*354f23acSHaibo Chen 7*354f23acSHaibo Chentitle: NXP iMX93 ADC 8*354f23acSHaibo Chen 9*354f23acSHaibo Chenmaintainers: 10*354f23acSHaibo Chen - Haibo Chen <haibo.chen@nxp.com> 11*354f23acSHaibo Chen 12*354f23acSHaibo Chendescription: 13*354f23acSHaibo Chen The ADC on iMX93 is a 8-channel 12-bit 1MS/s ADC with 4 channels 14*354f23acSHaibo Chen connected to pins. it support normal and inject mode, include 15*354f23acSHaibo Chen One-Shot and Scan (continuous) conversions. Programmable DMA 16*354f23acSHaibo Chen enables for each channel Also this ADC contain alternate analog 17*354f23acSHaibo Chen watchdog thresholds, select threshold through input ports. And 18*354f23acSHaibo Chen also has Self-test logic and Software-initiated calibration. 19*354f23acSHaibo Chen 20*354f23acSHaibo Chenproperties: 21*354f23acSHaibo Chen compatible: 22*354f23acSHaibo Chen const: nxp,imx93-adc 23*354f23acSHaibo Chen 24*354f23acSHaibo Chen reg: 25*354f23acSHaibo Chen maxItems: 1 26*354f23acSHaibo Chen 27*354f23acSHaibo Chen interrupts: 28*354f23acSHaibo Chen items: 29*354f23acSHaibo Chen - description: WDGnL, watchdog threshold interrupt requests. 30*354f23acSHaibo Chen - description: WDGnH, watchdog threshold interrupt requests. 31*354f23acSHaibo Chen - description: normal conversion, include EOC (End of Conversion), 32*354f23acSHaibo Chen ECH (End of Chain), JEOC (End of Injected Conversion) and 33*354f23acSHaibo Chen JECH (End of injected Chain). 34*354f23acSHaibo Chen - description: Self-testing Interrupts. 35*354f23acSHaibo Chen 36*354f23acSHaibo Chen clocks: 37*354f23acSHaibo Chen maxItems: 1 38*354f23acSHaibo Chen 39*354f23acSHaibo Chen clock-names: 40*354f23acSHaibo Chen const: ipg 41*354f23acSHaibo Chen 42*354f23acSHaibo Chen vref-supply: 43*354f23acSHaibo Chen description: 44*354f23acSHaibo Chen The reference voltage which used to establish channel scaling. 45*354f23acSHaibo Chen 46*354f23acSHaibo Chen "#io-channel-cells": 47*354f23acSHaibo Chen const: 1 48*354f23acSHaibo Chen 49*354f23acSHaibo Chenrequired: 50*354f23acSHaibo Chen - compatible 51*354f23acSHaibo Chen - reg 52*354f23acSHaibo Chen - interrupts 53*354f23acSHaibo Chen - clocks 54*354f23acSHaibo Chen - clock-names 55*354f23acSHaibo Chen - vref-supply 56*354f23acSHaibo Chen - "#io-channel-cells" 57*354f23acSHaibo Chen 58*354f23acSHaibo ChenadditionalProperties: false 59*354f23acSHaibo Chen 60*354f23acSHaibo Chenexamples: 61*354f23acSHaibo Chen - | 62*354f23acSHaibo Chen #include <dt-bindings/interrupt-controller/irq.h> 63*354f23acSHaibo Chen #include <dt-bindings/clock/imx93-clock.h> 64*354f23acSHaibo Chen #include <dt-bindings/interrupt-controller/arm-gic.h> 65*354f23acSHaibo Chen soc { 66*354f23acSHaibo Chen #address-cells = <1>; 67*354f23acSHaibo Chen #size-cells = <1>; 68*354f23acSHaibo Chen adc@44530000 { 69*354f23acSHaibo Chen compatible = "nxp,imx93-adc"; 70*354f23acSHaibo Chen reg = <0x44530000 0x10000>; 71*354f23acSHaibo Chen interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>, 72*354f23acSHaibo Chen <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>, 73*354f23acSHaibo Chen <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>, 74*354f23acSHaibo Chen <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>; 75*354f23acSHaibo Chen clocks = <&clk IMX93_CLK_ADC1_GATE>; 76*354f23acSHaibo Chen clock-names = "ipg"; 77*354f23acSHaibo Chen vref-supply = <®_vref_1v8>; 78*354f23acSHaibo Chen #io-channel-cells = <1>; 79*354f23acSHaibo Chen }; 80*354f23acSHaibo Chen }; 81*354f23acSHaibo Chen... 82