xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/maxim,max1241.yaml (revision 6be3386466ab79a84b48429ae66244f21526d3df)
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
42*6be33864SEmmanuel Vadot  spi-max-frequency: true
43*6be33864SEmmanuel Vadot
44c66ec88fSEmmanuel Vadotrequired:
45c66ec88fSEmmanuel Vadot  - compatible
46c66ec88fSEmmanuel Vadot  - reg
47c66ec88fSEmmanuel Vadot  - vdd-supply
48c66ec88fSEmmanuel Vadot  - vref-supply
49c66ec88fSEmmanuel Vadot
50*6be33864SEmmanuel VadotadditionalProperties: false
51*6be33864SEmmanuel Vadot
52c66ec88fSEmmanuel Vadotexamples:
53c66ec88fSEmmanuel Vadot  - |
54c66ec88fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
55c66ec88fSEmmanuel Vadot    spi {
56c66ec88fSEmmanuel Vadot      #address-cells = <1>;
57c66ec88fSEmmanuel Vadot      #size-cells = <0>;
58c66ec88fSEmmanuel Vadot
59c66ec88fSEmmanuel Vadot        adc@0 {
60c66ec88fSEmmanuel Vadot            compatible = "maxim,max1241";
61c66ec88fSEmmanuel Vadot            reg = <0>;
62c66ec88fSEmmanuel Vadot            vdd-supply = <&adc_vdd>;
63c66ec88fSEmmanuel Vadot            vref-supply = <&adc_vref>;
64c66ec88fSEmmanuel Vadot            spi-max-frequency = <1000000>;
65c66ec88fSEmmanuel Vadot            shutdown-gpios = <&gpio 26 1>;
66c66ec88fSEmmanuel Vadot        };
67c66ec88fSEmmanuel Vadot    };
68