Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] arm64: dts: allwinner: add Teclast P85T (A523) support
@ 2026-12-04 16:01 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 16:01 ` [PATCH v3 2/2] arm64: dts: allwinner: add Teclast P85T tablet Mikhail Kalashnikov
  0 siblings, 2 replies; 5+ messages in thread
From: Mikhail Kalashnikov @ 2026-12-04 16:01 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
  Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel,
	Andre Przywara

This series adds initial support for the Teclast P85T, an 8-inch tablet
based on the Allwinner A523 (sun55i) SoC.

The vendor-prefix and the arm64 sunxi board compatible patches from v2
are already in mainline (the prefix was merged from Andre's series), so
v3 only carries the two DTS patches.

This initial submission enables only what has a binding today. Display
(DE/TCON/DSI), PWM backlight, audio codec, cameras (CSI/VIN) and LRADC
keys are deliberately left out for now.

The touchscreen needs a firmware extracted from the Android image
gslX680new.ko. The firmware is not part of linux-firmware; it is
available from the gsl-firmware repository [1] as
firmware/linux/silead/gsl1680-teclast-p85t.fw (PR [2]) and must be
installed as /lib/firmware/silead/gsl1680-teclast-p85t.fw. Touch has
been verified on hardware: the raw controller coordinates are 1792x1152,
and after the touchscreen-inverted-y/touchscreen-swapped-x-y properties
the driver reports 1152x1792. The vendor DT models only a single touch
supply (CLDO2), so vddio-supply is omitted.

The battery values are taken from the battery label (5000 mAh, 4.4 V max
charge) and the Android DTB (pmu_runtime_chgcur = <0x320>, i.e. 800 mA
safe charge current).

The tablet uses secure boot, so it needs a signed TOC0 wrapped image to
boot, but it has no key hash burnt into the efuses, so it accepts an
image signed with any key. U-Boot support requires an LPDDR3 driver for
the A523, which will be sent later.

A ready-to-use image with working display, audio, touchscreen and cameras
can be found on the Manjaro forum. Patches will be added as other
contributors add their parts.

Based on 7.4-rc5.

Changes v3~v2:
1) arm64: dts: allwinner: sun55i-a523: add I2C0 and I2C1 pin groups
 - moved drive-strength and bias-pull-up from the SoC dtsi to the board
   DTS, as requested by Chen-Yu
 - dropped Andre's Reviewed-by because the patch changed; please
   re-review

2) arm64: dts: allwinner: add Teclast P85T tablet
 - dropped the AXP323 interrupt, but kept its interrupt-controller
   properties as on the other sun55i boards: the vendor DT only has a
   single line, which is used by the AXP717
 - used interrupts-extended for the AXP717
 - fixed the root node ordering (pwrseq before the regulators)
 - added the missing vcc-pb and vcc-ph supplies
 - dropped the unused axp717_adc label
 - fixed the little-cluster comment (1.4 GHz)
 - added empty AXP323 aldo1/dldo1 nodes so the unused rails are disabled
 - added the touchscreen firmware-name
 - set the mmc2 drive strength to 40 mA, matching the vendor DTB (eMMC
   verified at HS200 150 MHz)
 - documented the two panel variants and both cameras

x) dt-bindings: vendor-prefixes: Add vendor prefix for Teclast
 - already merged from Andre's series, removed from this version

x) dt-bindings: arm: sunxi: Add Teclast P85T tablet
 - already merged, removed from this version

v2: https://lore.kernel.org/linux-sunxi/20261001022415.913959-1-iuncuim@gmail.com/
Changes v2~v1:
1) dt-bindings: vendor-prefixes: Add vendor prefix for Teclast
 - no changes (included for compatibility with Andre's series; differs
   only in the full company name in the description)

2) dt-bindings: arm: sunxi: Add Teclast P85T tablet
 - no changes (included for compatibility with Andre's series)

3) arm64: dts: allwinner: sun55i-a523: add I2C0 and I2C1 pin groups
 - added Reviewed-by from Andre Przywara

4) arm64: dts: allwinner: add Teclast P85T tablet
 - replaced the dummy 1.8V pio-18 regulator with the real PMIC rails
 - dropped reg_dcdc4: no consumers, the kernel would turn it off
 - dropped AXP323 aldo1/dldo1: no consumers - the board is verified
   to work with both rails disabled
 - renamed bldo2 to "vcc-dram-1v8" (needs to be kept always-on)
 - renamed cldo1 from "vcc-codec-sd" to "vcc-codec-mmc"
 - described AXP323 dcdc3 as the RISC-V management core supply, like on
   the other A523 boards
 - USB: removed the inbound 5V rail from usb0_vbus-supply and dropped
   ehci0/ohci0; the port works like peripheral-only, using
   usb0_vbus_det-gpios for VBUS sensing
 - dropped the iio-hwmon node due to invalid values
 - commit message wording: those blocks "don't have a binding yet"

v1: https://lore.kernel.org/linux-sunxi/20260918165414.1129076-1-iuncuim@gmail.com/

[1] https://github.com/onitake/gsl-firmware
[2] https://github.com/onitake/gsl-firmware/pull/271

Mikhail Kalashnikov (2):
  arm64: dts: allwinner: sun55i-a523: add I2C0 and I2C1 pin groups
  arm64: dts: allwinner: add Teclast P85T tablet

 arch/arm64/boot/dts/allwinner/Makefile        |   1 +
 .../allwinner/sun55i-a523-teclast-p85t.dts    | 400 +++++++++++++++++++++
 .../arm64/boot/dts/allwinner/sun55i-a523.dtsi |  14 +
 3 files changed, 415 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun55i-a523-teclast-p85t.dts

-- 
2.56.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-04 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 17:49   ` Andre Przywara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox