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: adc: add ad4851

Add devicetree bindings for ad485x family.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Link: https://patch.msgid.link/20250214131955.31973-9-antoniu.miclaus@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Antoniu Miclaus and committed by
Jonathan Cameron
e04b1b0c 208a94c8

+153
+153
Documentation/devicetree/bindings/iio/adc/adi,ad4851.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + # Copyright 2024 Analog Devices Inc. 3 + %YAML 1.2 4 + --- 5 + $id: http://devicetree.org/schemas/iio/adc/adi,ad4851.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: Analog Devices AD485X family 9 + 10 + maintainers: 11 + - Sergiu Cuciurean <sergiu.cuciurean@analog.com> 12 + - Dragos Bogdan <dragos.bogdan@analog.com> 13 + - Antoniu Miclaus <antoniu.miclaus@analog.com> 14 + 15 + description: | 16 + Analog Devices AD485X fully buffered, 8-channel simultaneous sampling, 17 + 16/20-bit, 1 MSPS data acquisition system (DAS) with differential, wide 18 + common-mode range inputs. 19 + 20 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4855.pdf 21 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4856.pdf 22 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4857.pdf 23 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4858.pdf 24 + 25 + $ref: /schemas/spi/spi-peripheral-props.yaml# 26 + 27 + properties: 28 + compatible: 29 + enum: 30 + - adi,ad4851 31 + - adi,ad4852 32 + - adi,ad4853 33 + - adi,ad4854 34 + - adi,ad4855 35 + - adi,ad4856 36 + - adi,ad4857 37 + - adi,ad4858 38 + - adi,ad4858i 39 + 40 + reg: 41 + maxItems: 1 42 + 43 + vcc-supply: true 44 + 45 + vee-supply: true 46 + 47 + vdd-supply: true 48 + 49 + vddh-supply: true 50 + 51 + vddl-supply: true 52 + 53 + vio-supply: true 54 + 55 + vrefbuf-supply: true 56 + 57 + vrefio-supply: true 58 + 59 + pwms: 60 + description: PWM connected to the CNV pin. 61 + maxItems: 1 62 + 63 + io-backends: 64 + maxItems: 1 65 + 66 + pd-gpios: 67 + maxItems: 1 68 + 69 + spi-max-frequency: 70 + maximum: 25000000 71 + 72 + '#address-cells': 73 + const: 1 74 + 75 + '#size-cells': 76 + const: 0 77 + 78 + patternProperties: 79 + "^channel(@[0-7])?$": 80 + $ref: adc.yaml 81 + type: object 82 + description: Represents the channels which are connected to the ADC. 83 + 84 + properties: 85 + reg: 86 + description: 87 + The channel number, as specified in the datasheet (from 0 to 7). 88 + minimum: 0 89 + maximum: 7 90 + 91 + diff-channels: 92 + description: 93 + Each channel can be configured as a bipolar differential channel. 94 + The ADC uses the same positive and negative inputs for this. 95 + This property must be specified as 'reg' (or the channel number) for 96 + both positive and negative inputs (i.e. diff-channels = <reg reg>). 97 + Since the configuration is bipolar differential, the 'bipolar' 98 + property is required. 99 + items: 100 + minimum: 0 101 + maximum: 7 102 + 103 + bipolar: true 104 + 105 + required: 106 + - reg 107 + 108 + additionalProperties: false 109 + 110 + required: 111 + - compatible 112 + - reg 113 + - vcc-supply 114 + - vee-supply 115 + - vdd-supply 116 + - vio-supply 117 + - pwms 118 + 119 + unevaluatedProperties: false 120 + 121 + examples: 122 + - | 123 + spi { 124 + #address-cells = <1>; 125 + #size-cells = <0>; 126 + 127 + adc@0{ 128 + #address-cells = <1>; 129 + #size-cells = <0>; 130 + compatible = "adi,ad4858"; 131 + reg = <0>; 132 + spi-max-frequency = <10000000>; 133 + vcc-supply = <&vcc>; 134 + vdd-supply = <&vdd>; 135 + vee-supply = <&vee>; 136 + vddh-supply = <&vddh>; 137 + vddl-supply = <&vddl>; 138 + vio-supply = <&vio>; 139 + pwms = <&pwm_gen 0 0>; 140 + io-backends = <&iio_backend>; 141 + 142 + channel@0 { 143 + reg = <0>; 144 + diff-channels = <0 0>; 145 + bipolar; 146 + }; 147 + 148 + channel@1 { 149 + reg = <1>; 150 + }; 151 + }; 152 + }; 153 + ...