[PATCH 2/5] dt-bindings: pinctrl: brcm,ns-pinmux: extend example

Tony Lindgren tony at atomide.com
Tue Nov 23 01:15:41 PST 2021


* Rafał Miłecki <zajec5 at gmail.com> [211123 07:56]:
> Does it mean above "reg" usages are all incorrect and binding "reg" in
> such way is deprecated? This is something totally new to me, can you
> confirm that, please?

Here you have a device with multiple control register instances at
various register offsets. Using index here makes as much sense as
the old interrupt number defines we used to have but got rid of.

Please don't use an index to address them. Index makes sense when
there is no real offset to use, like a SPI chip select, or a bit
offset inside the register like a GPIO instance bit.

Regards,

Tony



More information about the linux-arm-kernel mailing list