Re: [PATCH 2/2] gpio: Add Realtek Otto GPIO support

2021-03-15 Thread Sander Vanheule
On Mon, 2021-03-15 at 16:10 +0100, Linus Walleij wrote: > On Mon, Mar 15, 2021 at 9:26 AM Sander Vanheule > wrote: > > > Realtek MIPS SoCs (platform name Otto) have GPIO controllers with > > up to > > 64 GPIOs, divided over two banks. Each bank has a set of registers > > for > > 32 GPIOs, with su

Re: [PATCH 2/2] gpio: Add Realtek Otto GPIO support

2021-03-15 Thread Linus Walleij
On Mon, Mar 15, 2021 at 9:26 AM Sander Vanheule wrote: > Realtek MIPS SoCs (platform name Otto) have GPIO controllers with up to > 64 GPIOs, divided over two banks. Each bank has a set of registers for > 32 GPIOs, with support for edge-triggered interrupts. > > Each GPIO bank consists of four 8-b

[PATCH 2/2] gpio: Add Realtek Otto GPIO support

2021-03-15 Thread Sander Vanheule
Realtek MIPS SoCs (platform name Otto) have GPIO controllers with up to 64 GPIOs, divided over two banks. Each bank has a set of registers for 32 GPIOs, with support for edge-triggered interrupts. Each GPIO bank consists of four 8-bit GPIO ports (ABCD and EFGH). Most registers pack one bit per GPI