OSDN Git Service

dt-bindings: leds: register-bit-led: Use 'reg' instead of 'offset'
authorRob Herring <robh@kernel.org>
Mon, 13 Sep 2021 19:28:10 +0000 (14:28 -0500)
committerRob Herring <robh@kernel.org>
Wed, 13 Oct 2021 22:23:23 +0000 (17:23 -0500)
commit37f86649cdf7f9c8ca4341377d402797d54394d4
treed1ecea283866f26ddbcf0c87335b993a9e92e0b8
parent604e4e44a7c2f2b18e466533b6ecece97c6e667d
dt-bindings: leds: register-bit-led: Use 'reg' instead of 'offset'

'reg' is the standard property for defining register banks/addresses. Add
it to use for the register address and deprecate 'offset'. This also
allows for using standard node names with unit-addresses. However, since
it is quite possible to have multiple nodes at the same register
address, allow for the unit-address to optionally have the bit
offset. The unit-address format is '@<reg address>[,<bit offset>]'. This
matches the format recently added for nvmem binding which has the same
issue.

Cc: Pavel Machek <pavel@ucw.cz>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-leds@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210913192816.1225025-3-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/leds/register-bit-led.yaml