Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 C096E606A31D for ; Thu, 22 Oct 2026 08:08:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=pJpngUnA; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=MRdMX021 Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4A14E4066F; Thu, 22 Oct 2026 08:08:56 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id DCISbgN4oZME; Thu, 22 Oct 2026 08:08:53 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 87E014064A Authentication-Results: smtp4.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142 ARC-Seal: i=2; d=osuosl.org; s=arc; a=rsa-sha256; cv=pass; t=1792656533; b=Ce6dL9OkZDY3Mjc5/K7ua4EXHL3trmaMr1gRs4Y2W5MvqvjvOnQjv1ZwSbmtGETswhs1 1jv8dEG7Cef706Ux5zxgoA6Uftt6nPe4dSEZmA3YX0YWKuudgaF2MS+F42NnTV5vQE/ys UPufbOKGKFy4WmmFTCFa53F5+bA23/3M1DcEeefBJY9fjwhiWXVBCdmwRnmcT8ka8Yzpg PWPiML5V0u493xH7CG2Zl9koB+kU2WRrjwPXUNzMmICO7b0L/ZUXXowmb/ddTXIJYuCB/ xy+T7iLffeYU/jr6zvIkGwqYVrM69foS1cKVSC231Wi5pU2eaMxWwCKmRP3OpiIsZog== ARC-Message-Signature: i=2; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1792656533; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: Received:Received:DKIM-Signature:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Last-TLS-Session-Version:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Errors-To; bh=7NxYSzegafcWpQfIjI/RExuPgXCWrkFDeGy8RoRdXc4=; b=Jr8juLn7NQCXShHze+sBIGgmg5+FBroAxFOmOw5ijktfq3akBQRo+RO4hnEww0+FgwT5 4eL0br3XsAeNPZBcEuMKJfM4+M96gGOJ8q9Yim60jzgqvJijbPEbuKU9HeWYJDWze4Jdo pd4xsozDeW8WSPxHWcj2hzcYPxfuf6BrwnNH8c4WXJvy1lomJ2hhw3clwzZrhiaPZgELB 7Wxs/6S3h3Sj1BAYthRibFyWqQY1YowfV1gueh+1hqJ3UiwbmkZ5/DXMFBOgV0XluW558 mM3Tk4FWLRw4Cf5TsfM1gR8uy1VAF5k71+JGDnRt/rgziPrpERNwx8hyn/aNQC3VpjQ== ARC-Authentication-Results: i=2; smtp4.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1792656533; bh=7NxYSzegafcWpQfIjI/RExuPgXCWrkFDeGy8RoRdXc4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=pJpngUnAYvSz5wjAbc9p1MFDkfZL8fzRPnVAbWykqUl+d6kJONSiCHMqXzMc/qNx1 aKv44XREjpZVbPGrt7B8i76TmLaeZQ6CsiBEJk97b3mca+kgaHtWTOTUWpUAtcRdhY v0x9pawKPHdEcOJic3k+rlzKMgwV9C56SlR7ge9bzKjwbHsntjR69tjR1IkYPoEFX2 W8lgshhIDO6LDqzFswexRJ71+FdrMOxv2AI2PAWp9iE2YYIPr8+X0D5pijYruNg2yh 1LoNbal7aTWE3v5AtJBLtOMsRXTosdNSZREHo/wDYa4GTxb10gyki2MAJlIXoZr65f fGCebGdCUIY9g== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 87E014064A; Thu, 22 Oct 2026 08:08:53 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id 5F5E895C for ; Thu, 22 Oct 2026 08:08:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 51B2440050 for ; Thu, 22 Oct 2026 08:08:51 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id PyPbEvX0sUfi for ; Thu, 22 Oct 2026 08:08:49 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org B540240042 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1792656529; b=C9jMardnn5buBoOXxi9GEmMl9JAIEvN+6VMwc4JFzuxho+6gNJCFK2BavtKttxAHDBRu sO7uPuUPnw3ciub7CQfwmXx8UYBsf3xFZTpBwEIvr3nrJv+LOQoG4dA5GGFZiYFxqTOgB C+KsAFc8Qv72tbyQWJIqeC4I38iIRUtLin/o3Q7BuSSIKHqgMRtCdQvU8RNW1OQ2pqnV3 EYiitkhScCWR5TQH96fjbuK5ydEa7aC2w1W0rWD545/YN0tvDslJNDlhRm3aaROmEJcrn EMRCXLOOh032GTqVs67esUmskacM4o/ObHSlA94PDDbEmztclFSikDs1Yw7QS8pjPNw== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1792656529; h=Received-SPF:Received:Received:Received:DKIM-Signature:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Last-TLS-Session-Version; bh=7NxYSzegafcWpQfIjI/RExuPgXCWrkFDeGy8RoRdXc4=; b=h11zAiuZeJ2RLoAXQxQrdrc9I6MvuscttfabfEcoSVMbGzwvtBm22D863wBG6udb7h0n M713lnc/pkWcHOsXoYKOXKp/bPtGAIb4EH889ZO+UYhRIX3PnL4UMWwSqelDzlmEUQz9/ P/GWEIB5lg1UBfVRi2Scu+H0jHBHyGOY0OiA95TYBIZlYDLYmdDjjoU7nTqAXqqDxG1yL kfjQTLDcLu1z+KX6r28WY7SVuGZ5jfirXxINtGIzX5UKLcOG3HhfTN51QrExsbiW74UWG 4FDE0G1qrtkM5eBLUTGOso4txKyELQ/aBKKlI8PljXj64wCiQUnKQkNHXcR+zLkIDLQ== ARC-Authentication-Results: i=1; smtp2.osuosl.org; dmarc=pass header.from=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=MRdMX021; arc=none smtp.remote-ip=185.246.84.56 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.246.84.56; helo=smtpout-02.galae.net; envelope-from=richard.genoud@bootlin.com; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=MRdMX021 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id B540240042 for ; Thu, 22 Oct 2026 08:08:48 +0000 (UTC) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 53A8A1A12C0; Thu, 22 Oct 2026 08:08:46 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 24DA560360; Thu, 22 Oct 2026 08:08:46 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 93B2B10328E7B; Thu, 22 Oct 2026 10:08:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1792656525; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=7NxYSzegafcWpQfIjI/RExuPgXCWrkFDeGy8RoRdXc4=; b=MRdMX021kiTFBmfxZElmR2+IbMRCQzCzhu7dpvxgTDnr2VFSuHDgSC/Rv7JDR9uwR15u1x 9bdfaQ3P3NoBIacWrnnmuNwFRAgU2atwT6Xyzs+LAQmlo4dwyN4CbjR+j/xJR5RCWP3ASG fCte35LhE7BeFgwrsm40rtTlzw8CwdEEHDCRehsQy44a2+b6mrkb6t+6Rn56ADUamwsB8c QDKGI3HGcLUso55V1FZfsfR7m8p7ZS6KLDJeqQU6wYS1Ii9Qlr3KI2s9B3mX/GbOsO8eyW EcGW7bKAjMBKNXWCYEvK9W0GYZCQZXjyrmi4dEWkrazhSyfClzhiVU+OcsbESQ== From: "Richard Genoud (Synaptics)" Date: Thu, 22 Oct 2026 10:08:23 +0200 Subject: [PATCH] arm: synaptics: add SL2619 SoC and RDK board support X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20261022-sl2619_base-v1-1-ef20cc43d78b@bootlin.com> References: <20261022-sl2619_base-v1-0-ef20cc43d78b@bootlin.com> In-Reply-To: <20261022-sl2619_base-v1-0-ef20cc43d78b@bootlin.com> To: u-boot@lists.u-boot-project.org Cc: Tom Rini , Rayagonda Kokatanur , Ilias Apalodimas , Richard Genoud , Terry Zhou , Quentin Schulz , Heiko Stuebner , Marek Vasut , Siu Ming Tong , Johan Jonker , Chris Packham , Adam Ford , Jisheng Zhang , Thomas Petazzoni X-Mailer: b4 0.16.1-dev-53874 X-Last-TLS-Session-Version: TLSv1.3 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-23.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_PASS,USER_AGENT_GIT 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 Introduce mach-synaptics to support SL2619 SoC-based boards. This adds the platform Kconfig and build infrastructure, along with initial SL2619 RDK board support and defconfig Introduce SYNAPTICS_SL2619, which selects ARM64, along with ARCH_SYNAPTICS which selects driver model, SYS_NS16550 and GIC-v2. Signed-off-by: Richard Genoud (Synaptics) --- MAINTAINERS | 11 ++ arch/arm/Kconfig | 12 ++ arch/arm/Makefile | 1 + arch/arm/dts/sl2619-rdk-u-boot.dtsi | 5 + arch/arm/mach-synaptics/Kconfig | 36 +++++ arch/arm/mach-synaptics/Makefile | 5 + arch/arm/mach-synaptics/cpu.c | 45 ++++++ board/synaptics/sl2619/Kconfig | 9 ++ board/synaptics/sl2619/Makefile | 5 + board/synaptics/sl2619/sl2619.c | 73 ++++++++++ configs/synaptics_sl2619_defconfig | 54 +++++++ doc/board/index.rst | 1 + doc/board/synaptics/img/sl2610_boot_sequence.svg | 178 +++++++++++++++++++++++ doc/board/synaptics/index.rst | 9 ++ doc/board/synaptics/sl2619.rst | 100 +++++++++++++ include/configs/synaptics_sl2619.h | 14 ++ 16 files changed, 558 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 55c394536caa..2558aee73d44 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -714,6 +714,17 @@ F: drivers/pinctrl/sunxi/ F: drivers/video/sunxi/ F: tools/sunxi* +ARM SYNAPTICS +M: Richard Genoud +M: Terry Zhou +S: Maintained +F: arch/arm/dts/sl2619-rdk-u-boot.dtsi +F: arch/arm/mach-synaptics/ +F: board/synaptics/ +F: configs/synaptics_* +F: doc/board/synaptics/ +F: include/configs/synaptics_*.h + ARM TEGRA M: Thierry Reding M: Svyatoslav Ryhel diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 1b474a346bf2..8da162f920ff 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1261,6 +1261,16 @@ config ARCH_SUNXI imply USB_GADGET imply WDT +config ARCH_SYNAPTICS + bool "Support Synaptics SoCs" + select DM + select GICV2 + select SYNAPTICS_SL2619 + select SYS_NS16550 + help + Support for Synaptics SoCs such as the Astra SL2610 product + line. + config ARCH_U8500 bool "ST-Ericsson U8500 Series" select CPU_V7A @@ -2393,6 +2403,8 @@ source "arch/arm/mach-stm32mp/Kconfig" source "arch/arm/mach-sunxi/Kconfig" +source "arch/arm/mach-synaptics/Kconfig" + source "arch/arm/mach-tegra/Kconfig" source "arch/arm/mach-u8500/Kconfig" diff --git a/arch/arm/Makefile b/arch/arm/Makefile index de975fc93686..ba7d3d7cee18 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -87,6 +87,7 @@ machine-$(CONFIG_ARCH_SOCFPGA) += socfpga machine-$(CONFIG_ARCH_STM32) += stm32 machine-$(CONFIG_ARCH_STM32MP) += stm32mp machine-$(CONFIG_ARCH_SUNXI) += sunxi +machine-$(CONFIG_ARCH_SYNAPTICS) += synaptics machine-$(CONFIG_ARCH_TEGRA) += tegra machine-$(CONFIG_ARCH_U8500) += u8500 machine-$(CONFIG_ARCH_OCTEONTX) += octeontx diff --git a/arch/arm/dts/sl2619-rdk-u-boot.dtsi b/arch/arm/dts/sl2619-rdk-u-boot.dtsi new file mode 100644 index 000000000000..a886ed7355ff --- /dev/null +++ b/arch/arm/dts/sl2619-rdk-u-boot.dtsi @@ -0,0 +1,5 @@ +// SPDX-License-Identifier: GPL-2.0+ + +&sm_uart0 { + clock-frequency = <25000000>; +}; diff --git a/arch/arm/mach-synaptics/Kconfig b/arch/arm/mach-synaptics/Kconfig new file mode 100644 index 000000000000..33282060a8e0 --- /dev/null +++ b/arch/arm/mach-synaptics/Kconfig @@ -0,0 +1,36 @@ +if ARCH_SYNAPTICS + +config SYS_SOC + default "synaptics" + +config SYS_VENDOR + default "synaptics" + +config SYNAPTICS_SL2619 + bool "Synaptics SL2619 SoC" + select ARM64 + help + The Synaptics SL2619 is a ARM64-based SoC with a dual-core Cortex-A55. + including UART, SPI, USB2.0 and OTG, EMMC, etc. + +config SYNAPTICS_REGMEM_MAP_BASE + hex + default 0xe0000000 if SYNAPTICS_SL2619 + +config SYNAPTICS_REGMEM_MAP_SIZE + hex + default 0x20000000 if SYNAPTICS_SL2619 + +if SYNAPTICS_SL2619 + +config TARGET_SL2619 + bool "Support Synaptics SL2619 RDK board" + help + Support for the Synaptics Astra Machina SL2619 RDK board based on the + Synaptics SL2619 SoC. + +source "board/synaptics/sl2619/Kconfig" + +endif + +endif diff --git a/arch/arm/mach-synaptics/Makefile b/arch/arm/mach-synaptics/Makefile new file mode 100644 index 000000000000..5fc4b23719f7 --- /dev/null +++ b/arch/arm/mach-synaptics/Makefile @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright 2026 Synaptics Incorporated + +obj-y += cpu.o diff --git a/arch/arm/mach-synaptics/cpu.c b/arch/arm/mach-synaptics/cpu.c new file mode 100644 index 000000000000..2f890f6f7d5d --- /dev/null +++ b/arch/arm/mach-synaptics/cpu.c @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2026 Synaptics Incorporated + */ + +#include +#include + +#define SYNAPTICS_MEM_MAP_LEN ((CONFIG_NR_DRAM_BANKS) + 2) +/* + * Force synaptics_mem_map initialization since this code runs + * before BSS is cleared. + * The last entry is the sentinel + */ +__section(".data") static struct mm_region synaptics_mem_map[SYNAPTICS_MEM_MAP_LEN] = { 0 }; +struct mm_region *mem_map = synaptics_mem_map; + +int dram_init(void) +{ + return fdtdec_setup_mem_size_base(); +} + +int dram_init_banksize(void) +{ + struct mm_region *reg_mem = mem_map + CONFIG_NR_DRAM_BANKS; + int ret; + + ret = fdtdec_setup_memory_banksize(); + if (ret) + return ret; + + ret = mem_map_from_dram_banks(0, SYNAPTICS_MEM_MAP_LEN, + PTE_BLOCK_MEMTYPE(MT_NORMAL) | + PTE_BLOCK_INNER_SHARE); + if (ret) + return ret; + + reg_mem->virt = CONFIG_SYNAPTICS_REGMEM_MAP_BASE; + reg_mem->phys = CONFIG_SYNAPTICS_REGMEM_MAP_BASE; + reg_mem->size = CONFIG_SYNAPTICS_REGMEM_MAP_SIZE; + reg_mem->attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | + PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN; + + return 0; +} diff --git a/board/synaptics/sl2619/Kconfig b/board/synaptics/sl2619/Kconfig new file mode 100644 index 000000000000..cab256a7750d --- /dev/null +++ b/board/synaptics/sl2619/Kconfig @@ -0,0 +1,9 @@ +if TARGET_SL2619 + +config SYS_BOARD + default "sl2619" + +config SYS_CONFIG_NAME + default "synaptics_sl2619" + +endif diff --git a/board/synaptics/sl2619/Makefile b/board/synaptics/sl2619/Makefile new file mode 100644 index 000000000000..c658f81d1c1b --- /dev/null +++ b/board/synaptics/sl2619/Makefile @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (c) 2026 Synaptics Incorporated + +obj-y := sl2619.o diff --git a/board/synaptics/sl2619/sl2619.c b/board/synaptics/sl2619/sl2619.c new file mode 100644 index 000000000000..6876f9667181 --- /dev/null +++ b/board/synaptics/sl2619/sl2619.c @@ -0,0 +1,73 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2026 Synaptics Incorporated + */ + +#include +#include +#include +#include +#include +#include + +/* UART Software Reset Register */ +#define SYNA_UART_SRR 0x88 +/* Reset bits */ +#define SYNA_UART_RST BIT(0) +#define SYNA_UART_RST_FIFO_RCVR BIT(1) +#define SYNA_UART_RST_FIFO_XMIT BIT(2) +#define SYNA_UART_RST_ALL (SYNA_UART_RST | SYNA_UART_RST_FIFO_RCVR | \ + SYNA_UART_RST_FIFO_XMIT) + +/* + * ROM boot code leaves the UART console in a non default state, + * reset it before probing the serial driver. + */ +static int reset_console(void) +{ + struct resource res; + const char *str; + ofnode node; + int ret; + + str = ofnode_read_chosen_string("stdout-path"); + if (!str) + return -ENOENT; + + if (str[0] == '/') { + node = ofnode_path(str); + } else { + char alias[32]; /* max recommended length in DT */ + const char *p; + int namelen; + + p = strchr(str, ':'); + namelen = p ? p - str : strlen(str); + if (namelen >= sizeof(alias)) + return -ENAMETOOLONG; + memcpy(alias, str, namelen); + alias[namelen] = '\0'; + node = ofnode_get_aliases_node(alias); + } + + if (!ofnode_valid(node)) + return -ENOENT; + + ret = ofnode_read_resource(node, 0, &res); + if (ret) + return ret; + + if (!ofnode_device_is_compatible(node, "syna,sl261x-uart")) + return -ENODEV; + + writel(SYNA_UART_RST_ALL, (uintptr_t)(res.start + SYNA_UART_SRR)); + + return 0; +} + +int board_early_init_f(void) +{ + reset_console(); + + return 0; +} diff --git a/configs/synaptics_sl2619_defconfig b/configs/synaptics_sl2619_defconfig new file mode 100644 index 000000000000..5fda64ad7ddc --- /dev/null +++ b/configs/synaptics_sl2619_defconfig @@ -0,0 +1,54 @@ +CONFIG_ARM=y +CONFIG_POSITION_INDEPENDENT=y +# CONFIG_ARM64_SUPPORT_AARCH32 is not set +CONFIG_ARCH_SYNAPTICS=y +CONFIG_SYS_MALLOC_LEN=0x5aa00000 +CONFIG_NR_DRAM_BANKS=1 +CONFIG_ENV_SIZE=0x10000 +CONFIG_DEFAULT_DEVICE_TREE="synaptics/sl2619-rdk" +CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_DM_RESET=y +CONFIG_SYS_BOOTM_LEN=0x4000000 +CONFIG_SYS_LOAD_ADDR=0xcf00000 +CONFIG_WATCHDOG_TIMEOUT_MSECS=0 +CONFIG_TARGET_SL2619=y +CONFIG_BOOTSTD=y +CONFIG_SUPPORT_RAW_INITRD=y +CONFIG_BOOTDELAY=0 +# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set +CONFIG_DEFAULT_FDT_FILE="sl2619-rdk.dtb" +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_BOARD_EARLY_INIT_F=y +# CONFIG_BOARD_INIT is not set +CONFIG_HUSH_PARSER=y +# CONFIG_BOOTM_PLAN9 is not set +# CONFIG_BOOTM_RTEMS is not set +# CONFIG_BOOTM_VXWORKS is not set +# CONFIG_CMD_XIMG is not set +# CONFIG_CMD_EXPORTENV is not set +CONFIG_CMD_NVEDIT_INFO=y +# CONFIG_CMD_LZMADEC is not set +# CONFIG_CMD_LOADS is not set +# CONFIG_CMD_ITEST is not set +# CONFIG_CMD_SOURCE is not set +# CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_CACHE=y +CONFIG_CMD_TIMER=y +CONFIG_OF_CONTROL=y +CONFIG_OF_UPSTREAM=y +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y +CONFIG_VERSION_VARIABLE=y +# CONFIG_NET is not set +CONFIG_SYSCON=y +CONFIG_BOUNCE_BUFFER=y +# CONFIG_GPIO is not set +# CONFIG_I2C is not set +CONFIG_MISC=y +# CONFIG_MMC is not set +CONFIG_SPECIFY_CONSOLE_INDEX=y +CONFIG_DM_SERIAL=y +CONFIG_SERIAL_RX_BUFFER=y +CONFIG_SYSRESET=y +CONFIG_SYSRESET_PSCI=y +# CONFIG_TOOLS_LIBCRYPTO is not set +# CONFIG_TOOLS_KWBIMAGE is not set diff --git a/doc/board/index.rst b/doc/board/index.rst index cc1d181a8e1d..7a66379a5b0a 100644 --- a/doc/board/index.rst +++ b/doc/board/index.rst @@ -66,6 +66,7 @@ Board-specific doc st/index starfive/index ste/index + synaptics/index tbs/index thead/index theobroma-systems/index diff --git a/doc/board/synaptics/img/sl2610_boot_sequence.svg b/doc/board/synaptics/img/sl2610_boot_sequence.svg new file mode 100644 index 000000000000..a0b356b46a24 --- /dev/null +++ b/doc/board/synaptics/img/sl2610_boot_sequence.svg @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Stored in ROM + + + + Cortex M3 + + + + ROM + code + + + + + + + + + + + Cortex M52 + + + + + + + + System Manager + Bootloader + + + + TF-A + + + Cortex A55 + + + + U-Boot + + + + + + + Runs + + + + Normal world + + + Secure world + + + Bundled in spk.bin + + + Bundled in tkz.subimg + + + + + + Bundled in bl.subimg + + + + OP-TEE + + + + + + + Runs + + + Loads + and + runs + + + + + + + Loads + and + runs + + + + SPK + + + Loads + and + runs + + + Bundled in m52bl.bin + + + + System Manager + Firmware + + + Bundled in sysmgr.subimg + + + + + + + Loads + + + + + + + Loads + + + Loads + and + runs + + + diff --git a/doc/board/synaptics/index.rst b/doc/board/synaptics/index.rst new file mode 100644 index 000000000000..03624fa904e1 --- /dev/null +++ b/doc/board/synaptics/index.rst @@ -0,0 +1,9 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +Synaptics +========= + +.. toctree:: + :maxdepth: 2 + + sl2619 diff --git a/doc/board/synaptics/sl2619.rst b/doc/board/synaptics/sl2619.rst new file mode 100644 index 000000000000..8cb167fc2abd --- /dev/null +++ b/doc/board/synaptics/sl2619.rst @@ -0,0 +1,100 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +Synaptics Astra SL2619 RDK +========================== + +The Synaptics SL2619 is an ARM64 SoC with a dual-core Cortex-A55. The +SL2619 RDK (Astra Machina) is the corresponding reference design. + +Official documentation can be found here: +https://synaptics-astra.github.io/doc/v/latest + +Along with official github page: +https://github.com/synaptics-astra + +Mainline support +---------------- + +This is early stage support with: + +1. ns16550 UART +2. CPU reset via PSCI +3. Generic ARMv8 core timer + +Boot Flow +--------- +Below is the pictorial representation of boot flow: + +.. image:: img/sl2610_boot_sequence.svg + :alt: Boot flow diagram + +Building +-------- + +U-Boot +^^^^^^ +.. code-block:: console + + export CROSS_COMPILE=aarch64-linux-gnu- + make synaptics_sl2619_defconfig + make + +This will generate ``u-boot.bin``. + +Generate ``bl.subimg`` +^^^^^^^^^^^^^^^^^^^^^^ + +The boot flow expect a bootloader encapsulated in a ``bl.subimg`` file. + +Synaptics provides tools in order to do that. + +In U-Boot parent's directory: + +.. code-block:: console + + git clone -b scarthgap_6.12_v2.5.0 https://github.com/synaptics-astra/build.git + git clone -b scarthgap_6.12_v2.5.0 https://github.com/synaptics-astra/security.git + git clone https://github.com/synaptics-astra/usb-tool.git + + build/tools/bin/in_extras.py BOOT_LOADER_GENX_V3 in_boot_loader_extras.bin 0x00000000 0x00000000 0x600000 0x600000 + build/tools/bin/gen_x_secure_image --chip-name=klamath --chip-rev=A0 \ + --img_type=BOOT_LOADER --key_type=ree --length=0x0 \ + --extras=in_boot_loader_extras.bin \ + --workdir-security-tools=build/tools/lib/sec_tools/bin \ + --workdir-security-keys=security/keys/chip/klamath/A0 \ + --tool-version=genx_v3 \ + --in_payload=u-boot/u-boot.bin \ + --out_store=usb-tool/astra-usbboot-images/sl2619/bl.subimg + +Booting +------- + +USB-BOOT +^^^^^^^^ + +Reset the board while pressing the USB_BOOT button, then: + +.. code-block:: console + + sudo ./usb-tool/bin/linux/x86_64/astra-boot -b bootloader usb-tool/astra-usbboot-images/sl2619 + +Console +------- + +The console is on UART0 (``sm_uart0``, 0xe5030000) at 115200n8. + +Sample boot log +--------------- + +.. code-block:: none + + U-Boot 2026.10-00019-gda155cd176f0 (Oct 20 2026 - 16:44:30 +0200) + + Model: Synaptics SL2619 RDK + DRAM: 2 GiB + Core: 28 devices, 14 uclasses, devicetree: separate + Loading Environment from nowhere... OK + In: serial@e5030000 + Out: serial@e5030000 + Err: serial@e5030000 + => diff --git a/include/configs/synaptics_sl2619.h b/include/configs/synaptics_sl2619.h new file mode 100644 index 000000000000..b1729f814045 --- /dev/null +++ b/include/configs/synaptics_sl2619.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Configuration settings for the Synaptics sl2619 RDK board. + * + * Copyright 2026 Synaptics Incorporated + */ + +#ifndef __SYNAPTICS_SL2619_H +#define __SYNAPTICS_SL2619_H + +#define GICD_BASE 0xf7e59000 +#define GICC_BASE 0xf7e5a000 + +#endif /* __SYNAPTICS_SL2619_H */ -- 2.55.0