Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c05dc2cc authored by Peter Rosin's avatar Peter Rosin Committed by Jonathan Cameron
Browse files

iio: mcp4531: Driver for Microchip digital potentiometers

Add support for Microchip digital potentiometers and rheostats
	MCP4531, MCP4532, MCP4551, MCP4552
	MCP4631, MCP4632, MCP4651, MCP4652

DEVICE   Wipers  Steps  Resistor Opts (kOhm)  i2c address
MCP4531  1       129    5, 10, 50, 100        010111x
MCP4532  1       129    5, 10, 50, 100        01011xx
MCP4551  1       257    5, 10, 50, 100        010111x
MCP4552  1       257    5, 10, 50, 100        01011xx
MCP4631  2       129    5, 10, 50, 100        0101xxx
MCP4632  2       129    5, 10, 50, 100        01011xx
MCP4651  2       257    5, 10, 50, 100        0101xxx
MCP4652  2       257    5, 10, 50, 100        01011xx

Datasheet: http://www.microchip.com/downloads/en/DeviceDoc/22096b.pdf



Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent b15aef8d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -6682,6 +6682,12 @@ W: http://linuxtv.org
S:	Maintained
F:	drivers/media/radio/radio-maxiradio*

MCP4531 MICROCHIP DIGITAL POTENTIOMETER DRIVER
M:	Peter Rosin <peda@axentia.se>
L:	linux-iio@vger.kernel.org
S:	Maintained
F:	drivers/iio/potentiometer/mcp4531.c

MEDIA DRIVERS FOR RENESAS - VSP1
M:	Laurent Pinchart <laurent.pinchart@ideasonboard.com>
L:	linux-media@vger.kernel.org
+1 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@ source "drivers/iio/orientation/Kconfig"
if IIO_TRIGGER
   source "drivers/iio/trigger/Kconfig"
endif #IIO_TRIGGER
source "drivers/iio/potentiometer/Kconfig"
source "drivers/iio/pressure/Kconfig"
source "drivers/iio/proximity/Kconfig"
source "drivers/iio/temperature/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ obj-y += imu/
obj-y += light/
obj-y += magnetometer/
obj-y += orientation/
obj-y += potentiometer/
obj-y += pressure/
obj-y += proximity/
obj-y += temperature/
+20 −0
Original line number Diff line number Diff line
#
# Potentiometer drivers
#
# When adding new entries keep the list in alphabetical order

menu "Digital potentiometers"

config MCP4531
	tristate "Microchip MCP45xx/MCP46xx Digital Potentiometer driver"
	depends on I2C
	help
	  Say yes here to build support for the Microchip
	  MCP4531, MCP4532, MCP4551, MCP4552,
	  MCP4631, MCP4632, MCP4651, MCP4652
	  digital potentiomenter chips.

	  To compile this driver as a module, choose M here: the
	  module will be called mcp4531.

endmenu
+6 −0
Original line number Diff line number Diff line
#
# Makefile for industrial I/O potentiometer drivers
#

# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_MCP4531) += mcp4531.o
Loading