All of lore.kernel.org
 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 v5 3/3] arm64: dts: allwinner: add Radxa Cubie A7S board
Date: Mon, 23 Nov 2026 18:11:22 +0000	[thread overview]
Message-ID: <sashiko-outbox-229796@kernel.org> (raw)
In-Reply-To: <20261121-a733-cubie-a7s-dt-v5-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: non-generic osc32k-clk fixed-clock node
  name
- [Low] arm64: dts: allwinner: undocumented allwinner,sun60i-a733-uart
  compatible
--

commit e16e02bf9bff4295531a8fc06d6b6852a523f527
Author: Enzo Adriano <enzo.adriano.code@gmail.com>

arm64: dts: allwinner: add Radxa Cubie A7S board

This commit adds the initial Devicetree source for the Allwinner
A733-based Radxa Cubie A7S board, enabling the UART0 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..7451c00570fb7
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts

[ ... ]

> +	osc32k: osc32k-clk {
> +		compatible = "fixed-clock";
> +		#clock-cells = <0>;
> +		clock-frequency = <32768>;
> +	};

[Severity: Low]
Should this fixed-clock node use a generic node name such as clock-osc32k
or clock-32768?

Documentation/devicetree/bindings/clock/fixed-clock.yaml deprecates node
names that do not match the ^clock-([0-9]+|[a-z0-9-]+)$ pattern.

[ ... ]

> +&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]
Does wiring vcc-pb-supply through vcc-pk-supply on &pio configure inverted
1.8 V and 3.3 V I/O bias modes on the A733 pin banks?

The commit message notes that the A733 pinctrl voltage-mode fix is required
for these bank supply connections, but a733_pinctrl_data in
drivers/pinctrl/sunxi/pinctrl-sun60i-a733.c still uses
BIAS_VOLTAGE_PIO_POW_MODE_SEL instead of BIAS_VOLTAGE_PIO_POW_MODE_CTL_INV.
When pins in banks PB through PK are requested with resolved bank
regulators, sunxi_pinctrl_set_io_bias_cfg() writes un-inverted mode bits to
pow_mod_sel_offset, programming 3.3 V banks for 1.8 V withstand mode and
1.8 V banks for 3.3 V mode.

> +
> +&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>;
> +
> +		regulators {
> +			reg_dcdc1: dcdc1 {

[ ... ]

> +			reg_dcdc9: dcdc9 {
> +				regulator-name = "eldo-input";
> +			};
> +
> +			reg_swout1: swout1 {
> +				regulator-name = "vcc33-lcd";
> +			};
> +
> +			reg_swout2: swout2 {
> +				/* VCC-IO to the console and microSD. */
> +				regulator-name = "vcc-io-card";
> +				regulator-always-on;
> +			};

[Severity: High]
Will any consumer of the axp318w regulators ever finish probing without a
driver or Devicetree binding for x-powers,axp318w?

Neither Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml nor
axp20x_i2c_of_match[] in drivers/mfd/axp20x-i2c.c includes
"x-powers,axp318w" (or the grouped supply properties aldo156in-supply,
aldo234in-supply, vin19-supply, vin23-supply, vin45-supply, vin678-supply
and child regulator nodes dcdc9, swout1, swout2).  Because no driver binds
to pmic@36, none of its child regulators are registered.  When consumers
such as pio, r_pio, uart0, mmc0, i2c0, eeprom@50, and leds request their
bank or device supplies, sunxi_pmx_request() -> regulator_get() ->
of_regulator_dev_lookup() finds the DT regulator node without a registered
regulator device and returns -EPROBE_DEFER instead of falling back to the
dummy regulator, leaving the serial console, microSD slot, EEPROM, and
LEDs permanently deferred while also failing dtbs_check.

[ ... ]

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

[Severity: Low]
Does sun60i-a733-cubie-a7s.dtb fail dtbs_check on the UART nodes inherited
from sun60i-a733.dtsi?

Commit "arm64: dts: allwinner: add A733 SoC description" defines uart0
through uart6 and r_uart0 through r_uart1 in sun60i-a733.dtsi with
compatible = "allwinner,sun60i-a733-uart", "snps,dw-apb-uart", but
"allwinner,sun60i-a733-uart" is not documented in
Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml.

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

  reply	other threads:[~2026-11-23 18:11 UTC|newest]

Thread overview: 15+ 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
2026-11-24 11:02   ` Vinicius Pedrosa
2026-11-24 14:53   ` Andre Przywara
2026-11-24 16:44   ` Chen-Yu Tsai
2026-11-24 20:03     ` Andre Przywara
2026-11-26 20:33       ` Enzo Adriano
2026-11-24 16:46   ` Chen-Yu Tsai
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 [this message]
2026-11-24 16:31   ` Chen-Yu Tsai
2026-11-26 20:33     ` Enzo Adriano
2026-11-26 15:37 ` [PATCH v5 0/3] arm64: dts: allwinner: add A733/Cubie A7S support Norman Herms

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-229796@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.