[PATCH v5 2/5] dt-bindings: gpio: spacemit: add support for K1 SoC
Linus Walleij
linus.walleij at linaro.org
Tue Feb 18 05:09:54 PST 2025
Hi Yixun,
On Mon, Feb 17, 2025 at 1:58 PM Yixun Lan <dlan at gentoo.org> wrote:
> The GPIO controller of K1 support basic functions as input/output,
> all pins can be used as interrupt which route to one IRQ line,
> trigger type can be select between rising edge, failing edge, or both.
> There are four GPIO banks, each consisting of 32 pins.
>
> Signed-off-by: Yixun Lan <dlan at gentoo.org>
(...)
> + gpio-ranges = <&pinctrl 0 0 32>,
> + <&pinctrl 0 32 32>,
> + <&pinctrl 0 64 32>,
> + <&pinctrl 0 96 32>;
In my core patch I assume that we encode the gpiochip instance number
also into the ranges:
<&pinctrl 0 0 0 32>, <&pinctrl 1 0 64 32> etc.
Yours,
Linus Walleij
More information about the linux-riscv
mailing list