ARM Sunxi Platform Development
 help / color / mirror / Atom feed
* [PATCH 0/2] Add SPC Glee 10.1 A64 board support
@ 2026-09-06 16:05 Juan Carlos Gutiérrez Lavado via B4 Relay
  2026-09-06 16:05 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add SPC Glee 10.1 A64 Juan Carlos Gutiérrez Lavado via B4 Relay
  2026-09-06 16:05 ` [PATCH 2/2] arm64: dts: allwinner: " Juan Carlos Gutiérrez Lavado via B4 Relay
  0 siblings, 2 replies; 6+ messages in thread
From: Juan Carlos Gutiérrez Lavado via B4 Relay @ 2026-09-06 16:05 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Maxime Ripard
  Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel,
	Juan Carlos Gutiérrez Lavado

Add initial mainline support for the SPC Glee 10.1 tablet, based on the
Allwinner A64 and AXP803 PMIC.

The board description covers the 2 GiB DRAM configuration, essential
CPU and system rails, microSD, UART, battery monitoring and USB device
mode. Other peripherals remain disabled until independently validated.

The microSD slot deliberately uses broken-cd and a conservative 25 MHz
limit because its card-detect wiring and higher-speed modes have not been
validated independently. USB is limited to the tested peripheral role.

The exact DTB produced by this series was cold-booted from microSD with
Linux 7.3.0-rc1. The kernel detected all four CPU cores and 2 GiB RAM,
probed the AXP803 over RSB, detected the microSD card, mounted the ext4
root filesystem and started systemd. The boot command line did not use
regulator_ignore_unused. No eMMC access was required.

Validation was run against sunxi/for-next at commit 913f7eda9f3e:

  make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig
  make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image \
       allwinner/sun50i-a64-spc-glee.dtb
  make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \
       DT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/sunxi.yaml \
       dt_binding_check
  make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- W=1 \
       CHECK_DTBS=y allwinner/sun50i-a64-spc-glee.dtb

Signed-off-by: Juan Carlos Gutiérrez Lavado <jcarlosgl96@proton.me>
---
Juan Carlos Gutiérrez Lavado (2):
      dt-bindings: arm: sunxi: Add SPC Glee 10.1 A64
      arm64: dts: allwinner: Add SPC Glee 10.1 A64

 Documentation/devicetree/bindings/arm/sunxi.yaml   |   5 +
 .../devicetree/bindings/vendor-prefixes.yaml       |   2 +
 arch/arm64/boot/dts/allwinner/Makefile             |   1 +
 .../boot/dts/allwinner/sun50i-a64-spc-glee.dts     | 123 +++++++++++++++++++++
 4 files changed, 131 insertions(+)
---
base-commit: 913f7eda9f3e3fb1c67285e144e202494d440049
change-id: 20260906-b4-spc-glee-a64-v1-6e6dba38aa5e

Best regards,
--  
Juan Carlos Gutiérrez Lavado <jcarlosgl96@proton.me>



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

* [PATCH 1/2] dt-bindings: arm: sunxi: Add SPC Glee 10.1 A64
  2026-09-06 16:05 [PATCH 0/2] Add SPC Glee 10.1 A64 board support Juan Carlos Gutiérrez Lavado via B4 Relay
@ 2026-09-06 16:05 ` Juan Carlos Gutiérrez Lavado via B4 Relay
  2026-09-07 17:28   ` Conor Dooley
  2026-09-06 16:05 ` [PATCH 2/2] arm64: dts: allwinner: " Juan Carlos Gutiérrez Lavado via B4 Relay
  1 sibling, 1 reply; 6+ messages in thread
From: Juan Carlos Gutiérrez Lavado via B4 Relay @ 2026-09-06 16:05 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Maxime Ripard
  Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel,
	Juan Carlos Gutiérrez Lavado

From: Juan Carlos Gutiérrez Lavado <jcarlosgl96@proton.me>

Add the Smart Products Connection vendor prefix and the board
compatible for the SPC Glee 10.1 tablet based on the Allwinner A64.

