Re: [PATCH 2/2] iio: dac: mcp47a1: add support for new device
From: David Lechner
Date: Sat Jul 25 2026 - 12:53:17 EST
On 7/22/26 1:30 AM, Joshua Crofts wrote:
> On Tue, 21 Jul 2026 23:47:58 +0300
> Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:
>
>> On Tue, Jul 21, 2026 at 08:24:39PM +0200, Joshua Crofts wrote:
>>> The Microchip MCP47A1 is a 6-bit volatile Digital-to-Analog converted
>>> which communicates via I2C.
>>
>>
>> ...
>>
>>> +static const struct regmap_config mcp47a1_regmap_config = {
>>> + .name = "mcp47a1",
>>> + .reg_bits = 8,
>>> + .val_bits = 8,
>>> + .max_register = MCP47A1_CMD_CODE,
>>> +};
>>
>> No cache?
>
> Hmmm, could you elaborate a bit more? I assume you're talking about
> regcache but I'm not sure on how to use it here.
>
normally one would select the maple regcache type and add a callback
for indicating which registers are volatile and and another config
to indicate the initial register values after reset.
however, it looks like there is only 1 register here, so probably
not much point in that.