Home
last modified time | relevance | path

Searched +full:ad5272 +full:- +full:020 (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/Documentation/devicetree/bindings/iio/potentiometer/
Dadi,ad5272.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/potentiometer/adi,ad5272.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD5272 digital potentiometer
10 - Phil Reid <preid@electromag.com.au>
13 Datasheet: https://www.analog.com/en/products/ad5272.html
18 - adi,ad5272-020
19 - adi,ad5272-050
20 - adi,ad5272-100
[all …]
/linux-6.12.1/drivers/iio/potentiometer/
Dad5272.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Analog Devices AD5272 digital potentiometer driver
6 * Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/AD5272_5274.pdf
9 * ad5272 1 1024 20, 50, 100 01011xx
67 data->buf[0] = (reg << 2) | ((val >> 8) & 0x3); in ad5272_write()
68 data->buf[1] = (u8)val; in ad5272_write()
70 mutex_lock(&data->lock); in ad5272_write()
71 ret = i2c_master_send(data->client, data->buf, sizeof(data->buf)); in ad5272_write()
72 mutex_unlock(&data->lock); in ad5272_write()
80 data->buf[0] = reg << 2; in ad5272_read()
[all …]