Searched +full:mcp4131 +full:- +full:502 (Results 1 – 2 of 2) sorted by relevance
/linux/Documentation/devicetree/bindings/iio/potentiometer/ |
H A D | microchip,mcp4131.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/potentiometer/microchip,mcp4131.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Slawomir Stepien <sst@poczta.fm> 15 - microchip,mcp4131-103 16 - microchip,mcp4131-104 17 - microchip,mcp4131-502 18 - microchip,mcp4131-503 19 - microchip,mcp4132-103 [all …]
|
/linux/drivers/iio/potentiometer/ |
H A D | mcp4131.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 * mcp4131 1 129 5, 10, 50, 100 170 int address = chan->channel; in mcp4131_read_raw() 174 mutex_lock(&data->lock); in mcp4131_read_raw() 176 data->buf[0] = (address << MCP4131_WIPER_SHIFT) | MCP4131_READ; in mcp4131_read_raw() 177 data->buf[1] = 0; in mcp4131_read_raw() 179 err = mcp4131_read(data->spi, data->buf, 2); in mcp4131_read_raw() 181 mutex_unlock(&data->lock); in mcp4131_read_raw() 186 if (!MCP4131_CMDERR(data->buf)) { in mcp4131_read_raw() 187 mutex_unlock(&data->lock); in mcp4131_read_raw() [all …]
|