From: sashiko-bot@kernel.org
To: "Mikhail Kalashnikov" <iuncuim@gmail.com>
Cc: devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 2/2] arm64: dts: allwinner: add Teclast P85T tablet
Date: Fri, 04 Dec 2026 16:27:33 +0000 [thread overview]
Message-ID: <sashiko-outbox-250186@kernel.org> (raw)
In-Reply-To: <a0d08ce585205ad9ad87951fce292920d437a285.1796399781.git.iuncuim@gmail.com>
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Medium] arm64: dts: allwinner: axp717_battery_set_max_voltage()
rejects 4.4V battery
- [Medium] iio: accel: da280: missing of_match_table breaks DT module
autoloading
- [Low] arm64: dts: allwinner: deprecated non-generic regulator and
clock node names
- [Low] arm64: dts: allwinner: missing PD/PE/PI/PJ/PK bank supplies in
pio node
--
commit ab575b5a07e93831c014909186adc637bb50ed97
Author: Mikhail Kalashnikov <iuncuim@gmail.com>
arm64: dts: allwinner: add Teclast P85T tablet
This commit adds initial devicetree support for the Allwinner A523-based
Teclast P85T tablet, enabling its PMICs, battery/charger, GPU, eMMC, SD
card, SDIO WiFi, USB peripheral, UARTs, touchscreen, accelerometer, and
RTC.
> 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..ff3cf7e0f2e44
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523-teclast-p85t.dts
> @@ -0,0 +1,400 @@
[ ... ]
> + battery: battery {
> + compatible = "simple-battery";
> + constant-charge-current-max-microamp = <800000>;
> + voltage-max-design-microvolt = <4400000>;
> + charge-full-design-microamp-hours = <5000000>;
> + energy-full-design-microwatt-hours = <19250000>;
> + };
[Severity: Medium]
Does axp717_battery_set_max_voltage() reject this 4.4V
voltage-max-design-microvolt setting?
In drivers/power/supply/axp20x_battery.c, axp717_battery_set_max_voltage()
only accepts 4000000, 4100000, and 4200000 uV and returns -EINVAL for
4400000 uV. On every boot, axp717_set_battery_info() will log "couldn't
set voltage_max_design" and skip programming AXP717_CV_CHG_SET, leaving
the charger constant-voltage cutoff at its reset or bootloader default.
Supporting 4.4V charging in mainline requires updating
axp717_battery_set_max_voltage() as well.
[ ... ]
> + ext_osc32k: ext-osc32k-clk {
> + #clock-cells = <0>;
> + compatible = "fixed-clock";
> + clock-frequency = <32768>;
> + clock-output-names = "ext_osc32k";
> + };
[ ... ]
> + reg_vcc5v: vcc5v {
> + /* board wide 5V supply from the USB-C connector */
> + compatible = "regulator-fixed";
> + regulator-name = "vcc-5v";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + regulator-always-on;
> + };
> +
> + reg_vmmc1: vmmc1 {
> + compatible = "regulator-fixed";
> + regulator-name = "vcc-wifi";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + vin-supply = <®_aldo3>;
> + gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
> + enable-active-high;
> + };
[Severity: Low]
Should ext-osc32k-clk, vcc5v, and vmmc1 use generic clock-* and
regulator-* node names?
Both Documentation/devicetree/bindings/clock/fixed-clock.yaml and
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml mark
non-generic node names as deprecated, preferring names like clock-32k,
regulator-vcc5v, and regulator-vmmc1.
[ ... ]
> +&i2c1 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c1_pins>;
> + status = "okay";
> +
> + accelerometer@26 {
> + compatible = "miramems,da280";
> + reg = <0x26>;
> + interrupt-parent = <&pio>;
> + interrupts = <7 11 IRQ_TYPE_LEVEL_LOW>; /* PH11 */
> + };
> +};
[Severity: Medium]
Will the da280 driver autoload from this devicetree node when built as a
module?
For devicetree-instantiated I2C devices, i2c_device_uevent() returns
early with only the OF modalias (of:NaccelerometerT(null)Cmiramems,da280)
and never emits i2c:da280. In drivers/iio/accel/da280.c, da280_driver
has no of_match_table and no MODULE_DEVICE_TABLE(of, ...), so udev/kmod
will not load da280.ko on boot under CONFIG_DA280=m.
[ ... ]
> +&pio {
> + vcc-pb-supply = <®_cldo3>;
> + vcc-pc-supply = <®_cldo1>;
> + vcc-pf-supply = <®_cldo3>;
> + vcc-pg-supply = <®_bldo1>;
> + vcc-ph-supply = <®_cldo3>;
> +};
[Severity: Low]
As reported by Chen-Yu Tsai on v2 [1], should &pio also declare supplies
for the remaining five A523 banks (vcc-pd-supply, vcc-pe-supply,
vcc-pi-supply, vcc-pj-supply, and vcc-pk-supply)?
If a pin in any omitted bank is requested later via GPIO or a devicetree
overlay, sunxi_pmx_request() falls back to regulator-dummy, leaving the
PMIC rail disabled and causing sunxi_pinctrl_set_io_bias_cfg() to fail
with -EINVAL without programming the bank I/O voltage bias.
[1] https://lore.kernel.org/r/CAGb2v64H9P9Q+ogGxPRQdzYdzJRwHcs-gK-ZjiqxFY6LpOTBYw@mail.gmail.com
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1796399781.git.iuncuim@gmail.com?part=2
next prev parent reply other threads:[~2026-12-04 16:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 16:01 [PATCH v3 0/2] arm64: dts: allwinner: add Teclast P85T (A523) support Mikhail Kalashnikov
2026-12-04 16:01 ` [PATCH v3 1/2] arm64: dts: allwinner: sun55i-a523: add I2C0 and I2C1 pin groups Mikhail Kalashnikov
2026-12-04 17:20 ` Andre Przywara
2026-12-04 16:01 ` [PATCH v3 2/2] arm64: dts: allwinner: add Teclast P85T tablet Mikhail Kalashnikov
2026-12-04 16:27 ` sashiko-bot [this message]
2026-12-04 17:49 ` Andre Przywara
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-250186@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox