]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: Add device tree support to AD5398
authorMark Brown <broonie@kernel.org>
Mon, 3 Feb 2025 14:12:22 +0000 (14:12 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Feb 2025 14:12:22 +0000 (14:12 +0000)
commit3c32a4386909e8023b3c49253fec33d267be16bb
tree0b1f5a1e1ee85ed5295b8913d7d19c834a4fba4a
parentf5aab0438ef17f01c5ecd25e61ae6a03f82a4586
parent5a6a461079decea452fdcae955bccecf92e07e97
regulator: Add device tree support to AD5398

Merge series from Isaac Scott <isaac.scott@ideasonboard.com>:

The AD5398 is a DAC that can be used to control current flow in circuits
in a wide variety of applications such as motor control, or in my case,
LED control. I found when working with the current driver that it did
not work for my use case. It transpired that it only had support for
platform_data, and didn't appear to be correctly implemented according
to the datasheet, which can be found here:

https://www.analog.com/media/en/technical-documentation/data-sheets/ad5398.pdf

One example of this is the "soft power-down" bit being referred to in
the driver as simply "enable", which gives the impression that the
setting that bit will allow current through the regulator, which it does
not.

This series allows the regulator to be given its constraints via the
device tree, and makes the function of the enable register much more
obvious.