mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pablo Mazzini <pmazzini@gmail.com>
To: Linus Walleij <linusw@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Chen-Yu Tsai <wens@kernel.org>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Samuel Holland <samuel@sholland.org>
Cc: Pablo Mazzini <pmazzini@gmail.com>,
	Andre Przywara <andre.przywara@arm.com>,
	Alastair D'Silva <alastair@d-silva.org>,
	Norman Herms <dockseed@proton.me>,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-sunxi@lists.linux.dev
Subject: [PATCH v4 0/3] pinctrl: sunxi: number the IRQ banks from the first one that has IRQs
Date: Thu,  3 Dec 2026 02:43:34 +0000	[thread overview]
Message-ID: <20261203024338.13729-1-pmazzini@gmail.com> (raw)

The DT pinctrl helper numbers the first IRQ bank 1 on SoCs without
PortA. The A523 got a DT interrupt for its unimplemented PA bank to work
around that, the A733 would need the same, and on both PK is written
past the end of irq_array.

Number the IRQ banks from the first one that has IRQs, map them to the
hardware with irq_bank_map on the A523 and A733, and drop the PA
interrupt from the binding and the A523 DT. The B288 (IRQ banks on PB,
PD, PF and PG) then needs no made-up interrupt.

v4:
- rebased on the pinctrl fixes branch, where the A733 no longer sets
  irq_read_needs_mux
- 1/3: only start counting the IRQ banks at -1, comment the A523 and
  A733 maps, and explain both in the commit message (Andre)
- 2/3, 3/3: add Fixes tags, reword 3/3 (Andre)
- add the review and test tags

v3 RESEND:
- rebased on v7.4-rc1, no changes
- add Rob's ack on 2/3

v3:
- apply irq_bank_map to the A733 register layout too (Sashiko)

v2:
- give the A523 and A733 an irq_bank_map, and drop the PA interrupt
  from the binding and the A523 DT

Pablo Mazzini (3):
  pinctrl: sunxi: dt: number the IRQ banks from the first one that has
    IRQs
  dt-bindings: pinctrl: sun55i-a523: one interrupt per implemented bank
  arm64: dts: allwinner: a523: drop the PA GPIO interrupt

 .../bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml   | 8 ++++----
 arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi            | 3 +--
 drivers/pinctrl/sunxi/pinctrl-sun55i-a523.c               | 6 +++++-
 drivers/pinctrl/sunxi/pinctrl-sun60i-a733.c               | 6 +++++-
 drivers/pinctrl/sunxi/pinctrl-sunxi-dt.c                  | 4 ++--
 drivers/pinctrl/sunxi/pinctrl-sunxi.h                     | 7 ++++---
 6 files changed, 21 insertions(+), 13 deletions(-)


base-commit: 5ae02132d8038b5290a21e05c0fa5376472c191a
-- 
2.52.1


             reply	other threads:[~2026-12-03  2:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  2:43 Pablo Mazzini [this message]
2026-12-03  2:43 ` [PATCH v4 1/3] pinctrl: sunxi: dt: " Pablo Mazzini
2026-12-03  3:03   ` Pablo Mazzini
2026-12-03  7:01   ` Alastair D'Silva
2026-12-03  2:43 ` [PATCH v4 2/3] dt-bindings: pinctrl: sun55i-a523: one interrupt per implemented bank Pablo Mazzini
2026-12-03  2:43 ` [PATCH v4 3/3] arm64: dts: allwinner: a523: drop the PA GPIO interrupt Pablo Mazzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203024338.13729-1-pmazzini@gmail.com \
    --to=pmazzini@gmail.com \
    --cc=alastair@d-silva.org \
    --cc=andre.przywara@arm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dockseed@proton.me \
    --cc=jernej.skrabec@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=samuel@sholland.org \
    --cc=wens@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®