Skip to content

spear: Fix SPEAr3XX plgpio support

Herve Codina linux-arm-kernel linux-devicetree linux-gpio lkml soc 1 version Applied

Status from this message: The following commit has been merged into the irq/irqchip-next branch of irqchip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6pinctrl: spear: spear: Convert to regmapdrivers/pinctrl/spear/pinctrl-spear.c drivers/pinctrl/spear/pinctrl-spear.h+15 -70 replies
2/6pinctrl: spear: plgpio: Convert to regmapdrivers/pinctrl/spear/pinctrl-plgpio.c+76 -600 replies
3/6pinctrl: spear: plgpio: Introduce regmap phandledrivers/pinctrl/spear/pinctrl-plgpio.c+17 -50 replies
4/6ARM: dts: spear3xx: Use plgpio regmap in SPEAr310 and SPEAr320arch/arm/boot/dts/spear310.dtsi arch/arm/boot/dts/spear320.dtsi+2 -00 replies
5/6irq: spear-shirq: Add support for IRQ 0..6drivers/irqchip/spear-shirq.c+2 -02 replies
6/6ARM: dts: spear3xx: Add spear320s dtsiarch/arm/boot/dts/spear320s.dtsi+24 -00 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchViresh KumarLinus WalleijArnd Bergmann
SeriesA-b
1/6
2/6
3/6
4/6
5/6A-b A-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/6] spear: Fix SPEAr3XX plgpio support

Hi,

This patch series fixes the plgpio support on SPEAr3xx SOCs.

The first four patches of this series fixes a ressources sharing issue between the plgpio driver and the pinmux driver.
Indeed, these two drivers can use the same IO address range on some SPEAr3xx SOCs.
To solve the issue, a regmap (syscon managed) is used in both drivers and the plgpio driver can reference the pinmux regmap to use it.

The second part of this series is related to IRQs. The plgpio on SPEAr320s SOC uses an IRQ line in the reserve range (from SPEAr320 point of view).
This issue is fixed enabling all the 'reserved' IRQs and adding a dtsi file for the SPEAr320s with the correct interrupt for the plgpio node.

Best regards,
Herve

Herve Codina (6):
pinctrl: spear: spear: Convert to regmap
pinctrl: spear: plgpio: Convert to regmap
pinctrl: spear: plgpio: Introduce regmap phandle
ARM: dts: spear3xx: Use plgpio regmap in SPEAr310 and SPEAr320
irq: spear-shirq: Add support for IRQ 0..6
ARM: dts: spear3xx: Add spear320s dtsi

 arch/arm/boot/dts/spear310.dtsi        |   1 +
 arch/arm/boot/dts/spear320.dtsi        |   1 +
 arch/arm/boot/dts/spear320s.dtsi       |  24 ++++
 drivers/irqchip/spear-shirq.c          |   2 +
 drivers/pinctrl/spear/pinctrl-plgpio.c | 148 +++++++++++++++----------
 drivers/pinctrl/spear/pinctrl-spear.c  |  10 +-
 drivers/pinctrl/spear/pinctrl-spear.h  |  12 +-
 7 files changed, 131 insertions(+), 67 deletions(-)
 create mode 100644 arch/arm/boot/dts/spear320s.dtsi
Signature · 1 line
2.31.1