~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2 # Copyright 2019 Analog Devices Inc.
  3 %YAML 1.2
  4 ---
  5 $id: http://devicetree.org/schemas/iio/adc/adi,ad7124.yaml#
  6 $schema: http://devicetree.org/meta-schemas/core.yaml#
  7 
  8 title: Analog Devices AD7124 ADC device driver
  9 
 10 maintainers:
 11   - Stefan Popa <stefan.popa@analog.com>
 12 
 13 description: |
 14   Bindings for the Analog Devices AD7124 ADC device. Datasheet can be
 15   found here:
 16     https://www.analog.com/media/en/technical-documentation/data-sheets/AD7124-8.pdf
 17 
 18 properties:
 19   compatible:
 20     enum:
 21       - adi,ad7124-4
 22       - adi,ad7124-8
 23 
 24   reg:
 25     description: SPI chip select number for the device
 26     maxItems: 1
 27 
 28   clocks:
 29     maxItems: 1
 30     description: phandle to the master clock (mclk)
 31 
 32   clock-names:
 33     items:
 34       - const: mclk
 35 
 36   interrupts:
 37     description: IRQ line for the ADC
 38     maxItems: 1
 39 
 40   '#address-cells':
 41     const: 1
 42 
 43   '#size-cells':
 44     const: 0
 45 
 46   refin1-supply:
 47     description: refin1 supply can be used as reference for conversion.
 48 
 49   refin2-supply:
 50     description: refin2 supply can be used as reference for conversion.
 51 
 52   avdd-supply:
 53     description: avdd supply can be used as reference for conversion.
 54 
 55 required:
 56   - compatible
 57   - reg
 58   - clocks
 59   - clock-names
 60   - interrupts
 61 
 62 patternProperties:
 63   "^channel@([0-9]|1[0-5])$":
 64     $ref: adc.yaml
 65     type: object
 66     description: |
 67       Represents the external channels which are connected to the ADC.
 68 
 69     properties:
 70       reg:
 71         description: |
 72           The channel number. It can have up to 8 channels on ad7124-4
 73           and 16 channels on ad7124-8, numbered from 0 to 15.
 74         items:
 75           minimum: 0
 76           maximum: 15
 77 
 78       adi,reference-select:
 79         description: |
 80           Select the reference source to use when converting on
 81           the specific channel. Valid values are:
 82           0: REFIN1(+)/REFIN1(−).
 83           1: REFIN2(+)/REFIN2(−).
 84           3: AVDD
 85           If this field is left empty, internal reference is selected.
 86         $ref: /schemas/types.yaml#/definitions/uint32
 87         enum: [0, 1, 3]
 88 
 89       diff-channels: true
 90 
 91       bipolar: true
 92 
 93       adi,buffered-positive:
 94         description: Enable buffered mode for positive input.
 95         type: boolean
 96 
 97       adi,buffered-negative:
 98         description: Enable buffered mode for negative input.
 99         type: boolean
100 
101     required:
102       - reg
103       - diff-channels
104 
105     additionalProperties: false
106 
107 allOf:
108   - $ref: /schemas/spi/spi-peripheral-props.yaml#
109 
110 unevaluatedProperties: false
111 
112 examples:
113   - |
114     spi {
115       #address-cells = <1>;
116       #size-cells = <0>;
117 
118       adc@0 {
119         compatible = "adi,ad7124-4";
120         reg = <0>;
121         spi-max-frequency = <5000000>;
122         interrupts = <25 2>;
123         interrupt-parent = <&gpio>;
124         refin1-supply = <&adc_vref>;
125         clocks = <&ad7124_mclk>;
126         clock-names = "mclk";
127 
128         #address-cells = <1>;
129         #size-cells = <0>;
130 
131         channel@0 {
132           reg = <0>;
133           diff-channels = <0 1>;
134           adi,reference-select = <0>;
135           adi,buffered-positive;
136         };
137 
138         channel@1 {
139           reg = <1>;
140           bipolar;
141           diff-channels = <2 3>;
142           adi,reference-select = <0>;
143           adi,buffered-positive;
144           adi,buffered-negative;
145         };
146 
147         channel@2 {
148           reg = <2>;
149           diff-channels = <4 5>;
150         };
151 
152         channel@3 {
153           reg = <3>;
154           diff-channels = <6 7>;
155         };
156       };
157     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php