0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 # Copyright 2020 Alexandru Lazar
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/iio/adc/maxim,max1241.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007
0008 title: Maxim MAX1241 12-bit, single-channel analog to digital converter
0009
0010 maintainers:
0011 - Alexandru Lazar <alazar@startmail.com>
0012
0013 description: |
0014 Bindings for the max1241 12-bit, single-channel ADC device. Datasheet
0015 can be found at:
0016 https://datasheets.maximintegrated.com/en/ds/MAX1240-MAX1241.pdf
0017
0018 properties:
0019 compatible:
0020 enum:
0021 - maxim,max1241
0022
0023 reg:
0024 maxItems: 1
0025
0026 vdd-supply:
0027 description:
0028 Device tree identifier of the regulator that powers the ADC.
0029
0030 vref-supply:
0031 description:
0032 Device tree identifier of the regulator that provides the external
0033 reference voltage.
0034
0035 shutdown-gpios:
0036 description:
0037 GPIO spec for the GPIO pin connected to the ADC's /SHDN pin. If
0038 specified, the /SHDN pin will be asserted between conversions,
0039 thus enabling power-down mode.
0040 maxItems: 1
0041
0042 spi-max-frequency: true
0043
0044 required:
0045 - compatible
0046 - reg
0047 - vdd-supply
0048 - vref-supply
0049
0050 additionalProperties: false
0051
0052 examples:
0053 - |
0054 #include <dt-bindings/gpio/gpio.h>
0055 spi {
0056 #address-cells = <1>;
0057 #size-cells = <0>;
0058
0059 adc@0 {
0060 compatible = "maxim,max1241";
0061 reg = <0>;
0062 vdd-supply = <&adc_vdd>;
0063 vref-supply = <&adc_vref>;
0064 spi-max-frequency = <1000000>;
0065 shutdown-gpios = <&gpio 26 1>;
0066 };
0067 };