| /kernel/linux/linux-6.6/drivers/misc/ |
| D | ad525x_dpot.c | 96 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 …]
|
| /kernel/linux/linux-5.10/drivers/misc/ |
| D | ad525x_dpot.c | 96 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 …]
|
| /kernel/linux/linux-6.6/drivers/iio/dac/ |
| D | dpot-dac.c | 11 * It is assumed that the dpot is used as a voltage divider between the 12 * current dpot wiper setting and the maximum resistance of the dpot. The 39 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() 105 return iio_read_avail_channel_raw(dac->dpot, vals, length); in dpot_dac_read_avail() 119 return iio_write_channel_raw(dac->dpot, val); in dpot_dac_write_raw() 141 ret = iio_read_max_channel_raw(dac->dpot, &max); in dpot_dac_channel_max_ohms() 143 dev_err(dev, "dpot does not indicate its raw maximum value\n"); in dpot_dac_channel_max_ohms() 147 switch (iio_read_channel_scale(dac->dpot, &val, &val2)) { in dpot_dac_channel_max_ohms() [all …]
|
| D | Makefile | 33 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o
|
| D | Kconfig | 293 tristate "DAC emulation using a DPOT" 299 called dpot-dac.
|
| /kernel/linux/linux-5.10/drivers/iio/dac/ |
| D | dpot-dac.c | 11 * It is assumed that the dpot is used as a voltage divider between the 12 * current dpot wiper setting and the maximum resistance of the dpot. The 39 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() 105 return iio_read_avail_channel_raw(dac->dpot, vals, length); in dpot_dac_read_avail() 119 return iio_write_channel_raw(dac->dpot, val); in dpot_dac_write_raw() 141 ret = iio_read_max_channel_raw(dac->dpot, &max); in dpot_dac_channel_max_ohms() 143 dev_err(dev, "dpot does not indicate its raw maximum value\n"); in dpot_dac_channel_max_ohms() 147 switch (iio_read_channel_scale(dac->dpot, &val, &val2)) { in dpot_dac_channel_max_ohms() [all …]
|
| D | Makefile | 30 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o
|
| D | Kconfig | 243 tristate "DAC emulation using a DPOT" 250 called dpot-dac.
|
| /kernel/linux/linux-5.10/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";
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/dac/ |
| D | dpot-dac.yaml | 4 $id: http://devicetree.org/schemas/iio/dac/dpot-dac.yaml# 13 It is assumed that the dpot is used as a voltage divider between the 14 current dpot wiper setting and the maximum resistance of the dpot. The 32 const: dpot-dac 40 Channel node of the dpot to be used for the voltage division. 43 const: dpot 59 compatible = "dpot-dac"; 61 io-channels = <&dpot 0>; 62 io-channel-names = "dpot";
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/adc/ |
| D | envelope-detector.yaml | 62 dpot: dpot@28 { 70 compatible = "dpot-dac"; 72 io-channels = <&dpot 0>; 73 io-channel-names = "dpot";
|
| /kernel/linux/linux-5.10/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";
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | at91-tse850-3.dts | 61 dac: dpot-dac { 62 compatible = "dpot-dac"; 64 io-channels = <&dpot 0>; 65 io-channel-names = "dpot"; 207 dpot: mcp4651-104@28 { label
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/microchip/ |
| D | at91-tse850-3.dts | 61 dac: dpot-dac { 62 compatible = "dpot-dac"; 64 io-channels = <&dpot 0>; 65 io-channel-names = "dpot"; 207 dpot: mcp4651-104@28 { label
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/potentiometer/ |
| D | microchip,mcp4531.yaml | 110 dpot: dpot@28 {
|
| /kernel/linux/linux-5.10/Documentation/misc-devices/ |
| D | ad525x_dpot.rst | 16 Each dpot device will have a set of eeprom, rdac, and tolerance files. How
|
| /kernel/linux/linux-6.6/Documentation/misc-devices/ |
| D | ad525x_dpot.rst | 16 Each dpot device will have a set of eeprom, rdac, and tolerance files. How
|
| /kernel/linux/linux-5.10/ |
| D | MAINTAINERS | 8557 F: Documentation/ABI/testing/sysfs-bus-iio-dac-dpot-dac 8558 F: Documentation/devicetree/bindings/iio/dac/dpot-dac.txt 8559 F: drivers/iio/dac/dpot-dac.c
|
| /kernel/linux/linux-6.6/ |
| D | MAINTAINERS | 10173 F: Documentation/ABI/testing/sysfs-bus-iio-dac-dpot-dac 10174 F: Documentation/devicetree/bindings/iio/dac/dpot-dac.yaml 10175 F: drivers/iio/dac/dpot-dac.c
|