From patchwork Wed Aug 28 10:02:09 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: 1977743 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=Z0lgTuf2; 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 4Wv0b241Qqz1yZd for ; Wed, 28 Aug 2024 20:12:30 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CB0EC88AFB; Wed, 28 Aug 2024 12:12:27 +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="Z0lgTuf2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 561ED88A7B; Wed, 28 Aug 2024 12:12:26 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 [147.75.193.91]) (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 E707D8870B for ; Wed, 28 Aug 2024 12:12:23 +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 C9EF2A402E7; Wed, 28 Aug 2024 10:12:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 513D6C4E672; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=eM8RjWG47fSFRTrSf/BTgOm4pIig8a7IEAX+0/slPTo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Z0lgTuf2H3Zl+2K7KkzNxt/G1wwm2YSjyRtLuKj96vkPnXQcVS999E4r0nAHs5CBR LIlcrOtUEmsG5VZzYVqlrha/Pryw53YG7HI2hCaNu/tKAYxs3H+NiumpGDey4KBXp1 iOAFbh2sP4FP8GyIFLfrGhV/AC7iVdHvyvooVL+dl1eFvDyjpyRZkNSy0NpEBQkVt5 QIkBaT+ATZ1o8yvyFZPt2Z25QnGc5ShyL2yEckGIEldw20B4DwXx6oayUPUOdDASnO G19kY4GEpEu0DZI1oPRFwiVOgKM54ruE6UCjfgGyHZjmdcpp6/CrfgH5D0yuahlmTM HB8fmnrDRcD5g== 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 41575C5479A; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:09 +0100 Subject: [PATCH 01/20] arm: dts: Support SC573-EZKIT MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-1-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=4193; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=OVSg+BZV1AHkTE15V5hBb895rNTFv7VgbOq175IFpOE=; b=xMRO3AATlzZo3ZKGsCAmkZTgHUinRMPrcQ23TL9LEsIzTOkqlVpNcU5wsEOw89wvz7d6aLybe zsxugsbYK9fDBeEyDs36/xdvxZp5ZH0s6eYG7dlYRE4CFa3ssytiQgk 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 minimal device tree for Analog Devices' SC573-EZKIT board and common files for the SC57x/SC5xx family. This also adds all sc5* devicetrees to ARM SC5XX in MAINTAINERS, and adds the ADSP Linux mailing list as the list for ARM SC5XX. Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- MAINTAINERS | 2 ++ arch/arm/dts/Makefile | 2 ++ arch/arm/dts/sc573-ezkit.dts | 13 +++++++++++ arch/arm/dts/sc57x.dtsi | 21 +++++++++++++++++ arch/arm/dts/sc5xx.dtsi | 54 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 92 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a6e47e8a21..0640d56991 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -601,8 +601,10 @@ M: Ian Roberts M: Vasileios Bimpikas M: Utsav Agarwal M: Arturs Artamonovs +L: adsp-linux@analog.com S: Supported T: git https://github.com/analogdevicesinc/lnxdsp-u-boot +F: arch/arm/dts/sc5* F: arch/arm/include/asm/arch-adi/ F: arch/arm/mach-sc5xx/ F: drivers/clk/adi/ diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index a4d95c8306..8fa56cc9f4 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1275,6 +1275,8 @@ dtb-$(CONFIG_TARGET_IMX8MM_CL_IOT_GATE_OPTEE) += imx8mm-cl-iot-gate-optee.dtb \ imx8mm-cl-iot-gate-ied-tpm0.dtbo \ imx8mm-cl-iot-gate-ied-tpm1.dtbo +dtb-$(CONFIG_TARGET_SC573_EZKIT) += sc573-ezkit.dtb + ifneq ($(CONFIG_TARGET_IMX8MP_RSB3720A1_4G)$(CONFIG_TARGET_IMX8MP_RSB3720A1_6G),) dtb-y += imx8mp-rsb3720-a1.dtb endif diff --git a/arch/arm/dts/sc573-ezkit.dts b/arch/arm/dts/sc573-ezkit.dts new file mode 100644 index 0000000000..0dc2962618 --- /dev/null +++ b/arch/arm/dts/sc573-ezkit.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +/dts-v1/; + +#include "sc57x.dtsi" + +/ { + model = "ADI SC573-EZKIT"; + compatible = "adi,sc573-ezkit", "adi,sc57x"; +}; diff --git a/arch/arm/dts/sc57x.dtsi b/arch/arm/dts/sc57x.dtsi new file mode 100644 index 0000000000..ddfcae8d19 --- /dev/null +++ b/arch/arm/dts/sc57x.dtsi @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include "sc5xx.dtsi" + +/ { + gic: interrupt-controller@310b2000 { + compatible = "arm,cortex-a5-gic"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x310B2000 0x1000>, + <0x310B4000 0x100>; + }; +}; + +&timer0 { + clocks = <&clk ADSP_SC57X_CLK_CGU0_SCLK0>; +}; diff --git a/arch/arm/dts/sc5xx.dtsi b/arch/arm/dts/sc5xx.dtsi new file mode 100644 index 0000000000..3f440dac29 --- /dev/null +++ b/arch/arm/dts/sc5xx.dtsi @@ -0,0 +1,54 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include +#include + +/ { + #address-cells = <1>; + #size-cells = <1>; + + clocks { + sys_clkin0: sys_clkin0 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + bootph-all; + }; + + sys_clkin1: sys_clkin1 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + bootph-all; + }; + }; + + soc { + #address-cells = <1>; + #size-cells = <1>; + compatible = "simple-bus"; + device_type = "soc"; + ranges; + bootph-all; + + timer0: timer@31018000 { + compatible = "adi,sc5xx-gptimer"; + reg = <0x31018004 0x100>, + <0x31018060 0x100>; + status = "okay"; + bootph-all; + }; + + clk: clocks@3108d000 { + reg = <0x3108d000 0x1000>; + #clock-cells = <1>; + clocks = <&sys_clkin0>, <&sys_clkin1>; + clock-names = "sys_clkin0", "sys_clkin1"; + status = "okay"; + bootph-all; + }; + }; +}; From patchwork Wed Aug 28 10:02:10 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: 1977753 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=WWvAQ02m; 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 4Wv0d236Wdz1yZd for ; Wed, 28 Aug 2024 20:14:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6E69E88B7F; Wed, 28 Aug 2024 12:12:35 +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="WWvAQ02m"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9EFC888AA7; Wed, 28 Aug 2024 12:12:30 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 [147.75.193.91]) (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 09B9F88A92 for ; Wed, 28 Aug 2024 12:12:27 +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 0259EA434DD; Wed, 28 Aug 2024 10:12:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 64B11C4E673; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=FsDg2ciRwd9eoPssEW8BpY0SdC3k7lLgrnfi6L/U51Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=WWvAQ02mO2PpJvP31L+GTlWppHHXjTOU7zmbyKZWzkwOoadhnVQYFzcy6V1w3p5DF FqwpJqQsq9YDblfQmUKbaBQuSBP7PGAIcvCQDtBkfY94vbkK83emibQwx3qbYQePYW zhKuce7PKPbhO19VE5EuaNJ8n1w2Xl/Lfrhtl0JYkj/NFj2q2prmkITytM4GL7ks0K 8tfOcwjuX93Y2ejsQarLSDKGIKvplrc13rSF4Ci7AOZFBey+yif2jqdu/nGNK0MmiH cp5C4RUsi2MOk6k19hjKqCcGwppYa0NxZdAa6hB/qRAk978icsz/s89bYgESdO/b3z /wZCFnIL/QW4w== 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 5077AC54E62; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:10 +0100 Subject: [PATCH 02/20] arm: dts: Support SC584-EZKIT MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-2-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 , Trevor Woerner X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724839434; l=2242; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=EoyEUlZv09rvrO+SsveRQ7V0mANa/r8vHcsllKcx6Po=; b=c1IgKImCz7G9JO3eERJ5NBEZSyyOER4gMn79VAJcoJhbt4w7yAPG0J3vX6EZX4lCaTfOM1zFQ 81RsbAy6YZpByCbSNcapLTujgm8ycPxW1nGD6Hv2GGRut11FxYxHjrB 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 Add minimal device tree for Analog Devices' SC584-EZKIT board, and common files for the SC58x family. This patch depends on Patch 01, for sc5xx.dtsi. Co-developed-by: Greg Malysa Co-developed-by: Trevor Woerner Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sc584-ezkit.dts | 13 +++++++++++++ arch/arm/dts/sc58x.dtsi | 23 +++++++++++++++++++++++ 3 files changed, 37 insertions(+) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 8fa56cc9f4..5b87c8972f 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1276,6 +1276,7 @@ dtb-$(CONFIG_TARGET_IMX8MM_CL_IOT_GATE_OPTEE) += imx8mm-cl-iot-gate-optee.dtb \ imx8mm-cl-iot-gate-ied-tpm1.dtbo dtb-$(CONFIG_TARGET_SC573_EZKIT) += sc573-ezkit.dtb +dtb-$(CONFIG_TARGET_SC584_EZKIT) += sc584-ezkit.dtb ifneq ($(CONFIG_TARGET_IMX8MP_RSB3720A1_4G)$(CONFIG_TARGET_IMX8MP_RSB3720A1_6G),) dtb-y += imx8mp-rsb3720-a1.dtb diff --git a/arch/arm/dts/sc584-ezkit.dts b/arch/arm/dts/sc584-ezkit.dts new file mode 100644 index 0000000000..4ec6bcfb65 --- /dev/null +++ b/arch/arm/dts/sc584-ezkit.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +/dts-v1/; + +#include "sc58x.dtsi" + +/ { + model = "ADI SC584-EZKIT"; + compatible = "adi,sc584-ezkit", "adi,sc58x"; +}; diff --git a/arch/arm/dts/sc58x.dtsi b/arch/arm/dts/sc58x.dtsi new file mode 100644 index 0000000000..66145315ab --- /dev/null +++ b/arch/arm/dts/sc58x.dtsi @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include "sc5xx.dtsi" + +/ { + gic: interrupt-controller@310b2000 { + compatible = "arm,cortex-a5-gic"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x310B2000 0x1000>, + <0x310B4000 0x100>; + }; +}; + +&timer0 { + reg = <0x31001004 0x100>, + <0x31001060 0x100>; + clocks = <&clk ADSP_SC58X_CLK_CGU0_SCLK0>; +}; From patchwork Wed Aug 28 10:02:11 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: 1977755 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=oBAwg0qk; 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 4Wv0dS5RBmz1yZd for ; Wed, 28 Aug 2024 20:14:36 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4802B88AA4; Wed, 28 Aug 2024 12:12:36 +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="oBAwg0qk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3616C88A3E; Wed, 28 Aug 2024 12:12:32 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) (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 30D9288AAA for ; Wed, 28 Aug 2024 12:12:27 +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 sin.source.kernel.org (Postfix) with ESMTP id 49298CE1784; Wed, 28 Aug 2024 10:12:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 6D2D4C4E674; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=1ROz4aJ3uWb9TEcVcnrpZWoE8G6KugOrbiBQWe5CvN8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=oBAwg0qkAvWakDU6PmW2WL745rla5oKBQK49YKmviBkPPcixp8dEJt8dEbzSkaKi4 XZngjhCfVqP22rhyK4LTsO9WnJp7L3RHPtsi8iZDnaBzqKa6ZZ3QX+jKimsdYibZbs uQ8uNxyKH+pAMXSJqDb1ZS1GuKHtiADPwN8y4oQMV5OrTDvFfsJMUEDfoHPj/Nsd77 ecgkwAbfkNAW7bPOE2gc+MyrTRKvuG9g5tf+tFz+oN9rIBdf8+hWMmAsLmdZobkqbi 0TD0nbhHw5iF1gqIbaopNhVZ8rUp+SdfkJKysUUT7wC0o5xvfn5gxIs0v4+Yc9rDao mjKiMAXrELrQA== 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 62D6BC5474B; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:11 +0100 Subject: [PATCH 03/20] arm: dts: Support SC589-MINI MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-3-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 , Trevor Woerner X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724839434; l=1495; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=qW/obTP3BVfcXPpV8uB1duEZKgXXecwX6E47LEhmVA4=; b=io4AkNZ71q8mPtOjvm6E9nuEZgwBhhimXWgG4qzRZwI/2zb2oP4luxloWgnJjdtmkIQYA9ApM biz1Vm3LyalAOAOGVgM4qFsMb1vVskI4asgcAwCRHb31F3iOghfcgBj 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 Add minimal device tree for Analog Devices' SC589-MINI board. This patch depends on Patches 01 and 02, for sc5xx.dtsi and sc58x.dtsi. Co-developed-by: Greg Malysa Co-developed-by: Trevor Woerner Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sc589-mini.dts | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 5b87c8972f..34c7ede8cb 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1277,6 +1277,7 @@ dtb-$(CONFIG_TARGET_IMX8MM_CL_IOT_GATE_OPTEE) += imx8mm-cl-iot-gate-optee.dtb \ dtb-$(CONFIG_TARGET_SC573_EZKIT) += sc573-ezkit.dtb dtb-$(CONFIG_TARGET_SC584_EZKIT) += sc584-ezkit.dtb +dtb-$(CONFIG_TARGET_SC589_MINI) += sc589-mini.dtb ifneq ($(CONFIG_TARGET_IMX8MP_RSB3720A1_4G)$(CONFIG_TARGET_IMX8MP_RSB3720A1_6G),) dtb-y += imx8mp-rsb3720-a1.dtb diff --git a/arch/arm/dts/sc589-mini.dts b/arch/arm/dts/sc589-mini.dts new file mode 100644 index 0000000000..605f7a17bf --- /dev/null +++ b/arch/arm/dts/sc589-mini.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +/dts-v1/; + +#include "sc58x.dtsi" + +/ { + model = "ADI SC598-MINI"; + compatible = "adi,sc589-mini", "adi,sc58x"; +}; From patchwork Wed Aug 28 10:02:12 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: 1977758 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=aC2D0rX9; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Wv0f42tZXz1yfn for ; Wed, 28 Aug 2024 20:15:08 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 84A9788BBE; Wed, 28 Aug 2024 12:12:37 +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="aC2D0rX9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 76F3488744; Wed, 28 Aug 2024 12:12:32 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 [147.75.193.91]) (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 7720B88AD2 for ; Wed, 28 Aug 2024 12:12:27 +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 53854A434C4; Wed, 28 Aug 2024 10:12:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 7DBF0C4E675; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=kk2bIIEhpKRFnO5eW74Rg38WRh++YTnW4G04TwriIdE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=aC2D0rX9J6Ed1swv2G2ibMrF6rfOjZsLgzwiyIUOeIxnT5CZYIe7BG6obGs5DPYoR Lj0yXzwaG6P1k2+73/evJIM3zU2p3rebUHPRFB2t5GdOweLehCTHADzUd9UxQjXe4x 4P5KxIiRfPMy83hrR4AXBhoS4MGnlkkNE+B3M18x01hqLmWYHgqXoXcAT04sSZkMbJ zj79qfDmmhFaj4BiaWHDoidNCiFepSZ2+LEAhsTQe/PAKqr0BbhOx4Bj0nkNnPZVy5 wLfzU2tn3Ebbly61n5kjS4YnEp/YwO+EOgDN7s8M0Fh8NdZOLYtmoLgV9od9GKQBHJ HPp/fCjBBim1Q== 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 6FFFBC54E71; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:12 +0100 Subject: [PATCH 04/20] arm: dts: Support SC589-EZKIT MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-4-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 , Trevor Woerner X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724839434; l=1554; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=EJwgZUVSyndPps3cDB9V1vFCVu8Ydi1nVmdp7mKN7ug=; b=zuw9JPceHBkhZMsCfdJop953B40NQFhqF8D+ufIk6OoGdspV+cSbFoqfUs1mjBN3Wdy+FQXoU /8gzKajPXuLCQ+2tsPfwBPpo+u0RgY6eTerbCyexgB/K3M+xCag3Nvd 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 Add minimal device tree for Analog Devices' SC589-EZKIT board. This patch depends on Patches 01 and 02, for sc5xx.dtsi and sc58x.dtsi. Co-developed-by: Greg Malysa Co-developed-by: Trevor Woerner Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sc589-ezkit.dts | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 34c7ede8cb..321ac82a29 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1278,6 +1278,7 @@ dtb-$(CONFIG_TARGET_IMX8MM_CL_IOT_GATE_OPTEE) += imx8mm-cl-iot-gate-optee.dtb \ dtb-$(CONFIG_TARGET_SC573_EZKIT) += sc573-ezkit.dtb dtb-$(CONFIG_TARGET_SC584_EZKIT) += sc584-ezkit.dtb dtb-$(CONFIG_TARGET_SC589_MINI) += sc589-mini.dtb +dtb-$(CONFIG_TARGET_SC589_EZKIT) += sc589-ezkit.dtb ifneq ($(CONFIG_TARGET_IMX8MP_RSB3720A1_4G)$(CONFIG_TARGET_IMX8MP_RSB3720A1_6G),) dtb-y += imx8mp-rsb3720-a1.dtb diff --git a/arch/arm/dts/sc589-ezkit.dts b/arch/arm/dts/sc589-ezkit.dts new file mode 100644 index 0000000000..8a1c0ce086 --- /dev/null +++ b/arch/arm/dts/sc589-ezkit.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +/dts-v1/; + +#include "sc58x.dtsi" + +/ { + model = "ADI SC589-EZKIT"; + compatible = "adi,sc589-ezkit", "adi,sc58x"; +}; From patchwork Wed Aug 28 10:02:13 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: 1977745 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=Ycv9YUz7; 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 4Wv0bQ1BQMz1yZd for ; Wed, 28 Aug 2024 20:12:50 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 90C5E888A3; Wed, 28 Aug 2024 12:12:30 +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="Ycv9YUz7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3E51388B16; Wed, 28 Aug 2024 12:12:28 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 [147.75.193.91]) (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 9233C888A3 for ; Wed, 28 Aug 2024 12:12:25 +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 A25F7A434C4; Wed, 28 Aug 2024 10:12:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 8C1ADC4E676; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=V10NW8YA5FtZmdlsWuF5nFbzsxKWNItYUamEy1Cr9Po=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Ycv9YUz7c87lUqCgbSjUyoxrs5i/+a6UxBhWqmFFpKl0gPOGur7dZw0FqHculynZC pWRPwZDWQ1DmLgbHKAP9Qq3T4iziDR0QMVg+feAdViaAsTWBCRvH3AleO6UIl73vtf ZmDKackkx1gfryWxr6Z4N7+CakQvBIgESu2Fz/KXjnz4WVSDrjmmDfjVTmdOOZMd8D GL7zXF+YApAU24c189QiPqAT6hYk50StWX41y39WmAKCneZHG2qN0hZKwBnvmyiC4J psmdFXvksyJvN/YX3Ijgp2eWiwXy1AQ84tyw96ATNCPhFqq2/kg1O1ra3F5ayZIwxE 8/3j/CIGqpFXA== 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 81891C54E62; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:13 +0100 Subject: [PATCH 05/20] arm: dts: Support SC594-SOM-EZKIT MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-5-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=2120; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=HKDrB7g2UVRwkSFWFWAIAe01m+yeROpBb3k1Ag/HPJU=; b=4fIA9o+yRBV6epYUAjP1fex3p+KHUQNfoSFvGun88Rxkel5gpcWnE1jXMjuBSMDy3JatlUq2d btZtwSw2l8bDU8DVF5k6XCjYWxRD1PLbPjCkv8L0AptwONB86tn5bnB 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 Add minimal device tree for Analog Devices' SC594-SOM-EZKIT board, and the SC594 SoM. This patch depends on patch 01, for sc5xx.dtsi. Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sc594-som-ezkit.dts | 13 +++++++++++++ arch/arm/dts/sc594-som.dtsi | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 321ac82a29..25c236039b 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1279,6 +1279,7 @@ dtb-$(CONFIG_TARGET_SC573_EZKIT) += sc573-ezkit.dtb dtb-$(CONFIG_TARGET_SC584_EZKIT) += sc584-ezkit.dtb dtb-$(CONFIG_TARGET_SC589_MINI) += sc589-mini.dtb dtb-$(CONFIG_TARGET_SC589_EZKIT) += sc589-ezkit.dtb +dtb-$(CONFIG_TARGET_SC594_SOM_EZKIT) += sc594-som-ezkit.dtb ifneq ($(CONFIG_TARGET_IMX8MP_RSB3720A1_4G)$(CONFIG_TARGET_IMX8MP_RSB3720A1_6G),) dtb-y += imx8mp-rsb3720-a1.dtb diff --git a/arch/arm/dts/sc594-som-ezkit.dts b/arch/arm/dts/sc594-som-ezkit.dts new file mode 100644 index 0000000000..e744a3a4ed --- /dev/null +++ b/arch/arm/dts/sc594-som-ezkit.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +/dts-v1/; + +#include "sc594-som.dtsi" + +/ { + model = "ADI SC594-SOM-EZKIT"; + compatible = "adi,sc594-som-ezkit", "adi,sc59x"; +}; diff --git a/arch/arm/dts/sc594-som.dtsi b/arch/arm/dts/sc594-som.dtsi new file mode 100644 index 0000000000..e15473f8e8 --- /dev/null +++ b/arch/arm/dts/sc594-som.dtsi @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +/dts-v1/; + +#include "sc5xx.dtsi" + +&timer0 { + clocks = <&clk ADSP_SC594_CLK_CGU0_SCLK0>; +}; + +&clk { + compatible = "adi,sc594-clocks"; + reg = <0x3108d000 0x1000>, + <0x3108e000 0x1000>, + <0x3108f000 0x1000>; +}; From patchwork Wed Aug 28 10:02:14 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: 1977752 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=YoLj2a/k; 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 4Wv0cp3d8Qz1yZd for ; Wed, 28 Aug 2024 20:14:02 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 12A8F88B67; Wed, 28 Aug 2024 12:12:35 +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="YoLj2a/k"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6A65888874; Wed, 28 Aug 2024 12:12:30 +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 F400388A8E for ; Wed, 28 Aug 2024 12:12:26 +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 02551A4347F; Wed, 28 Aug 2024 10:12:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9A774C4E677; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=/kkI339A5F/et4twAWjGRQEKz7jNaxW0tmv7IihHsHY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YoLj2a/kSWCGDUt0xDWfEeOAackhEY1q9OHB6W7AQazlx1/xUWCC3+ERWU0JNPbFu z/PNJwE69yHGo0m8hsgr1SD0RRMPyNqsAhLsQixR1eSOnT3DlKiB7HsZ2PSeqwjK28 Um48Lki6PgIZ/1oGPon2bjea3lm4O5K2wlk+bex4mLu0rukO7pDQIpnzjY+c9PYh/S MsRtiR9bZPRWmwHdmziRYsQ+hRXWV6W/B5proOwgmIy4d1o1SR/pgvKbpabjKcifWf kucZuHL2x4uk0zgqi1Zj7LwcFlFeGT4Xv6eLQBXNhAnp2hWmQDmxOpemWPqDLNuuRL fGtorwpGHfV3w== 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 8F26AC5474B; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:14 +0100 Subject: [PATCH 06/20] arm: dts: Support SC594-SOM-EZLITE MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-6-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=1552; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=sJ3AA+4nNO2X/f+kxcLmNn3Q/1Jkk6MkZMvzHfkwRqY=; b=4nXyiA3VmXauVGXJevpjlE3I5mNRK/MphNbIM5z7QCb1KPK9IoV4fup7zmmmnMGnuAewPtNr4 MXsCOUpX78bAHqZAcZFrsCDPkuBgmz8vB2BS8p4yR4YTXbVO16SkKq1 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 Add minimal device tree for Analog Devices' SC594-SOM-EZLITE board. This patch depends on Patches 01 and 05, for sc5xx.dtsi and sc594-som.dtsi respectively. Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sc594-som-ezlite.dts | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 25c236039b..0c9984232b 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1280,6 +1280,7 @@ dtb-$(CONFIG_TARGET_SC584_EZKIT) += sc584-ezkit.dtb dtb-$(CONFIG_TARGET_SC589_MINI) += sc589-mini.dtb dtb-$(CONFIG_TARGET_SC589_EZKIT) += sc589-ezkit.dtb dtb-$(CONFIG_TARGET_SC594_SOM_EZKIT) += sc594-som-ezkit.dtb +dtb-$(CONFIG_TARGET_SC594_SOM_EZLITE) += sc594-som-ezlite.dtb ifneq ($(CONFIG_TARGET_IMX8MP_RSB3720A1_4G)$(CONFIG_TARGET_IMX8MP_RSB3720A1_6G),) dtb-y += imx8mp-rsb3720-a1.dtb diff --git a/arch/arm/dts/sc594-som-ezlite.dts b/arch/arm/dts/sc594-som-ezlite.dts new file mode 100644 index 0000000000..7d81b40fe8 --- /dev/null +++ b/arch/arm/dts/sc594-som-ezlite.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +/dts-v1/; + +#include "sc594-som.dtsi" + +/ { + model = "ADI SC594-SOM-EZLITE"; + compatible = "adi,sc594-som-ezlite", "adi,sc59x"; +}; From patchwork Wed Aug 28 10:02:15 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: 1977751 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=Ih2Rcp1H; 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 4Wv0cb3zfTz1yZd for ; Wed, 28 Aug 2024 20:13:51 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A766088B6C; Wed, 28 Aug 2024 12:12:34 +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="Ih2Rcp1H"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5B65388AF8; Wed, 28 Aug 2024 12:12:30 +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 CD42188874 for ; Wed, 28 Aug 2024 12:12:26 +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 C378EA434D7; Wed, 28 Aug 2024 10:12:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id A616AC4DE1B; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=vx9SAH6Q62IBoOk8YfyMz0kkEesy3txxJZvU1ZoGgnI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Ih2Rcp1HLNhslyumWL0ycuc1shhrmDLDXcGgkV8Qef3A6ttbAZQTGNiOYVHUh1pMv JCyekLi6Oab495wgV5DgIxQAUO4GYJBt3ogGxr8Frd9JfFeK2HGruy0IAL+atLaloE 3uSvOP0LiyRp0o+1rW4ET99Mt/9Eu8rjprYv+Ae+cSfrTnjEGpxcZe4RuZlUSRaua7 MJsfLGe0FXVkb0RW9blC66og6MKVGTcfoAEwt7IBxDf2xAPteCt3LyqJVAVD0nie8V yHULrbKZRLLELWBTyFE3axTt0LxS0iXT0Z/Z9HuM9cBF6yzFF5Mps4ScmmLXCevd9a tz5Vn4Qy2s38A== 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 9EDA7C54E71; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:15 +0100 Subject: [PATCH 07/20] arm: dts: Support SC598-SOM-EZKIT MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-7-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=2464; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=XwhlBkJTZ9l9CK3/LMBUYJ30up8T7c9WzOtGrRACVpM=; b=vM3GFZeBNpPf/Eur9pzvHCRBNLPhAbbSsU3/NdzwvGkREoxvmyykwpMf+SNx/KEZnkZ8TGwnX bP7keP6nQiCBB7RbXUaoJi2wyepa7yU8Wy948NgooUpsBVpqBBfJthe 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 Add minimal device tree for Analog Devices' SC598-SOM-EZKIT board, and the SC598 SoM. This patch depends on patch 01, for sc5xx.dtsi. Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sc598-som-ezkit.dts | 13 +++++++++++++ arch/arm/dts/sc598-som.dtsi | 31 +++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 0c9984232b..6b0a762bce 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1281,6 +1281,7 @@ dtb-$(CONFIG_TARGET_SC589_MINI) += sc589-mini.dtb dtb-$(CONFIG_TARGET_SC589_EZKIT) += sc589-ezkit.dtb dtb-$(CONFIG_TARGET_SC594_SOM_EZKIT) += sc594-som-ezkit.dtb dtb-$(CONFIG_TARGET_SC594_SOM_EZLITE) += sc594-som-ezlite.dtb +dtb-$(CONFIG_TARGET_SC598_SOM_EZKIT) += sc598-som-ezkit.dtb ifneq ($(CONFIG_TARGET_IMX8MP_RSB3720A1_4G)$(CONFIG_TARGET_IMX8MP_RSB3720A1_6G),) dtb-y += imx8mp-rsb3720-a1.dtb diff --git a/arch/arm/dts/sc598-som-ezkit.dts b/arch/arm/dts/sc598-som-ezkit.dts new file mode 100644 index 0000000000..7289e4d1d5 --- /dev/null +++ b/arch/arm/dts/sc598-som-ezkit.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +/dts-v1/; + +#include "sc598-som.dtsi" + +/ { + model = "ADI SC598-SOM-EZKIT"; + compatible = "adi,sc598-som-ezkit", "adi,sc59x-64"; +}; diff --git a/arch/arm/dts/sc598-som.dtsi b/arch/arm/dts/sc598-som.dtsi new file mode 100644 index 0000000000..8bcc8bb8f1 --- /dev/null +++ b/arch/arm/dts/sc598-som.dtsi @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +/dts-v1/; + +#include "sc5xx.dtsi" + +/ { + gic: interrupt-controller@31200000 { + compatible = "arm,gic-v3"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x31200000 0x40000>, /* GIC Dist */ + <0x31240000 0x40000>; /* GICR */ + }; +}; + +&clk { + compatible = "adi,sc598-clocks"; + reg = <0x3108d000 0x1000>, + <0x3108e000 0x1000>, + <0x3108f000 0x1000>, + <0x310a9000 0x1000>; + reg-names = "cgu0", "cgu1", "cdu", "pll3"; +}; + +&timer0 { + clocks = <&clk ADSP_SC598_CLK_CGU0_SCLK0>; +}; From patchwork Wed Aug 28 10:02:16 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: 1977761 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=XhHQfBaw; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Wv0fV1Gtmz1yg0 for ; Wed, 28 Aug 2024 20:15:30 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5244688BCF; Wed, 28 Aug 2024 12:12:45 +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="XhHQfBaw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2C8E988B63; Wed, 28 Aug 2024 12:12:34 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 [147.75.193.91]) (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 9035F88ADB for ; Wed, 28 Aug 2024 12:12:27 +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 60DF1A434E4; Wed, 28 Aug 2024 10:12:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id B4DA8C4E679; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=NNank+2Dp8rElP96iDyYvfNRfmIedtNKf6SkN/eMynM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=XhHQfBaw/+RFMDQYCotREvrQOgifIdHC17ce3Qo/Kj3NF4uuz3If6iWT4beYiDxd3 MHO98FY44BA/nDUuuo6UoR8qDaWN6lLXR0vm5H+tDh4WSY6w1QDQ6YRK57gDBDtpqR tP41w1R/cjHBv+1l+mgNkf0gIQ8aS6pvLe/a55iVd9hAFIvzsIc6xsFsx3qf8z3jmN Cle2eMCGwVwmeOZDSaN303TbadoSu0d/oWixvvby6xBKYjHzE2U5p3/KjMe5HUS6Jx Bky1gvUwqmiCPcS6C0VfEuM5Hg7toUWMEvmLyjtQps+1ZOaGa4fdC/KnezCag9BWuA ZkgkptKq2TuRg== 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 AC9BDC54E83; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:16 +0100 Subject: [PATCH 08/20] arm: dts: Support SC598-SOM-EZLITE MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-8-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=1575; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=M0uaWSxA8CaZN3Qnd9WlPh2aWgwwkP6PgJ7fqjzQrik=; b=ewMxmLrxKL+kdkaWh936UipYSGLfr5vFstj9MQDAdtG9YoXin4iJzaZf/4snyPYmGL5u1Vqsq /Bneoh5gtFUCnxCJ438Mau9SWv+1GvXsMV+qTNkAh6Op273xW3UB6LB 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 Add minimal device tree for Analog Devices' SC598-SOM-EZLITE board. This patch depends on Patches 01 and 07, for sc5xx.dtsi and sc598-som.dtsi respectively. Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sc598-som-ezlite.dts | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 6b0a762bce..9395feeede 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1282,6 +1282,7 @@ dtb-$(CONFIG_TARGET_SC589_EZKIT) += sc589-ezkit.dtb dtb-$(CONFIG_TARGET_SC594_SOM_EZKIT) += sc594-som-ezkit.dtb dtb-$(CONFIG_TARGET_SC594_SOM_EZLITE) += sc594-som-ezlite.dtb dtb-$(CONFIG_TARGET_SC598_SOM_EZKIT) += sc598-som-ezkit.dtb +dtb-$(CONFIG_TARGET_SC598_SOM_EZLITE) += sc598-som-ezlite.dtb ifneq ($(CONFIG_TARGET_IMX8MP_RSB3720A1_4G)$(CONFIG_TARGET_IMX8MP_RSB3720A1_6G),) dtb-y += imx8mp-rsb3720-a1.dtb diff --git a/arch/arm/dts/sc598-som-ezlite.dts b/arch/arm/dts/sc598-som-ezlite.dts new file mode 100644 index 0000000000..fa23b30f86 --- /dev/null +++ b/arch/arm/dts/sc598-som-ezlite.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +/dts-v1/; + +#include "sc598-som.dtsi" + +/ { + model = "ADI SC598-SOM-EZLITE"; + compatible = "adi,sc598-som-ezlite", "adi,sc59x-64"; +}; From patchwork Wed Aug 28 10:02:17 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: 1977765 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=UCYOyQiW; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Wv0g83ZVbz1yfy for ; Wed, 28 Aug 2024 20:16:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7AA9A88B63; Wed, 28 Aug 2024 12:12:46 +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="UCYOyQiW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1286588B16; Wed, 28 Aug 2024 12:12:35 +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 8232588AD7 for ; Wed, 28 Aug 2024 12:12:27 +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 53876A434C6; Wed, 28 Aug 2024 10:12:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id C434CC4E68D; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=Tr9cNUvTr+aWavHMyj2qC0RnfuDp3fT8i9g7AAlqmM0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UCYOyQiWCp8SHgALIOBgKbxo5p6iDX+Xh6ImNkuj4BKkuIASbdKiWoUC03vtopz5K HI/EmL7u7/PFtyQ5YKQUVOCJZ/YYcjaDOcrUIya07+CASQT1zjhNMUDDFYaYHlaIwj 8mktjfch5r5612tZxApyZQBqV5o0WO2cKGQTn9drOcv0+etgQle4zQOxM7SKK6P7MP Dyk0xnu5uvsS99hdmutOPwmxnFcp8jTxbooeK4BV7TwoqIAA6iXBBer5THGqMtSmFY xZFJiZGtdwJXQ7rL+Y7E2rTUOwUtfpC8ZhFCg5nYrOtRG8zjOXmgaP5IBuAC6XcIM/ 6HyXKDZ9J0frg== 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 B9BEEC54E62; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:17 +0100 Subject: [PATCH 09/20] dt-bindings: arm: Add SC5xx Series binding MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-9-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=2267; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=Hj1AL+UlGLUOoTKxqlpcMivfNb8PuSCat7zga3khJ1g=; b=q/rpIT0nV5dgztV3HrJgvnsTYuOgf125BVTteSRVIRXeUMbXWRC0ynF3vKuXH0udM2BpK7SQu MCJNr2AulLLBLgkm04gYbsw2YJTkQshnOp5Lj70PO1D17TIuTU5pFvC 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 Add devicetree schema for Analog Devices SC5xx series SoCs. Signed-off-by: Oliver Gaskell --- MAINTAINERS | 1 + doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml | 46 +++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0640d56991..c283e09901 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -607,6 +607,7 @@ T: git https://github.com/analogdevicesinc/lnxdsp-u-boot F: arch/arm/dts/sc5* F: arch/arm/include/asm/arch-adi/ F: arch/arm/mach-sc5xx/ +F: doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml F: drivers/clk/adi/ F: drivers/serial/serial_adi_uart4.c F: drivers/timer/adi_sc5xx_timer.c diff --git a/doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml b/doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml new file mode 100644 index 0000000000..2d08d75667 --- /dev/null +++ b/doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0+) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/adi/adi,sc5xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices SC5XX ARM-based SoCs + +maintainers: + - Vasileios Bimpikas + - Utsav Agarwal + - Arturs Artamonovs + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: SC57X Series Boards + items: + - const: adi,sc573-ezkit + - const: adi,sc57x + + - description: SC58X Series Boards + items: + - enum: + - adi,sc584-ezkit + - adi,sc589-ezkit + - adi,sc589-mini + - const: adi,sc58x + + - description: SC59X Series 32-bit Boards + items: + - enum: + - adi,sc594-som-ezkit + - adi,sc594-som-ezlite + - const: adi,sc59x + + - description: SC59X Series 64-bit Boards + items: + - enum: + - adi,sc598-som-ezkit + - adi,sc598-som-ezlite + - const: adi,sc59x-64 + +additionalProperties: true \ No newline at end of file From patchwork Wed Aug 28 10:02:18 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: 1977757 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=StDSuLPt; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Wv0ds3g08z1yZd for ; Wed, 28 Aug 2024 20:14:57 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0A39688AD7; Wed, 28 Aug 2024 12:12:37 +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="StDSuLPt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 58CE688744; Wed, 28 Aug 2024 12:12:32 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 [147.75.193.91]) (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 4CAED88AB1 for ; Wed, 28 Aug 2024 12:12:27 +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 2B4ECA434E9; Wed, 28 Aug 2024 10:12:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id CFDE6C4E678; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=C5sF0QPF01NoXjHhAJUfElhNgBSqSyGMeempLt23Gag=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=StDSuLPtcm9ABngbRm2fYOQwCsg8nB8LDBy2QQAu37RMQW8sLyisigSWWHFZrR8UM om/aRXVZwhxaD72p983KxAw37fUa1MO+wZZrGk/jF9hJcPlycJL3GkmS8DtZ2sVRPy IpISKL33gDGSSYhHFtUtr+P0iaEK2Slr8wnv6UC/H330hx/+8exX15eBahpy16GGbU GsqBmavvYsuMJUSMAU+dGHapbKHMp/SMWCFoIn7IH18nTGbxWwJBS7EDb4+j6tlcFb YptnR39ZiTZAeATvE8CB3YVohuBqSktGG8bQ4rQIDagFyYs08w9Tbtsd7oIgaHRjp0 1VvtI17ZtpUNQ== 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 C8EB1C54E71; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:18 +0100 Subject: [PATCH 10/20] dt-bindings: clock: Add SC5xx clock tree bindings MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-10-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=4095; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=cuAg1O7gfyKVhPAk0NCafanQ9M53hS0+HLqu+jCXmdg=; b=4Dc9BZALHaIZPVGBa4rkTTd3ppNC6nnP2e4Sy8b0tgctHvzLE/tO/QiAxML31qr9AZFSwLG05 R+qC8Ooh2OvCN/fRKRBPtq7BqqBgJgqAJPEwe3ZlFY2j6LtDXArOi13 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 Add devicetree schema for the clock tree on Analog Devices SC5xx series SoCs. Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- MAINTAINERS | 1 + .../clock/adi,sc5xx-clocks.yaml | 112 +++++++++++++++++++++ 2 files changed, 113 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c283e09901..d5f79097a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -608,6 +608,7 @@ F: arch/arm/dts/sc5* F: arch/arm/include/asm/arch-adi/ F: arch/arm/mach-sc5xx/ F: doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml +F: doc/device-tree-bindings/clock/adi,sc5xx-clocks.yaml F: drivers/clk/adi/ F: drivers/serial/serial_adi_uart4.c F: drivers/timer/adi_sc5xx_timer.c diff --git a/doc/device-tree-bindings/clock/adi,sc5xx-clocks.yaml b/doc/device-tree-bindings/clock/adi,sc5xx-clocks.yaml new file mode 100644 index 0000000000..9bbd5467a0 --- /dev/null +++ b/doc/device-tree-bindings/clock/adi,sc5xx-clocks.yaml @@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0+) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/adi,sc5xx-clocks.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Clock Tree Drivers for Analog Devices SC5XX Processors + +maintainers: + - Vasileios Bimpikas + - Utsav Agarwal + - Arturs Artamonovs + +description: | + These drivers read in the processors CDU (clock distribution unit) + and CGU (clock generation unit) values to determine various clock + rates + +properties: + compatible: + enum: + - adi,sc5xx-clocks # Any + - adi,sc57x-clocks # 32-Bit SC573 processor + - adi,sc58x-clocks # 32-Bit SC584, SC589 processors + - adi,sc594-clocks # 32-Bit SC594 processor + - adi,sc598-clocks # 64-Bit SC598 processor + + '#clock-cells': + const: 1 + + reg: + minItems: 3 + maxItems: 4 + + reg-names: + description: + String reference names for the reg property + minItems: 3 + maxItems: 4 + + clocks: + description: + Specifies the CLKIN0 and CLKIN1 reference clock(s) from which the + output frequencies are derived via CDU+CGU + minItems: 2 + maxItems: 2 + + clock-names: + description: + String reference names for CLKIN0 and CLKIN1 + minItems: 2 + maxItems: 2 + +required: + - compatible + - reg + - clocks + - '#clock-cells' + - clock-names + +additionalProperties: false + +examples: + - | + clk0: clocks@3108d000 { + compatible = "adi,sc57x-clocks"; + reg = <0x3108d000 0x1000>, + <0x3108e000 0x1000>, + <0x3108f000 0x1000>; + #clock-cells = <1>; + clocks = <&sys_clkin0>, <&sys_clkin1>; + clock-names = "sys_clkin0", "sys_clkin1"; + status = "okay"; + }; + + - | + clk1: clocks@3108d000 { + compatible = "adi,sc58x-clocks"; + reg = <0x3108d000 0x1000>, + <0x3108e000 0x1000>, + <0x3108f000 0x1000>; + #clock-cells = <1>; + clocks = <&sys_clkin0>, <&sys_clkin1>; + clock-names = "sys_clkin0", "sys_clkin1"; + status = "okay"; + }; + + - | + clk2: clocks@3108d000 { + compatible = "adi,sc594-clocks"; + reg = <0x3108d000 0x1000>, + <0x3108e000 0x1000>, + <0x3108f000 0x1000>; + #clock-cells = <1>; + clocks = <&sys_clkin0>, <&sys_clkin1>; + clock-names = "sys_clkin0", "sys_clkin1"; + status = "okay"; + }; + + - | + clk3: clocks@3108d000 { + compatible = "adi,sc598-clocks"; + reg = <0x3108d000 0x1000>, + <0x3108e000 0x1000>, + <0x3108f000 0x1000>, + <0x310a9000 0x1000>; + #clock-cells = <1>; + clocks = <&sys_clkin0>, <&sys_clkin1>; + clock-names = "sys_clkin0", "sys_clkin1"; + status = "okay"; + }; + From patchwork Wed Aug 28 10:02:19 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: 1977754 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=epLofqNU; 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 4Wv0dF2YFvz1yZd for ; Wed, 28 Aug 2024 20:14:25 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C814D88AB9; Wed, 28 Aug 2024 12:12:35 +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="epLofqNU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9A48088B35; Wed, 28 Aug 2024 12:12:31 +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 sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) (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 0B8F888AA4 for ; Wed, 28 Aug 2024 12:12:27 +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 sin.source.kernel.org (Postfix) with ESMTP id 6BB24CE177D; Wed, 28 Aug 2024 10:12:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id E0B68C4E68F; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839448; bh=Hf+iLUBE0Z9zCI7oSDXcMWm+uxM6csrWUK4/8MFBEzE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=epLofqNUiZd62i+LKY8r6KoUcj97VbjA3Dnp8SfBZI+th374nl7XBJj8elG5LVJNy gkYsEAdPtxM8iXaWn74Yd36QcGeiqzVaFDT/AJb30VJdzoodT7v9Oe7RZS3ZegZK39 mh5iagNAUTUfH9fPt9YT72XWR27N4MKbic6zYakNZi1hbkPqlRdx1ghdHJ3MtTNNMC Yqk8MajYvCAZEQqh5swDgFv/KO6wjLh2s2XfROAC+3HwkxBB2Kk7zAYQK94m9lnoZ3 LBT/11Apm1vUd+7oR4QtVZimkayaOOoPBPHSbnCC/idAUxlPkQGYaugOz/ZvMBRXWZ /D4yVatJ92e2g== 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 D9883C54E83; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:19 +0100 Subject: [PATCH 11/20] dt-bindings: timer: Add SC5xx Timer bindings MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-11-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=1973; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=I2o0p/xdD0IsHjkuevpLbyfT+kKAvYH0pYLp56N7oms=; b=97p4ZUVBqbp7wAsKOsifwHFYFZ+vh+GOTbFQZQrLqgJtw+Xvc6hbF2zICmhoW0sGGaweUdBTr Q/gxCXT1WiXC1VlO9mhKBAQFs5ms/L8FJg8geVE2WV4Y4F9hVBUwtup 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 Add devicetree schema for the timer peripheral on Analog Devices SC5xx series SoCs. Signed-off-by: Oliver Gaskell --- MAINTAINERS | 1 + .../timer/adi,sc5xx-gptimer.yaml | 42 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d5f79097a1..823bb5ad92 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -609,6 +609,7 @@ F: arch/arm/include/asm/arch-adi/ F: arch/arm/mach-sc5xx/ F: doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml F: doc/device-tree-bindings/clock/adi,sc5xx-clocks.yaml +F: doc/device-tree-bindings/timer/adi,sc5xx-gptimer.yaml F: drivers/clk/adi/ F: drivers/serial/serial_adi_uart4.c F: drivers/timer/adi_sc5xx_timer.c diff --git a/doc/device-tree-bindings/timer/adi,sc5xx-gptimer.yaml b/doc/device-tree-bindings/timer/adi,sc5xx-gptimer.yaml new file mode 100644 index 0000000000..5e313af6fe --- /dev/null +++ b/doc/device-tree-bindings/timer/adi,sc5xx-gptimer.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0+) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/adi,sc5xx-gptimer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices SC5XX Series SoC Timer Peripherals + +maintainers: + - Vasileios Bimpikas + - Utsav Agarwal + - Arturs Artamonovs + +properties: + compatible: + const: adi,sc5xx-gptimer + + reg: + minItems: 2 + maxItems: 2 + + clocks: + minItems: 1 + maxItems: 1 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + timer0: timer@31018000 { + compatible = "adi,sc5xx-gptimer"; + reg = <0x31018004 0x100>, + <0x31018060 0x100>; + status = "okay"; + bootph-all; + }; + From patchwork Wed Aug 28 10:02:20 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: 1977764 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=A0BKB2Kw; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Wv0fw5vYSz1yfy for ; Wed, 28 Aug 2024 20:15:52 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 16C4888C03; Wed, 28 Aug 2024 12:12:46 +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="A0BKB2Kw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 04BAD88B63; Wed, 28 Aug 2024 12:12:35 +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 sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) (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 5F2CF88B16 for ; Wed, 28 Aug 2024 12:12:28 +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 sin.source.kernel.org (Postfix) with ESMTP id 5FE03CE1796; Wed, 28 Aug 2024 10:12:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id F0424C4E690; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724839449; bh=oPZs+G0T3WazXTJL/Zt9RMeadis9zUzr8bYfQFtUZtw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=A0BKB2Kwq8tGEAXjDMvKPH+XMJrw/1wMBJk4Cj2JLBEIbBbSysHiQF+nnnPULang4 O0PwiGd7Px0FEzD06uHQNv+Ds4RHzZJysvKiE5+fYbqOx8BrOB5YcW2IpZ7Xn+inMD gwY3nj2W5oSLE7QLt5H/pRCAVViMCBAMqWoCjSKgQAGfRMebD2YlgPzYcI5Jt9fFGZ EzJ4apUHhPHi3aRwpGmeZnTlIxGO4vJb3mbyp+FFQ7nzIUPxRwAtZl8NPpY1XaPXOM SRFJDm1Z8Cz+rvroTQL5cY5/uLqDBq4MUvIfql5pnFtO6dUlXiBCg+XT8Z7p1rJPEh e7+dFR/bLRqRw== 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 E7961C54E62; Wed, 28 Aug 2024 10:04:08 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:20 +0100 Subject: [PATCH 12/20] arm: mach-sc5xx: clean up Kconfig MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-12-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=2293; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=GqAzHP3KosVfnR2WvoYCrPLMox90jgqaH+gfLsq7l78=; b=Dbqrde6b/peWVFsuWwr3sOp/ItUmKtntqaVhWuK5gupytt4s/kXNAXJqJglWA65I5anIO2sNj H2w6WPw5153B5PiI0BMxMUHy6jb2pkFhqW5AAttf55dx85ZwQaLMINj 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 Moves common options between all SC5xx series boards to the ARCH_SC5XX option instead of duplicating them. Also, it was possible to select multiple of the SoC support options. Given a U-Boot binary can only support a single platform, this moves the SoC selection to a `choice`, making them mutually exclusive. Signed-off-by: Oliver Gaskell --- arch/arm/Kconfig | 8 ++++++++ arch/arm/mach-sc5xx/Kconfig | 31 +++++++++++-------------------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ba0359fed5..69decaa591 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1868,6 +1868,14 @@ config TARGET_LS1046AFRWY config ARCH_SC5XX bool "Analog Devices SC5XX-processor family" + select SPL + select SUPPORT_SPL + select PANIC_HANG + select DM + select SPL_DM + select DM_SERIAL + select TIMER + select ADI_SC5XX_TIMER config TARGET_SL28 bool "Support sl28" diff --git a/arch/arm/mach-sc5xx/Kconfig b/arch/arm/mach-sc5xx/Kconfig index 3846b4fd5b..d99b02b574 100644 --- a/arch/arm/mach-sc5xx/Kconfig +++ b/arch/arm/mach-sc5xx/Kconfig @@ -13,47 +13,38 @@ if ARCH_SC5XX +choice + prompt "SC5xx SoC Select" + help + Selects which series of Analog Devices SC5xx chips to support. + config SC57X - bool - select SUPPORT_SPL + bool "SC57x series" select CPU_V7A - select PANIC_HANG select COMMON_CLK_ADI_SC57X - select TIMER - select ADI_SC5XX_TIMER config SC58X - bool - select SUPPORT_SPL + bool "SC58x series" select CPU_V7A - select PANIC_HANG select COMMON_CLK_ADI_SC58X - select TIMER - select ADI_SC5XX_TIMER config SC59X - bool - select SUPPORT_SPL + bool "SC59x 32-bit series" select CPU_V7A - select PANIC_HANG select COMMON_CLK_ADI_SC594 - select TIMER - select ADI_SC5XX_TIMER select NOP_PHY config SC59X_64 - bool - select SUPPORT_SPL - select PANIC_HANG + bool "SC59x 64-bit series" select MMC_SDHCI_ADMA_FORCE_32BIT select ARM64 - select DM - select DM_SERIAL select COMMON_CLK_ADI_SC598 select GICV3 select GIC_600_CLEAR_RDPD select NOP_PHY +endchoice + config SC_BOOT_MODE int "SC5XX boot mode select" default 1 From patchwork Wed Aug 28 10:02:21 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: 1977748 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=rCPa+AGS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Wv0bz4912z1yZd for ; Wed, 28 Aug 2024 20:13:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9AE0A88B37; 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="rCPa+AGS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C34C488B29; Wed, 28 Aug 2024 12:12:28 +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 17B1D88A75 for ; Wed, 28 Aug 2024 12:12:26 +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 07E0EA434CB; Wed, 28 Aug 2024 10:12:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 0CCA7C4E691; 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=6StcXzKynHJyn5miP+16sHYq87/yb2a+MFl8oifLK3g=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=rCPa+AGSYpjpZsZjTeM3WALnpWM8img3abkpI/8HJSzxN3ikZJejqhsJ6cw28LgHE U2ieRDWNPhprq4un/uFmOkK5uNuIZF7Ctg96xy+16SQXrnKBUpDWg8uRFE05/9BYo8 7EB7hZ08HnLxTz3ofN8N6ejzH7InWmUOy+FdrNwAOSAHO6kprGx8fMD6BggRAQWmGb UdQQHWZDpBDtP8PGS7+KUEWlugaZ170eTaK2NRKjqfaIeJDyU2rgfnJSZicaJFE5R6 Z6P4Q981YYNPxrsGYYLzfjsKrKQHcVavVWdLusVarxI2miQpGy2xWpA9FzbPG/cjqi QJBkjbvJBZ/MA== 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 02537C54E71; Wed, 28 Aug 2024 10:04:09 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:21 +0100 Subject: [PATCH 13/20] arm: SC598-SOM-EZKIT initial support MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-13-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 , Trevor Woerner X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724839434; l=10533; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=9F+zvQJMMot/CLh1Ec54WEbVXJ2GcVVeBNvDllK0m04=; b=bLYUoUZc5iJv/zvgQws0Fyl5r4z9VapNH45mr+zLmyF6MCm9SZNcLtkf5LET3rnzLhnZr//0m 2dVduKza8w/BHzunnfr3sXuxdPnQYjS413n+G0no84wY5TxEEUBxYzk 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' SC598-SOM-EZKIT board. Includes: - CONFIG options common to all SC5xx SoCs - SoC specific configs in mach-sc5xx/Kconfig - Memory Map for SPL - Necessary board-specific init functions - Board-specific Kconfig and environment in board/adi/ - Memory configuration Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Co-developed-by: Trevor Woerner Signed-off-by: Oliver Gaskell --- MAINTAINERS | 2 + arch/arm/Kconfig | 6 ++ arch/arm/mach-sc5xx/Kconfig | 40 ++++++- arch/arm/mach-sc5xx/Makefile | 1 + arch/arm/mach-sc5xx/sc59x_64-spl.c | 26 +++++ arch/arm/mach-sc5xx/sc59x_64.c | 25 +++++ arch/arm/mach-sc5xx/soc.c | 25 +++++ board/adi/sc598-som-ezkit/Kconfig | 150 ++++++++++++++++++++++++++ board/adi/sc598-som-ezkit/sc598-som-ezkit.env | 13 +++ include/configs/sc598-som.h | 23 ++++ 10 files changed, 310 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 823bb5ad92..5f945ec335 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -607,12 +607,14 @@ T: git https://github.com/analogdevicesinc/lnxdsp-u-boot F: arch/arm/dts/sc5* F: arch/arm/include/asm/arch-adi/ F: arch/arm/mach-sc5xx/ +F: board/adi/ F: doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml F: doc/device-tree-bindings/clock/adi,sc5xx-clocks.yaml F: doc/device-tree-bindings/timer/adi,sc5xx-gptimer.yaml F: drivers/clk/adi/ F: drivers/serial/serial_adi_uart4.c F: drivers/timer/adi_sc5xx_timer.c +F: include/configs/sc5* F: include/env/adi/ ARM SNAPDRAGON diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 69decaa591..a3e8ebe0b1 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1870,7 +1870,13 @@ config ARCH_SC5XX bool "Analog Devices SC5XX-processor family" select SPL select SUPPORT_SPL + select SPL_SKIP_LOWLEVEL_INIT + select SPL_LIBGENERIC_SUPPORT + select SPL_LIBCOMMON_SUPPORT + select SPL_BOOTROM_SUPPORT + select SPL_DM_SEQ_ALIAS select PANIC_HANG + select HAS_CUSTOM_SYS_INIT_SP_ADDR select DM select SPL_DM select DM_SERIAL diff --git a/arch/arm/mach-sc5xx/Kconfig b/arch/arm/mach-sc5xx/Kconfig index d99b02b574..cd3c7011f4 100644 --- a/arch/arm/mach-sc5xx/Kconfig +++ b/arch/arm/mach-sc5xx/Kconfig @@ -41,10 +41,31 @@ config SC59X_64 select COMMON_CLK_ADI_SC598 select GICV3 select GIC_600_CLEAR_RDPD - select NOP_PHY + select GICV3_SUPPORT_GIC600 + select NOP_PHY if PHY + +endchoice + +if SC59X_64 + +choice + prompt "SC59x 64-bit board select" + +config TARGET_SC598_SOM_EZKIT + bool + prompt "SC598-SOM with SOMCRR-EZKIT" + select ADI_CARRIER_SOMCRR_EZKIT endchoice +endif + +config ADI_IMAGE + string "ADI fitImage type" + help + The image built by the ADI ADSP Linux build system. + Is one of tiny, minimal, full. + config SC_BOOT_MODE int "SC5XX boot mode select" default 1 @@ -84,10 +105,25 @@ config SC_BOOT_OSPI_SSEL This is the OSPI chip select number to use for booting, Y in the expression `sf probe X:Y` +config SYS_BOOTM_LEN + hex + default 0x1800000 + config SYS_FLASH_BASE hex default 0x60000000 +config SYS_MALLOC_F_LEN + default 0x14000 + +config SYS_LOAD_ADDR + hex + default 0x0 + +config SYS_MALLOC_LEN + hex + default 1048576 + config UART_CONSOLE int default 0 @@ -463,4 +499,6 @@ config PINCTRL_ADI bool default y +source "board/adi/sc598-som-ezkit/Kconfig" + endif diff --git a/arch/arm/mach-sc5xx/Makefile b/arch/arm/mach-sc5xx/Makefile index eeb56c078b..0955c509a5 100644 --- a/arch/arm/mach-sc5xx/Makefile +++ b/arch/arm/mach-sc5xx/Makefile @@ -14,6 +14,7 @@ obj-$(CONFIG_SC57X) += sc57x.o obj-$(CONFIG_SC58X) += sc58x.o obj-$(CONFIG_SC59X) += sc59x.o obj-$(CONFIG_SC59X_64) += sc59x_64.o +obj-$(CONFIG_SC59X_64) += sc59x_64-spl.o obj-$(CONFIG_SPL_BUILD) += spl.o obj-$(CONFIG_SYSCON) += rcu.o diff --git a/arch/arm/mach-sc5xx/sc59x_64-spl.c b/arch/arm/mach-sc5xx/sc59x_64-spl.c new file mode 100644 index 0000000000..ae8c860cfe --- /dev/null +++ b/arch/arm/mach-sc5xx/sc59x_64-spl.c @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include + +// Table 47-14 in SC598 hardware reference manual +const struct adi_boot_args adi_rom_boot_args[] = { + // JTAG/no boot + [0] = {0, 0, 0}, + // SPI master, used for qspi as well + [1] = {0x60040000, 0x00040000, 0x00000207}, + // SPI slave + [2] = {0, 0, 0x00000212}, + // UART slave + [3] = {0, 0, 0x00000013}, + // Linkport slave + [4] = {0, 0, 0x00000014}, + // OSPI master + [5] = {0x60040000, 0, 0x00000008}, + // eMMC + [6] = {0x201, 0, 0x86009}, + // reserved, also no boot + [7] = {0, 0, 0} +}; diff --git a/arch/arm/mach-sc5xx/sc59x_64.c b/arch/arm/mach-sc5xx/sc59x_64.c index 82537bf196..001747f223 100644 --- a/arch/arm/mach-sc5xx/sc59x_64.c +++ b/arch/arm/mach-sc5xx/sc59x_64.c @@ -9,6 +9,7 @@ */ #include +#include #include #include @@ -24,6 +25,30 @@ #define BITM_SCB5_SPI2_OSPI_REMAP_REMAP 0x00000003 #define ENUM_SCB5_SPI2_OSPI_REMAP_OSPI0 0x00000001 +static struct mm_region sc598_mem_map[] = { + { + /* Peripherals */ + .virt = 0x0UL, + .phys = 0x0UL, + .size = 0x80000000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | + PTE_BLOCK_NON_SHARE | + PTE_BLOCK_PXN | PTE_BLOCK_UXN + }, { + /* DDR */ + .virt = 0x80000000UL, + .phys = 0x80000000UL, + .size = 0x40000000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | + PTE_BLOCK_INNER_SHARE + }, { + /* List terminator */ + 0, + } +}; + +struct mm_region *mem_map = sc598_mem_map; + adi_rom_boot_fn adi_rom_boot = (adi_rom_boot_fn)0x000000e4; void sc5xx_enable_rgmii(void) diff --git a/arch/arm/mach-sc5xx/soc.c b/arch/arm/mach-sc5xx/soc.c index 8f13127a66..714b214bf6 100644 --- a/arch/arm/mach-sc5xx/soc.c +++ b/arch/arm/mach-sc5xx/soc.c @@ -172,6 +172,31 @@ void fixup_dp83867_phy(struct phy_device *phydev) phy_write(phydev, MDIO_DEVAD_NONE, 0, 0x3100); } +extern char __bss_start, __bss_end; + +void bss_clear(void) +{ + #ifdef CONFIG_SC59X_64 + u32 *to = (void *)&__bss_start; + int i, sz; + + sz = &__bss_end - &__bss_start; + for (i = 0; i < sz; i += 4) + *to++ = 0; + #endif +} + +int board_early_init_f(void) +{ + bss_clear(); + return 0; +} + +int board_init(void) +{ + return 0; +} + int dram_init(void) { gd->ram_size = CFG_SYS_SDRAM_SIZE; diff --git a/board/adi/sc598-som-ezkit/Kconfig b/board/adi/sc598-som-ezkit/Kconfig new file mode 100644 index 0000000000..3d9b378d37 --- /dev/null +++ b/board/adi/sc598-som-ezkit/Kconfig @@ -0,0 +1,150 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# (C) Copyright 2024 - Analog Devices, Inc. + +if TARGET_SC598_SOM_EZKIT + +config SYS_VENDOR + default "adi" + +config LDR_CPU + default "ADSP-SC598-0.0" + +config SYS_BOARD + default "sc598-som-ezkit" + +config SYS_CONFIG_NAME + default "sc598-som" + +config DEFAULT_DEVICE_TREE + default "sc598-som-ezkit" + +config SPL_MAX_SIZE + default 0x30000 # 256KB + +config ADI_IMAGE + default "minimal" + +config NR_DRAM_BANKS + default 1 + +config SPL_BSS_START_ADDR + hex + default 0x200B0000 + +config SPL_BSS_MAX_SIZE + hex + default 0x10000 # 64K + +config SYS_SPL_MALLOC_START + hex + default 0x200C0000 + +config SYS_SPL_MALLOC_SIZE + hex + default 0x10000 # 64K + +config SPL_STACK + hex + default 0x200E4000 + +config SPL_STACK_SIZE + hex + default 0x14000 # 64K + +config TEXT_BASE + hex + default 0x96000000 + +config CUSTOM_SYS_INIT_SP_ADDR + hex + default 0x96000000 + +config SYS_LOAD_ADDR + hex + default 0x0 + +# SPL + +config SPL_TEXT_BASE + default 0x20080000 + +config SPL_PAYLOAD_ARGS_ADDR + hex + default 0x99000000 + +config SPL_OF_LIBFDT_ASSUME_MASK + hex + default 0x0 + +# SPI Flash + +config SF_DEFAULT_BUS + default 2 + +config SF_DEFAULT_CS + default 1 + +config SF_DEFAULT_SPEED + default 10000000 + +# Clock Configs + +config CGU0_DF_DIV + default 0 + +config CGU0_VCO_MULT + default 80 + +config CGU0_CCLK_DIV + default 2 + +config CGU0_SCLK_DIV + default 4 + +config CGU0_SCLK0_DIV + default 4 + +config CGU0_SCLK1_DIV + default 2 + +config CGU0_DCLK_DIV + default 3 + +config CGU0_OCLK_DIV + default 8 + +config CGU0_DIV_S1SELEX + default 6 + +config CGU1_VCO_MULT + default 72 + +config CGU1_DF_DIV + default 0 + +config CGU1_CCLK_DIV + default 16 + +config CGU1_SCLK_DIV + default 8 + +config CGU1_SCLK0_DIV + default 4 + +config CGU1_SCLK1_DIV + default 2 + +config CGU1_DCLK_DIV + default 18 + +config CGU1_OCLK_DIV + default 16 + +config CGU1_DIV_S0SELEX + default 36 + +config CGU1_DIV_S1SELEX + default 90 + +endif diff --git a/board/adi/sc598-som-ezkit/sc598-som-ezkit.env b/board/adi/sc598-som-ezkit/sc598-som-ezkit.env new file mode 100644 index 0000000000..242436c160 --- /dev/null +++ b/board/adi/sc598-som-ezkit/sc598-som-ezkit.env @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later+ */ + +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include + +adi_stage2_offset=0x40000 +adi_image_offset=0x01a0000 +adi_rfs_offset=0x1020000 +loadaddr=0x90000000 +jffs2file=adsp-sc5xx-__stringify(CONFIG_ADI_IMAGE)-adsp-sc598-som-ezkit.jffs2 diff --git a/include/configs/sc598-som.h b/include/configs/sc598-som.h new file mode 100644 index 0000000000..964c694bbe --- /dev/null +++ b/include/configs/sc598-som.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#ifndef __CONFIG_SC598_SOM_H +#define __CONFIG_SC598_SOM_H + +/* + * Memory Settings + */ +#define MEM_IS43TR16512BL +#define MEM_ISSI_4Gb_DDR3_800MHZ +#define MEM_DMC0 + +#define CFG_SYS_SDRAM_BASE 0x90000000 +#define CFG_SYS_SDRAM_SIZE 0x0e000000 + +/* GIC */ +#define GICD_BASE 0x31200000 +#define GICR_BASE 0x31240000 + +#endif From patchwork Wed Aug 28 10:02:22 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: 1977756 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=d92kFMYV; 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 4Wv0dg1FFnz1yZd for ; Wed, 28 Aug 2024 20:14:47 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A6D3888B93; Wed, 28 Aug 2024 12:12:36 +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="d92kFMYV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 53C5288A3E; Wed, 28 Aug 2024 12:12:32 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 [147.75.193.91]) (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 6880588ABA for ; Wed, 28 Aug 2024 12:12:27 +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 51B2CA434BC; Wed, 28 Aug 2024 10:12:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 17563C4E694; 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=oviPxZ4E09WDqPXtI5PammIGlJoizxq+OWMlFhvq2tI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=d92kFMYVUig9HgbvJKC9d4ZYW/5lF6rN0r8SfO+lgobfRwnz45JuDym+psdoltME5 M1+e37rhIUMuumVArcuHpXMHnLpPhV/K1tBT380zc11ZrbyoFc8stAciWUtGi1brPO K7VSVgYZBj13+gXaVyyOmQi3988vuGPmSnJfVkm8n0Q3KdGbSKHTiojaiw9JJ5pX1j qh+qX7md1PudhGonPpx64U+STSrdZ1YdKv3DotgbCpBVAZx5pv1QGWBbimCZUuyAwh mTH7TQsfkILRlKTzQIR9Kc6jIT5BSVVP0ktY9R0u+KLdD80wANikkfBOgeS7iRertN //pFGp0mY6xWw== 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 0F504C54E83; Wed, 28 Aug 2024 10:04:09 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:22 +0100 Subject: [PATCH 14/20] arm: SC598-SOM-EZLITE initial support MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-14-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=4067; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=YLyEL6ITWehoiQARPsFI7ZAnETeirU+Gf3uKxS/f2PA=; b=T148U5KLlv2uOQ956SowDhkfSffcO+k3oJljB61Zip6qc4t/95AHfjuZeV1tQAfEICf0SSztd Y/JpgHjcCBaDi0iVF3pK8mp3vKbYveFhKXi21BOWBgINRIFsf4OLDsC 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' SC598-SOM-EZLITE 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 | 6 + board/adi/sc598-som-ezlite/Kconfig | 150 ++++++++++++++++++++++++ board/adi/sc598-som-ezlite/sc598-som-ezlite.env | 13 ++ 3 files changed, 169 insertions(+) diff --git a/arch/arm/mach-sc5xx/Kconfig b/arch/arm/mach-sc5xx/Kconfig index cd3c7011f4..b3a17036e7 100644 --- a/arch/arm/mach-sc5xx/Kconfig +++ b/arch/arm/mach-sc5xx/Kconfig @@ -51,6 +51,11 @@ if SC59X_64 choice prompt "SC59x 64-bit board select" +config TARGET_SC598_SOM_EZLITE + bool + prompt "SC598-SOM with SOMCRR-EZLITE" + select ADI_CARRIER_SOMCRR_EZLITE + config TARGET_SC598_SOM_EZKIT bool prompt "SC598-SOM with SOMCRR-EZKIT" @@ -500,5 +505,6 @@ config PINCTRL_ADI default y source "board/adi/sc598-som-ezkit/Kconfig" +source "board/adi/sc598-som-ezlite/Kconfig" endif diff --git a/board/adi/sc598-som-ezlite/Kconfig b/board/adi/sc598-som-ezlite/Kconfig new file mode 100644 index 0000000000..0dbb89cde5 --- /dev/null +++ b/board/adi/sc598-som-ezlite/Kconfig @@ -0,0 +1,150 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# (C) Copyright 2024 - Analog Devices, Inc. + +if TARGET_SC598_SOM_EZLITE + +config SYS_VENDOR + default "adi" + +config LDR_CPU + default "ADSP-SC598-0.0" + +config SYS_BOARD + default "sc598-som-ezlite" + +config SYS_CONFIG_NAME + default "sc598-som" + +config DEFAULT_DEVICE_TREE + default "sc598-som-ezlite" + +config SPL_MAX_SIZE + default 0x30000 # 256KB + +config ADI_IMAGE + default "minimal" + +config NR_DRAM_BANKS + default 1 + +config SPL_BSS_START_ADDR + hex + default 0x200B0000 + +config SPL_BSS_MAX_SIZE + hex + default 0x10000 # 64K + +config SYS_SPL_MALLOC_START + hex + default 0x200C0000 + +config SYS_SPL_MALLOC_SIZE + hex + default 0x10000 # 64K + +config SPL_STACK + hex + default 0x200E4000 + +config SPL_STACK_SIZE + hex + default 0x14000 # 64K + +config TEXT_BASE + hex + default 0x96000000 + +config CUSTOM_SYS_INIT_SP_ADDR + hex + default 0x96000000 + +config SYS_LOAD_ADDR + hex + default 0x0 + +# SPL + +config SPL_TEXT_BASE + default 0x20080000 + +config SPL_PAYLOAD_ARGS_ADDR + hex + default 0x99000000 + +config SPL_OF_LIBFDT_ASSUME_MASK + hex + default 0x0 + +# SPI Flash + +config SF_DEFAULT_BUS + default 2 + +config SF_DEFAULT_CS + default 1 + +config SF_DEFAULT_SPEED + default 10000000 + +# Clock Configs + +config CGU0_DF_DIV + default 0 + +config CGU0_VCO_MULT + default 80 + +config CGU0_CCLK_DIV + default 2 + +config CGU0_SCLK_DIV + default 4 + +config CGU0_SCLK0_DIV + default 4 + +config CGU0_SCLK1_DIV + default 2 + +config CGU0_DCLK_DIV + default 3 + +config CGU0_OCLK_DIV + default 8 + +config CGU0_DIV_S1SELEX + default 6 + +config CGU1_VCO_MULT + default 72 + +config CGU1_DF_DIV + default 0 + +config CGU1_CCLK_DIV + default 16 + +config CGU1_SCLK_DIV + default 8 + +config CGU1_SCLK0_DIV + default 4 + +config CGU1_SCLK1_DIV + default 2 + +config CGU1_DCLK_DIV + default 18 + +config CGU1_OCLK_DIV + default 16 + +config CGU1_DIV_S0SELEX + default 36 + +config CGU1_DIV_S1SELEX + default 90 + +endif diff --git a/board/adi/sc598-som-ezlite/sc598-som-ezlite.env b/board/adi/sc598-som-ezlite/sc598-som-ezlite.env new file mode 100644 index 0000000000..036c9ae759 --- /dev/null +++ b/board/adi/sc598-som-ezlite/sc598-som-ezlite.env @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later+ */ + +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include + +adi_stage2_offset=0x40000 +adi_image_offset=0x01a0000 +adi_rfs_offset=0x1020000 +loadaddr=0x90000000 +jffs2file=adsp-sc5xx-__stringify(CONFIG_ADI_IMAGE)-adsp-sc598-som-ezlite.jffs2 From patchwork Wed Aug 28 10:02:23 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: 1977763 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=DQhKkBZB; 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 4Wv0fj1ZQPz1yfy for ; Wed, 28 Aug 2024 20:15:41 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ABE0488BE6; Wed, 28 Aug 2024 12:12:45 +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="DQhKkBZB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 54EE888B5F; Wed, 28 Aug 2024 12:12:34 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) (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 C122C88AF0 for ; Wed, 28 Aug 2024 12:12:27 +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 sin.source.kernel.org (Postfix) with ESMTP id 21DFACE1795; Wed, 28 Aug 2024 10:12:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 26EDBC4E693; 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=scEe1fXPTqCvwpCfVd4g//oZLv6kZw10HNQG4kVUlbw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=DQhKkBZB16ZDNUAPvNXzo1FKfunBpHG7TMTWH5+hD8jZtUDxoaWWSS/oW7ZVpNNwh D1pIiZvOrnc/ST1Zn81AY5SjYI0ErHgMh5zebmJBa9wOdfPI85hrCmU6Q/MsAN3jAb +WaMlA3EpD+Rrg4BFZQ1G10JnRMDIorM6lLHuxLhjvY4l03PSjwRx6EqxGUge3gR2E HB14dVIXaqmkg/mAZpGNGIaOcSPCPPFTyfyYlfuIu9E8rASS3gFV2DxEnFtaMU48zE qACXcTEx+h2CH2Lcx0KhXnUmE6BvqLcSF5czGBLkcdqiCTkdzbNIqp9XGqnnsfEXHd 62LxzBKaMsWcg== 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 1CC7EC54E90; Wed, 28 Aug 2024 10:04:09 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:23 +0100 Subject: [PATCH 15/20] arm: SC594-SOM-EZKIT initial support MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-15-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 , Trevor Woerner X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724839434; l=7033; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=sYuy/YkBdmEAedGkRekKyMOYGSQ3QF2AUcu8G7VvB6k=; b=IG1LFM92EasbFch4POp3LHiEdskHTvZWFH0IgW9NSqR3bk8YxfNIU40eBFvF2erpYvYvBHFz8 Q22NU25zU7ZADKxwsolzDz2fuHIjfo2lHe4nGA26vfYQviAvAzKH2Ih 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' SC594-SOM-EZKIT board. Includes: - SoC specific configs in mach-sc5xx/Kconfig - Memory Map for SPL - Necessary board-specific init functions - Board-specific Kconfig and environment in board/adi/ - Memory configuration Co-developed-by: Greg Malysa Co-developed-by: Trevor Woerner Co-developed-by: Nathan Barrett-Morrison Co-developed-by: Ian Roberts Signed-off-by: Oliver Gaskell --- arch/arm/mach-sc5xx/Kconfig | 17 ++- arch/arm/mach-sc5xx/Makefile | 1 + arch/arm/mach-sc5xx/sc59x-spl.c | 26 ++++ board/adi/sc594-som-ezkit/Kconfig | 181 ++++++++++++++++++++++++++ board/adi/sc594-som-ezkit/sc594-som-ezkit.env | 13 ++ include/configs/sc594-som.h | 19 +++ 6 files changed, 256 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-sc5xx/Kconfig b/arch/arm/mach-sc5xx/Kconfig index b3a17036e7..fd7029974b 100644 --- a/arch/arm/mach-sc5xx/Kconfig +++ b/arch/arm/mach-sc5xx/Kconfig @@ -32,7 +32,7 @@ config SC59X bool "SC59x 32-bit series" select CPU_V7A select COMMON_CLK_ADI_SC594 - select NOP_PHY + select NOP_PHY if PHY config SC59X_64 bool "SC59x 64-bit series" @@ -46,6 +46,20 @@ config SC59X_64 endchoice +if SC59X + +choice + prompt "SC59x 32-bit board select" + +config TARGET_SC594_SOM_EZKIT + bool + prompt "SC594-SOM with SOMCRR-EZKIT" + select ADI_CARRIER_SOMCRR_EZKIT + +endchoice + +endif + if SC59X_64 choice @@ -506,5 +520,6 @@ config PINCTRL_ADI source "board/adi/sc598-som-ezkit/Kconfig" source "board/adi/sc598-som-ezlite/Kconfig" +source "board/adi/sc594-som-ezkit/Kconfig" endif diff --git a/arch/arm/mach-sc5xx/Makefile b/arch/arm/mach-sc5xx/Makefile index 0955c509a5..a8079b6120 100644 --- a/arch/arm/mach-sc5xx/Makefile +++ b/arch/arm/mach-sc5xx/Makefile @@ -13,6 +13,7 @@ obj-y += soc.o init/ obj-$(CONFIG_SC57X) += sc57x.o obj-$(CONFIG_SC58X) += sc58x.o obj-$(CONFIG_SC59X) += sc59x.o +obj-$(CONFIG_SC59X) += sc59x-spl.o obj-$(CONFIG_SC59X_64) += sc59x_64.o obj-$(CONFIG_SC59X_64) += sc59x_64-spl.o diff --git a/arch/arm/mach-sc5xx/sc59x-spl.c b/arch/arm/mach-sc5xx/sc59x-spl.c new file mode 100644 index 0000000000..c8fc25fe7c --- /dev/null +++ b/arch/arm/mach-sc5xx/sc59x-spl.c @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include + +// Table 45-14 in sc594 HRM +const struct adi_boot_args adi_rom_boot_args[] = { + // JTAG/no boot + [0] = {0, 0, 0}, + // SPI master, used for qspi as well + [1] = {0x60040000, 0x00040000, 0x20620247}, + // SPI slave + [2] = {0, 0, 0x00000212}, + // UART slave + [3] = {0, 0, 0x00000013}, + // Linkport slave + [4] = {0, 0, 0x00000014}, + // OSPI master + [5] = {0x60040000, 0, 0x00000008}, + // reserved, no boot + [6] = {0, 0, 0}, + // reserved, also no boot + [7] = {0, 0, 0} +}; diff --git a/board/adi/sc594-som-ezkit/Kconfig b/board/adi/sc594-som-ezkit/Kconfig new file mode 100644 index 0000000000..09e22141d4 --- /dev/null +++ b/board/adi/sc594-som-ezkit/Kconfig @@ -0,0 +1,181 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# (C) Copyright 2024 - Analog Devices, Inc. + +if TARGET_SC594_SOM_EZKIT + +config SYS_VENDOR + default "adi" + +config LDR_CPU + default "ADSP-SC594-0.0" + +config SYS_BOARD + default "sc594-som-ezkit" + +config SYS_CONFIG_NAME + default "sc594-som" + +config DEFAULT_DEVICE_TREE + default "sc594-som-ezkit" + +config SPL_MAX_SIZE + default 0x30000 # 256KB + +config ADI_IMAGE + default "minimal" + +config SPL_BSS_START_ADDR + hex + default 0x200B0000 + +config SPL_BSS_MAX_SIZE + hex + default 0x10000 # 64K + +config SYS_SPL_MALLOC_START + hex + default 0x200C0000 + +config SYS_SPL_MALLOC_SIZE + hex + default 0x10000 # 64K + +config SPL_STACK + hex + default 0x200E4000 + +config SPL_STACK_SIZE + hex + default 0x14000 # 64K + +config TEXT_BASE + hex + default 0xB2200000 + +config CUSTOM_SYS_INIT_SP_ADDR + hex + default 0xA003f000 + +config SYS_LOAD_ADDR + hex + default 0x0 + +# SPL + +config SPL_TEXT_BASE + hex + default 0x20080000 + +config SPL_PAYLOAD_ARGS_ADDR + hex + default 0xA0000000 + +config SPL_OF_LIBFDT_ASSUME_MASK + hex + default 0x0 + +# SPI Flash + +config SF_DEFAULT_BUS + default 2 + +config SF_DEFAULT_CS + default 1 + +config SF_DEFAULT_SPEED + default 10000000 + +# Clocks + +config CGU0_DF_DIV + default 0 + +config CGU0_VCO_MULT + default 80 + +config CGU0_CCLK_DIV + default 2 + +config CGU0_SCLK_DIV + default 4 + +config CGU0_SCLK0_DIV + default 4 + +config CGU0_SCLK1_DIV + default 2 + +config CGU0_DCLK_DIV + default 2 + +config CGU0_OCLK_DIV + default 16 + +config CGU0_DIV_S1SELEX + default 6 + +config CGU1_VCO_MULT + default 64 + +config CGU1_DF_DIV + default 0 + +config CGU1_CCLK_DIV + default 2 + +config CGU1_SCLK_DIV + default 4 + +config CGU1_SCLK0_DIV + default 4 + +config CGU1_SCLK1_DIV + default 2 + +config CGU1_DCLK_DIV + default 2 + +config CGU1_OCLK_DIV + default 16 + +config CGU1_DIV_S1SELEX + default 6 + +config CDU0_CLKO0 + default 1 + +config CDU0_CLKO1 + default 1 + +config CDU0_CLKO2 + default 1 + +config CDU0_CLKO3 + default 3 + +config CDU0_CLKO4 + default 3 + +config CDU0_CLKO5 + default 1 + +config CDU0_CLKO6 + default 1 + +config CDU0_CLKO7 + default 1 + +config CDU0_CLKO8 + default 3 + +config CDU0_CLKO9 + default 1 + +config CDU0_CLKO10 + default 1 + +config CDU0_CLKO12 + default 1 + +endif diff --git a/board/adi/sc594-som-ezkit/sc594-som-ezkit.env b/board/adi/sc594-som-ezkit/sc594-som-ezkit.env new file mode 100644 index 0000000000..83d6b457a0 --- /dev/null +++ b/board/adi/sc594-som-ezkit/sc594-som-ezkit.env @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later+ */ + +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include + +adi_stage2_offset=0x40000 +adi_image_offset=0x0120000 +adi_rfs_offset=0x1020000 +loadaddr=0xA2000000 +jffs2file=adsp-sc5xx-__stringify(CONFIG_ADI_IMAGE)-adsp-sc594-som-ezkit.jffs2 diff --git a/include/configs/sc594-som.h b/include/configs/sc594-som.h new file mode 100644 index 0000000000..ba9b0cdb0c --- /dev/null +++ b/include/configs/sc594-som.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#ifndef __CONFIG_SC594_SOM_H +#define __CONFIG_SC594_SOM_H + +/* + * Memory Settings + */ +#define MEM_IS43TR16512BL +#define MEM_ISSI_8Gb_DDR3_800MHZ +#define MEM_DMC0 + +#define CFG_SYS_SDRAM_BASE 0xA0000000 +#define CFG_SYS_SDRAM_SIZE 0x20000000 + +#endif From patchwork Wed Aug 28 10:02:24 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: 1977750 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=ltUMLIeE; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Wv0cN6JtZz1yZd for ; Wed, 28 Aug 2024 20:13:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5396288B68; Wed, 28 Aug 2024 12:12:34 +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="ltUMLIeE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2D86E88AF8; Wed, 28 Aug 2024 12:12:30 +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 sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) (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 8E32A8873C for ; Wed, 28 Aug 2024 12:12:26 +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 sin.source.kernel.org (Postfix) with ESMTP id C0C8ACE1774; Wed, 28 Aug 2024 10:12:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 3021FC4E696; 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=j9b1wpibXQrnSPkuG649MdKDt60jMALSwhWRzc/GrnE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ltUMLIeE+tsyLvYF7vQg16UNyKCswU8h577NBBG8nStfyDfKQ/vPyvDO7oOOHB60x Y4tven0zeTKeMwDNqi21vkzpKa2LzttLFPyhecT0gCjBuxmxuVAWuSINJM95utD6IW T99HO9u6CzpBua/3tAofdCIeE/AeFk+qvF3BjNIFpvXHyW+BJq0uXueZhBh6suY+2r fqxupCODRZYVF7nWuxM7S66GnK48ZK4hVhF+D2MfnDKH4zpoDG9XYDGzPKYWTdtFzD ymLPSY4IzWnx4bQG7ds+fpM40UrjYcY2SeeXt7bUuMcPnl9nhZkF/8WgAAOisT5Rqv xXGljTJkdX35A== 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 2A82EC54E91; Wed, 28 Aug 2024 10:04:09 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:24 +0100 Subject: [PATCH 16/20] arm: SC594-SOM-EZLITE initial support MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-16-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=4489; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=uum9NeLtSBi9ikbtFFk0z++c3va2mX/FitLSal1N7RE=; b=GAuFiRnXKIO61sYuzeNr4sRo0vATI6HiX+p5FTOFEClKQm6jdJhOOpIQKZ7vfmbI0ElBZQPQd bFFtrrZt6e5C+E31G4/mwWPrZmT+giiv+fSN8D3YZ74aK7DNFDP+B6h 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' SC594-SOM-EZLITE 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 | 6 + board/adi/sc594-som-ezlite/Kconfig | 181 ++++++++++++++++++++++++ board/adi/sc594-som-ezlite/sc594-som-ezlite.env | 13 ++ 3 files changed, 200 insertions(+) diff --git a/arch/arm/mach-sc5xx/Kconfig b/arch/arm/mach-sc5xx/Kconfig index fd7029974b..89bc60d6a5 100644 --- a/arch/arm/mach-sc5xx/Kconfig +++ b/arch/arm/mach-sc5xx/Kconfig @@ -51,6 +51,11 @@ if SC59X choice prompt "SC59x 32-bit board select" +config TARGET_SC594_SOM_EZLITE + bool + prompt "SC594-SOM with SOMCRR-EZLITE" + select ADI_CARRIER_SOMCRR_EZLITE + config TARGET_SC594_SOM_EZKIT bool prompt "SC594-SOM with SOMCRR-EZKIT" @@ -521,5 +526,6 @@ config PINCTRL_ADI source "board/adi/sc598-som-ezkit/Kconfig" source "board/adi/sc598-som-ezlite/Kconfig" source "board/adi/sc594-som-ezkit/Kconfig" +source "board/adi/sc594-som-ezlite/Kconfig" endif diff --git a/board/adi/sc594-som-ezlite/Kconfig b/board/adi/sc594-som-ezlite/Kconfig new file mode 100644 index 0000000000..fb6a8235a1 --- /dev/null +++ b/board/adi/sc594-som-ezlite/Kconfig @@ -0,0 +1,181 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# (C) Copyright 2024 - Analog Devices, Inc. + +if TARGET_SC594_SOM_EZLITE + +config SYS_VENDOR + default "adi" + +config LDR_CPU + default "ADSP-SC594-0.0" + +config SYS_BOARD + default "sc594-som-ezlite" + +config SYS_CONFIG_NAME + default "sc594-som" + +config DEFAULT_DEVICE_TREE + default "sc594-som-ezlite" + +config SPL_MAX_SIZE + default 0x30000 # 256KB + +config ADI_IMAGE + default "minimal" + +config SPL_BSS_START_ADDR + hex + default 0x200B0000 + +config SPL_BSS_MAX_SIZE + hex + default 0x10000 # 64K + +config SYS_SPL_MALLOC_START + hex + default 0x200C0000 + +config SYS_SPL_MALLOC_SIZE + hex + default 0x10000 # 64K + +config SPL_STACK + hex + default 0x200E4000 + +config SPL_STACK_SIZE + hex + default 0x14000 # 64K + +config TEXT_BASE + hex + default 0xB2200000 + +config CUSTOM_SYS_INIT_SP_ADDR + hex + default 0x8203f000 + +config SYS_LOAD_ADDR + hex + default 0x0 + +# SPL + +config SPL_TEXT_BASE + hex + default 0x20080000 + +config SPL_PAYLOAD_ARGS_ADDR + hex + default 0x80000000 + +config SPL_OF_LIBFDT_ASSUME_MASK + hex + default 0x0 + +# SPI Flash + +config SF_DEFAULT_BUS + default 2 + +config SF_DEFAULT_CS + default 1 + +config SF_DEFAULT_SPEED + default 10000000 + +# Clocks + +config CGU0_DF_DIV + default 0 + +config CGU0_VCO_MULT + default 80 + +config CGU0_CCLK_DIV + default 2 + +config CGU0_SCLK_DIV + default 4 + +config CGU0_SCLK0_DIV + default 4 + +config CGU0_SCLK1_DIV + default 2 + +config CGU0_DCLK_DIV + default 2 + +config CGU0_OCLK_DIV + default 16 + +config CGU0_DIV_S1SELEX + default 6 + +config CGU1_VCO_MULT + default 64 + +config CGU1_DF_DIV + default 0 + +config CGU1_CCLK_DIV + default 2 + +config CGU1_SCLK_DIV + default 4 + +config CGU1_SCLK0_DIV + default 4 + +config CGU1_SCLK1_DIV + default 2 + +config CGU1_DCLK_DIV + default 2 + +config CGU1_OCLK_DIV + default 16 + +config CGU1_DIV_S1SELEX + default 6 + +config CDU0_CLKO0 + default 1 + +config CDU0_CLKO1 + default 1 + +config CDU0_CLKO2 + default 1 + +config CDU0_CLKO3 + default 3 + +config CDU0_CLKO4 + default 3 + +config CDU0_CLKO5 + default 1 + +config CDU0_CLKO6 + default 1 + +config CDU0_CLKO7 + default 1 + +config CDU0_CLKO8 + default 3 + +config CDU0_CLKO9 + default 1 + +config CDU0_CLKO10 + default 1 + +config CDU0_CLKO12 + default 1 + +endif diff --git a/board/adi/sc594-som-ezlite/sc594-som-ezlite.env b/board/adi/sc594-som-ezlite/sc594-som-ezlite.env new file mode 100644 index 0000000000..152e1f14fd --- /dev/null +++ b/board/adi/sc594-som-ezlite/sc594-som-ezlite.env @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later+ */ + +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include + +adi_stage2_offset=0x40000 +adi_image_offset=0x0120000 +adi_rfs_offset=0x1020000 +loadaddr=0xA2000000 +jffs2file=adsp-sc5xx-__stringify(CONFIG_ADI_IMAGE)-adsp-sc594-som-ezlite.jffs2 From patchwork Wed Aug 28 10:02:25 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: 1977746 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=YxYnMBM7; 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 4Wv0bb4NW5z1yZd for ; Wed, 28 Aug 2024 20:12:59 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E190488B12; Wed, 28 Aug 2024 12:12:30 +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="YxYnMBM7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 75FD588B29; Wed, 28 Aug 2024 12:12:28 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 [147.75.193.91]) (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 04DA788A3E for ; Wed, 28 Aug 2024 12:12:26 +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 06A8EA434BC; Wed, 28 Aug 2024 10:12:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 41373C4E695; 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=nJIITInkeJGjSjTsJ6uYv87XOo0ZHLUZ8L+xCX+0Fcg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YxYnMBM7hJ/P9YBqpVhXDGK4mizOa5k1GeFvkW3W8US5lBBxjsV7oB7ywsSUyXi8d 483hvkTV8Hi2WwhVhv1COIbqcfcxsMeL1MpjSd5abIVehTwl2M7Qs15P9GsXXBQuVc c+0xeOYxrUyMtZm6g7S6qVVUEZL7TyCFUsB3IWnqtyWrBwwbUZ9MY1qxMqr5ZJ6jVI 5JC62gIgqlRtbtd/1aQjnj/nKf5FyF7UTicw6rXpwIVEpB9xY3yr5El+zAHJ0nDEdM MpNkDfoZ7VEPHLMp8cRaS5Wm+/BC1ohpVd5BjZS4HGyTJUqUHqerOV/pb9qSpWJJAJ zYf5z9N6pUMyw== 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 39027C54E83; Wed, 28 Aug 2024 10:04:09 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:25 +0100 Subject: [PATCH 17/20] arm: SC584-EZKIT initial support MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-17-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 , Trevor Woerner X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724839434; l=7326; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=23UQSWjZWvGXRYzaoNdE6djFFH32B17hFZgUrs7mDgk=; b=sFD+h5Mweam4lWDkE10O8mObkDm9WlHpm5WPLuw281z70oahx/bHExAjbOU7tId5Oo5+Ztx/J kZDzYM3OUoBDgU0vTxMtl4yJWpE97bFD/2KxcCaAiOzVc+bU010alfv 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' SC584-EZKIT board. Includes: - SoC specific configs in mach-sc5xx/Kconfig - Memory Map for SPL - Necessary board-specific init functions - Board-specific Kconfig and environment in board/adi/ - Memory configuration Co-developed-by: Greg Malysa Co-developed-by: Trevor Woerner Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/mach-sc5xx/Kconfig | 15 ++++ arch/arm/mach-sc5xx/Makefile | 1 + arch/arm/mach-sc5xx/sc58x-spl.c | 26 ++++++ arch/arm/mach-sc5xx/soc.c | 19 ++++ board/adi/sc584-ezkit/Kconfig | 160 ++++++++++++++++++++++++++++++++++ board/adi/sc584-ezkit/sc584-ezkit.env | 13 +++ include/configs/sc584-ezkit.h | 18 ++++ 7 files changed, 252 insertions(+) diff --git a/arch/arm/mach-sc5xx/Kconfig b/arch/arm/mach-sc5xx/Kconfig index 89bc60d6a5..c75262bee4 100644 --- a/arch/arm/mach-sc5xx/Kconfig +++ b/arch/arm/mach-sc5xx/Kconfig @@ -46,6 +46,20 @@ config SC59X_64 endchoice +if SC58X + +choice + prompt "SC58x board select" + +config TARGET_SC584_EZKIT + bool + prompt "SC584-EZKIT" + select ADI_USE_DDR2 + +endchoice + +endif + if SC59X choice @@ -527,5 +541,6 @@ source "board/adi/sc598-som-ezkit/Kconfig" source "board/adi/sc598-som-ezlite/Kconfig" source "board/adi/sc594-som-ezkit/Kconfig" source "board/adi/sc594-som-ezlite/Kconfig" +source "board/adi/sc584-ezkit/Kconfig" endif diff --git a/arch/arm/mach-sc5xx/Makefile b/arch/arm/mach-sc5xx/Makefile index a8079b6120..9a00a430b4 100644 --- a/arch/arm/mach-sc5xx/Makefile +++ b/arch/arm/mach-sc5xx/Makefile @@ -12,6 +12,7 @@ obj-y += soc.o init/ obj-$(CONFIG_SC57X) += sc57x.o obj-$(CONFIG_SC58X) += sc58x.o +obj-$(CONFIG_SC58X) += sc58x-spl.o obj-$(CONFIG_SC59X) += sc59x.o obj-$(CONFIG_SC59X) += sc59x-spl.o obj-$(CONFIG_SC59X_64) += sc59x_64.o diff --git a/arch/arm/mach-sc5xx/sc58x-spl.c b/arch/arm/mach-sc5xx/sc58x-spl.c new file mode 100644 index 0000000000..ae809f09e5 --- /dev/null +++ b/arch/arm/mach-sc5xx/sc58x-spl.c @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include + +// Table 53-13 in SC58x HRM +const struct adi_boot_args adi_rom_boot_args[] = { + // JTAG/no boot + [0] = {0, 0, 0}, + // SPI master, used for qspi as well + [1] = {0x60020000, 0x00040000, 0x00010207}, + // SPI slave + [2] = {0, 0, 0x00000212}, + // reserved, no boot + [3] = {0, 0, 0}, + // reserved, no boot + [4] = {0, 0, 0}, + // reserved, also no boot + [5] = {0, 0, 0}, + // Linkport slave + [6] = {0, 0, 0x00000014}, + // UART slave + [7] = {0, 0, 0x00000013}, +}; diff --git a/arch/arm/mach-sc5xx/soc.c b/arch/arm/mach-sc5xx/soc.c index 714b214bf6..9f2e66d729 100644 --- a/arch/arm/mach-sc5xx/soc.c +++ b/arch/arm/mach-sc5xx/soc.c @@ -173,6 +173,9 @@ void fixup_dp83867_phy(struct phy_device *phydev) } extern char __bss_start, __bss_end; +#if defined(CONFIG_SC58X) +extern char __rel_dyn_start, __rel_dyn_end; +#endif void bss_clear(void) { @@ -181,6 +184,22 @@ void bss_clear(void) int i, sz; sz = &__bss_end - &__bss_start; + for (i = 0; i < sz; i += 4) + *to++ = 0; + #elif defined(CONFIG_SC58X) + u32 bss_start = (u32)&__bss_start; + u32 bss_end = (u32)&__bss_end; + u32 rel_dyn_end = (u32)&__rel_dyn_end; + u32 *to; + + if (rel_dyn_end >= bss_start && rel_dyn_end <= bss_end) + to = (u32 *)rel_dyn_end; + else + to = (u32 *)bss_start; + + int i, sz; + + sz = bss_end - (u32)to; for (i = 0; i < sz; i += 4) *to++ = 0; #endif diff --git a/board/adi/sc584-ezkit/Kconfig b/board/adi/sc584-ezkit/Kconfig new file mode 100644 index 0000000000..f0c6bad663 --- /dev/null +++ b/board/adi/sc584-ezkit/Kconfig @@ -0,0 +1,160 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# (C) Copyright 2024 - Analog Devices, Inc. + +if TARGET_SC584_EZKIT + +config SYS_VENDOR + default "adi" + +config LDR_CPU + default "ADSP-SC584-0.1" + +config SYS_BOARD + default "sc584-ezkit" + +config SYS_CONFIG_NAME + default "sc584-ezkit" + +config DEFAULT_DEVICE_TREE + default "sc584-ezkit" + +config SPL_MAX_SIZE + default 0x20000 # 128KB + +config ADI_IMAGE + default "tiny" + +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 0x89200000 + +config CUSTOM_SYS_INIT_SP_ADDR + hex + default 0x8903f000 + +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 2 + +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/sc584-ezkit/sc584-ezkit.env b/board/adi/sc584-ezkit/sc584-ezkit.env new file mode 100644 index 0000000000..af9a9e01bc --- /dev/null +++ b/board/adi/sc584-ezkit/sc584-ezkit.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=0x6E0000 +loadaddr=0x89300000 +jffs2file=adsp-sc5xx-__stringify(CONFIG_ADI_IMAGE)-adsp-sc584-ezkit.jffs2 diff --git a/include/configs/sc584-ezkit.h b/include/configs/sc584-ezkit.h new file mode 100644 index 0000000000..905836cc2c --- /dev/null +++ b/include/configs/sc584-ezkit.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#ifndef __CONFIG_SC584_EZKIT_H +#define __CONFIG_SC584_EZKIT_H + +/* + * Memory Settings + */ +#define MEM_MT47H128M16RT +#define MEM_DMC0 + +#define CFG_SYS_SDRAM_BASE 0x89000000 +#define CFG_SYS_SDRAM_SIZE 0x7000000 + +#endif From patchwork Wed Aug 28 10:02:26 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: 1977744 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=iTfIucED; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Wv0bD18HPz1yZd for ; Wed, 28 Aug 2024 20:12:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2B9DD88B0C; Wed, 28 Aug 2024 12:12:28 +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="iTfIucED"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 686C18873C; Wed, 28 Aug 2024 12:12:26 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 [147.75.193.91]) (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 4EC0888744 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 60E15A434AE; Wed, 28 Aug 2024 10:12:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 50733C4E698; 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=YxwQ8BSgMDJ6gAMhJ3kcBhWBZ1LXJ3IR25e5QsK05xM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=iTfIucEDgix6OfD58EeGrtjdOqwbZ4FUwxyzYYf6z8dKMdFCz8agVYRhWTKTSBZT7 Q9nXYkj59Ix4HqldBJGM3iOLUFzAL5o6T3HuHvyXzVHWsg6QQm8KRY/QZWuOEgGErA X2x0gUvwVQWmjsJKmFffk/qk7biLO0HwTnqhLDA+QH5gCKiHjNrq2vk3k3xwvcSGfG 3pWqy1FbaP06AnJvLo/3MV5zc1XNRVq01PCya8u9ldDognDvUsSAz0r/Rd0Qb8kZu4 y4mJ6jlZaDuEepQFBsR6FgCy8U2ZpTDB8yoSWgSWMXQ3vbyLjx79BazRVcSlFAAwMr /0gdkydaLGKVg== 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 48E12C54E71; Wed, 28 Aug 2024 10:04:09 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:26 +0100 Subject: [PATCH 18/20] arm: SC589-EZKIT initial support MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-18-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=4678; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=PniKGGy2zu80NYOm7W6CdbDm8trRTY9TELaraTtuZ8I=; b=rrWTwhU3uEnJ/QjvudgpsUjVdUKNzd4ZXtTAggIcuee+QuN3QYsAGIe4e7wppJPcV+w6d1YBT BonXd/khM/vBOZaIpiqJ3oRZFF7y6yadpAE+wK/nznX0smrSeyreIh6 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-EZKIT board. Includes: - Board specific configs in mach-sc5xx/Kconfig - Board-specific Kconfig and environment in board/adi/ - Memory configuration Signed-off-by: Oliver Gaskell --- arch/arm/mach-sc5xx/Kconfig | 5 ++ board/adi/sc589-ezkit/Kconfig | 160 ++++++++++++++++++++++++++++++++++ board/adi/sc589-ezkit/sc589-ezkit.env | 13 +++ include/configs/sc589.h | 19 ++++ 4 files changed, 197 insertions(+) diff --git a/arch/arm/mach-sc5xx/Kconfig b/arch/arm/mach-sc5xx/Kconfig index c75262bee4..bbeb7c68b8 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_EZKIT + bool + prompt "SC589-EZKIT" + endchoice endif @@ -541,6 +545,7 @@ source "board/adi/sc598-som-ezkit/Kconfig" 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/sc584-ezkit/Kconfig" endif diff --git a/board/adi/sc589-ezkit/Kconfig b/board/adi/sc589-ezkit/Kconfig new file mode 100644 index 0000000000..a1ff59ef04 --- /dev/null +++ b/board/adi/sc589-ezkit/Kconfig @@ -0,0 +1,160 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# (C) Copyright 2024 - Analog Devices, Inc. + +if TARGET_SC589_EZKIT + +config SYS_VENDOR + default "adi" + +config LDR_CPU + default "ADSP-SC589-0.1" + +config SYS_BOARD + default "sc589-ezkit" + +config SYS_CONFIG_NAME + default "sc589" + +config DEFAULT_DEVICE_TREE + default "sc589-ezkit" + +config SPL_MAX_SIZE + default 0x20000 # 128KB + +config ADI_IMAGE + default "tiny" + +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 10000000 + +# 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-ezkit/sc589-ezkit.env b/board/adi/sc589-ezkit/sc589-ezkit.env new file mode 100644 index 0000000000..34b924992a --- /dev/null +++ b/board/adi/sc589-ezkit/sc589-ezkit.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=0x6E0000 +loadaddr=0xC3000000 +jffs2file=adsp-sc5xx-__stringify(CONFIG_ADI_IMAGE)-adsp-sc589-ezkit.jffs2 diff --git a/include/configs/sc589.h b/include/configs/sc589.h new file mode 100644 index 0000000000..137c80be8e --- /dev/null +++ b/include/configs/sc589.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#ifndef __CONFIG_SC589_H +#define __CONFIG_SC589_H + +/* + * Memory Settings + */ +#define MEM_MT41K128M16JT +#define MEM_DMC0 +#define MEM_DMC1 + +#define CFG_SYS_SDRAM_BASE 0xC2000000 +#define CFG_SYS_SDRAM_SIZE 0xe000000 + +#endif 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 From patchwork Wed Aug 28 10:02:28 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: 1977747 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=Tz5EW7X/; 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 4Wv0bn6ccVz1yZd for ; Wed, 28 Aug 2024 20:13:09 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4736C88AA7; 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="Tz5EW7X/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8DEDB88B31; Wed, 28 Aug 2024 12:12:28 +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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, 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 [147.75.193.91]) (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 6204988A8B for ; Wed, 28 Aug 2024 12:12:26 +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 680E6A434B1; Wed, 28 Aug 2024 10:12:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 6D42BC4FDE1; 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=7h1dH/xwEVQyuxyK7Vwt8BR1GPGQRnIjcQ7EBRHvNkU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Tz5EW7X/Dd6sD1lkwo9nr4RtAMmUH16+amEdX7FfcR2Hr45KviClRRFKiUm8cV892 DYChEcsSMpbqEGRvf8agKlPx1XuI+hjOE7Ss4JMCHWIOfuiMuNGV+Fc8ZF5ifH/sTL 72kq0iCwh+rJ7R23u8Xn63SVqPWLjAmR7Vv4BOF3WxHsopL0onTNQ3T88FUFHGw4eU vudiX0E/NQJdtVZey0p+Gkl456pvcwgocEDQIvVIKurU35w8biXBn0hz571PJzPCou 6saFeGyN9COH4mzLdbOn/VgQqCRGastSq0unehef3UsaXmsdvkQEge5IIcKMbHSV0p XRjiO7VmhbDLA== 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 642D3C54E93; Wed, 28 Aug 2024 10:04:09 +0000 (UTC) From: Oliver Gaskell via B4 Relay Date: Wed, 28 Aug 2024 11:02:28 +0100 Subject: [PATCH 20/20] arm: SC573-EZKIT initial support MIME-Version: 1.0 Message-Id: <20240828-sc5xx-upstreaming-patches-v1-20-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=7147; i=Oliver.Gaskell@analog.com; s=20240821; h=from:subject:message-id; bh=ucsappLohmmrXaoGkSKqXtBgWNA6Qpjw7OxSagzx+co=; b=LtdDznKF4P/iNX3+G8MHzxb0c68QpkDrh0JwUcslt89qO3x2a0kiIXpgu5HZLKVqFIocmykYu gXi4PJiACpxD6Ho3+ggI+/oM1cBJnqNHcDF24yF8qpXglDabkG8jrMq 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' SC573-EZKIT board. Includes: - SoC specific configs in mach-sc5xx/Kconfig - Memory Map for SPL - Necessary board-specific init functions - Board-specific Kconfig and environment in board/adi/ - Memory configuration Co-developed-by: Greg Malysa Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Oliver Gaskell --- arch/arm/mach-sc5xx/Kconfig | 9 ++ arch/arm/mach-sc5xx/Makefile | 1 + arch/arm/mach-sc5xx/sc57x-spl.c | 26 ++++++ arch/arm/mach-sc5xx/soc.c | 4 +- board/adi/sc573-ezkit/Kconfig | 160 ++++++++++++++++++++++++++++++++++ board/adi/sc573-ezkit/sc573-ezkit.env | 13 +++ include/configs/sc573-ezkit.h | 18 ++++ 7 files changed, 229 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-sc5xx/Kconfig b/arch/arm/mach-sc5xx/Kconfig index d9cf38a3b5..9b26342bc3 100644 --- a/arch/arm/mach-sc5xx/Kconfig +++ b/arch/arm/mach-sc5xx/Kconfig @@ -22,6 +22,7 @@ config SC57X bool "SC57x series" select CPU_V7A select COMMON_CLK_ADI_SC57X + select TARGET_SC573_EZKIT config SC58X bool "SC58x series" @@ -46,6 +47,13 @@ config SC59X_64 endchoice +if SC57X + +config TARGET_SC573_EZKIT + bool "Support SC573-EZKIT" + +endif + if SC58X choice @@ -552,5 +560,6 @@ 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" +source "board/adi/sc573-ezkit/Kconfig" endif diff --git a/arch/arm/mach-sc5xx/Makefile b/arch/arm/mach-sc5xx/Makefile index 9a00a430b4..cac768ba56 100644 --- a/arch/arm/mach-sc5xx/Makefile +++ b/arch/arm/mach-sc5xx/Makefile @@ -11,6 +11,7 @@ obj-y += soc.o init/ obj-$(CONFIG_SC57X) += sc57x.o +obj-$(CONFIG_SC57X) += sc57x-spl.o obj-$(CONFIG_SC58X) += sc58x.o obj-$(CONFIG_SC58X) += sc58x-spl.o obj-$(CONFIG_SC59X) += sc59x.o diff --git a/arch/arm/mach-sc5xx/sc57x-spl.c b/arch/arm/mach-sc5xx/sc57x-spl.c new file mode 100644 index 0000000000..28380b89b4 --- /dev/null +++ b/arch/arm/mach-sc5xx/sc57x-spl.c @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#include + +// Table 45-16 in SC573 HRM +const struct adi_boot_args adi_rom_boot_args[] = { + // JTAG/no boot + [0] = {0, 0, 0}, + // SPI master, used for qspi as well + [1] = {0x60020000, 0x00040000, 0x00010207}, + // SPI slave + [2] = {0, 0, 0x00000212}, + // UART slave + [3] = {0, 0, 0x00000013}, + // Linkport slave + [4] = {0, 0, 0x00000014}, + // reserved, no boot + [5] = {0, 0, 0}, + // reserved, no boot + [6] = {0, 0, 0}, + // reserved, also no boot + [7] = {0, 0, 0} +}; diff --git a/arch/arm/mach-sc5xx/soc.c b/arch/arm/mach-sc5xx/soc.c index 9f2e66d729..4976243fb9 100644 --- a/arch/arm/mach-sc5xx/soc.c +++ b/arch/arm/mach-sc5xx/soc.c @@ -173,7 +173,7 @@ void fixup_dp83867_phy(struct phy_device *phydev) } extern char __bss_start, __bss_end; -#if defined(CONFIG_SC58X) +#if defined(CONFIG_SC57X) || defined(CONFIG_SC58X) extern char __rel_dyn_start, __rel_dyn_end; #endif @@ -186,7 +186,7 @@ void bss_clear(void) sz = &__bss_end - &__bss_start; for (i = 0; i < sz; i += 4) *to++ = 0; - #elif defined(CONFIG_SC58X) + #elif defined(CONFIG_SC57X) || defined(CONFIG_SC58X) u32 bss_start = (u32)&__bss_start; u32 bss_end = (u32)&__bss_end; u32 rel_dyn_end = (u32)&__rel_dyn_end; diff --git a/board/adi/sc573-ezkit/Kconfig b/board/adi/sc573-ezkit/Kconfig new file mode 100644 index 0000000000..91da4f1e05 --- /dev/null +++ b/board/adi/sc573-ezkit/Kconfig @@ -0,0 +1,160 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# (C) Copyright 2024 - Analog Devices, Inc. + +if TARGET_SC573_EZKIT + +config SYS_VENDOR + default "adi" + +config SYS_BOARD + default "sc573-ezkit" + +config SYS_CONFIG_NAME + default "sc573-ezkit" + +config LDR_CPU + default "ADSP-SC573-0.0" + +config DEFAULT_DEVICE_TREE + default "sc573-ezkit" + +config SPL_MAX_SIZE + default 0x20000 # 128KB + +config ADI_IMAGE + default "tiny" + +config SPL_BSS_START_ADDR + hex + default 0x200A0000 + +config SPL_BSS_MAX_SIZE + hex + default 0x10000 # 64K + +config SYS_SPL_MALLOC_START + hex + default 0x200B0000 + +config SYS_SPL_MALLOC_SIZE + hex + default 0x10000 # 64K + +config SPL_STACK + hex + default 0x200D0000 + +config SPL_STACK_SIZE + hex + default 0x10000 # 64K + +config TEXT_BASE + hex + default 0x82200000 + +config CUSTOM_SYS_INIT_SP_ADDR + hex + default 0x8203f000 + +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 10000000 + +# 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 2 + +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/sc573-ezkit/sc573-ezkit.env b/board/adi/sc573-ezkit/sc573-ezkit.env new file mode 100644 index 0000000000..26f7b6cb79 --- /dev/null +++ b/board/adi/sc573-ezkit/sc573-ezkit.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=0x6E0000 +loadaddr=0x83000000 +jffs2file=adsp-sc5xx-__stringify(CONFIG_ADI_IMAGE)-adsp-sc573-ezkit.jffs2 diff --git a/include/configs/sc573-ezkit.h b/include/configs/sc573-ezkit.h new file mode 100644 index 0000000000..42e42f8150 --- /dev/null +++ b/include/configs/sc573-ezkit.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * (C) Copyright 2024 - Analog Devices, Inc. + */ + +#ifndef __CONFIG_SC573_EZKIT_H +#define __CONFIG_SC573_EZKIT_H + +/* + * Memory Settings + */ +#define MEM_MT41K128M16JT +#define MEM_DMC0 + +#define CFG_SYS_SDRAM_BASE 0x82000000 +#define CFG_SYS_SDRAM_SIZE 0xe000000 + +#endif