Signed-off-by: Juan Carlos Gutiérrez Lavado <jcarlosgl96@proton.me>
---
 Documentation/devicetree/bindings/arm/sunxi.yaml       | 5 +++++
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml
index f04db28c6..ce425938c 100644
--- a/Documentation/devicetree/bindings/arm/sunxi.yaml
+++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
@@ -902,6 +902,11 @@ properties:
           - const: allwinner,suniv-f1c200s
           - const: allwinner,suniv-f1c100s
 
+      - description: SPC Glee 10.1 A64 tablet
+        items:
+          - const: spc,glee-10-1-a64
+          - const: allwinner,sun50i-a64
+
       - description: SL631 Action Camera with IMX179
         items:
           - const: allwinner,sl631-imx179
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index ba2002969..ff462d6f0 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -1603,6 +1603,8 @@ patternProperties:
     description: Spansion Inc.
   "^sparkfun,.*":
     description: SparkFun Electronics
+  "^spc,.*":
+    description: Smart Products Connection S.A.
   "^spinalhdl,.*":
     description: SpinalHDL
   "^sprd,.*":

-- 
2.55.0



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

* [PATCH 2/2] arm64: dts: allwinner: Add SPC Glee 10.1 A64
  2026-09-06 16:05 [PATCH 0/2] Add SPC Glee 10.1 A64 board support Juan Carlos Gutiérrez Lavado via B4 Relay
  2026-09-06 16:05 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add SPC Glee 10.1 A64 Juan Carlos Gutiérrez Lavado via B4 Relay
@ 2026-09-06 16:05 ` Juan Carlos Gutiérrez Lavado via B4 Relay
  2026-09-06 16:21   ` sashiko-bot
  1 sibling, 1 reply; 6+ messages in thread
From: Juan Carlos Gutiérrez Lavado via B4 Relay @ 2026-09-06 16:05 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Maxime Ripard
  Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel,
	Juan Carlos Gutiérrez Lavado

From: Juan Carlos Gutiérrez Lavado <jcarlosgl96@proton.me>

Add support for the SPC Glee 10.1 tablet based on the Allwinner
A64. Describe the 2 GiB of DRAM, AXP803 PMIC, essential CPU and
system rails, microSD slot, UART console, battery monitoring and USB
peripheral port. Leave eMMC and unverified peripherals disabled.

This configuration was boot-tested from microSD to Arch Linux ARM
userspace without regulator_ignore_unused.

Signed-off-by: Juan Carlos Gutiérrez Lavado <jcarlosgl96@proton.me>
---
 arch/arm64/boot/dts/allwinner/Makefile             |   1 +
 .../boot/dts/allwinner/sun50i-a64-spc-glee.dts     | 123 +++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index aa21f58a4..cc6687b39 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -21,6 +21,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinephone-1.2.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab-early-adopter.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-spc-glee.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h64-remix-mini-pc.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a100-allwinner-perf1.dtb
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-spc-glee.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-spc-glee.dts
new file mode 100644
index 000000000..1ca7c36de
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-spc-glee.dts
@@ -0,0 +1,123 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2026 SPC Glee A64 Linux contributors
+ */
+
+/dts-v1/;
+
+#include "sun50i-a64.dtsi"
+
+/ {
+	model = "SPC Glee 10.1 A64";
+	compatible = "spc,glee-10-1-a64", "allwinner,sun50i-a64";
+	chassis-type = "tablet";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	memory@40000000 {
+		device_type = "memory";
+		reg = <0x40000000 0x80000000>;
+	};
+};
+
+&cpu0 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
+&cpu1 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
+&cpu2 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
+&cpu3 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
+&mmc0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc0_pins>;
+	vmmc-supply = <&reg_dcdc1>;
+	vqmmc-supply = <&reg_dcdc1>;
+	broken-cd;
+	bus-width = <4>;
+	max-frequency = <25000000>;
+	status = "okay";
+};
+
+&r_rsb {
+	status = "okay";
+
+	axp803: pmic@3a3 {
+		compatible = "x-powers,axp803";
+		reg = <0x3a3>;
+		interrupt-parent = <&r_intc>;
+		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
+	};
+};
+
+#include "axp803.dtsi"
+
+&axp_adc {
+	status = "okay";
+};
+
+&battery_power_supply {
+	status = "okay";
+};
+
+&reg_dcdc1 {
+	regulator-always-on;
+	regulator-name = "vcc-3v3";
+};
+
+&reg_dcdc2 {
+	regulator-always-on;
+	regulator-min-microvolt = <1000000>;
+	regulator-max-microvolt = <1300000>;
+	regulator-name = "vdd-cpux";
+};
+
+&reg_dcdc5 {
+	regulator-always-on;
+	regulator-min-microvolt = <1500000>;
+	regulator-max-microvolt = <1500000>;
+	regulator-name = "vcc-dram";
+};
+
+&reg_dcdc6 {
+	regulator-always-on;
+	regulator-min-microvolt = <1100000>;
+	regulator-max-microvolt = <1100000>;
+	regulator-name = "vdd-sys";
+};
+
+&reg_fldo2 {
+	regulator-always-on;
+	regulator-min-microvolt = <1100000>;
+	regulator-max-microvolt = <1100000>;
+	regulator-name = "vdd-cpus";
+};
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_pb_pins>;
+	status = "okay";
+};
+
+&usb_otg {
+	dr_mode = "peripheral";
+	status = "okay";
+};
+
+&usbphy {
+	status = "okay";
+};

