From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796401654; b=QHWLegNovBt+A8AMUzInBen3SnkFs7KiSiKm6si7/ZSAheutwLMD46nsWqbzlg+U5Kzr ufdiCICmKJFpnAsMBZMIWIn7278XcegpJM1i/5Uc57u+jIoihoLQxicfB9BJCDiwqvOex gzh5tkbWDrG2dHqlbA6PkGVdoLH/NIF5TU55tM+X4BtRuObppGPXNZYnIxTsZQJQ80ThS 3WhquhMS9NTJWrbYZfr5+5bbkaZsz0DKlqSj8dIh1WITkg6DYbAQxy0RLGtMatKJWU7Wf bryozt6y0ceadHq2o5IVwaUS/f5iKAzLoG6uQipk+CW0/oDikHsYd3gzyQxERrfOOkw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796401654; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=IvJxXVbcrpv6NFZPU9II4OGJ+kfPgGSvicq8+DjUC78=; b=UJdbjhvmkqMOZoaAROtxN4T2Omz/grDf60FkrDcJkuJrMiAqvDUTiqXbcxZ21JC5ZWGZ fNGH02DlcV5xzTBsEhn5k6i9PIlgagLBzsNLzCOo2DFENwacWLgHAVqSLVtgap6IMrHOL n5TDJsZ7fUx1L/90ya6yWdpZ+zKLqQj0gHbgpB0WnLt/b7qpt7R85GzHWsc5RB3f1ofLC l+KMvKIVrhBQYFMvbD+DcQ264WF5vYwgzTuGCMsqQP2Z+pe+Dw01n/XqceXYkUSCX9X+B eeXXLzpIqz3vMH0bWTrFXrAaHHWllK/EZEnrR1E/MpoGuhAMmyFBwvjzyqXdREj1WbQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CXeUEXxq; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 523ED606A322; Fri, 4 Dec 2026 16:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CXeUEXxq Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3EF01F000C2; Fri, 4 Dec 2026 16:27:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796401653; bh=IvJxXVbcrpv6NFZPU9II4OGJ+kfPgGSvicq8+DjUC78=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=CXeUEXxqaaNwi/TepB75KsZyNk+KT61jEbMt0f7uuOWPa1zhGyhjpoJiifGtQ1aK1 z+3MyitDoe2lzaytr0rAmWDsp7fBtWJrYkiOCXEtoTUms38aOF6mkRx9kEKEgXhRn9 opFMDHsGRtPsusRAjyFThw8OV6phdvQ+XbcNex/rmD8TLc81RnADCAStjMh2qhg3+B 8R0VdgwjS2xsNtf0QRgsogOGhywp8EtNBu8iFmAJC2DJQy9Vpv+YS7Oqjg2e4wehxK BqAZ+Y7+UT+BDNUwSY5BD2OWK2JjSGM/K0pVYSJsnDn37QQcOF5hVCiJKvw3ylkAos ajx+gW92NnciA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 2/2] arm64: dts: allwinner: add Teclast P85T tablet Reply-To: sashiko-reviews@lists.linux.dev To: "Mikhail Kalashnikov" Cc: devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 16:27:33 +0000 X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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 =3D "simple-battery"; > + constant-charge-current-max-microamp =3D <800000>; > + voltage-max-design-microvolt =3D <4400000>; > + charge-full-design-microamp-hours =3D <5000000>; > + energy-full-design-microwatt-hours =3D <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 =3D <0>; > + compatible =3D "fixed-clock"; > + clock-frequency =3D <32768>; > + clock-output-names =3D "ext_osc32k"; > + }; [ ... ] > + reg_vcc5v: vcc5v { > + /* board wide 5V supply from the USB-C connector */ > + compatible =3D "regulator-fixed"; > + regulator-name =3D "vcc-5v"; > + regulator-min-microvolt =3D <5000000>; > + regulator-max-microvolt =3D <5000000>; > + regulator-always-on; > + }; > + > + reg_vmmc1: vmmc1 { > + compatible =3D "regulator-fixed"; > + regulator-name =3D "vcc-wifi"; > + regulator-min-microvolt =3D <3300000>; > + regulator-max-microvolt =3D <3300000>; > + vin-supply =3D <®_aldo3>; > + gpio =3D <&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 =3D "default"; > + pinctrl-0 =3D <&i2c1_pins>; > + status =3D "okay"; > + > + accelerometer@26 { > + compatible =3D "miramems,da280"; > + reg =3D <0x26>; > + interrupt-parent =3D <&pio>; > + interrupts =3D <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=3Dm. [ ... ] > +&pio { > + vcc-pb-supply =3D <®_cldo3>; > + vcc-pc-supply =3D <®_cldo1>; > + vcc-pf-supply =3D <®_cldo3>; > + vcc-pg-supply =3D <®_bldo1>; > + vcc-ph-supply =3D <®_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-ZjiqxFY6L= pOTBYw@mail.gmail.com --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/cover.1796399781.gi= t.iuncuim@gmail.com?part=3D2