File tree Expand file tree Collapse file tree 6 files changed +722
-0
lines changed
Documentation/ABI/testing
arch/arm/boot/dts/overlays Expand file tree Collapse file tree 6 files changed +722
-0
lines changed Original file line number Diff line number Diff line change 1+ What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_ldac_update
2+ KernelVersion: 6.13
3+ Contact: linux-iio@vger.kernel.org
4+ Description:
5+ Trigger LDAC (Load DAC) update for the specified channel. Write 1 to update DAC outputs.
6+
7+ What: /sys/bus/iio/devices/iio:deviceX/out_currentY_ldac_update
8+ KernelVersion: 6.13
9+ Contact: linux-iio@vger.kernel.org
10+ Description:
11+ Trigger LDAC (Load DAC) update for the specified channel.
12+ Writing 1 will transfer the DAC register value to the actual
13+ DAC output, effectively updating the analog output current.
14+ Writing 0 has no effect. This is useful when using the
15+ transparent latch mode is disabled, allowing manual control
16+ over when DAC register changes take effect on the output.
17+
18+ What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_powermode
19+ What: /sys/bus/iio/devices/iio:deviceX/out_currentY_powermode
20+ KernelVersion: 6.13
21+ Contact: linux-iio@vger.kernel.org
22+ Description:
23+ Control the power state of the specified channel. Write "on" to
24+ enable the channel output, or "off" to disable it. Reading
25+ returns the current power state.
26+
27+ What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_powermode_available
28+ What: /sys/bus/iio/devices/iio:deviceX/out_currentY_powermode_available
29+ KernelVersion: 6.13
30+ Contact: linux-iio@vger.kernel.org
31+ Description:
32+ Shows the available power modes for the channel. Always returns
33+ "on off".
Original file line number Diff line number Diff line change @@ -322,6 +322,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
322322 rpi-ltc6952.dtbo \
323323 rpi-max14830-i2c.dtbo \
324324 rpi-max14830-spi.dtbo \
325+ rpi-max22007.dtbo \
325326 rpi-max31335.dtbo \
326327 rpi-poe.dtbo \
327328 rpi-poe-plus.dtbo \
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: GPL-2.0
2+ /*
3+ * Analog Devices MAX22007
4+ *
5+ * hdl_project: <max22007_rpi>
6+ *
7+ * Copyright (C) 2025 Analog Devices Inc.
8+ */
9+
10+ /dts-v1/;
11+ /plugin/;
12+
13+ #include <dt-bindings/gpio/gpio.h>
14+
15+ &spi0 {
16+ status = "okay";
17+
18+ max22007: max22007@0 {
19+ compatible = "adi,max22007";
20+ reg = <0>;
21+ spi-max-frequency = <500000>;
22+ spi-cpha;
23+ spi-cpol;
24+ status = "okay";
25+ reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
26+ #address-cells = <1>;
27+ #size-cells = <0>;
28+
29+ channel@0 {
30+ reg = <0>;
31+ adi,dac-latch-mode = "ldac-control";
32+ adi,mode = "voltage";
33+ };
34+
35+ channel@1 {
36+ reg = <1>;
37+ adi,dac-latch-mode = "ldac-control";
38+ adi,mode = "voltage";
39+ };
40+
41+ channel@2 {
42+ reg = <2>;
43+ adi,dac-latch-mode = "ldac-control";
44+ adi,mode = "voltage";
45+ };
46+
47+ channel@3 {
48+ reg = <3>;
49+ adi,dac-latch-mode = "ldac-control";
50+ adi,mode = "voltage";
51+ };
52+ };
53+ };
54+
55+ &spidev0 {
56+ status = "disabled";
57+ };
58+
59+ &spidev1 {
60+ status = "disabled";
61+ };
Original file line number Diff line number Diff line change @@ -472,6 +472,19 @@ config MAX517
472472 This driver can also be built as a module. If so, the module
473473 will be called max517.
474474
475+ config MAX22007
476+ tristate "Analog Devices MAX22007 DAC Driver"
477+ depends on SPI
478+ select REGMAP
479+ select CRC8
480+ help
481+ Say Y here if you want to build a driver for Analog Devices MAX22007.
482+
483+ MAX22007 is a single-channel, 16-bit, voltage-output digital to
484+ analog converter (DAC) with SPI interface.
485+
486+ If compiled as a module, it will be called max22007.
487+
475488config MAX5522
476489 tristate "Maxim MAX5522 DAC driver"
477490 depends on SPI_MASTER
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ obj-$(CONFIG_LTC2664) += ltc2664.o
4646obj-$(CONFIG_LTC2688) += ltc2688.o
4747obj-$(CONFIG_M62332) += m62332.o
4848obj-$(CONFIG_MAX517) += max517.o
49+ obj-$(CONFIG_MAX22007) += max22007.o
4950obj-$(CONFIG_MAX5522) += max5522.o
5051obj-$(CONFIG_MAX5821) += max5821.o
5152obj-$(CONFIG_MCP4725) += mcp4725.o
You can’t perform that action at this time.
0 commit comments