Home
last modified time | relevance | path

Searched refs:dpot (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/drivers/misc/
Dad525x_dpot.c96 static inline int dpot_read_d8(struct dpot_data *dpot) in dpot_read_d8() argument
98 return dpot->bdata.bops->read_d8(dpot->bdata.client); in dpot_read_d8()
101 static inline int dpot_read_r8d8(struct dpot_data *dpot, u8 reg) in dpot_read_r8d8() argument
103 return dpot->bdata.bops->read_r8d8(dpot->bdata.client, reg); in dpot_read_r8d8()
106 static inline int dpot_read_r8d16(struct dpot_data *dpot, u8 reg) in dpot_read_r8d16() argument
108 return dpot->bdata.bops->read_r8d16(dpot->bdata.client, reg); in dpot_read_r8d16()
111 static inline int dpot_write_d8(struct dpot_data *dpot, u8 val) in dpot_write_d8() argument
113 return dpot->bdata.bops->write_d8(dpot->bdata.client, val); in dpot_write_d8()
116 static inline int dpot_write_r8d8(struct dpot_data *dpot, u8 reg, u16 val) in dpot_write_r8d8() argument
118 return dpot->bdata.bops->write_r8d8(dpot->bdata.client, reg, val); in dpot_write_r8d8()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/iio/dac/
Ddpot-dac.txt3 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-v5.4/drivers/iio/dac/
Ddpot-dac.c39 struct iio_channel *dpot; member
62 return iio_read_channel_raw(dac->dpot, val); in dpot_dac_read_raw()
65 ret = iio_read_channel_scale(dac->dpot, val, val2); in dpot_dac_read_raw()
104 return iio_read_avail_channel_raw(dac->dpot, vals, length); in dpot_dac_read_avail()
118 return iio_write_channel_raw(dac->dpot, val); in dpot_dac_write_raw()
140 ret = iio_read_max_channel_raw(dac->dpot, &max); in dpot_dac_channel_max_ohms()
146 switch (iio_read_channel_scale(dac->dpot, &val, &val2)) { in dpot_dac_channel_max_ohms()
193 dac->dpot = devm_iio_channel_get(dev, "dpot"); in dpot_dac_probe()
194 if (IS_ERR(dac->dpot)) { in dpot_dac_probe()
195 if (PTR_ERR(dac->dpot) != -EPROBE_DEFER) in dpot_dac_probe()
[all …]
DMakefile29 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o
DKconfig260 called dpot-dac.
/Linux-v5.4/Documentation/devicetree/bindings/iio/adc/
Denvelope-detector.txt31 dpot: mcp4651-104@28 {
39 compatible = "dpot-dac";
41 io-channels = <&dpot 0>;
42 io-channel-names = "dpot";
/Linux-v5.4/arch/arm/boot/dts/
Dat91-tse850-3.dts61 dac: dpot-dac {
62 compatible = "dpot-dac";
64 io-channels = <&dpot 0>;
65 io-channel-names = "dpot";
207 dpot: mcp4651-104@28 { label
/Linux-v5.4/Documentation/misc-devices/
Dad525x_dpot.txt15 Each dpot device will have a set of eeprom, rdac, and tolerance files. How
/Linux-v5.4/
DMAINTAINERS7953 F: Documentation/ABI/testing/sysfs-bus-iio-dac-dpot-dac
7954 F: Documentation/devicetree/bindings/iio/dac/dpot-dac.txt
7955 F: drivers/iio/dac/dpot-dac.c