Based on kernel version 6.11
. Page generated on 2024-09-24 08:21 EST
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) # Copyright 2019 Analog Devices Inc. %YAML 1.2 --- $id: http://devicetree.org/schemas/iio/adc/adi,ad7192.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Analog Devices AD7192 ADC device driver maintainers: - Michael Hennerich <michael.hennerich@analog.com> description: | Bindings for the Analog Devices AD7192 ADC device. Datasheet can be found here: https://www.analog.com/media/en/technical-documentation/data-sheets/AD7192.pdf properties: compatible: enum: - adi,ad7190 - adi,ad7192 - adi,ad7193 - adi,ad7194 - adi,ad7195 "#address-cells": const: 1 "#size-cells": const: 0 reg: maxItems: 1 spi-cpol: true spi-cpha: true clocks: maxItems: 1 description: phandle to the master clock (mclk) clock-names: items: - const: mclk interrupts: maxItems: 1 aincom-supply: description: | AINCOM voltage supply. Analog inputs AINx are referenced to this input when configured for pseudo-differential operation. dvdd-supply: description: DVdd voltage supply avdd-supply: description: AVdd voltage supply vref-supply: description: VRef voltage supply adi,rejection-60-Hz-enable: description: | This bit enables a notch at 60 Hz when the first notch of the sinc filter is at 50 Hz. When REJ60 is set, a filter notch is placed at 60 Hz when the sinc filter first notch is at 50 Hz. This allows simultaneous 50 Hz/ 60 Hz rejection. type: boolean adi,refin2-pins-enable: description: | External reference applied between the P1/REFIN2(+) and P0/REFIN2(−) pins. type: boolean adi,buffer-enable: description: | Enables the buffer on the analog inputs. If cleared, the analog inputs are unbuffered, lowering the power consumption of the device. If this bit is set, the analog inputs are buffered, allowing the user to place source impedances on the front end without contributing gain errors to the system. type: boolean adi,burnout-currents-enable: description: | When this bit is set to 1, the 500 nA current sources in the signal path are enabled. When BURN = 0, the burnout currents are disabled. The burnout currents can be enabled only when the buffer is active and when chop is disabled. type: boolean bipolar: description: see Documentation/devicetree/bindings/iio/adc/adc.yaml type: boolean patternProperties: "^channel@[0-9a-f]+$": type: object $ref: adc.yaml unevaluatedProperties: false properties: reg: description: The channel index. minimum: 0 maximum: 271 diff-channels: description: Both inputs can be connected to pins AIN1 to AIN16 by choosing the appropriate value from 1 to 16. items: minimum: 1 maximum: 16 single-channel: description: Positive input can be connected to pins AIN1 to AIN16 by choosing the appropriate value from 1 to 16. Negative input is connected to AINCOM. minimum: 1 maximum: 16 oneOf: - required: - reg - diff-channels - required: - reg - single-channel required: - compatible - reg - clocks - clock-names - interrupts - dvdd-supply - avdd-supply - vref-supply - spi-cpol - spi-cpha allOf: - $ref: /schemas/spi/spi-peripheral-props.yaml# - if: properties: compatible: enum: - adi,ad7190 - adi,ad7192 - adi,ad7193 - adi,ad7195 then: patternProperties: "^channel@[0-9a-f]+$": false unevaluatedProperties: false examples: - | spi { #address-cells = <1>; #size-cells = <0>; adc@0 { compatible = "adi,ad7192"; reg = <0>; spi-max-frequency = <1000000>; spi-cpol; spi-cpha; clocks = <&ad7192_mclk>; clock-names = "mclk"; interrupts = <25 0x2>; interrupt-parent = <&gpio>; aincom-supply = <&aincom>; dvdd-supply = <&dvdd>; avdd-supply = <&avdd>; vref-supply = <&vref>; adi,refin2-pins-enable; adi,rejection-60-Hz-enable; adi,buffer-enable; adi,burnout-currents-enable; }; }; - | spi { #address-cells = <1>; #size-cells = <0>; adc@0 { compatible = "adi,ad7194"; reg = <0>; #address-cells = <1>; #size-cells = <0>; spi-max-frequency = <1000000>; spi-cpol; spi-cpha; clocks = <&ad7192_mclk>; clock-names = "mclk"; interrupts = <25 0x2>; interrupt-parent = <&gpio>; aincom-supply = <&aincom>; dvdd-supply = <&dvdd>; avdd-supply = <&avdd>; vref-supply = <&vref>; channel@0 { reg = <0>; diff-channels = <1 6>; }; channel@1 { reg = <1>; single-channel = <1>; }; }; }; |