From: Andre Przywara <andre.przywara@arm.com>
To: Alastair D'Silva <alastair@d-silva.org>,
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: Jerome Brunet <jbrunet@baylibre.com>, Yixun Lan <dlan@gentoo.org>,
Enzo Adriano <enzo.adriano.code@gmail.com>,
Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>,
linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev
Subject: Re: [PATCH 7/7] pinctrl: sunxi: add support for the Allwinner A733
Date: Wed, 25 Nov 2026 23:31:30 +0000 [thread overview]
Message-ID: <b9220cf0-ad6b-4719-aa67-154666c788ea@arm.com> (raw)
In-Reply-To: <20261125115703.3724690-1-alastair@d-silva.org>
Hi Alastair,
On 11/25/26 12:57, Alastair D'Silva wrote:
> Hi Andre,
>
> Two issues showed up while testing this A733 pinctrl series on the
> OrangePi 4 Pro:
While it's the right idea to reply to the patch that introduces some
problematic behaviour, there are other things to consider here:
> 1. PIO_POW_MOD_SEL (0x0040) on A733 uses 2 bits per bank instead of
But we know that for a while now...
> 1 bit. With BIAS_VOLTAGE_PIO_POW_MODE_SEL, banks are written at the
> wrong bit offset and left misconfigured (for example, bank H stays in
> 1.8V mode when supplied at 3.3V, breaking RGMII Gigabit TX).
> Adding a 2-bit variant (writing 0b01 per bank with mask
> 0x3U << (2 * bank)) enables hardware auto-detect from PIO_POW_VAL
> and fixes 3.3V RGMII TX (also addressed in Vinicius Pedrosa's
> follow-up series).
Yes, Vinicius did the right thing, since this patch you reply to here
has already been merged. If you want to support his series, please reply
to the specific patch *there*, ideally with a Reviewed-by:, or at least
with a Tested-by.
Replying to this old patch here is then not too useful.
>
> 2. PA has 0 pins on A733, so PB..PK are hardware banks 1..10 while
> irq_banks = 10 maps logical IRQ banks 0..9. Without .irq_bank_map
> and sunxi_irq_hw_bank_num() in sunxi_irq_base_reg(), logical IRQ
> bank 0 (PB) accesses PA's IRQ registers (0xc0) instead of PB's
> (0x140). Adding:
> static const unsigned int a733_irq_bank_map[] = {
> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
> };
> and using sunxi_irq_hw_bank_num(pctl->desc, bank) inside
> sunxi_irq_base_reg() fixes the bank offset.
Again this is an issue we know about for a while, and for which patches
are on the list. Please look at them, they solve this problem in a
different way.
> Also, in patch 4/7, sunxi_grp_config_reg() takes an unused
> `const struct sunxi_pinctrl *pctl` parameter that can be dropped.
This again is an issue in a patch that is already merged. If you want
that fixed, you need to send a patch on top of v7.4-rc1, and send it
with a Fixes: tag, so that this can be remedied before the release.
If you just want to report this issue, do this as a reply to that
specific patch, with the original patch text cited, and your report
inline, directly after the problematic line. After all we have this well
hung email patch submission system, to make this very clear and
transparent.
Cheers,
Andre
>
> Tested on OrangePi 4 Pro (Allwinner A733).
>
> Thanks,
> Alastair
next prev parent reply other threads:[~2026-11-25 23:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 13:35 [PATCH 0/7] pinctrl: sunxi: Add Allwinner A733 support Andre Przywara
2026-09-10 13:35 ` [PATCH 1/7] pinctrl: sunxi: rename SUNXI_PINCTRL_NEW_REG_LAYOUT Andre Przywara
2026-09-10 13:35 ` [PATCH 2/7] pinctrl: sunxi: only use PortK special handling on A523 Andre Przywara
2026-09-10 14:56 ` Chen-Yu Tsai
2026-09-10 13:35 ` [PATCH 3/7] pinctrl: sunxi: refactor IRQ register accessors Andre Przywara
2026-09-10 13:35 ` [PATCH 4/7] pinctrl: sunxi: support A733 generation MMIO register layout Andre Przywara
2026-09-10 14:05 ` sashiko-bot
2026-09-10 13:35 ` [PATCH 5/7] dt-bindings: pinctrl: add compatible for Allwinner A733 Andre Przywara
2026-09-10 13:35 ` [PATCH 6/7] pinctrl: sunxi: a523-r: add a733-r compatible string Andre Przywara
2026-09-10 14:15 ` sashiko-bot
2026-09-10 13:35 ` [PATCH 7/7] pinctrl: sunxi: add support for the Allwinner A733 Andre Przywara
2026-09-10 14:30 ` sashiko-bot
2026-11-25 11:57 ` Alastair D'Silva
2026-11-25 23:31 ` Andre Przywara [this message]
2026-09-16 17:10 ` [PATCH 0/7] pinctrl: sunxi: Add Allwinner A733 support Linus Walleij
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=b9220cf0-ad6b-4719-aa67-154666c788ea@arm.com \
--to=andre.przywara@arm.com \
--cc=alastair@d-silva.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=enzo.adriano.code@gmail.com \
--cc=jbrunet@baylibre.com \
--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-sunxi@lists.linux.dev \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=vinicius.eduardo.pedrosa@gmail.com \
--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