Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/fsl,imx7d-adc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Freescale ADC found on the imx7d SoC
0008 
0009 maintainers:
0010   - Haibo Chen <haibo.chen@nxp.com>
0011 
0012 properties:
0013   compatible:
0014     const: fsl,imx7d-adc
0015 
0016   reg:
0017     maxItems: 1
0018 
0019   interrupts:
0020     maxItems: 1
0021 
0022   clocks:
0023     maxItems: 1
0024 
0025   clock-names:
0026     const: adc
0027 
0028   vref-supply: true
0029 
0030   "#io-channel-cells":
0031     const: 1
0032 
0033 required:
0034   - compatible
0035   - reg
0036   - interrupts
0037   - clocks
0038   - clock-names
0039   - vref-supply
0040   - "#io-channel-cells"
0041 
0042 additionalProperties: false
0043 
0044 examples:
0045   - |
0046     #include <dt-bindings/interrupt-controller/irq.h>
0047     #include <dt-bindings/clock/imx7d-clock.h>
0048     #include <dt-bindings/interrupt-controller/arm-gic.h>
0049     soc {
0050         #address-cells = <1>;
0051         #size-cells = <1>;
0052         adc@30610000 {
0053             compatible = "fsl,imx7d-adc";
0054             reg = <0x30610000 0x10000>;
0055             interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
0056             clocks = <&clks IMX7D_ADC_ROOT_CLK>;
0057             clock-names = "adc";
0058             vref-supply = <&reg_vcc_3v3_mcu>;
0059             #io-channel-cells = <1>;
0060         };
0061     };
0062 ...