All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Mikhail Kalashnikov" <iuncuim@gmail.com>
Cc: robh@kernel.org, conor+dt@kernel.org,
	linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org
Subject: Re: [PATCH 4/4] arm64: dts: allwinner: add Teclast P85T tablet
Date: Fri, 18 Sep 2026 17:05:42 +0000	[thread overview]
Message-ID: <20260918170542.A8FD51F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260918165414.1129076-5-iuncuim@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dts: dummy 1.8V regulator used for 3.3V IO banks, causing wrong bias configuration
- [Low] dts: inbound USB-C power mapped to outbound VBUS regulator in usbphy
--

commit 62a9921e9859ecb056d3f2383913082baa7f4de1
Author: Mikhail Kalashnikov <iuncuim@gmail.com>

arm64: dts: allwinner: add Teclast P85T tablet

The Teclast P85T is an 8-inch tablet that was announced in 2023
based on the Allwinner A523 (sun55i) SoC.

> diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523-teclast-p85t.dts b/arch/arm64/boot/dts/allwinner/sun55i-a523-teclast-p85t.dts
> new file mode 100644
> index 0000000000000..38a9c98ecbec6
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523-teclast-p85t.dts
[ ... ]
> +	reg_pio18: pio-18 {
> +		compatible = "regulator-fixed";
> +		regulator-name = "pio-18";
> +		regulator-min-microvolt = <1800000>;
> +		regulator-max-microvolt = <1800000>;
> +		regulator-always-on;
> +	};
[ ... ]
> +&pio {
> +	vcc-pc-supply = <&reg_pio18>;
> +	vcc-pe-supply = <&reg_pio18>;
> +	vcc-pf-supply = <&reg_pio18>;
> +	vcc-pg-supply = <&reg_pio18>;
> +};

[Severity: Medium]
Will configuring these IO bank supplies with a dummy 1.8V fixed regulator cause
incorrect IO bias configuration?

For instance, the PF bank is used by mmc0 (SD card), which physically
requires 3.3V to operate (as correctly identified by its
vmmc-supply = <&reg_cldo3>;).

The Allwinner pinctrl driver reads the voltage from the assigned supply to
configure the IO pad bias registers. Providing a fake 1.8V regulator for a
bank that is physically powered at 3.3V causes the driver to write incorrect
bias values, which might lead to signal integrity issues or pad damage.

Could the real supplies (e.g., reg_cldo3 for 3.3V and reg_cldo1 for 1.8V
from the axp717 PMIC) be used directly? The pinctrl driver requests regulators
lazily, so this shouldn't cause a circular dependency.

[ ... ]
> +			reg_cldo1: cldo1 {
> +				/* codec CPVIN, SD/eMMC 1.8V IO */
> +				regulator-min-microvolt = <1800000>;
> +				regulator-max-microvolt = <1800000>;
> +				regulator-name = "vcc-codec-sd";
> +			};
[ ... ]
> +&usbphy {
> +	usb0_vbus-supply = <&reg_vcc5v>;

[Severity: Low]
Does this correctly assign the inbound board power supply as the outbound
VBUS supply?

reg_vcc5v represents the inbound 5V supply coming from the USB-C connector.
However, usb0_vbus-supply is the regulator that the PHY enables to provide
power out to external devices when operating in host mode.

Since the board is configured purely as a peripheral (no VBUS drive capability),
assigning its main inbound power supply as the PHY's VBUS output seems reversed.

Should usb0_vbus-supply be omitted here since the driver uses other
properties for sensing inbound VBUS?

> +	status = "okay";
> +};

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260918165414.1129076-1-iuncuim@gmail.com?part=4

  reply	other threads:[~2026-09-18 17:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18 16:54 [PATCH 0/4] arm64: dts: allwinner: add Teclast P85T (A523) support Mikhail Kalashnikov
2026-09-18 16:54 ` [PATCH 1/4] dt-bindings: vendor-prefixes: Add vendor prefix for Teclast Mikhail Kalashnikov
2026-09-18 16:54 ` [PATCH 2/4] dt-bindings: arm: sunxi: Add Teclast P85T tablet Mikhail Kalashnikov
2026-09-18 16:54 ` [PATCH 3/4] arm64: dts: allwinner: sun55i-a523: add I2C0 and I2C1 pin groups Mikhail Kalashnikov
2026-09-18 17:36   ` Andre Przywara
2026-09-18 16:54 ` [PATCH 4/4] arm64: dts: allwinner: add Teclast P85T tablet Mikhail Kalashnikov
2026-09-18 17:05   ` sashiko-bot [this message]
2026-09-18 20:08   ` Andre Przywara
2026-09-19  7:14     ` Mikhail Kalashnikov

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=20260918170542.A8FD51F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=iuncuim@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.