From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A045B606A32C for ; Fri, 4 Dec 2026 17:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ILA1DPSZ; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=F3mAKCVp DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=ZUwbaG9ZgR+ssYVNsxnVtoHUsFkyZst3w0ofQpR3MpY=; b=ILA1DPSZGiRzQ2 z2pGc6ZEbplorZVwtCOd4fJzOnxtPvoHjCI5jmHOLdDASbdL2xAWIoJccACjjFBfkArHECfoK1M4c Xhgyl7AkIHFcsccfbyvX4/mdQBUGlNKvE3k36GmzfrJSFPdyYJEsWbRb9FJExeRf73D1J5x85x3hU aTsqpvF1OXnDbMkw1Fx+2mIvZ2olu7cDF8GqJT8Wf0U6qDxSb98xCLHt2eHvGO222lmmBf2DJa3Ri 3KYA7TTnmpMRYT1tDnQoqSz6AgNdGC/6B9w0H0lYYixXVSUr5/muTE6O+W3ANiiwLGPjpEu1NHxQD Z4wlhQPO4m1pX+qViFiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZXPZ-0000000168P-2FEQ; Fri, 04 Dec 2026 17:49:33 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZXPC-0000000165E-1NIC for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 17:49:32 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CEE7914BF; Fri, 4 Dec 2026 09:49:05 -0800 (PST) Received: from [192.168.178.24] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3FD423F86F; Fri, 4 Dec 2026 09:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796406548; bh=DatLDmctcHlBCrjZba+EN83sy7+Fj2Me4hUAT9zCyKU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=F3mAKCVpSBlDXbyA4e0ohd4c7FJec6Nkidbx+8ECOx7+zq0BDe1IqkGehK92bH97Y 1IiAMbTMsaDlgjZsVVQgKPxRZKTw5mFAdN8eN6L1mZuZNk6iChTUZbtRHiEdvmJaav PuVd78Qit50+2l24oiwy42bF+7IEQcWmQrX4zbss= Message-ID: <74c86391-9eaf-41d7-9ac4-aedaa4de23fd@arm.com> Date: Fri, 4 Dec 2026 18:49:05 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/2] arm64: dts: allwinner: add Teclast P85T tablet To: Mikhail Kalashnikov , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org References: Content-Language: en-GB From: Andre Przywara In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_094914_189912_0D9D7661 X-CRM114-Status: GOOD ( 29.18 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi, On 12/4/26 17:01, Mikhail Kalashnikov wrote: > The Teclast P85T is an 8-inch tablet that was announced in 2023 > based on the Allwinner A523 (sun55i) SoC. > > Hardware summary: > - Allwinner A523, 8x Cortex-A55 (2 clusters) > - 4 GiB LPDDR3 DRAM > - 64 GiB eMMC > - microSD card slot > - AXP717 main PMIC (battery/charger, USB-C power) and AXP323 > companion PMIC > - USB-C port wired to the USB2 OTG controller (also used for charging) > - combined WiFi and Bluetooth module based on AIC8800 (SDIO+UART) > - 800x1280 MIPI-DSI panel; the tablet is known to ship with at least > two panels: JLT080QI26184P31_21D18 and SQ0801_Q4EI317_37A503 > - front camera: GalaxyCore GC030A, 640x480 > - rear camera: GalaxyCore GC02M1, 2 MP > - Silead GSL1680 touchscreen > - MiraMEMS DA280 accelerometer > - secure boot, but takes any key > > This initial submission enables only what mainline supports today: > both PMICs, battery/charger, GPU (Panfrost), eMMC, SD card, > SDIO WiFi (can be used with out of tree driver), USB device (without > otg function), UART0 console, UART1 Bluetooth, I2C0 touchscreen, I2C1 > accelerometer and the RTC with the external 32 kHz oscillator. > > Display (DE/TCON/DSI), PWM backlight, audio codec, cameras (CSI/VIN) > and LRADC keys are deliberately left out, as those blocks don't have a > binding yet. > > 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 in progress. > > Later, a tablet with an Allwinner A537 processor and 3 GB of DRAM was > released under the same name. This version is not supported by mainline. > > Assisted-by: OpenCode:DeepSeek-V4.1-Flash > Signed-off-by: Mikhail Kalashnikov So I went over the nodes, and compared them to what I looked at before. To me it looks like all comments from previous posts have been addressed, and the other nodes look alright. The voltage rails are hard to get right without a schematic or reliable data from the BSP. If it works this way, we leave it like it is, and can fix things later when we learned more. Reviewed-by: Andre Przywara Cheers, Andre > --- > arch/arm64/boot/dts/allwinner/Makefile | 1 + > .../allwinner/sun55i-a523-teclast-p85t.dts | 400 ++++++++++++++++++ > 2 files changed, 401 insertions(+) > create mode 100644 arch/arm64/boot/dts/allwinner/sun55i-a523-teclast-p85t.dts > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile > index d1f768dd6..f297bf77d 100644 > --- a/arch/arm64/boot/dts/allwinner/Makefile > +++ b/arch/arm64/boot/dts/allwinner/Makefile > @@ -64,6 +64,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-2024.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-h.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-plus.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-sp.dtb > +dtb-$(CONFIG_ARCH_SUNXI) += sun55i-a523-teclast-p85t.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun55i-a527-cubie-a5e.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun55i-h728-x96qpro+.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-avaota-a1.dtb > 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 000000000..ff3cf7e0f > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523-teclast-p85t.dts > @@ -0,0 +1,400 @@ > +// SPDX-License-Identifier: (GPL-2.0-only OR MIT) > +/* > + * Copyright (C) 2026 Mikhail Kalashnikov > + */ > + > +/dts-v1/; > + > +#include "sun55i-a523.dtsi" > + > +#include > +#include > + > +/ { > + model = "Teclast P85T"; > + compatible = "teclast,p85t", "allwinner,sun55i-a523"; > + chassis-type = "tablet"; > + > + aliases { > + serial0 = &uart0; > + }; > + > + 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>; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + ext_osc32k: ext-osc32k-clk { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + clock-frequency = <32768>; > + clock-output-names = "ext_osc32k"; > + }; > + > + wifi_pwrseq: pwrseq { > + compatible = "mmc-pwrseq-simple"; > + reset-gpios = <&r_pio 1 1 GPIO_ACTIVE_LOW>; /* PM1 */ > + post-power-on-delay-ms = <200>; > + }; > + > + 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; > + }; > +}; > + > +&gpu { > + mali-supply = <®_dcdc2>; > + status = "okay"; > +}; > + > +&i2c0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c0_pins>; > + clock-frequency = <400000>; > + status = "okay"; > + > + touchscreen@40 { > + compatible = "silead,gsl1680"; > + reg = <0x40>; > + interrupt-parent = <&pio>; > + interrupts = <7 9 IRQ_TYPE_EDGE_FALLING>; /* PH9 */ > + power-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */ > + firmware-name = "gsl1680-teclast-p85t.fw"; > + touchscreen-size-x = <1792>; > + touchscreen-size-y = <1152>; > + touchscreen-inverted-y; > + touchscreen-swapped-x-y; > + silead,max-fingers = <5>; > + avdd-supply = <®_cldo2>; > + }; > +}; > + > +&i2c0_pins { > + drive-strength = <10>; > + bias-pull-up; > +}; > + > +&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 */ > + }; > +}; > + > +&i2c1_pins { > + drive-strength = <10>; > + bias-pull-up; > +}; > + > +&mmc0 { > + vmmc-supply = <®_cldo3>; > + cd-gpios = <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PF6 */ > + bus-width = <4>; > + status = "okay"; > +}; > + > +&mmc1 { > + vmmc-supply = <®_vmmc1>; > + vqmmc-supply = <®_bldo1>; > + mmc-pwrseq = <&wifi_pwrseq>; > + bus-width = <4>; > + non-removable; > + status = "okay"; > + > + wifi@1 { > + reg = <1>; > + interrupt-parent = <&r_pio>; > + interrupts = <1 0 IRQ_TYPE_LEVEL_LOW>; /* PM0 */ > + interrupt-names = "host-wake"; > + }; > +}; > + > +&mmc2 { > + vmmc-supply = <®_cldo3>; > + vqmmc-supply = <®_cldo1>; > + bus-width = <8>; > + non-removable; > + cap-mmc-hw-reset; > + mmc-ddr-1_8v; > + mmc-hs200-1_8v; > + status = "okay"; > +}; > + > +&mmc2_pins { > + drive-strength = <40>; > +}; > + > +&pio { > + vcc-pb-supply = <®_cldo3>; > + vcc-pc-supply = <®_cldo1>; > + vcc-pf-supply = <®_cldo3>; > + vcc-pg-supply = <®_bldo1>; > + vcc-ph-supply = <®_cldo3>; > +}; > + > +&r_i2c0 { > + status = "okay"; > + > + axp717: pmic@34 { > + compatible = "x-powers,axp717"; > + reg = <0x34>; > + interrupt-controller; > + #interrupt-cells = <1>; > + interrupts-extended = <&nmi_intc 0 IRQ_TYPE_LEVEL_LOW>; > + vin1-supply = <®_vcc5v>; > + vin2-supply = <®_vcc5v>; > + vin3-supply = <®_vcc5v>; > + vin4-supply = <®_vcc5v>; > + aldoin-supply = <®_vcc5v>; > + bldoin-supply = <®_vcc5v>; > + cldoin-supply = <®_vcc5v>; > + > + adc { > + compatible = "x-powers,axp717-adc"; > + #io-channel-cells = <1>; > + }; > + > + battery-power { > + compatible = "x-powers,axp717-battery-power-supply"; > + monitored-battery = <&battery>; > + }; > + > + regulators { > + /* Supplies the "little" cluster (1.4 GHz cores) */ > + reg_dcdc1: dcdc1 { > + regulator-always-on; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <1160000>; > + regulator-name = "vdd-cpul"; > + }; > + > + reg_dcdc2: dcdc2 { > + regulator-always-on; > + regulator-min-microvolt = <920000>; > + regulator-max-microvolt = <920000>; > + regulator-name = "vdd-gpu-sys"; > + }; > + > + reg_dcdc3: dcdc3 { > + regulator-always-on; > + regulator-min-microvolt = <1260000>; > + regulator-max-microvolt = <1260000>; > + regulator-name = "vdd-dram"; > + }; > + > + reg_aldo1: aldo1 { > + /* camera sensor AVDD */ > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-name = "avdd-csi"; > + }; > + > + reg_aldo2: aldo2 { > + /* camera sensor IOVDD */ > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "iovdd-csi"; > + }; > + > + reg_aldo3: aldo3 { > + /* > + * supplies the I2C pins for this PMIC > + * and the WiFi module > + */ > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-pl-pm"; > + }; > + > + reg_aldo4: aldo4 { > + regulator-always-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcc-pll-dxco-avcc"; > + }; > + > + reg_bldo1: bldo1 { > + /* WiFi module 1.8V */ > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcc-wifi-1v8"; > + }; > + > + reg_bldo2: bldo2 { > + regulator-always-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcc-dram-1v8"; > + }; > + > + reg_bldo3: bldo3 { > + /* camera sensor DVDD/cameravdd */ > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-name = "vcc-csi"; > + }; > + > + reg_bldo4: bldo4 { > + /* camera sensor DVDD */ > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-name = "dvdd-csi"; > + }; > + > + reg_cldo1: cldo1 { > + /* codec CPVIN, SD/eMMC 1.8V IO */ > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcc-codec-mmc"; > + }; > + > + reg_cldo2: cldo2 { > + /* touch panel supply */ > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-ctp"; > + }; > + > + reg_cldo3: cldo3 { > + /* SD/eMMC VMMC, codec VDD, UART0, g-sensor */ > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-io-mmc"; > + }; > + > + reg_cldo4: cldo4 { > + /* LCD panel supply */ > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-lcd"; > + }; > + > + reg_cpusldo: cpusldo { > + /* supplies the management core */ > + regulator-always-on; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <900000>; > + regulator-name = "vdd-cpus"; > + }; > + }; > + > + usb-power { > + compatible = "x-powers,axp717-usb-power-supply"; > + input-current-limit-microamp = <1750000>; > + }; > + }; > + > + axp323: pmic@36 { > + compatible = "x-powers,axp323"; > + reg = <0x36>; > + #interrupt-cells = <1>; > + interrupt-controller; > + vin1-supply = <®_vcc5v>; > + vin2-supply = <®_vcc5v>; > + vin3-supply = <®_vcc5v>; > + > + regulators { > + aldo1 { > + /* not connected */ > + }; > + > + dldo1 { > + /* not connected */ > + }; > + > + /* Supplies the "big" cluster (1.8 GHz cores) */ > + reg_dcdc1_323: dcdc1 { > + regulator-always-on; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <1160000>; > + regulator-name = "vdd-cpub"; > + }; > + > + /* DCDC2 is polyphased with DCDC1 */ > + > + /* Some RISC-V management core related voltage */ > + reg_dcdc3_323: dcdc3 { > + regulator-always-on; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <900000>; > + regulator-name = "vdd-dnr"; > + }; > + }; > + }; > +}; > + > +&r_pio { > +/* > + * Specifying the supply would create a circular dependency. > + * > + * vcc-pl-supply = <®_aldo3>; > + */ > + vcc-pm-supply = <®_aldo3>; > +}; > + > +&rtc { > + clocks = <&r_ccu CLK_BUS_R_RTC>, <&osc24M>, > + <&r_ccu CLK_R_AHB>, <&ext_osc32k>; > + clock-names = "bus", "hosc", "ahb", "ext-osc32k"; > + assigned-clocks = <&rtc CLK_OSC32K>; > + assigned-clock-rates = <32768>; > +}; > + > +&uart0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart0_pb_pins>; > + status = "okay"; > +}; > + > +&uart1 { > + /* Bluetooth HCI, 4-wire with RTS/CTS */ > + pinctrl-names = "default"; > + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; > + uart-has-rtscts; > + status = "okay"; > +}; > + > +&usb_otg { > + /* > + * The USB-C port is the primary power supply; VBUS control is not > + * wired in mainline (AXP717 has no drivevbus), so the port can only > + * act as a USB device powered from the host side. > + */ > + dr_mode = "peripheral"; > + status = "okay"; > +}; > + > +&usbphy { > + usb0_vbus_det-gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; /* PH13 */ > + status = "okay"; > +};