From patchwork Fri Jul 19 08:08:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao via B4 Relay X-Patchwork-Id: 13736962 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 174BCC3DA70 for ; Fri, 19 Jul 2024 08:09:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lUfGLWbCAKFG9eqQtgF4hYlOEnJFHPy/6hlAO4tCGrQ=; b=IqWlxLxBCXM63GjxkYntgo/+yc eyPiGDhDymtcDIm10qoJBNE8ZKTu4HSjMQDKfRgguAJRVv9byOks1Yk383x4SF++oV+4a6ZakM2vh qqW5HEY1ugkbk48gznaMcXY2Xj/7CUens6BH9b5TLgbEd1bq6iMtKbER8cDykF+qjogsCR7wAGJXV 1OyNx0Wvs4hnW0J/vGvTMLmZS7pFt1z4El5ci6/FIePca6ypWWSyfV90j1qC1cQPijbzqv4lRaZSG 1BJBtpl4neCYziomWBCi/YfaqbI3OuHNovWQPo7/lf6eT4Fx57MwBwvR1jvuw8TBd6J2iViAErcmb 0K3KSksQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUigS-000000020qk-0m1M; Fri, 19 Jul 2024 08:09:44 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUif1-000000020AO-26IZ; Fri, 19 Jul 2024 08:08:17 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id C7608CE1B28; Fri, 19 Jul 2024 08:08:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 474EDC4AF12; Fri, 19 Jul 2024 08:08:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721376492; bh=wmZGgge85Q8CYqbZQFHFPVFmynDO5FkI+xVqMHo6QG4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=pLzj7WQjNFxr35yAbxw+FdPWFa4m0iJQvAX2HEzVgMxi5VuPjHf23dLYYvh3o/hjo gNMnJIwaYFb4Lt9dgYym2fHTamJ0MdIuJ2QFP4rd5GrPNu4+ob9khb+WfRzHahuLix tiNw8lJ7VTQ7iT36i3pAcb/gc6YfydX3I/uaRczxGr/OIeFn0uhaQyheB1IdFv+sYN Dgn8b+JsNoSEJjun2G8nNVQnSUtPaCP/XziU9HsDZBvIWlx0EOegweCLjFtDkz5M1d OdsIkw1ETFw91eEN+auxncpyVNqsK7jUN4LEArOqdokgNuRMEr5Iwwk9M26Y+wFMO9 VCuCTU5S6mB6g== 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 37528C49EA1; Fri, 19 Jul 2024 08:08:12 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 19 Jul 2024 16:08:12 +0800 Subject: [PATCH v3 4/6] arm64: dts: amlogic: c3: add ao secure node MIME-Version: 1.0 Message-Id: <20240719-soc_info-v3-4-020a3b687c0c@amlogic.com> References: <20240719-soc_info-v3-0-020a3b687c0c@amlogic.com> In-Reply-To: <20240719-soc_info-v3-0-020a3b687c0c@amlogic.com> To: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721376490; l=1017; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=pjY4KC1fe2AmkCqstiXeLGWqLV1HNwoDAqmTzk6+a3Q=; b=bHvTWmXiHBmU+q49ecwX8p35+C3jGobQtof8DP85hlGnRkXv2LjMfT+Em8C2wrK3eMTHFgotQ KBgYq+l995KBLx1N6T6+cu5uqyXrlucDI+hHazDtsGGVwRRVhBflH6G 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240719_010815_762628_4462292B X-CRM114-Status: UNSURE ( 7.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: xianwei.zhao@amlogic.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Xianwei Zhao Add node for board info registers, which allows getting SoC family and board revision. For example, with MESON_GX_SOCINFO config enabled we can get the following information for board with Amlogic C3 SoC: soc soc0: Amlogic C3 (C308L) Revision 3d:a (1:1) Detected Signed-off-by: Xianwei Zhao Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi index f8fb060c49ae..c913dd409e64 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi @@ -129,6 +129,13 @@ uart_b: serial@7a000 { clock-names = "xtal", "pclk", "baud"; }; + sec_ao: ao-secure@10220 { + compatible = "amlogic,c3-ao-secure", + "amlogic,meson-gx-ao-secure", + "syscon"; + reg = <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; }; }; };