Skip to content
Snippets Groups Projects
Commit 588cc1a0 authored by Daniel Palmer's avatar Daniel Palmer Committed by Linus Walleij
Browse files

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: default avatarDaniel Palmer <daniel@0x0f.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201129110803.2461700-2-daniel@0x0f.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 64a38367
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment