Searched refs:dpot (Results 1 – 9 of 9) sorted by relevance
/Linux-v4.19/drivers/misc/ |
D | ad525x_dpot.c | 97 static inline int dpot_read_d8(struct dpot_data *dpot) in dpot_read_d8() argument 99 return dpot->bdata.bops->read_d8(dpot->bdata.client); in dpot_read_d8() 102 static inline int dpot_read_r8d8(struct dpot_data *dpot, u8 reg) in dpot_read_r8d8() argument 104 return dpot->bdata.bops->read_r8d8(dpot->bdata.client, reg); in dpot_read_r8d8() 107 static inline int dpot_read_r8d16(struct dpot_data *dpot, u8 reg) in dpot_read_r8d16() argument 109 return dpot->bdata.bops->read_r8d16(dpot->bdata.client, reg); in dpot_read_r8d16() 112 static inline int dpot_write_d8(struct dpot_data *dpot, u8 val) in dpot_write_d8() argument 114 return dpot->bdata.bops->write_d8(dpot->bdata.client, val); in dpot_write_d8() 117 static inline int dpot_write_r8d8(struct dpot_data *dpot, u8 reg, u16 val) in dpot_write_r8d8() argument 119 return dpot->bdata.bops->write_r8d8(dpot->bdata.client, reg, val); in dpot_write_r8d8() [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/iio/dac/ |
D | dpot-dac.txt | 3 It is assumed that the dpot is used as a voltage divider between the 4 current dpot wiper setting and the maximum resistance of the dpot. The 21 - compatible: Should be "dpot-dac" 23 - io-channels: Channel node of the dpot to be used for the voltage division. 24 - io-channel-names: Should be "dpot". 29 dpot: mcp4651-503@28 { 37 compatible = "dpot-dac"; 39 io-channels = <&dpot 0>; 40 io-channel-names = "dpot";
|
/Linux-v4.19/drivers/iio/dac/ |
D | dpot-dac.c | 42 struct iio_channel *dpot; member 65 return iio_read_channel_raw(dac->dpot, val); in dpot_dac_read_raw() 68 ret = iio_read_channel_scale(dac->dpot, val, val2); in dpot_dac_read_raw() 107 return iio_read_avail_channel_raw(dac->dpot, vals, length); in dpot_dac_read_avail() 121 return iio_write_channel_raw(dac->dpot, val); in dpot_dac_write_raw() 143 ret = iio_read_max_channel_raw(dac->dpot, &max); in dpot_dac_channel_max_ohms() 149 switch (iio_read_channel_scale(dac->dpot, &val, &val2)) { in dpot_dac_channel_max_ohms() 196 dac->dpot = devm_iio_channel_get(dev, "dpot"); in dpot_dac_probe() 197 if (IS_ERR(dac->dpot)) { in dpot_dac_probe() 198 if (PTR_ERR(dac->dpot) != -EPROBE_DEFER) in dpot_dac_probe() [all …]
|
D | Makefile | 29 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o
|
D | Kconfig | 249 called dpot-dac.
|
/Linux-v4.19/Documentation/devicetree/bindings/iio/adc/ |
D | envelope-detector.txt | 31 dpot: mcp4651-104@28 { 39 compatible = "dpot-dac"; 41 io-channels = <&dpot 0>; 42 io-channel-names = "dpot";
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | at91-tse850-3.dts | 81 dac: dpot-dac { 82 compatible = "dpot-dac"; 84 io-channels = <&dpot 0>; 85 io-channel-names = "dpot"; 227 dpot: mcp4651-104@28 { label
|
/Linux-v4.19/Documentation/misc-devices/ |
D | ad525x_dpot.txt | 15 Each dpot device will have a set of eeprom, rdac, and tolerance files. How
|
/Linux-v4.19/ |
D | MAINTAINERS | 7138 F: Documentation/ABI/testing/sysfs-bus-iio-dac-dpot-dac 7139 F: Documentation/devicetree/bindings/iio/dac/dpot-dac.txt 7140 F: drivers/iio/dac/dpot-dac.c
|