ARM Sunxi Platform Development
 help / color / mirror / Atom feed
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 v6 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board
Date: Thu, 26 Nov 2026 20:55:14 +0000	[thread overview]
Message-ID: <sashiko-outbox-236178@kernel.org> (raw)
In-Reply-To: <20261126-a733-cubie-a7s-dt-v6-3@gmail.com>

Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [High] arm64: dts: allwinner: unbound x-powers,axp318w PMIC defers all
  consumers
- [High] arm64: dts: allwinner: pio bank supplies program inverted A733
  IO bias mode
- [Low] arm64: dts: allwinner: undocumented allwinner,sun60i-a733-uart
  compatible
- [Low] arm64: dts: allwinner: missing voltage range on reg_eldo1 in
  cubie-a7s
--

commit bf6c15da857b8c21da3e29b02171cb433eb632f0
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,
enabling the serial console, AXP318W PMIC, microSD slot, I2C0 EEPROM, and
GPIO LEDs.

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..98a878a2d739b
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts

[ ... ]

> +&pio {
> +	vcc-pb-supply = <&reg_swout2>;	/* via VCC-IO */
> +	vcc-pc-supply = <&reg_cldo5>;
> +	vcc-pd-supply = <&reg_swout1>;
> +	vcc-pe-supply = <&reg_bldo1>;
> +	/* PF uses VCC-IO at 3.3 V, with CLDO5 as the 1.8 V input. */
> +	vcc-pf-supply = <&reg_swout2>;
> +	vcc-pg-supply = <&reg_aldo1>;
> +	vcc-ph-supply = <&reg_swout2>;
> +	vcc-pj-supply = <&reg_swout1>;
> +	vcc-pk-supply = <&reg_bldo1>;
> +};

[Severity: High]
Will wiring vcc-pb-supply through vcc-pk-supply on pio program inverted
1.8V/3.3V I/O bias settings for banks PB through PK?

In drivers/pinctrl/sunxi/pinctrl-sun60i-a733.c, a733_pinctrl_data still
uses BIAS_VOLTAGE_PIO_POW_MODE_SEL rather than
BIAS_VOLTAGE_PIO_POW_MODE_CTL_INV, so sunxi_pinctrl_set_io_bias_cfg()
writes un-inverted 1.8V/3.3V withstand bits into
PIO_NCAT3_POW_MOD_SEL_REG whenever a pin in those banks is requested.
In addition, reg_swout1 and reg_swout2 omit microvolt bounds and have no
input supply property on axp318w linking them to reg_dcdc1, causing
regulator_get_voltage() on those switches to return -EINVAL.

> +&r_i2c0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&r_i2c0_pl_pins>;
> +	status = "okay";
> +
> +	axp318w: pmic@36 {
> +		compatible = "x-powers,axp318w";
> +		reg = <0x36>;
> +		interrupt-parent = <&nmi_intc>;
> +		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
> +		interrupt-controller;
> +		#interrupt-cells = <1>;
> +
> +		aldo156in-supply = <&reg_ps>;
> +		aldo234in-supply = <&reg_aldo1>;
> +		bldoin-supply = <&reg_ldo_input>;
> +		cldoin-supply = <&reg_ldo_input>;
> +		dldoin-supply = <&reg_ps>;
> +		eldoin-supply = <&reg_dcdc9>;
> +		ips-supply = <&reg_ps>;
> +		vin19-supply = <&reg_ps>;
> +		vin23-supply = <&reg_ps>;
> +		vin45-supply = <&reg_ps>;
> +		vin678-supply = <&reg_ps>;

[Severity: High]
As reported by Chen-Yu Tsai on v5 [1], does pmic@36 using the
undocumented and unsupported "x-powers,axp318w" compatible cause all its
regulator consumers to defer probe permanently?

No in-tree MFD or regulator driver matches "x-powers,axp318w", and
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml does not
document that compatible, the grouped supply properties (aldo156in-supply,
aldo234in-supply, vin19-supply, vin23-supply, vin45-supply,
vin678-supply), or the dcdc9, swout1, and swout2 regulator nodes.
Because pmic@36 never binds and never registers its child regulators,
of_regulator_dev_lookup() finds the unpopulated DT regulator nodes and
returns -EPROBE_DEFER whenever uart0, mmc0, i2c0, eeprom@50, or the LEDs
request their supplies or pins through pio and r_pio.

[ ... ]

> +			reg_eldo1: eldo1 {
> +				regulator-name = "vdd2l-lpddr";
> +				regulator-always-on;
> +			};

[Severity: Low]
As reported by Andre Przywara on v4 [2], should reg_eldo1 specify
regulator-min-microvolt and regulator-max-microvolt bounds for the
vdd2l-lpddr rail?

[ ... ]

> +&uart0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&uart0_pb_pins>;
> +	status = "okay";
> +};

[Severity: Low]
Does enabling uart0 from sun60i-a733.dtsi cause dtbs_check validation
failures because "allwinner,sun60i-a733-uart" is not documented in
Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml?

[1] https://lore.kernel.org/r/CAGb2v64p4GvDMDKzDLfedDQCexD+=gu3+YxMAt=ARj4bZxR_eA@mail.gmail.com
[2] https://lore.kernel.org/r/20261122003932.568c099c@ryzen.lan

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-a733-cubie-a7s-dt-v6-0@gmail.com?part=3

  reply	other threads:[~2026-11-26 20:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 20:35 [PATCH v6 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Enzo Adriano
2026-11-26 20:35 ` [PATCH v6 1/5] dt-bindings: arm: sunxi: document Radxa Cubie A7A, A7S and A7Z Enzo Adriano
2026-11-26 20:35 ` [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
2026-11-26 20:52   ` sashiko-bot
2026-11-26 20:35 ` [PATCH v6 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
2026-11-26 20:55   ` sashiko-bot [this message]
2026-11-26 20:35 ` [PATCH v6 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board Enzo Adriano
2026-11-26 20:53   ` sashiko-bot
2026-11-26 20:36 ` [PATCH v6 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board Enzo Adriano
2026-11-26 20:43   ` 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-236178@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