Skip to content

Commit 4729889

Browse files
Philippe Reynesjic23
authored andcommitted
iio: add support of the max5821
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 03d7955 commit 4729889

4 files changed

Lines changed: 428 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Maxim max5821 DAC device driver
2+
3+
Required properties:
4+
- compatible: Must be "maxim,max5821"
5+
- reg: Should contain the DAC I2C address
6+
- vref-supply: Phandle to the vref power supply
7+
8+
Example:
9+
10+
max5821@38 {
11+
compatible = "maxim,max5821";
12+
reg = <0x38>;
13+
vref-supply = <&reg_max5821>;
14+
};

‎drivers/iio/dac/Kconfig‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ config MAX517
152152
This driver can also be built as a module. If so, the module
153153
will be called max517.
154154

155+
config MAX5821
156+
tristate "Maxim MAX5821 DAC driver"
157+
depends on I2C
158+
depends on OF
159+
help
160+
Say yes here to build support for Maxim MAX5821
161+
10 bits DAC.
162+
155163
config MCP4725
156164
tristate "MCP4725 DAC driver"
157165
depends on I2C

‎drivers/iio/dac/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ obj-$(CONFIG_AD5791) += ad5791.o
1717
obj-$(CONFIG_AD5686) += ad5686.o
1818
obj-$(CONFIG_AD7303) += ad7303.o
1919
obj-$(CONFIG_MAX517) += max517.o
20+
obj-$(CONFIG_MAX5821) += max5821.o
2021
obj-$(CONFIG_MCP4725) += mcp4725.o
2122
obj-$(CONFIG_MCP4922) += mcp4922.o

0 commit comments

Comments
 (0)