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 v7 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board
Date: Thu, 03 Dec 2026 17:45:19 +0000 [thread overview]
Message-ID: <sashiko-outbox-248299@kernel.org> (raw)
In-Reply-To: <20261203-a733-cubie-a7s-dt-v7-3@gmail.com>
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [High] arm64: dts: allwinner: pio missing 11th IRQ breaks dtbs_check
and PF6 CD IRQ
- [High] arm64: dts: allwinner: unbound axp318w PMIC breaks dtbs_check
and defers boot
- [High] arm64: dts: allwinner: pio bank supplies program inverted A733
IO bias mode
- [Low] arm64: dts: allwinner: undocumented sun60i-a733-uart compatible
in dtsi
--
commit c275314e0fa3c3cd640e6f0145400e425f3d8d31
Author: Enzo Adriano <enzo.adriano.code@gmail.com>
arm64: dts: allwinner: add Radxa Cubie A7S board
This commit adds the initial Devicetree for the Radxa Cubie A7S board
using the Allwinner A733 SoC, enabling the serial console, AXP318W PMIC,
microSD slot, EEPROM, and status LEDs, and adds it to the build.
Link: https://dl.radxa.com/cubie/a7s/hw/radxa_cubie_a7s_schematic_v1.10.pdf
Link: https://github.com/radxa/allwinner-device/blob/6d911d1582dcccdb5a4c38be8d3c1ee851019795/configs/cubie_a7s/linux-5.15/board.dts#L372-L384
> diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
> new file mode 100644
> index 0000000000000..9f71006170382
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
[ ... ]
> +&mmc0 {
> + bus-width = <4>;
> + cap-mmc-highspeed;
> + cap-sd-highspeed;
> + cd-gpios = <&pio 5 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PF6 */
> + disable-wp;
> + vmmc-supply = <®_swout2>;
> + status = "okay";
> +};
[Severity: High]
Does PF6 card-detect break at runtime, and does make dtbs_check fail,
because pio in sun60i-a733.dtsi lists only 10 interrupts?
Documentation/devicetree/bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml
requires 11 interrupts for allwinner,sun60i-a733-pinctrl, matching commit
11f25ac56372 ("dt-bindings: pinctrl: sun55i-a523: increase IRQ banks
number"), which reserves slot 0 for unimplemented Port A.
Without that first entry, sunxi_pinctrl_init_with_flags() loads PF's
GIC_SPI 77 into pctl->irq[4] instead of pctl->irq[5]. When PF6 asserts
GIC_SPI 77, sunxi_pinctrl_irq_handler() matches bank 4 and reads PE's
status register instead of PF's, leaving PF's level-triggered interrupt
unacknowledged and never dispatching the card-detect IRQ to mmc0.
> +
> +&pio {
> + vcc-pb-supply = <®_swout2>; /* via VCC-IO */
> + vcc-pc-supply = <®_cldo5>;
> + vcc-pd-supply = <®_swout1>;
> + vcc-pe-supply = <®_bldo1>;
> + /* PF uses VCC-IO at 3.3 V, with CLDO5 as the 1.8 V input. */
> + vcc-pf-supply = <®_swout2>;
> + vcc-pg-supply = <®_aldo1>;
> + vcc-ph-supply = <®_swout2>;
> + vcc-pj-supply = <®_swout1>;
> + vcc-pk-supply = <®_bldo1>;
> +};
[Severity: High]
Will wiring vcc-pb-supply through vcc-pk-supply program inverted I/O
voltage modes on the A733 pin banks?
a733_pinctrl_data in drivers/pinctrl/sunxi/pinctrl-sun60i-a733.c still
uses BIAS_VOLTAGE_PIO_POW_MODE_SEL rather than
BIAS_VOLTAGE_PIO_POW_MODE_CTL_INV, as updated for A523 in commit
ef56085dfd1d ("pinctrl: sunxi: A523: fix voltage withstand encoding").
Once these bank supplies resolve, sunxi_pinctrl_set_io_bias_cfg() writes
non-inverted bits to PIO_NCAT3_POW_MOD_SEL_REG and skips
PIO_POW_MOD_CTL_OFS, setting 1.8 V mode on 3.3 V banks and 3.3 V mode on
1.8 V banks.
> +
> +&r_i2c0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&r_i2c0_pl_pins>;
> + status = "okay";
> +
> + pmic@36 {
> + compatible = "x-powers,axp318w";
> + reg = <0x36>;
> + interrupts-extended = <&nmi_intc 0 IRQ_TYPE_LEVEL_LOW>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + aldo156in-supply = <®_ps>;
> + aldo234in-supply = <®_aldo1>;
[Severity: High]
As reported by Chen-Yu Tsai on v5 [1], is x-powers,axp318w still missing
both its Devicetree binding and driver in this tree?
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml does not
document x-powers,axp318w, its grouped supply properties, or the
dcdc9/swout1/swout2 regulator subnodes, so make dtbs_check fails.
At runtime, no driver matches x-powers,axp318w, so none of its regulators
register. of_regulator_dev_lookup() then returns -EPROBE_DEFER for every
consumer referencing these phandles, permanently deferring uart0, mmc0,
i2c0, eeprom@50, and gpio-leds.
[ ... ]
> +&uart0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&uart0_pb_pins>;
> + status = "okay";
> +};
[Severity: Low]
Does enabling uart0 and building sun60i-a733-cubie-a7s.dtb fail make
dtbs_check because allwinner,sun60i-a733-uart is undocumented?
sun60i-a733.dtsi uses compatible = "allwinner,sun60i-a733-uart",
"snps,dw-apb-uart" on the UART nodes, but
Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml does not
list allwinner,sun60i-a733-uart.
[1] https://lore.kernel.org/r/CAGb2v64p4GvDMDKzDLfedDQCexD+=gu3+YxMAt=ARj4bZxR_eA@mail.gmail.com
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-a733-cubie-a7s-dt-v7-0@gmail.com?part=3
next prev parent reply other threads:[~2026-12-03 17:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 16:24 [PATCH v7 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Enzo Adriano
2026-12-03 16:24 ` [PATCH v7 1/5] dt-bindings: arm: sunxi: document Radxa Cubie A7A, A7S and A7Z Enzo Adriano
2026-12-03 16:25 ` [PATCH v7 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
2026-12-03 17:12 ` sashiko-bot
2026-12-03 16:25 ` [PATCH v7 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
2026-12-03 17:45 ` sashiko-bot [this message]
2026-12-03 16:31 ` [PATCH v7 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board Enzo Adriano
2026-12-03 16:31 ` [PATCH v7 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board Enzo Adriano
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-248299@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