From: sashiko-bot@kernel.org
To: "Enzo Adriano" <enzo.adriano.code@gmail.com>
Cc: devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v5 2/3] arm64: dts: allwinner: add A733 SoC description
Date: Mon, 23 Nov 2026 18:01:33 +0000 [thread overview]
Message-ID: <sashiko-outbox-229789@kernel.org> (raw)
In-Reply-To: <20261121-a733-cubie-a7s-dt-v5-2@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm64: dts: allwinner: missing Port A interrupt in A733 pio
node
- [Low] arm64: dts: allwinner: undocumented allwinner,sun60i-a733-uart
compatible
--
commit e06ab06b491f829b4ed6d875edfe27c2c5015fab
Author: Enzo Adriano <enzo.adriano.code@gmail.com>
arm64: dts: allwinner: add A733 SoC description
This commit adds the base Devicetree source include for the Allwinner
A733 SoC, describing the CPUs, GIC, timers, clocks, pin controllers,
UARTs, I2C controllers, MMC controllers, and RTC.
Link: https://gist.githubusercontent.com/apritzel/60fd7379b9560a15b8b352986b69d39f/raw/efd9cdf8f26ba5b0c7e138f093af44a1cf322469/sun60i-a733.dts
Link: https://github.com/radxa/allwinner-bsp/blob/2045a3ca2a01f088c0314dc924bda59d154e363e/drivers/pinctrl/pinctrl-sun60iw2.c#L1591-L1610
> diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
> new file mode 100644
> index 0000000000000..8a258f16751e6
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
[ ... ]
> + pio: pinctrl@2000000 {
> + compatible = "allwinner,sun60i-a733-pinctrl";
> + reg = <0x02000000 0x800>;
> + interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH 0>;
[Severity: High]
Is the Port A interrupt (GIC_SPI 67) missing from the first slot of
pio's interrupts property?
In drivers/pinctrl/sunxi/pinctrl-sunxi-dt.c, prepare_function_table()
starts with irq_bank = 0 and last_bank = 0. Because Port A (bank 0) has
0 pins, the first pin (PB0, bank 1) increments irq_bank to 1, so Ports B
through K are assigned irq_bank 1 through 10 and sunxi_irq_base_reg()
indexes the IRQ registers by that bank number. Omitting GIC_SPI 67
at index 0 shifts pctl->irq[] by one bank, so when a GPIO interrupt fires
on Ports B through K, sunxi_pinctrl_irq_handler() reads the preceding
bank's status register and leaves the interrupt unhandled.
Documentation/devicetree/bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml
also requires 11 interrupts for allwinner,sun60i-a733-pinctrl, matching
6b81aa0c8a4f ("arm64: dts: allwinner: a523: Add missing GPIO interrupt").
[ ... ]
> + uart0: serial@2500000 {
> + compatible = "allwinner,sun60i-a733-uart",
> + "snps,dw-apb-uart";
> + reg = <0x02500000 0x400>;
> + interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH 0>;
> + reg-shift = <2>;
> + reg-io-width = <4>;
> + clocks = <&ccu CLK_BUS_UART0>;
> + resets = <&ccu RST_BUS_UART0>;
> + status = "disabled";
> + };
[Severity: Low]
Is "allwinner,sun60i-a733-uart" documented in
Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml?
Without a binding entry, dtbs_check fails on uart0 through uart6 and
r_uart0 through r_uart1. Other Allwinner arm64 SoC device trees (such as
sun55i-a523.dtsi and sun50i-h616.dtsi) use compatible = "snps,dw-apb-uart"
directly unless the SoC-specific compatible is added to the binding schema.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261121-a733-cubie-a7s-dt-v5-0@gmail.com?part=2
next prev parent reply other threads:[~2026-11-23 18:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 17:42 [PATCH v5 0/3] arm64: dts: allwinner: add A733/Cubie A7S support Enzo Adriano
2026-11-23 17:42 ` [PATCH v5 1/3] dt-bindings: arm: sunxi: document Radxa Cubie A7A and A7S Enzo Adriano
2026-11-23 17:42 ` [PATCH v5 2/3] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
2026-11-23 18:01 ` sashiko-bot [this message]
2026-11-23 17:42 ` [PATCH v5 3/3] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
2026-11-23 18:11 ` sashiko-bot
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=sashiko-outbox-229789@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=enzo.adriano.code@gmail.com \
--cc=linux-sunxi@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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