Skip to content

gpio: lpc32xx: add new LPC32xx GPIO controller driver

Vladimir Zapolskiy linux-arm-kernel linux-devicetree linux-gpio 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] gpio: lpc32xx: add new LPC32xx GPIO controller driver

Hi Linus,

Quoted 8 lines · Linus Walleij
Quoted 4 lines · Vladimir Zapolskiy

Unfortunately the old driver has too many hacks inherited from the ancient legacy NXP BSP and I find it can not be maintained, the new driver has compatible interface to device tree clients, so moving to the new driver should not impact any GPIO consumers.

Has it been tested on the old hardware too?

the hardware here is the same, the driver is different.

With the existing LPC32xx DTS files I tested that the DTS GPIO client's interface is unchanged and that GPIO client drivers correctly work with the new GPIO controller driver.

As a summary about the change,
* DT binding of GPIO controller in lpc32xx.dtsi is extended (no removed properties),
* client's DT binding to the GPIO controller are untouched,
* GPIO controller code is completely replaced,
* GPIO client's side is untouched.

As a reminder about the necessity of the change, the legacy driver operates with hardware IRQs, this prevents switching of the platfrom to SPARSE_IRQ model.

It is important that the change depends on IRQ chip driver, which is also under review.

I would appreciate, if review of this change can be started, so that both IRQ chip driver and GPIO controller driver are accepted in one merge window.

--
With best wishes,
Vladimir