Path: blob/master/Documentation/devicetree/bindings/iio/adc/fsl,vf610-adc.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/adc/fsl,vf610-adc.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ADC found on Freescale vf610 and similar SoCs78maintainers:9- Haibo Chen <haibo.chen@nxp.com>1011description:12ADCs found on vf610/i.MX6slx and upward SoCs from Freescale.1314properties:15compatible:16oneOf:17- items:18- enum:19- fsl,imx6sx-adc20- fsl,imx6ul-adc21- const: fsl,vf610-adc22- items:23- const: fsl,vf610-adc2425reg:26maxItems: 12728interrupts:29maxItems: 13031clocks:32description: ADC source clock (ipg clock)33maxItems: 13435clock-names:36const: adc3738vref-supply:39description: ADC reference voltage supply.4041fsl,adck-max-frequency:42$ref: /schemas/types.yaml#/definitions/uint32-array43minItems: 344maxItems: 345description: |46Maximum frequencies from datasheet operating requirements.47Three values necessary to cover the 3 conversion modes.48* Frequency in normal mode (ADLPC=0, ADHSC=0)49* Frequency in high-speed mode (ADLPC=0, ADHSC=1)50* Frequency in low-power mode (ADLPC=1, ADHSC=0)5152min-sample-time:53$ref: /schemas/types.yaml#/definitions/uint3254description:55Minimum sampling time in nanoseconds. This value has56to be chosen according to the conversion mode and the connected analog57source resistance (R_as) and capacitance (C_as). Refer the datasheet's58operating requirements. A safe default across a wide range of R_as and59C_as as well as conversion modes is 1000ns.6061"#io-channel-cells":62const: 16364required:65- compatible66- reg67- interrupts68- clocks69- clock-names70- vref-supply7172additionalProperties: false7374examples:75- |76#include <dt-bindings/clock/vf610-clock.h>77adc@4003b000 {78compatible = "fsl,vf610-adc";79reg = <0x4003b000 0x1000>;80interrupts = <0 53 0x04>;81clocks = <&clks VF610_CLK_ADC0>;82clock-names = "adc";83fsl,adck-max-frequency = <30000000>, <40000000>, <20000000>;84vref-supply = <®_vcc_3v3_mcu>;85min-sample-time = <10000>;86};87...888990