Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1338728lqz; Mon, 1 Apr 2024 03:11:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxurYWDcMQ1JcXFHiTb428RVk7oDd7c7EPJxowK8P2kh8lQuaw323qHR7c8Id0qiNx9FTieZHcNfN+g7dKNVW5+NcsJCVrkeE6EY4wgw== X-Google-Smtp-Source: AGHT+IHPb5lNs7v6FkUqNjmHzueTza4muRugyeHRIcIW1BtJnWOtp/i7Qo4eL6dnvM9eINDNFP58 X-Received: by 2002:a0c:fc10:0:b0:696:9a11:8ce1 with SMTP id z16-20020a0cfc10000000b006969a118ce1mr9251161qvo.7.1711966289269; Mon, 01 Apr 2024 03:11:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711966289; cv=pass; d=google.com; s=arc-20160816; b=Ypo2FIIQso4p/kZopZtUrkIa1KaUWeHkhcw9Hxnj2Vkv85qY2s57LR9aUyfWtnwKiK jgAsG9igvKvqCs2y1PVQwYQ+we9we7TKaJW5IMcd774TpDCtNWLJTz19h1ugavc9tww9 q/LSbnlnyd1o1Uf8y0qTIpZB5g6zRQ8cluB/EFsKd8Y94fsm4+Jsk4isE0+ExyWil8uW FXpeNfgg1QkBPDkMcuruVB7YOufDwVqeV4ItzmiHk4okezh+7H6AbzpvFgU2Da9Tmgiq 4uA4ARNR9JJm894v8/yx8uss9943i1qnWxOJe84DloI9izKusf4nkRpR77D5nh/PmxFu /Dmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=hLVX33BsM3lJ3RdLnkRbOAOlC7P2PjlUUNjpfQw2Tnk=; fh=S4Z8OyfwmTskF2Fp8TAn/nwXPW0kUzLacYf7l9fN1sg=; b=TOT1MsOWpDXrmpgaJEUFOyzUhakVdebzG5YR6Uqhkqlinm/nZQyKYaiiaxz52EuNbk 5BYK0raYYsCYLzAvNS0W7UjtULtmpTNTEcAzPb6jrDXHQzRrfRZ2VSDuuBsj6ksi0nb9 l86mVweXrognCmydeBRNiOpuZrAi9kE8vHiCSFlvXVD89jiNOAH8X5mTYdurcRm7UMsr W2yunaRCc+JjiGCqgQfoIgxT/R6UepkB6LTVrUL3FTRlaNLpk45KU4JVUCazPrRR9e9S jZPOfT4Qh7nRwB04PXGVomUy/J2sCkAi0eC/3R6RhvlGKm4lH8kJ5+zCLQLo6+puGP0I LgbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BpQ6uj5+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126590-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i11-20020a0cfccb000000b00696afc8d580si9124031qvq.111.2024.04.01.03.11.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 03:11:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BpQ6uj5+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126590-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 068301C20F85 for ; Mon, 1 Apr 2024 10:11:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EF1A179B8; Mon, 1 Apr 2024 10:10:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BpQ6uj5+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F215134B7; Mon, 1 Apr 2024 10:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711966255; cv=none; b=JaJGmO9B4cZNMSIuyR8ink9awagLUqto6ZklMfbvVWVIOwOGH6RidbfsCy3OUQN3JF6TbOUHXqKk7Mp5ILNOs4z2eZeouLkOZxZhtGhD/m/MVCR6U4OkbZlgsrKQ23h6L0UO6qMRkQJ5V7uFzavqdsF+LEI0UYD0grbI42e+RuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711966255; c=relaxed/simple; bh=6UGLqY9odgzIryo++HHG92e44N/TaIRCAft0GJGAV94=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KSNy9LLviklrfOQ6SSjNkvM89aWCi/tB7VoAOMWGdWy86cXFhqWuC0dJZkQlkN6euHZjVLyPsjhgf17fahJqtgoB0ZZ2+mTfP6ZE5vVo/LLm7pIKE6xjwIkeXHsAH3LMp4sAZsofwonc6YV8BNi+FUACeA6ZWTYCTfpbG6bBsCk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BpQ6uj5+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 185EEC43142; Mon, 1 Apr 2024 10:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711966255; bh=6UGLqY9odgzIryo++HHG92e44N/TaIRCAft0GJGAV94=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BpQ6uj5+YpkoDAkec+fiSN0D3db8DTNxr8cjDO+8cNg+PYc1hItriDMBxpcN08nN5 mJjmCvYs3DhT/Ldoy+fJeh3iqwkH+/JIqoN/d/XIQE7aMiaFZys/C0py6Wt6DqRtjt hiLaBEOkaGygQgoWs96awpX0v4dDEJCuIMX8THg2VtKPj6lEI8UvUjyh73qyoFvNPQ 0ehg2zj0cbshbzgc3M/MOYr/GtQrj8SFL/E7u4Hd7sRCsLRbBaidFpVXRfbIU4ElQ6 e+9CJlDIgZ1znBxebqwN6IebTIq5/aiq5/lY5Ha2ZmC3M9M2yieHtWcWdt8x5pEV0Z P5xIqgYGovrCg== 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 0AB26CD1288; Mon, 1 Apr 2024 10:10:55 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 01 Apr 2024 18:10:53 +0800 Subject: [PATCH v3 5/5] arm64: dts: add support for A5 based Amlogic AV400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240401-basic_dt-v3-5-cb29ae1c16da@amlogic.com> References: <20240401-basic_dt-v3-0-cb29ae1c16da@amlogic.com> In-Reply-To: <20240401-basic_dt-v3-0-cb29ae1c16da@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Martin Blumenstingl , Jerome Brunet , Kevin Hilman , Greg Kroah-Hartman , Jiri Slaby Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-serial@vger.kernel.org, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711966253; l=3327; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=Dl4srjRZCo288fxVGeVbl9OCj623WT1z94/SvifjCLU=; b=7eYoRxg8m6HkOJPtSq+qik4iXOON1xb7oHenYqzrID0UuQUnaAjlRLb9MxU8Hc4eB1PS574N9 Hk6QWjRAG/HC7IKjGZZWEVNWAIWnDo2hN3aKKoOEheeE4vIcR4MiUDQ X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao Reply-To: xianwei.zhao@amlogic.com From: Xianwei Zhao Amlogic A5 is an application processor designed for smart audio and IoT applications. Add basic support for the A5 based Amlogic AV400 board, which describes the following components: CPU, GIC, IRQ, Timer and UART. These are capable of booting up into the serial console. Signed-off-by: Xianwei Zhao --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/amlogic-a5-a113x2-av400.dts | 42 ++++++++++++++++++++++ arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi | 40 +++++++++++++++++++++ 3 files changed, 83 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 9a50ec11bb8d..154c9efb26e4 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_MESON) += amlogic-a4-a113l2-ba400.dtb +dtb-$(CONFIG_ARCH_MESON) += amlogic-a5-a113x2-av400.dtb dtb-$(CONFIG_ARCH_MESON) += amlogic-c3-c302x-aw409.dtb dtb-$(CONFIG_ARCH_MESON) += amlogic-t7-a311d2-an400.dtb dtb-$(CONFIG_ARCH_MESON) += amlogic-t7-a311d2-khadas-vim4.dtb diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a5-a113x2-av400.dts b/arch/arm64/boot/dts/amlogic/amlogic-a5-a113x2-av400.dts new file mode 100644 index 000000000000..11d8b88c1ce5 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/amlogic-a5-a113x2-av400.dts @@ -0,0 +1,42 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2024 Amlogic, Inc. All rights reserved. + */ + +/dts-v1/; + +#include "amlogic-a5.dtsi" + +/ { + model = "Amlogic A113X2 av400 Development Board"; + compatible = "amlogic,av400", "amlogic,a5"; + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + aliases { + serial0 = &uart_b; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x40000000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* 10 MiB reserved for ARM Trusted Firmware */ + secmon_reserved: secmon@5000000 { + compatible = "shared-dma-pool"; + reg = <0x0 0x05000000 0x0 0xa00000>; + no-map; + }; + }; +}; + +&uart_b { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi new file mode 100644 index 000000000000..43f68a7da2f7 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2024 Amlogic, Inc. All rights reserved. + */ + +#include "amlogic-a4-common.dtsi" +/ { + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a55"; + reg = <0x0 0x0>; + enable-method = "psci"; + }; + + cpu1: cpu@100 { + device_type = "cpu"; + compatible = "arm,cortex-a55"; + reg = <0x0 0x100>; + enable-method = "psci"; + }; + + cpu2: cpu@200 { + device_type = "cpu"; + compatible = "arm,cortex-a55"; + reg = <0x0 0x200>; + enable-method = "psci"; + }; + + cpu3: cpu@300 { + device_type = "cpu"; + compatible = "arm,cortex-a55"; + reg = <0x0 0x300>; + enable-method = "psci"; + }; + }; +}; -- 2.37.1