xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/maxim,max1241.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*4882a593Smuzhiyun# Copyright 2020 Alexandru Lazar
3*4882a593Smuzhiyun%YAML 1.2
4*4882a593Smuzhiyun---
5*4882a593Smuzhiyun$id: http://devicetree.org/schemas/iio/adc/maxim,max1241.yaml#
6*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
7*4882a593Smuzhiyun
8*4882a593Smuzhiyuntitle: Maxim MAX1241 12-bit, single-channel analog to digital converter
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunmaintainers:
11*4882a593Smuzhiyun  - Alexandru Lazar <alazar@startmail.com>
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundescription: |
14*4882a593Smuzhiyun  Bindings for the max1241 12-bit, single-channel ADC device. Datasheet
15*4882a593Smuzhiyun  can be found at:
16*4882a593Smuzhiyun    https://datasheets.maximintegrated.com/en/ds/MAX1240-MAX1241.pdf
17*4882a593Smuzhiyun
18*4882a593Smuzhiyunproperties:
19*4882a593Smuzhiyun  compatible:
20*4882a593Smuzhiyun    enum:
21*4882a593Smuzhiyun      - maxim,max1241
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun  reg:
24*4882a593Smuzhiyun    maxItems: 1
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun  vdd-supply:
27*4882a593Smuzhiyun    description:
28*4882a593Smuzhiyun      Device tree identifier of the regulator that powers the ADC.
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun  vref-supply:
31*4882a593Smuzhiyun    description:
32*4882a593Smuzhiyun      Device tree identifier of the regulator that provides the external
33*4882a593Smuzhiyun      reference voltage.
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun  shutdown-gpios:
36*4882a593Smuzhiyun    description:
37*4882a593Smuzhiyun      GPIO spec for the GPIO pin connected to the ADC's /SHDN pin. If
38*4882a593Smuzhiyun      specified, the /SHDN pin will be asserted between conversions,
39*4882a593Smuzhiyun      thus enabling power-down mode.
40*4882a593Smuzhiyun    maxItems: 1
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun  spi-max-frequency: true
43*4882a593Smuzhiyun
44*4882a593Smuzhiyunrequired:
45*4882a593Smuzhiyun  - compatible
46*4882a593Smuzhiyun  - reg
47*4882a593Smuzhiyun  - vdd-supply
48*4882a593Smuzhiyun  - vref-supply
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunadditionalProperties: false
51*4882a593Smuzhiyun
52*4882a593Smuzhiyunexamples:
53*4882a593Smuzhiyun  - |
54*4882a593Smuzhiyun    #include <dt-bindings/gpio/gpio.h>
55*4882a593Smuzhiyun    spi {
56*4882a593Smuzhiyun      #address-cells = <1>;
57*4882a593Smuzhiyun      #size-cells = <0>;
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun        adc@0 {
60*4882a593Smuzhiyun            compatible = "maxim,max1241";
61*4882a593Smuzhiyun            reg = <0>;
62*4882a593Smuzhiyun            vdd-supply = <&adc_vdd>;
63*4882a593Smuzhiyun            vref-supply = <&adc_vref>;
64*4882a593Smuzhiyun            spi-max-frequency = <1000000>;
65*4882a593Smuzhiyun            shutdown-gpios = <&gpio 26 1>;
66*4882a593Smuzhiyun        };
67*4882a593Smuzhiyun    };
68