Devicetree
 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; 6+ 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] 6+ messages in thread

* [PATCH v3 1/2] arm64: dts: allwinner: sun55i-a523: add I2C0 and I2C1 pin groups
  2026-12-04 16:01 [PATCH v3 0/2] arm64: dts: allwinner: add Teclast P85T (A523) support Mikhail Kalashnikov
@ 2026-12-04 16:01 ` 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
  1 sibling, 1 reply; 6+ 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

Add the pin groups for the I2C0 (PH0/PH1) and I2C1 (PH2/PH3) controllers
that are used on some A523 boards.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
Signed-off-by: Mikhail Kalashnikov <iuncuim@gmail.com>
---
 arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
index ced544154..eda571c8b 100644
--- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
@@ -156,6 +156,20 @@ pio: pinctrl@2000000 {
 			interrupt-controller;
 			#interrupt-cells = <3>;
 
+			/omit-if-no-ref/
+			i2c0_pins: i2c0-pins {
+				pins = "PH0", "PH1";
+				function = "i2c0";
+				allwinner,pinmux = <2>;
+			};
+
+			/omit-if-no-ref/
+			i2c1_pins: i2c1-pins {
+				pins = "PH2", "PH3";
+				function = "i2c1";
+				allwinner,pinmux = <2>;
+			};
+
 			/omit-if-no-ref/
 			i2s2_pi_pins: i2s2-pi-pins {
 				pins = "PI2", "PI3", "PI4", "PI5";
-- 
2.56.1


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

* [PATCH v3 2/2] arm64: dts: allwinner: add Teclast P85T tablet
  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 16:01 ` Mikhail Kalashnikov
  2026-12-04 16:27   ` sashiko-bot
  2026-12-04 17:49   ` Andre Przywara
  1 sibling, 2 replies; 6+ 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

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 <iuncuim@gmail.com>
---
 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 <iuncuim@gmail.com>
+ */
+
+/dts-v1/;
+
+#include "sun55i-a523.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/ {
+	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 = <&reg_aldo3>;
+		gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>;	/* PL7 */
+		enable-active-high;
+	};
+};
+
+&gpu {
+	mali-supply = <&reg_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 = <&reg_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 = <&reg_cldo3>;
+	cd-gpios = <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PF6 */
+	bus-width = <4>;
+	status = "okay";
+};
+
+&mmc1 {
+	vmmc-supply = <&reg_vmmc1>;
+	vqmmc-supply = <&reg_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 = <&reg_cldo3>;
+	vqmmc-supply = <&reg_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 = <&reg_cldo3>;
+	vcc-pc-supply = <&reg_cldo1>;
+	vcc-pf-supply = <&reg_cldo3>;
+	vcc-pg-supply = <&reg_bldo1>;
+	vcc-ph-supply = <&reg_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 = <&reg_vcc5v>;
+		vin2-supply = <&reg_vcc5v>;
+		vin3-supply = <&reg_vcc5v>;
+		vin4-supply = <&reg_vcc5v>;
+		aldoin-supply = <&reg_vcc5v>;
+		bldoin-supply = <&reg_vcc5v>;
+		cldoin-supply = <&reg_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 = <&reg_vcc5v>;
+		vin2-supply = <&reg_vcc5v>;
+		vin3-supply = <&reg_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 = <&reg_aldo3>;
+ */
+	vcc-pm-supply = <&reg_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";
+};
-- 
2.56.1


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

