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