1*6be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*6be33864SEmmanuel Vadot%YAML 1.2 3*6be33864SEmmanuel Vadot--- 4*6be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/fsl,imx7d-adc.yaml# 5*6be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*6be33864SEmmanuel Vadot 7*6be33864SEmmanuel Vadottitle: Freescale ADC found on the imx7d SoC 8*6be33864SEmmanuel Vadot 9*6be33864SEmmanuel Vadotmaintainers: 10*6be33864SEmmanuel Vadot - Haibo Chen <haibo.chen@nxp.com> 11*6be33864SEmmanuel Vadot 12*6be33864SEmmanuel Vadotproperties: 13*6be33864SEmmanuel Vadot compatible: 14*6be33864SEmmanuel Vadot const: fsl,imx7d-adc 15*6be33864SEmmanuel Vadot 16*6be33864SEmmanuel Vadot reg: 17*6be33864SEmmanuel Vadot maxItems: 1 18*6be33864SEmmanuel Vadot 19*6be33864SEmmanuel Vadot interrupts: 20*6be33864SEmmanuel Vadot maxItems: 1 21*6be33864SEmmanuel Vadot 22*6be33864SEmmanuel Vadot clocks: 23*6be33864SEmmanuel Vadot maxItems: 1 24*6be33864SEmmanuel Vadot 25*6be33864SEmmanuel Vadot clock-names: 26*6be33864SEmmanuel Vadot const: adc 27*6be33864SEmmanuel Vadot 28*6be33864SEmmanuel Vadot vref-supply: true 29*6be33864SEmmanuel Vadot 30*6be33864SEmmanuel Vadot "#io-channel-cells": 31*6be33864SEmmanuel Vadot const: 1 32*6be33864SEmmanuel Vadot 33*6be33864SEmmanuel Vadotrequired: 34*6be33864SEmmanuel Vadot - compatible 35*6be33864SEmmanuel Vadot - reg 36*6be33864SEmmanuel Vadot - interrupts 37*6be33864SEmmanuel Vadot - clocks 38*6be33864SEmmanuel Vadot - clock-names 39*6be33864SEmmanuel Vadot - vref-supply 40*6be33864SEmmanuel Vadot - "#io-channel-cells" 41*6be33864SEmmanuel Vadot 42*6be33864SEmmanuel VadotadditionalProperties: false 43*6be33864SEmmanuel Vadot 44*6be33864SEmmanuel Vadotexamples: 45*6be33864SEmmanuel Vadot - | 46*6be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 47*6be33864SEmmanuel Vadot #include <dt-bindings/clock/imx7d-clock.h> 48*6be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 49*6be33864SEmmanuel Vadot soc { 50*6be33864SEmmanuel Vadot #address-cells = <1>; 51*6be33864SEmmanuel Vadot #size-cells = <1>; 52*6be33864SEmmanuel Vadot adc@30610000 { 53*6be33864SEmmanuel Vadot compatible = "fsl,imx7d-adc"; 54*6be33864SEmmanuel Vadot reg = <0x30610000 0x10000>; 55*6be33864SEmmanuel Vadot interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; 56*6be33864SEmmanuel Vadot clocks = <&clks IMX7D_ADC_ROOT_CLK>; 57*6be33864SEmmanuel Vadot clock-names = "adc"; 58*6be33864SEmmanuel Vadot vref-supply = <®_vcc_3v3_mcu>; 59*6be33864SEmmanuel Vadot #io-channel-cells = <1>; 60*6be33864SEmmanuel Vadot }; 61*6be33864SEmmanuel Vadot }; 62*6be33864SEmmanuel Vadot... 63