Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: amplifiers: Add AD8366 support

Add device tree binding documentation for amplifiers and digital
attenuators. This covers different device variants with similar
SPI control. Each device has its own gain range and step, hence
no fallback compatibles are used.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Rodrigo Alencar and committed by
Jonathan Cameron
3cfbb50d 2ee22726

+98
+97
Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/amplifiers/adi,ad8366.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: AD8366 and similar Gain Amplifiers and Digital Attenuators 8 + 9 + maintainers: 10 + - Michael Hennerich <michael.hennerich@analog.com> 11 + - Rodrigo Alencar <rodrigo.alencar@analog.com> 12 + 13 + description: 14 + Digital Variable Gain Amplifiers (VGAs) and Digital Attenuators with 15 + SPI interface. 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - adi,ad8366 21 + - adi,ada4961 22 + - adi,adl5240 23 + - adi,adrf5720 24 + - adi,adrf5730 25 + - adi,adrf5731 26 + - adi,hmc271a 27 + - adi,hmc792a 28 + - adi,hmc1018a 29 + - adi,hmc1019a 30 + - adi,hmc1119 31 + 32 + reg: 33 + maxItems: 1 34 + 35 + vcc-supply: 36 + description: Regulator that provides power to the device. 37 + 38 + reset-gpios: 39 + maxItems: 1 40 + 41 + enable-gpios: 42 + maxItems: 1 43 + description: Power-up or Serial Mode Enable GPIO. 44 + 45 + required: 46 + - compatible 47 + - reg 48 + - vcc-supply 49 + 50 + allOf: 51 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 52 + - if: 53 + not: 54 + properties: 55 + compatible: 56 + contains: 57 + const: adi,hmc271a 58 + then: 59 + properties: 60 + reset-gpios: false 61 + - if: 62 + not: 63 + properties: 64 + compatible: 65 + contains: 66 + anyOf: 67 + - const: adi,ad8366 68 + - const: adi,ada4961 69 + - const: adi,adrf5720 70 + - const: adi,adrf5730 71 + - const: adi,adrf5731 72 + - const: adi,hmc792a 73 + - const: adi,hmc1018a 74 + - const: adi,hmc1019a 75 + - const: adi,hmc1119 76 + then: 77 + properties: 78 + enable-gpios: false 79 + 80 + unevaluatedProperties: false 81 + 82 + examples: 83 + - | 84 + #include <dt-bindings/gpio/gpio.h> 85 + spi { 86 + #address-cells = <1>; 87 + #size-cells = <0>; 88 + 89 + amplifier@0 { 90 + compatible = "adi,ad8366"; 91 + reg = <0>; 92 + spi-max-frequency = <1000000>; 93 + vcc-supply = <&vcc_3v3>; 94 + enable-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 95 + }; 96 + }; 97 + ...
+1
MAINTAINERS
··· 1600 1600 L: linux-iio@vger.kernel.org 1601 1601 S: Supported 1602 1602 W: https://ez.analog.com/linux-software-drivers 1603 + F: Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml 1603 1604 F: drivers/iio/amplifiers/ad8366.c 1604 1605 1605 1606 ANALOG DEVICES INC AD9467 DRIVER