* Re: [PATCH v3 2/2] arm64: dts: allwinner: add Teclast P85T tablet
  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
  2026-12-04 17:49   ` Andre Przywara
  1 sibling, 0 replies; 6+ messages in thread
From: sashiko-bot @ 2026-12-04 16:27 UTC (permalink / raw)
  To: Mikhail Kalashnikov; +Cc: devicetree, linux-sunxi, robh, conor+dt

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 = <&reg_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 = <&reg_cldo3>;
> +	vcc-pc-supply = <&reg_cldo1>;
> +	vcc-pf-supply = <&reg_cldo3>;
> +	vcc-pg-supply = <&reg_bldo1>;
> +	vcc-ph-supply = <&reg_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

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

* Re: [PATCH v3 1/2] arm64: dts: allwinner: sun55i-a523: add I2C0 and I2C1 pin groups
  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
  0 siblings, 0 replies; 6+ messages in thread
From: Andre Przywara @ 2026-12-04 17:20 UTC (permalink / raw)
  To: Mikhail Kalashnikov, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
  Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel

Hi,

On 12/4/26 17:01, Mikhail Kalashnikov wrote:
> Add the pin groups for the I2C0 (PH0/PH1) and I2C1 (PH2/PH3) controllers
> that are used on some A523 boards.
> 
> Assisted-by: OpenCode:DeepSeek-V4.1-Flash
> Signed-off-by: Mikhail Kalashnikov <iuncuim@gmail.com>

Looks the same as what I checked before against the manual, just with 
the bias and drive strength remove, so:

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Cheers,
Andre

> ---
>   arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 14 ++++++++++++++
>   1 file changed, 14 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> index ced544154..eda571c8b 100644
> --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> @@ -156,6 +156,20 @@ pio: pinctrl@2000000 {
>   			interrupt-controller;
>   			#interrupt-cells = <3>;
>   
> +			/omit-if-no-ref/
> +			i2c0_pins: i2c0-pins {
> +				pins = "PH0", "PH1";
> +				function = "i2c0";
> +				allwinner,pinmux = <2>;
> +			};
> +
> +			/omit-if-no-ref/
> +			i2c1_pins: i2c1-pins {
> +				pins = "PH2", "PH3";
> +				function = "i2c1";
> +				allwinner,pinmux = <2>;
> +			};
> +
>   			/omit-if-no-ref/
>   			i2s2_pi_pins: i2s2-pi-pins {
>   				pins = "PI2", "PI3", "PI4", "PI5";


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

* Re: [PATCH v3 2/2] arm64: dts: allwinner: add Teclast P85T tablet
  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
@ 2026-12-04 17:49   ` Andre Przywara
  1 sibling, 0 replies; 6+ messages in thread
From: Andre Przywara @ 2026-12-04 17:49 UTC (permalink / raw)
  To: Mikhail Kalashnikov, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
  Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel

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 <iuncuim@gmail.com>

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 <andre.przywara@arm.com>

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 <iuncuim@gmail.com>
> + */
> +
> +/dts-v1/;
> +
> +#include "sun55i-a523.dtsi"
> +
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/interrupt-controller/irq.h>
> +
> +/ {
> +	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 = <&reg_aldo3>;
> +		gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>;	/* PL7 */
> +		enable-active-high;
> +	};
> +};
> +
> +&gpu {
> +	mali-supply = <&reg_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 = <&reg_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 = <&reg_cldo3>;
> +	cd-gpios = <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PF6 */
> +	bus-width = <4>;
> +	status = "okay";
> +};
> +
> +&mmc1 {
> +	vmmc-supply = <&reg_vmmc1>;
> +	vqmmc-supply = <&reg_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 = <&reg_cldo3>;
> +	vqmmc-supply = <&reg_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 = <&reg_cldo3>;
> +	vcc-pc-supply = <&reg_cldo1>;
> +	vcc-pf-supply = <&reg_cldo3>;
> +	vcc-pg-supply = <&reg_bldo1>;
> +	vcc-ph-supply = <&reg_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 = <&reg_vcc5v>;
> +		vin2-supply = <&reg_vcc5v>;
> +		vin3-supply = <&reg_vcc5v>;
> +		vin4-supply = <&reg_vcc5v>;
> +		aldoin-supply = <&reg_vcc5v>;
> +		bldoin-supply = <&reg_vcc5v>;
> +		cldoin-supply = <&reg_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 = <&reg_vcc5v>;
> +		vin2-supply = <&reg_vcc5v>;
> +		vin3-supply = <&reg_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 = <&reg_aldo3>;
> + */
> +	vcc-pm-supply = <&reg_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";
> +};


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

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

Thread overview: 6+ 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 16:27   ` sashiko-bot
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