]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: gpio: Add a binding header for the MSC313 GPIO driver
authorDaniel Palmer <daniel@0x0f.com>
Sun, 29 Nov 2020 11:07:58 +0000 (20:07 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 5 Dec 2020 21:40:28 +0000 (22:40 +0100)
commit393eeb99887b8e4c86751ff724ab560072f3c43d
tree29b2401c3582cc190cda5af5df6c7b38e51e85f2
parent521f81446b450297f087299aec8704f9d92575c9
dt-bindings: gpio: Add a binding header for the MSC313 GPIO driver

Header adds defines for the gpio number of each pad from the driver view.

The gpio block seems to have enough registers for 128 lines but what line
is mapped to a physical pin depends on the chip. The gpio block also seems
to contain some registers that are not related to gpio but needed somewhere
to go.

Because of the above the driver itself uses the index of a pin's offset in
an array of the possible offsets for a chip as the gpio number.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201129110803.2461700-2-daniel@0x0f.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
MAINTAINERS
include/dt-bindings/gpio/msc313-gpio.h [new file with mode: 0644]