-- 
2.55.0



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

* Re: [PATCH 2/2] arm64: dts: allwinner: Add SPC Glee 10.1 A64
  2026-09-06 16:05 ` [PATCH 2/2] arm64: dts: allwinner: " Juan Carlos Gutiérrez Lavado via B4 Relay
@ 2026-09-06 16:21   ` sashiko-bot
  0 siblings, 0 replies; 6+ messages in thread
From: sashiko-bot @ 2026-09-06 16:21 UTC (permalink / raw)
  To: Juan Carlos Gutiérrez Lavado; +Cc: conor+dt, devicetree, linux-sunxi, robh

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Missing sun50i-a64-cpu-opp.dtsi include breaks CPUfreq and thermal cooling
- [Medium] Missing usb_power_supply enablement breaks USB charger detection
--

commit bdf7f6917d0d11f91550b9e8dcb96f41a0c5bde4
Author: Juan Carlos Gutiérrez Lavado <jcarlosgl96@proton.me>

arm64: dts: allwinner: Add SPC Glee 10.1 A64

Add support for the SPC Glee 10.1 tablet based on the Allwinner A64. It
describes essential components including the PMIC, microSD, UART, and USB.

> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-spc-glee.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-spc-glee.dts
> new file mode 100644
> index 0000000000000..1ca7c36de65e2
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-spc-glee.dts
> @@ -0,0 +1,123 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Copyright (C) 2026 SPC Glee A64 Linux contributors
> + */
> +
> +/dts-v1/;
> +
> +#include "sun50i-a64.dtsi"

[Severity: Medium]
Does this board device tree omission break CPUfreq and thermal cooling?

By omitting the sun50i-a64-cpu-opp.dtsi include here, the board device tree
includes the base SoC definitions but lacks the CPU operating points required
for cpufreq and thermal management.

During boot, the thermal and cpufreq-dt drivers will probe the CPU nodes but
find no operating-points-v2 property. This can cause the cpufreq driver to
abort initialization, leaving the CPU pinned to the fixed bootloader
frequency and preventing the registration of CPU cooling devices. The thermal
framework would then be unable to actively throttle the CPU, which may risk
thermal trip shutdowns under load and degrade battery life.

Should the sun50i-a64-cpu-opp.dtsi file be included here?

[ ... ]

> +&usb_otg {
> +	dr_mode = "peripheral";
> +	status = "okay";
> +};
> +
> +&usbphy {
> +	status = "okay";
> +};

[Severity: Medium]
Does enabling the usbphy without enabling the usb_power_supply break USB
charger detection?

The usbphy node is enabled, but the required &usb_power_supply node (which
monitors VBUS on the PMIC) is completely omitted and not linked via
usb0_vbus_power-supply.

Because the AXP803 PMIC's USB power supply node defaults to disabled in
axp803.dtsi, failing to override it to okay in the board file means the AXP
USB power supply driver (axp20x_usb_power) will not probe.

