On Fri, May 06, 2022 at 01:58:18PM +0300, Jani Nikula wrote: > Hey Mark, sorry for hijacking the thread a bit. regmap.h seems to have > comprehensive API documentation, but there's very little in terms of > higher level documentation that I could find. Is there any? Not outside of the source. I did a presentation at ELC-E ages ago which you can probably find but I'm not sure how much it would add. > I've been toying with the idea of adding a regmap based interface for > accessing Display Port DPCD registers, with caching, and regmap seems > like it's got the kitchen sink but I find it a bit difficult to > navigate... The bus code is generally very thin so you shouldn't need to worry about what the core is up to much if you just want to support some bus. If this is a bus that has registers at hardware level then looking at something like regmap-sdw.c should be helpful, for something that's just a bit stream at the bus level then something like regmap-i3c.c is a simple example.
Attachment:
signature.asc
Description: PGP signature