From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.217.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796315496; b=bILGDay9vl4Wq8gCo7M0qnOW90wz4eCxeLUzaLTAGJgoGjrM3NGkC5zFMWtGOSO8zAcy G5irWRX2jQIKtDyYZDZH/wdOT8bles1OnqoF7SoZcofLs9Pbb/Hs4qvwr7DSKYcfhRYUK hQvtDfFmvjsH/C4OO/cX2+DHAMOSl25mnA6l9lHsM51S+QTfMrYlF11zqNSnNlmpbl5Xz /11ciODvG2B/UBpItcciwXhzOLQe9RVFnEGqZGFmYVPfXTDg5Xe9E9FUsb5QpkyxctTa7 GQ/ayx5slAldT5XeFRtQOmcZV0LDSt3MmgkMchVsXaGYyQNFKAsOj88eucuRfcWNYew== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796315496; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=nVGEtts3/6XppvxrsbqUONXr7797wSiZAxmd6PjJW04=; b=WXmPQHGyvSBiKYmtrE2wM2IL+O0L2e/OkalO4jjw/Dx8gGeqje0iZ9CnDKsn+pl2SSOT wCmKp+B8GkmuxCxc8TtbTy20xyGEb219G8eMWvN6hrSGOffmZp/3YuhA+bsoVI4gvulEy ZSMk/qz/XMjO2AFQAMPWaqh9smn0RaWvl8wykU5/hkm/wWkCNbT/+9fCbsIdvv8U2ryNj 2xUhxk+/vVAO+65qnqQIeam9WUhbPZiN5sI2Zs2EFE2i6c/6nNxklzdGP7UttJIEE7KD9 bIVVeno71bK492KjdflHXAtlYb/nyILza+VaJY4GdWIF/todfRINNhxFuXwTBcw2HFQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="xLtOkMq/"; arc=none smtp.remote-ip=209.85.217.49 Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D539F606A33C for ; Thu, 3 Dec 2026 16:31:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D539F606A33C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=xLtOkMq/ Received: by mail-vs1-f49.google.com with SMTP id ada2fe7eead31-77bf892b496so33793137.0 for ; Thu, 03 Dec 2026 08:31:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796315495; x=1796920295; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nVGEtts3/6XppvxrsbqUONXr7797wSiZAxmd6PjJW04=; b=xLtOkMq/FcW++s8ErPJc65+q1Hp949blPUxHAEKlcfCtRqSmNUCKU0h3YTdg16+X0D SFo9s7nn7LJlYLtRKGCZT3guAqIqjus/Xz8N8DjtIGPUj2Sdyqkw+OgJPRTLgK3l4aIr RC+EBXqov9Te67eCaGyUA74/7BT3YZD0IVLnEKTWB7WDC62ri6v0NW7AJfOlhW2/vnfY /cHgAbcXJybAOuTIu9LvrS5R2KU6PgTLZOJinZ8tIrzhPyEBopdYtPk+lzeoINdI3fyd FyHxTQaBDG97zX8aNj+V/9e5S0jZMOL+jtros2n32a0xuXbaATCUEhZGzIqxsYUyQbA+ 2Xbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796315495; x=1796920295; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=nVGEtts3/6XppvxrsbqUONXr7797wSiZAxmd6PjJW04=; b=D3bZ3iwj6sgc7TtXPpH20uYGlWAe7N28Hi8rzmvJ1glNAHR2bhSijzbzeVasm9noJb WEyjNqOFet65+sFkCXV9+FYpknElkW2MIuN1ug5C7rXHQo5sm8qP1/0t9brszGH5lPbC /xsv448IQxrR7zN2NBmjpuK2tysvIY5nLXGUhAULVUVa74bfo3v2+J3Yu7y4zSQnslpA K6Ojz+Qmdoq9O6+pVjoEORDxthuoRzTeJvkAam5+Q1A/ffB7rtBVkrfUIQZS72MP9BKB KJfSxWS+pIp+DRBIdMnwtB0jYqOMyaWQsl72hiCZtYWJa0s0QBHKr7can8bDNZowZZnG MIFw== X-Forwarded-Encrypted: i=1; AL+hErFvLMFsXkGDiaD+KVdPPLk3TIKUmNW22vhMaf/5VyVdwgM8rKOLhI4b6fAR+RFc0ZQmXbiVWIOZ8P7M9TE=@vger.kernel.org X-Gm-Message-State: APuU4Z+N0ee/dUrRGDakbsAEisXWK/gFzFU1fdTRcT86vkA77YfkUxkt 8321ozquqH47kEARnUNqmGSg1HgjZ6MCOdPfJJ8BEW0No3fuQaBk8tGm+rtvUQ== X-Gm-Gg: AZFdTZexQTceTLG9x2+PrVy/tuBCJXJqUOhxA2WmbeIM8ZqyhXRRkMbeQJVQJ8elmLZ 4T6TUUppoxSgY1QOLRhGMXKFnO6UMjryIDnL0N0qQMyGJb+XDZHmmNgmSxMe7K7d6W3nmCVGK9L UXZ0Gv5hTG+hJ/F81jv8iuAAM3dOQjeQtyNvqeVTqMNrvCfVCVhmlMA2QR/0yIGb1smQQNJSiwt R/zfEHWsSGdz6W9zoUiWVxym5tkJDFcJjLGJ4OQhr8nJGW8ljbKIORPC2Em4Qz8jk4uP7kJuwpg XuS1jcB4KPffxzY/rePWqukd6Uh7e18gn4mV3tMB05tANeZzEnxVrxuRLmG2Ps65ZbxYi/g/RQ1 0uew5zUmDtrBnEnGlYZHz9R6utXMZVRb9dF7Yb3APBj0IbOdYO6Z83PqbGmiihu4kiKLxAgRpdm KsaOcuoLpxqD0XnoVMK86FbNEur72R1fJBUc9fVaP45zzGHPlxemOuL2NRn3n0uJBMiK5IL8EBR pY6lqkpeMoCeuaiNj/fiv7BPmUC7ji+tiisnGcAzUGBt9oZwk9PJGzz58mlobtWCrglzCeuFEhb voKu2HlZ0Q26dz0O5xYIcZyipbwDAOYpEd4ah2PWn32UhyGOCF5p0yoL7aoaNhwFjvhhkNh+t/I aYJsK X-Received: by 2002:a05:6102:6889:b0:7c1:6de4:9f67 with SMTP id ada2fe7eead31-7d72b36b937mr32660465137.2.1796315494764; Thu, 03 Dec 2026 08:31:34 -0800 (PST) Received: from AMD.home.internal (dhcp-9-244-10-60.gobrightspeed.net. [9.244.10.60]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-7d8dc6cfc97sm24312088137.5.2026.12.03.08.31.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 08:31:34 -0800 (PST) From: Enzo Adriano To: andre.przywara@arm.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, wens@kernel.org, jernej.skrabec@gmail.com, samuel@sholland.org Cc: Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Junhui Liu , Jerome Brunet , Pablo Mazzini , Vinicius Pedrosa , Alexander Sverdlin , Jun Yan , Lukas Schmid , Cristian Filipescu , Norman Herms , Daniel Golle , Alastair D'Silva Subject: [PATCH v7 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board Date: Thu, 3 Dec 2026 11:31:31 -0500 Message-ID: <20261203-a733-cubie-a7s-dt-v7-5@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261203-a733-cubie-a7s-dt-v7-0@gmail.com> References: <20261203-a733-cubie-a7s-dt-v7-0@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Andre Przywara The Radxa Cubie A7A is a single board computer using the Allwinner A733 SoC. It features: - Allwinner A733 SoC (6*Arm Cortex-A55 + 2*Arm Cortex-A76) - Imagination BXM-4-64 MC1 GPU and 3 TOPS NPU - 2-16 GiB LPDDR5 DRAM - AXP318W PMIC - eMMC and UFS socket - single lane PCIe 3.0 via FPC connector - microSD card slot - bootable SPI NOR flash - HDMI 2.0 and MIPI-DSI connector - MIPI-CSI camera connector - GBit Ethernet socket, with optional POE support - unknown Bluetooth and WiFi - USB-C 2.0 OTG port (also primary power supply) - USB-A 3.1 host port - 3* USB-A 2.0 host ports (via hub) - 40 pin GPIO connector Add initial support for the peripherals we have DT bindings for so far, including UART, PMIC, SD card, some EEPROM and an external RTC chip. The PMIC rails assignment has been determined by the schematic. Signed-off-by: Andre Przywara [enzo: use BLDO1 for vcc-pk as Jerome found, constrain ELDO1 to 0.87-1.12 V as agreed for LPDDR5 VDD2L, rename the 32 kHz clock node, drop cap-sdio-irq and always-on from SWOUT2 and the fixed regulators, use interrupts-extended and a level-low RTC interrupt, sort nodes and drop unused labels] Signed-off-by: Enzo Adriano --- Changes in v7: - Use BLDO1 for vcc-pk-supply and constrain ELDO1 to 0.87-1.12 V. - Rename the 32 kHz clock to clock-osc32k, drop cap-sdio-irq and use a level-low RTC interrupt. - Drop regulator-always-on from the fixed regulators and SWOUT2, use interrupts-extended and C comments, sort the nodes and drop unused labels. arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun60i-a733-cubie-a7a.dts | 378 ++++++++++++++++++ 2 files changed, 379 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 62fab1d727d0..cdeb966031ee 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -69,5 +69,6 @@ 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 dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-orangepi-4a.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7a.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7s.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7z.dtb diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts new file mode 100644 index 000000000000..e1e1db00bada --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts @@ -0,0 +1,378 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR MIT) +/* + * Copyright (c) 2026 Arm Ltd. + */ + +/dts-v1/; + +#include "sun60i-a733.dtsi" + +#include +#include + +/ { + model = "Radxa Cubie A7A"; + compatible = "radxa,cubie-a7a", "allwinner,sun60i-a733"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + osc32k: clock-osc32k { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + + leds { + compatible = "gpio-leds"; + + power-led { + function = LED_FUNCTION_POWER; + color = ; + /* + * The LED is connected between VCC and GND, so it + * turns on as soon as the board gets power. But a + * transistor allows to pull down the anode to GND, + * so the LED can be turned off. + */ + gpios = <&pio 9 26 GPIO_ACTIVE_LOW>; /* PJ26 */ + default-state = "on"; + }; + + status-led { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&pio 9 27 GPIO_ACTIVE_HIGH>; /* PJ27 */ + }; + }; + + /* discrete SY8089A DC/DC step-down regulator */ + reg_vcc2v4: regulator-2v4 { + compatible = "regulator-fixed"; + regulator-name = "ldo-input"; + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <2400000>; + vin-supply = <®_vcc5v>; + }; + + /* board wide 5V supply from the USB-C connector */ + reg_vcc5v: regulator-5v { + compatible = "regulator-fixed"; + regulator-name = "vcc-5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; +}; + +&cpu0 { + cpu-supply = <®_dcdc5>; +}; + +&cpu1 { + cpu-supply = <®_dcdc5>; +}; + +&cpu2 { + cpu-supply = <®_dcdc5>; +}; + +&cpu3 { + cpu-supply = <®_dcdc5>; +}; + +&cpu4 { + cpu-supply = <®_dcdc5>; +}; + +&cpu5 { + cpu-supply = <®_dcdc5>; +}; + +&cpu6 { + cpu-supply = <®_dcdc3>; +}; + +&cpu7 { + cpu-supply = <®_dcdc3>; +}; + +&hosc { + clock-frequency = <26000000>; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pg_pins>; + status = "okay"; + + eeprom@50 { + compatible = "belling,bl24c16f", "atmel,24c16"; + reg = <0x50>; + pagesize = <16>; + vcc-supply = <®_aldo1>; + wp-gpios = <&pio 2 7 GPIO_ACTIVE_LOW>; /* PC7 */ + }; +}; + +&mmc0 { + bus-width = <4>; + cap-sd-highspeed; + cap-mmc-highspeed; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ + disable-wp; + vmmc-supply = <®_swout2>; + status = "okay"; +}; + +&pio { + vcc-pb-supply = <®_swout2>; /* via VCC-IO */ + vcc-pc-supply = <®_cldo5>; + vcc-pd-supply = <®_swout1>; + vcc-pe-supply = <®_bldo1>; + vcc-pf-supply = <®_swout2>; /* via VCC-IO */ + vcc-pg-supply = <®_aldo1>; + vcc-ph-supply = <®_swout2>; /* via VCC-IO */ + vcc-pj-supply = <®_swout1>; + vcc-pk-supply = <®_bldo1>; +}; + +&r_i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&r_i2c0_pl_pins>; + status = "okay"; + + pmic@36 { + compatible = "x-powers,axp318w"; + reg = <0x36>; + interrupts-extended = <&nmi_intc 0 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <1>; + aldo156in-supply = <®_vcc5v>; + aldo234in-supply = <®_aldo1>; + bldoin-supply = <®_vcc2v4>; + cldoin-supply = <®_vcc2v4>; + dldoin-supply = <®_vcc5v>; + eldoin-supply = <®_dcdc9>; + ips-supply = <®_vcc5v>; + vin19-supply = <®_vcc5v>; + vin23-supply = <®_vcc5v>; + vin45-supply = <®_vcc5v>; + vin678-supply = <®_vcc5v>; + + regulators { + reg_aldo1: aldo1 { + /* PortL (this PMIC) and USB 3.3V supply #1 */ + regulator-name = "vcc-pl-usb"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + aldo5 { + regulator-name = "vcc-ac101-codec"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + reg_bldo1: bldo1 { + regulator-name = "vcc-pe-pk-mcsi"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + bldo2 { + regulator-name = "vcc-lvds-lcd"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + bldo4 { + regulator-name = "vcc18-codec"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + cldo1 { + regulator-name = "vcc18-lpddr"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + cldo2 { + regulator-name = "vcc18-hdmi"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + cldo3 { + regulator-name = "vcc-pll-dram-avcc"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + reg_cldo5: cldo5 { + regulator-name = "vcc-pc-combo"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + dcdc1 { + /* VCC3V3 on GPIO connector and power LED */ + regulator-name = "vcc-wifi-hub-pci-gpio-led"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + dcdc2 { + regulator-name = "vdd-sys-dram-ve-combo"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-always-on; + }; + + reg_dcdc3: dcdc3 { + regulator-name = "vdd-cpub"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1050000>; + regulator-always-on; + }; + + dcdc4 { + regulator-name = "vdd-gpu"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <960000>; + }; + + reg_dcdc5: dcdc5 { + regulator-name = "vdd-cpul"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1050000>; + regulator-always-on; + }; + + dcdc6 { + /* Voltage set by DRAM init routine */ + regulator-name = "vcc-draml-vddq"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <600000>; + regulator-always-on; + }; + + dcdc7 { + /* Voltage set by DRAM init routine */ + regulator-name = "vcc-dram"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1100000>; + regulator-always-on; + }; + + dcdc8 { + regulator-name = "vcc-ufs-io"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + reg_dcdc9: dcdc9 { + regulator-name = "eldo-input"; + /* + * The schematic says 1.25V, but the + * granularity of DCDC9 is 20mV in this range. + */ + regulator-min-microvolt = <1240000>; + regulator-max-microvolt = <1260000>; + }; + + dldo1 { + regulator-name = "vcc-efuse"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + dldo6 { + regulator-name = "vcc-ufs"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + }; + + eldo1 { + regulator-name = "vcc09-lpddr5"; + regulator-min-microvolt = <870000>; + regulator-max-microvolt = <1120000>; + regulator-always-on; + }; + + eldo6 { + regulator-name = "vdd-cpus-usb"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-always-on; + }; + + rtc-ldo { + regulator-name = "vcc-rtc"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + reg_swout1: swout1 { + regulator-name = "vcc-pd-pj-lcd-ephy"; + }; + + reg_swout2: swout2 { + /* SoC VCC-IO and USB 3.3V supply #2 */ + regulator-name = "vcc-io-sd-emmc-ph-usb"; + }; + }; + }; +}; + +&r_i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&r_i2c1_pl_pins>; + status = "okay"; + + rtc@51 { + compatible = "haoyu,hym8563"; + reg = <0x51>; + #clock-cells = <0>; + interrupts-extended = <&r_pio 0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ + }; +}; + +&r_i2c1_pl_pins { + /* + * The schematic shows external pull-up resistors, but still the + * internal pull-ups are required somehow. + */ + bias-pull-up; +}; + +&r_pio { + /* + * Specifying the supply would create a circular dependency. + * vcc-pl-supply = <®_aldo1>; + */ + vcc-pm-supply = <®_aldo1>; +}; + +&rtc { + clocks = <&r_ccu CLK_BUS_R_RTC>, <&hosc>, <&r_ccu CLK_R_AHB>, + <&osc32k>; + clock-names = "bus", "hosc", "ahb", "ext-osc32k"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pb_pins>; + status = "okay"; +}; -- 2.53.0