From patchwork Wed Aug 28 10:02:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Gaskell via B4 Relay X-Patchwork-Id: 1977749 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=AIT2NyZa; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wv0c91z9mz1yZd for ; Wed, 28 Aug 2024 20:13:29 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F15B588B59; Wed, 28 Aug 2024 12:12:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="AIT2NyZa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6A84A88B1B; Wed, 28 Aug 2024 12:12:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from nyc.source.kernel.org (nyc.source.kernel.org [IPv6:2604:1380:45d1:ec00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6916F88754 for ; Wed, 28 Aug 2024 12:12:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=devnull+Oliver.Gaskell.analog.com@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 60775A434AC; Wed, 28 Aug 2024 10:12:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 5D09BC4E699; Wed, 28 Aug 2024 10:04:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839449; bh=TI80Jt+BCdK/mZ1RxkZ99ajE8QuINwgG3f1n+RLPngI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=AIT2NyZat9OmqOUSGFAg7FI7gnG9dc+5ICNyOXBw6Ilade0GhGHJ+5YSBt3YDDCOm zoEI7WkDzYkHf6h0OBfoIC7E/Z0+hfciVo0vndAvyjf7lsjsFbTnitNCZBKILMbf4J 9ozS6c0DQhKxwTVx7AbHDK90NJqXUHXk4XO4va6SkFzrWwNqZHpsUeR3kmNP4Vz9u+ pGZfI39W0jXJBJa3juWeEDGpLx29hGBD81Sc9GV4ulyTH8FVP8nOw9VFoaBfPUJZPB bFFOg7tSQJpKrhk8m33VTrUroPxPdIl4b20lIEu5GFS/utSoWmpsrVV9VlBPHFNI2z obDAFOOWouEFg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56206C54E92; Wed, 28 Aug 2024 10:04:09 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:27 +0100 Subject: [PATCH 19/20] arm: SC589-MINI initial support MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-19-44d9adfdf327@analog.com> References: <20240828-sc5xx-upstreaming-patches-v1-0-44d9adfdf327@analog.com> In-Reply-To: <20240828-sc5xx-upstreaming-patches-v1-0-44d9adfdf327@analog.com> To: Tom Rini , Nathan Barrett-Morrison , Greg Malysa , Ian Roberts , Vasileios Bimpikas , Utsav Agarwal , Arturs Artamonovs , Rayagonda Kokatanur Cc: u-boot@lists.denx.de, adsp-linux@analog.com, Oliver Gaskell X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724839434; l=4077; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=6hUWWNMcC/Nvvo+FLcw4kd59Dr+j6pxNIoipJAawBxY=; b=sJvCx0HMepXt6FBJS6e0sUcO9JsTEwm9AVRxE7OudCEjjsmj08JSB2Dnrx+zyJQ7FWOB1PH8/ Gaa9s3ZzTXsAE3gqWFHs1frWmLI+au5Jf1XKaYJpYgi2mF3WYlPN52Q X-Developer-Key: i=Oliver.Gaskell@analog.com; a=ed25519; pk=Icq9TxwFJ6FePHS28YbBWMvtZpFWxpPQLhLA9cNvZ/Y= X-Endpoint-Received: by B4 Relay for Oliver.Gaskell@analog.com/20240821 with auth_id=197 X-Original-From: Oliver Gaskell X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Oliver.Gaskell@analog.com Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Oliver Gaskell Adds support for Analog Devices' SC589-MINI board. Includes: - Board specific configs in mach-sc5xx/Kconfig - Board-specific Kconfig and environment in board/adi/ Signed-off-by: Oliver Gaskell --- arch/arm/mach-sc5xx/Kconfig | 5 ++ board/adi/sc589-mini/Kconfig | 160 ++++++++++++++++++++++++++++++++++++ board/adi/sc589-mini/sc589-mini.env | 13 +++ 3 files changed, 178 insertions(+) diff --git a/arch/arm/mach-sc5xx/Kconfig b/arch/arm/mach-sc5xx/Kconfig index bbeb7c68b8..d9cf38a3b5 100644 --- a/arch/arm/mach-sc5xx/Kconfig +++ b/arch/arm/mach-sc5xx/Kconfig @@ -56,6 +56,10 @@ config TARGET_SC584_EZKIT prompt "SC584-EZKIT" select ADI_USE_DDR2 +config TARGET_SC589_MINI + bool + prompt "SC589-MINI" + config TARGET_SC589_EZKIT bool prompt "SC589-EZKIT" @@ -546,6 +550,7 @@ source "board/adi/sc598-som-ezlite/Kconfig" source "board/adi/sc594-som-ezkit/Kconfig" source "board/adi/sc594-som-ezlite/Kconfig" source "board/adi/sc589-ezkit/Kconfig" +source "board/adi/sc589-mini/Kconfig" source "board/adi/sc584-ezkit/Kconfig" endif diff --git a/board/adi/sc589-mini/Kconfig b/board/adi/sc589-mini/Kconfig new file mode 100644 index 0000000000..0bc981bd39 --- /dev/null +++ b/board/adi/sc589-mini/Kconfig @@ -0,0 +1,160 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# (C) Copyright 2024 - Analog Devices, Inc. + +if TARGET_SC589_MINI + +config SYS_VENDOR + default "adi" + +config LDR_CPU + default "ADSP-SC589-0.1" + +config SYS_BOARD + default "sc589-mini" + +config SYS_CONFIG_NAME + default "sc589" + +config DEFAULT_DEVICE_TREE + default "sc589-mini" + +config SPL_MAX_SIZE + default 0x20000 # 128KB + +config ADI_IMAGE + default "minimal" + +config SPL_BSS_START_ADDR + hex + default 0x20080000 + +config SPL_BSS_MAX_SIZE + hex + default 0x10000 # 64K + +config SYS_SPL_MALLOC_START + hex + default 0x20090000 + +config SYS_SPL_MALLOC_SIZE + hex + default 0x10000 # 64K + +config SPL_STACK + hex + default 0x200B0000 + +config SPL_STACK_SIZE + hex + default 0x10000 # 64K + +config TEXT_BASE + hex + default 0xC2200000 + +config CUSTOM_SYS_INIT_SP_ADDR + hex + default 0xC203f000 + +config SYS_LOAD_ADDR + hex + default 0x0 + +# SPL + +config SPL_TEXT_BASE + default 0x20080000 + +# SPI Flash + +config SF_DEFAULT_BUS + default 2 + +config SF_DEFAULT_CS + default 1 + +config SF_DEFAULT_SPEED + default 5000000 + +# Clocks + +config CGU0_DF_DIV + default 0 + +config CGU0_VCO_MULT + default 18 + +config CGU0_CCLK_DIV + default 1 + +config CGU0_SCLK_DIV + default 2 + +config CGU0_SCLK0_DIV + default 2 + +config CGU0_SCLK1_DIV + default 2 + +config CGU0_DCLK_DIV + default 1 + +config CGU0_OCLK_DIV + default 3 + +config CGU1_VCO_MULT + default 5 + +config CGU1_DF_DIV + default 0 + +config CGU1_CCLK_DIV + default 1 + +config CGU1_SCLK_DIV + default 2 + +config CGU1_SCLK0_DIV + default 2 + +config CGU1_SCLK1_DIV + default 2 + +config CGU1_DCLK_DIV + default 2 + +config CGU1_OCLK_DIV + default 3 + +config CDU0_CLKO0 + default 1 + +config CDU0_CLKO1 + default 1 + +config CDU0_CLKO2 + default 1 + +config CDU0_CLKO3 + default 1 + +config CDU0_CLKO4 + default 1 + +config CDU0_CLKO5 + default 1 + +config CDU0_CLKO6 + default 1 + +config CDU0_CLKO7 + default 5 + +config CDU0_CLKO8 + default 1 + +config CDU0_CLKO9 + default 1 + +endif diff --git a/board/adi/sc589-mini/sc589-mini.env b/board/adi/sc589-mini/sc589-mini.env new file mode 100644 index 0000000000..0f3f0bd28e --- /dev/null +++ b/board/adi/sc589-mini/sc589-mini.env @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later+ */ + +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include + +adi_stage2_offset=0x20000 +adi_image_offset=0xE0000 +adi_rfs_offset=0x8E0000 +loadaddr=0xC3000000 +jffs2file=adsp-sc5xx-__stringify(CONFIG_ADI_IMAGE)-adsp-sc589-mini.jffs2