From patchwork Fri Jul 19 08:08:09 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: 13736963 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 91F30C3DA59 for ; Fri, 19 Jul 2024 08:10:14 +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=d/YUZ/Erarnom4SIVs6KZ2cYhGtfrb56piv2ybHV7Pk=; b=VGw52h5A8w2G9xEDYPyoki886w YpN3AFohyr0Tp8X0JjKd007C37C2dkJCk9cBhQZML5D3NVUQPKn3rsCqtgtK+OkLcMgtIdPCETQu0 8nFfz8MSX62xpgdJv5JIXyq3tjkI3CY8IHioxVdWvAEnxaUNye8TqW24dy8rlj54y7eKEdsTxF56T jzGdWoylMFh51LF2h/VwFHVe5z8I8Cjr/q+sqpjdt5OfhD+wvfxN5mST7U/ZSsi+A5hKG7tC0xzyg s8+m3IjUxYYuTyyF1qVza2mtPvbG7+A1+GZP2GQ8xrnJWwOLKIgqhtMeIVvaoFRlcW09Pp0gw4z5W 77LeBHjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUigl-000000020y8-2SxO; Fri, 19 Jul 2024 08:10:03 +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 1sUif0-0000000209Y-3W6O; Fri, 19 Jul 2024 08:08:18 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id E400FCE1AFA; Fri, 19 Jul 2024 08:08:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 25849C4AF0C; 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=3EB5WTUXtz5lawXW+qBeefLxm0XKsLLlzdFFG6e3pxw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=NEUC92XtdyzqohamVyUy882BpUbuViaYTpo/FSOqox3H02FmPQwtMiqxlQ7r1BPkr m9IfGbZf4Cxv+BWdFvddxH8TaRqU51oGTYRzjmvVUs7VVM2ulDb+RsqZCALHJYb++g j6jln92wDyKc3pHL86n9LHIr5KLzOtwfffV/gnGrer7ikPR6qdpKYia2BHmBb7eQQ2 3ivmBf6YCyQxBcHBpKk8Tv0DbOB3BdoZb057jcbMql2/XiwB8OQVhlTALqlf5nsmb1 D1ObHQqLG+SLI0gcLccTttBiL95k7WuDl8OgMKNkrw0M0K6nkmfd3kG5qLcxm6bzGI SvuaOBcTYedBQ== 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 0FB3FC3DA70; Fri, 19 Jul 2024 08:08:12 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 19 Jul 2024 16:08:09 +0800 Subject: [PATCH v3 1/6] dt-bindings: arm: amlogic: meson-gx-ao-secure: support more SoCs MIME-Version: 1.0 Message-Id: <20240719-soc_info-v3-1-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 , Conor Dooley X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721376490; l=1263; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=rEHcK7kDOz/ftRyqwGr3Rr5qy1WJIemzIVxERnlZdoA=; b=FfZmWKw4yC6wnxyxKyI818xy2bVTST+7yQ4+xM98MMp60iKFVe7ocInoteyPkz6tiqGZpJv8N 4uIPQykCxl7AbrZ7NJX8VHJHVBnnv7dO2y6B+xaGkSpXODT6mu47faX 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_094478_9C2317EC X-CRM114-Status: UNSURE ( 7.05 ) 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 new compatible for ao-secure of Amlogic SoCs(S4,C3,T7,A4). Acked-by: Conor Dooley Signed-off-by: Xianwei Zhao --- .../bindings/arm/amlogic/amlogic,meson-gx-ao-secure.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-gx-ao-secure.yaml b/Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-gx-ao-secure.yaml index 7dff32f373cb..b4f6695a6015 100644 --- a/Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-gx-ao-secure.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-gx-ao-secure.yaml @@ -25,10 +25,18 @@ select: properties: compatible: - items: - - const: amlogic,meson-gx-ao-secure - - const: syscon - + oneOf: + - items: + - const: amlogic,meson-gx-ao-secure + - const: syscon + - items: + - enum: + - amlogic,a4-ao-secure + - amlogic,c3-ao-secure + - amlogic,s4-ao-secure + - amlogic,t7-ao-secure + - const: amlogic,meson-gx-ao-secure + - const: syscon reg: maxItems: 1 From patchwork Fri Jul 19 08:08:10 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: 13736965 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 80774C3DA59 for ; Fri, 19 Jul 2024 08:10:55 +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=BWUQBzBEGJDugkIFaG8/n6oKoc/+8l+SSxp1FOES3no=; b=3zJZOscoLQ4FNmBPhZcatgQTTB izj4dModoe8YzDjeJmi2DUBhPbev5DeqDkt9Z9lpWza6jhkVCYKzk8TffU0A2ArdffFdJM6ZZ0fM7 9IeH9naSIMHKHzzfwdw/3z7hoa+n+wW6lj8wpLyoTfg5oKI++A7TGeAvvUNpX6/XSJU3PWkUnCB/r OOOLs6L6JB/Y7o5D2hrLUpfCk+BNBnwrnYGb4kNZa1JPNwT8XKL2MRwtbsc9gnpd1nFu0SvJhFFXR NtVziRHkjkO24IS8nqCZlpXzqkN11WiujiepIsGDnjfFNziGblSzvtgub3fA1xrjAusOgTL7zro7C r0NxtkGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUihR-000000021HI-0kdh; Fri, 19 Jul 2024 08:10:45 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUif0-0000000209a-44fE; Fri, 19 Jul 2024 08:08:20 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 3CC56CE1B20; Fri, 19 Jul 2024 08:08:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 3467CC4AF0A; 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=/O2nGpJcr16vRLvgrd+SZjmwJdnjJPrOC4NvECf8nUM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=bdIEBzLGNTJ0ytCVXwZIjbOF9+JFMb90xZW98gbCg17YINisWbMFQa3pfHIJTHleT LPOqUIkOGWPoJtZvBxbvHGFuge7AAyIj12BeUvaLQ0YbI2aDF9rvlGtIJtRsCqe/IA Arkd+iQO13Zfzfx/kCHKHoxM2oYHVa9UIZW6rB+IWsgmYK90HxRwroxVSc8QwLZISK dJJeIvcka5dZWZXIhK12Bvl8UUhqkqZKKvt7pzV3LGR5zFuCTBFIlERt90yBkpN3cH IQlmo1Gcf/HrT20sJJCm9/KHfk2WgcB949G7ApG3RcjqM6ayN9YzGxBSnq7aO9446K lsFgrW3CBTWDA== 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 1B059C3DA5D; Fri, 19 Jul 2024 08:08:12 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 19 Jul 2024 16:08:10 +0800 Subject: [PATCH v3 2/6] soc: amlogic: meson-gx-socinfo: add new SoCs id MIME-Version: 1.0 Message-Id: <20240719-soc_info-v3-2-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=1182; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=zRWWsMnyYjBcl83+I2nHF9NZDOoGs2C4FOAOFivyI1k=; b=2N3VqoSg90YHKRwkRLAuCyMLMMD4AtkI2P8zYR5Mxi8W0Kbw8U+ctTMenOiDH9TOh2XHWlVH/ 0EzzzrNYT0zD1VOsz+8/XcyUI0Qwn9riN54CXGVaOuKayNLqu1/hbEi 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_212876_1A2C6210 X-CRM114-Status: UNSURE ( 7.92 ) 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 new definition for Amlogi SoCs, include S4, C3, T7, A4, A5. Reviewed-by: Neil Armstrong Signed-off-by: Xianwei Zhao --- drivers/soc/amlogic/meson-gx-socinfo.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/soc/amlogic/meson-gx-socinfo.c b/drivers/soc/amlogic/meson-gx-socinfo.c index 8809a948201a..7549f1644e5e 100644 --- a/drivers/soc/amlogic/meson-gx-socinfo.c +++ b/drivers/soc/amlogic/meson-gx-socinfo.c @@ -41,6 +41,11 @@ static const struct meson_gx_soc_id { { "G12B", 0x29 }, { "SM1", 0x2b }, { "A1", 0x2c }, + { "T7", 0x36 }, + { "S4", 0x37 }, + { "A5", 0x3c }, + { "C3", 0x3d }, + { "A4", 0x40 }, }; static const struct meson_gx_package_id { @@ -76,6 +81,11 @@ static const struct meson_gx_package_id { { "S905X3", 0x2b, 0x10, 0x3f }, { "S905D3", 0x2b, 0x30, 0x3f }, { "A113L", 0x2c, 0x0, 0xf8 }, + { "S805X2", 0x37, 0x2, 0xf }, + { "C308L", 0x3d, 0x1, 0xf }, + { "A311D2", 0x36, 0x1, 0xf }, + { "A113X2", 0x3c, 0x1, 0xf }, + { "A113L2", 0x40, 0x1, 0xf }, }; static inline unsigned int socinfo_to_major(u32 socinfo) From patchwork Fri Jul 19 08:08:11 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: 13736959 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 E2569C3DA59 for ; Fri, 19 Jul 2024 08:08:50 +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=hmSVIFSlmeR4SyVx4zZmteUYqEt5o2XC2CT24dg6W04=; b=Bts0/+fYQanVUmM3zabBAE2WrD rHiKmaKQz2pUgMNfZebuGakhKpcs4UK/ieE453gtWikX+BpNA1TS6JDOSvNh2HQtOx/nCL0QNmwZo IjV5VT9iVadKvUcDxwdExX+n9nDPHgEfG+1WXerGu69XfLMR3tGalX94co5EwIs0jK09Fm48zuJzs /NA1JvXTtD5xQpDYizJPHUTlEGxvPhCbHDMap4+kRL8lvTeyZHzzq8IpOJM+FlnubCq5elAoY0QjF WusmjTXN6GyrSOq4NplidEihp+NQgrteW2lmFOuoFXf/xkYL7Sv1cosoGWtR/3FCvSs62fGVy+d49 0h9htmLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUifQ-000000020MU-1DwS; Fri, 19 Jul 2024 08:08:40 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUif0-0000000209U-0twK; Fri, 19 Jul 2024 08:08:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 28A1E61C4B; Fri, 19 Jul 2024 08:08:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 3E0A5C4AF0F; 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=MFLhWRcBfYxauByXZrf0VrJqa/KVcPGuygAHknweNJ0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=pGW/HZEB6v+b1+/BoEpHoWOoPbOiaSAAMNDg13uF+D0tLJ/qwU4JNizpH/YcibP/Y X08iEjjRxY3EZKReEOmHwPzXQkU56/XnYSRRR95TU6vy/3iO34JEaK+w5/SPvrAyX1 Jo44MdMt5dsjEbmuxHVCzAoS7sMSDZVhC4YC2GKcNWCNFOq5hQmO7417SH4IoqjB26 svYUs8nG8xuWfKq4m/SersAAO/KAP2wO69VDV1yRDdv7Regu2vDmKNbNHUtfJXEz5H S7eEYGn89y0RmZ8yHgjPm4JCA5Hf+JIFZKPo5ZoYnDDuB1peOA/vPRr26Wbbxnm2Rq mCYvxsrM5dKew== 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 2A008C3DA7F; Fri, 19 Jul 2024 08:08:12 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 19 Jul 2024 16:08:11 +0800 Subject: [PATCH v3 3/6] arm64: dts: amlogic: s4: add ao secure node MIME-Version: 1.0 Message-Id: <20240719-soc_info-v3-3-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=1081; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=2wGt7OXk2HOANrWvEqv6pT1XbsycF6rOAmNwlp+ubQ8=; b=AZ/jc5KW8nrVKD8rlevj0lLWi6qLN62wIsNHLnBTTxvqIv6EKAmZs+Q3jxikXSpcHR6yPwnH/ 89Vj09Zk9FgCz6e/OI8/gSmKanHX9rto/LBt2EyGbMyE3kP0XSb3CzK 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_010814_370581_5DE22C1D X-CRM114-Status: UNSURE ( 7.67 ) 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 S4 SoC: soc soc0: Amlogic S4 (S805X2) Revision 37:a (2:1) Detecte Signed-off-by: Xianwei Zhao Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi index c11c947fa18c..957577d986c0 100644 --- a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi @@ -763,6 +763,14 @@ reset: reset-controller@2000 { #reset-cells = <1>; }; + sec_ao: ao-secure@10220 { + compatible = "amlogic,s4-ao-secure", + "amlogic,meson-gx-ao-secure", + "syscon"; + reg = <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; + ir: ir@84040 { compatible = "amlogic,meson-s4-ir"; reg = <0x0 0x84040 0x0 0x30>; 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; + }; }; }; }; From patchwork Fri Jul 19 08:08:13 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: 13736961 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 34FAFC3DA59 for ; Fri, 19 Jul 2024 08:09:34 +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=UFmqHPf2rbNGX8bTJDg7Pirp6lY8q9EktqKLcSYpB4k=; b=pcFbLf3QxmEaT4roR7ZPt52gO6 ukaGnmSWqJp7qFNcsJHu28QTLIszIu0T7k+HdWxTgPJZooFWrBVh/24QJPTVeYeUPoeWl6fgwiM9J 5MRNf/W0x3HlWPxbZJohSzexactzRDJb71TpyWMQVsfKHax20h6496tvnRg3Wthff/sS866sQuGFJ MBGCpqz3zBTYCZz7al9CpXabR1fohTs/Gixv+95J0ZARXl9vMoILGHcaf6TL0Sqw+xfdrXhozcV/A C6o+cbLWAQbOvzjv8hZ0aqcW/F1pGaU/DqfZV99NWw6IOZqhbpnjZAiinOxkYdBj1q+mHA+lUk6cC IMHUHRdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUig7-000000020iN-2aOS; Fri, 19 Jul 2024 08:09:23 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUif0-0000000209Z-19c7; Fri, 19 Jul 2024 08:08:17 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 5907D61C3A; Fri, 19 Jul 2024 08:08:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 52ED2C4AF16; 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=4MDbIzbgcDxHoNJ3qQdw4vdK4aOodPlMv8exrJKFJK0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=MO8yXfipLHFrNtLYjbaf9lQWunBqXUtGNJ75Voo67WlxuhKiHTcASgtN5JrHC5t50 na943o1s4dHa0TP3lEaEJZn5oorpq8yvv6JNM2g9NItxhcRCicNaVkm45aUc5l+Xth o0eA6hVQYUnQrJgzDiPCGiV2tED8+n4zoPTPURzRmMN1uPzQXmVQxRo0ut0WZDFlSB Y7Syz2qdl0HiMlNngF40GhxBsDfPyBckOtGkVOHdvD7bxXX2ckFUbu0oYvWJ+fiQlY O20wDwWEk1XyUaF5EvpPqQJL2YsxvARbZin1EbqZl8yh05im9TLwktFu+zFqdSJg9H ptxbohn3Fe/Cw== 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 45E89C3DA7E; Fri, 19 Jul 2024 08:08:12 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 19 Jul 2024 16:08:13 +0800 Subject: [PATCH v3 5/6] arm64: dts: amlogic: t7: add ao secure node MIME-Version: 1.0 Message-Id: <20240719-soc_info-v3-5-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=1056; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=X8apXJPtSL4pC+EPOExwu5CekUwHZ9o11FW6DgwjmrM=; b=3JFRpb+37yakNpqi576ecStgHlK3dSYpZKqSqVkN/MTunWTuIFGZ/JRJsibj7DnJ+vegL9RAb bJvhzMen/p8Dx/7ldGQpzIiEYGnVB3quKLVAHf0RXOlviF+abDl4GvI 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_010814_405330_43347E32 X-CRM114-Status: UNSURE ( 7.83 ) 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 T7 SoC: soc soc0: Amlogic T7 (A311D2) Revision 36:c (1:1) Detected. Signed-off-by: Xianwei Zhao Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi index c23efc6c7ac0..ec743cad57db 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi @@ -194,6 +194,14 @@ uart_a: serial@78000 { interrupts = ; status = "disabled"; }; + + sec_ao: ao-secure@10220 { + compatible = "amlogic,t7-ao-secure", + "amlogic,meson-gx-ao-secure", + "syscon"; + reg = <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; }; }; From patchwork Fri Jul 19 08:08:14 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: 13736960 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 06132C3DA59 for ; Fri, 19 Jul 2024 08:09:15 +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=neT/jiy77xwmZNhIFuxePd/6d06X1l5BOW5p7OKefgI=; b=4Zu2HnFZEAZXdZ9ofsmvX1Xy4r nMEPSE1SOj1Mwvfy/T6sXGorqVzvWzlkDrxyIERs6DQLZMbyGn1k8sTT8gXQywTmQlcUt8wiYtqkJ oeoES3lXYWfqSWW1h+LFkINNM2px6zTk25oyzPPKak7jpIIR+7mzEyCIORjP55nnrD11czhdgAivY IsF0GriEw7Mwh+tN0pA4YHjrq1NUw4WexK062qJ0WFYPwQnDmIu55PjM0Gp/B+rgioDB86ZcEhb/i qOvA80wGZ3vv6Nxsp1MAfIR55J/5+Ew1/Wh6SA7IKR/jptnJ+V1m3hdjXM6oPjD8ub7MQgT8bcVnr stc2LCVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUifl-000000020Wn-35LR; Fri, 19 Jul 2024 08:09:01 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUif0-0000000209b-0tuR; Fri, 19 Jul 2024 08:08:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 931B661C55; Fri, 19 Jul 2024 08:08:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 5DB45C4AF1A; 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=rzLwwkC/oer4IKZiroanbDLw+etqrVLhhYZwC5by1VY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=bK4c++rlrwKmhbDz1JVqLv44eQ+8wCkdo6aAiZslRXzkbkmdxXN+KGP8CheRAfnqI tt3P4hJl6MAgNCa+nOudNB5wM/DpoPcSbxDGXP2PLwHlTLUI9X1fDRWUzDmJm5Vt0+ 451oTGU3USBIk7fSjFbXxnpcQGRnrnXiMPw0nFtUDacs/6BRguAa+R2qnuqo8s9wVv 8HVraVrR7tUTfY0v9k0pfS1Vasa8LgXZdiGSA1Z0F/EaUEgLFPhkNgpbUHq4pzVH0R NCl1V47G22MaSmx6Y01papYPzLC8gjCHBo8Izid5U4mfvfZgLlozZdkCUv0MNG5vkH lxSL84s7g5pYA== 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 5193EC3DA70; Fri, 19 Jul 2024 08:08:12 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 19 Jul 2024 16:08:14 +0800 Subject: [PATCH v3 6/6] arm64: dts: amlogic: a4: add ao secure node MIME-Version: 1.0 Message-Id: <20240719-soc_info-v3-6-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=1080; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=Zl2TiQJDwOdSpUPv3WU4sx37kiV4xoQ/BADR59alPhc=; b=wBSeur+SAfT00QiwrwbLZOTSIXxAG7NltC82LZfXjKXJidhqBJYlznZHLPPm46UKO75KdMPV8 64fpcWa2Q/uCH9GkFYeeIoMKN+9U/7o2E37yA6TO5myILPXOUqMx8rV 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_010814_372885_7DC280F4 X-CRM114-Status: UNSURE ( 7.83 ) 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 A4 SoC: soc soc0: Amlogic A4 (A113L2) Revision 40:b (1:1) Detected. Signed-off-by: Xianwei Zhao Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi index 496c3a2bcf25..54d7a2d56ef6 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi @@ -67,6 +67,14 @@ uart_b: serial@7a000 { clock-names = "xtal", "pclk", "baud"; status = "disabled"; }; + + sec_ao: ao-secure@10220 { + compatible = "amlogic,a4-ao-secure", + "amlogic,meson-gx-ao-secure", + "syscon"; + reg = <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; }; }; };