As a result, userspace tools will not know when a USB charger is connected.
Furthermore, without being linked to the usbphy, the USB PHY driver will
forcefully assume VBUS is always present, which could cause erratic USB
peripheral state transitions when unplugged.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260906-b4-spc-glee-a64-v1-v1-0-621df2155e31@proton.me?part=2

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

* Re: [PATCH 1/2] dt-bindings: arm: sunxi: Add SPC Glee 10.1 A64
  2026-09-06 16:05 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add SPC Glee 10.1 A64 Juan Carlos Gutiérrez Lavado via B4 Relay
@ 2026-09-07 17:28   ` Conor Dooley
  2026-09-11 13:56     ` Juan Carlos Gutiérrez
  0 siblings, 1 reply; 6+ messages in thread
From: Conor Dooley @ 2026-09-07 17:28 UTC (permalink / raw)
  To: jcarlosgl96
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Maxime Ripard, devicetree,
	linux-arm-kernel, linux-sunxi, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1951 bytes --]

On Sun, Sep 06, 2026 at 04:05:49PM +0000, Juan Carlos Gutiérrez Lavado via B4 Relay wrote:
> From: Juan Carlos Gutiérrez Lavado <jcarlosgl96@proton.me>
> 
> Add the Smart Products Connection vendor prefix and the board
> compatible for the SPC Glee 10.1 tablet based on the Allwinner A64.
> 
> Signed-off-by: Juan Carlos Gutiérrez Lavado <jcarlosgl96@proton.me>
> ---
>  Documentation/devicetree/bindings/arm/sunxi.yaml       | 5 +++++
>  Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
>  2 files changed, 7 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml
> index f04db28c6..ce425938c 100644
> --- a/Documentation/devicetree/bindings/arm/sunxi.yaml
> +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
> @@ -902,6 +902,11 @@ properties:
>            - const: allwinner,suniv-f1c200s
>            - const: allwinner,suniv-f1c100s
>  
> +      - description: SPC Glee 10.1 A64 tablet
> +        items:
> +          - const: spc,glee-10-1-a64
> +          - const: allwinner,sun50i-a64
> +
>        - description: SL631 Action Camera with IMX179
>          items:
>            - const: allwinner,sl631-imx179
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> index ba2002969..ff462d6f0 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> @@ -1603,6 +1603,8 @@ patternProperties:
>      description: Spansion Inc.
>    "^sparkfun,.*":
>      description: SparkFun Electronics
> +  "^spc,.*":
> +    description: Smart Products Connection S.A.

Typically we look for these to match the vendor's website, which I think
in this case would be onspc?

>    "^spinalhdl,.*":
>      description: SpinalHDL
>    "^sprd,.*":
> 
> -- 
> 2.55.0
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [PATCH 1/2] dt-bindings: arm: sunxi: Add SPC Glee 10.1 A64
  2026-09-07 17:28   ` Conor Dooley
@ 2026-09-11 13:56     ` Juan Carlos Gutiérrez
  0 siblings, 0 replies; 6+ messages in thread
From: Juan Carlos Gutiérrez @ 2026-09-11 13:56 UTC (permalink / raw)
  To: Conor Dooley
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Maxime Ripard, devicetree,
	linux-arm-kernel, linux-sunxi, linux-kernel

Hi Conor,

Thanks for the review. I have changed the vendor prefix to onspc and
updated the board compatible accordingly in v2, which I have just sent:

https://lore.kernel.org/all/20260911-b4-spc-glee-a64-v1-v2-0-ed0b7ff02e0b@proton.me/

Best regards,
Juan Carlos


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

end of thread, other threads:[~2026-09-11 13:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-06 16:05 [PATCH 0/2] Add SPC Glee 10.1 A64 board support Juan Carlos Gutiérrez Lavado via B4 Relay
2026-09-06 16:05 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add SPC Glee 10.1 A64 Juan Carlos Gutiérrez Lavado via B4 Relay
2026-09-07 17:28   ` Conor Dooley
2026-09-11 13:56     ` Juan Carlos Gutiérrez
2026-09-06 16:05 ` [PATCH 2/2] arm64: dts: allwinner: " Juan Carlos Gutiérrez Lavado via B4 Relay
2026-09-06 16:21   ` sashiko-bot

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