From patchwork Mon Jul 15 08:59:19 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: 13733145 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 3DBFEC3DA59 for ; Mon, 15 Jul 2024 08:59:52 +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=YvG/Q48GBchz+mYQY3i6pQc7AvICpyesV7T8DmFFwjc=; b=t+xFFcWApjFfIEEUo2lpXBDFHn FCt4xV/nSqvtC6/tTRyUOM5zEbQMCWT9ZnDM7CSGTdZkVkqsTU8M9AZK4Dw/Lg75DR64267EQWat7 iCSHdFXq4n7v4JTn358hMfdBFVPtfu4sjyzbrQkA/aDDVVxLL9VmsAwA7fNmhUMD1nYd/HrsSrrsC YsU6Uv4WaD0WboK41NvAoFMeFgrBjkgzfCsbIA0b+AeUvNX+MkC7Y8bz+enkuvfg5Pw//Lh5Jgr0t TMNd4FLIbmkLqhqoz5VmUIj3wAhevVMqhPC+o7xzrjwirljs9DXVV6lfkFU4Hadmu36tR5n2agx+g 84SNj+bA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTHYd-00000006ROm-0iP5; Mon, 15 Jul 2024 08:59:43 +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 1sTHYJ-00000006RGl-0Bo1; Mon, 15 Jul 2024 08:59:25 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D78C460E03; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 5D9D6C4AF0F; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721033961; bh=LDdV5iZmQZqylIgJ/osRTNrvBIzVQCfS1jrSLC+xklo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=T0JOZpOS26qka/RgQVUeN73Jeil6A6m+9QScjfmmzkwJR6fmw9xytb6lPYFaCnArm +G9gZwknY9YQzSDjCB/54aIeK6mMOOHLYe7pTeJyh6FusA9+9oVtYDFy7EdSKjA93e MTyFA+c+g3rR5He1z+ckW8gF+ejdR9Ecv/jWZ/GgsQqr6VLXu0Zvm5SeY4EHyhnQQ9 erISPYITOGv+JiDdI0mSnKT2acso8OuWd8WMsMoIAydbYk1Cbwz/yxjbLuC+9bRn7C 4XKKP8dxTXpZLkDDM5O6wwXEL+6gjam48CHd8ht4l0VB33B11/ViKuERaSVemF/c04 OGigfY/5T4ryQ== 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 4D347C3DA5E; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 15 Jul 2024 16:59:19 +0800 Subject: [PATCH v2 1/6] dt-bindings: arm: amlogic: meson-gx-ao-secure: support more SoCs. MIME-Version: 1.0 Message-Id: <20240715-soc_info-v2-1-3836c8cc27a5@amlogic.com> References: <20240715-soc_info-v2-0-3836c8cc27a5@amlogic.com> In-Reply-To: <20240715-soc_info-v2-0-3836c8cc27a5@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=1721033959; l=1215; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=JnJJMZRxCaqyyKyFb5/FDU56hz+XcWAtbQbfxps+Two=; b=R7XvE+qSM+fzrD7PJUeJk4zhQ3FJjbtgdSphOmak7wX7g75WfqKiSV9MZNFg9EFKX5uCRppIm k6cKatYUS6PA1DkZHCfZ+EKvWAeQOxUI+MH34a3rvaPlTlfEOMzPjfo 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-20240715_015923_175152_E993784E X-CRM114-Status: UNSURE ( 6.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 dt-binding document for ao-secure of Amlogic SoCs(S4,C3,T7,A4). Signed-off-by: Xianwei Zhao Acked-by: Conor Dooley --- .../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 Mon Jul 15 08:59:20 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: 13733148 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 B96EAC3DA59 for ; Mon, 15 Jul 2024 09:00: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=BWUQBzBEGJDugkIFaG8/n6oKoc/+8l+SSxp1FOES3no=; b=ninFyq2wV/Qso/XZfnGFUTnD4A XmuGjXpZsKKqWba+kkuNUvnDVJi0G1ZkxpUc1Cn+QWHaciXMeOJilnh7u4iKEjqXkGXJSebigWFBv Oor4jLHq9uqvUZqFANGUjSptquxgP73GfWXSvpK7sohzj0TiKann5n8tAhHoed6KXKu8HikacJv3b 9ezW6qwRIjNw3VGP4zRDYr86CcOELd1O51KspzsUJXp68D+dF4lThJkIYEt/ZR86iOSzivww7B3/3 zXnUFbUA2VUjXfUAFtzQ8l88vKHjJC5g7v+svqqAIrvkkb5JYPtlRUqTJuC6HnT2JbtzUgCBFZV63 fP/hzu2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTHZV-00000006Rp4-2sgq; Mon, 15 Jul 2024 09:00:37 +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 1sTHYK-00000006RHd-2AiG; Mon, 15 Jul 2024 08:59:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 59594CE0E4A; Mon, 15 Jul 2024 08:59:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 69E20C4AF11; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721033961; bh=/O2nGpJcr16vRLvgrd+SZjmwJdnjJPrOC4NvECf8nUM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=M7K882P06PDKXe+45ygDPWh29IXz4bfMKePRHgQV96VoAKoURRRL5g7FFDqRsK0RT srLZotmoUl87ghOID2fgY2+QRlEOvcBbVZ0Ztu/KCowolQvZGvdD+9SKimthH70BwU RYXwdeOFtTKUliJ7uS9V3qpktrd+FcbQM4PmZ2Iyz4JkTc4wUKLw46GACUpRBqCh6+ yX10QLeFpP4YINPa2+ztk7pP5oM7NRRdBH7Lna1uv9wR6wN1EgYaMyeE7HgKcaEXUF nhoFiBtHnJjI0RkMq9DYTwyHKSyQ8ZBFWbc2C6dk6Z2HcFHb15d1Q6I6Ojjuhf4MpY ynQRBo9KXD44g== 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 59D4DC3DA59; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 15 Jul 2024 16:59:20 +0800 Subject: [PATCH v2 2/6] soc: amlogic: meson-gx-socinfo: add new SoCs id MIME-Version: 1.0 Message-Id: <20240715-soc_info-v2-2-3836c8cc27a5@amlogic.com> References: <20240715-soc_info-v2-0-3836c8cc27a5@amlogic.com> In-Reply-To: <20240715-soc_info-v2-0-3836c8cc27a5@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=1721033959; l=1182; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=zRWWsMnyYjBcl83+I2nHF9NZDOoGs2C4FOAOFivyI1k=; b=smDNFXgxoSeiIF54/TDERqvLgFVop9bAHAJkTpYw3WsTuikbc3zfL7BHtc/ebZfXE/Yej69VT 1fK7rlvbx2XAqApVBpLw7a1nHoxW812k77RvHQ7MjowYUVxKU/4tmCF 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-20240715_015925_062543_6A67EB09 X-CRM114-Status: UNSURE ( 7.79 ) 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 Mon Jul 15 08:59:21 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: 13733151 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 B9BD9C3DA5D for ; Mon, 15 Jul 2024 09:01:41 +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=12r7CvXZrU9TFO+5s26gYFwfAS /GIUBMHNXwRu03vy1CydlLE01E64M9xNJ1hYFUtnLzWBJi85bDmD3W4NXGBCKwBTxafWJlJzHmVCG 9w0iWPO58MeOUhfr+SZofEZGK+gs6ZMhKmGC1OR5bl/ok8iocvlEHuxf7LIqacm5qMeshhp7mYnZc kFRtMZmBGf/eEMqlKqg3peZAxnsFAV2NQPpvciZhH2ttZPv4YGxZ3KVpA1gXuqDfhHAFpwwRbaXlT WDmYrc4Fpw2Gmk2fjGR2ZFTrwlqTlfXLtXn8hitpH4MbgSy8AfNThLiY1nDGo/+B/n6JGjnPzNiEY jNTywbqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTHaM-00000006SCU-27gC; Mon, 15 Jul 2024 09:01:30 +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 1sTHYJ-00000006RGm-0Uww; Mon, 15 Jul 2024 08:59:27 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 1286A60E08; Mon, 15 Jul 2024 08:59:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 73A6EC4AF15; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721033961; bh=MFLhWRcBfYxauByXZrf0VrJqa/KVcPGuygAHknweNJ0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=MCAWdA+Pw2khDsY8cpZH/+SCZ+Vga/vlxfBKHLymF8IyF285w3kpWuP34G/7iLvj6 GUuWPDz4TdrhoTgzwP9K4RwgEybrI5IQv5OuyQcslOu/ZaqVgfSFQmlCuBPBQNWYb3 jyKft2Tt98H13kfUKd7xcSW2TD8P98ct++KOQ9F/T08gdP53JKjwuY0sXJDLpdAf/d uHyeCGZpThzA9I6fhaWN2Gm3FQIiTM+UptZea5Tu5a3J1BOlZ7X/h6HORFRQESBMlV uaacAnnL/kOnqqnGEz+5SGbIf5ifYIKcWPxYZnBXC0tk280WefZOwfyEiI/0PhXeWX EVLwSd2IDmEVg== 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 697E8C3DA60; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 15 Jul 2024 16:59:21 +0800 Subject: [PATCH v2 3/6] arm64: dts: amlogic: s4: add ao secure node MIME-Version: 1.0 Message-Id: <20240715-soc_info-v2-3-3836c8cc27a5@amlogic.com> References: <20240715-soc_info-v2-0-3836c8cc27a5@amlogic.com> In-Reply-To: <20240715-soc_info-v2-0-3836c8cc27a5@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=1721033959; l=1081; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=2wGt7OXk2HOANrWvEqv6pT1XbsycF6rOAmNwlp+ubQ8=; b=h+GpU/QdW7GMAG9UdNeZuCxebI1djgkzpnF/ceKZ3RnFm/hcE64XUa5MVuSGq22kpbpUU+CcJ odtHcn6SF/GDy3uWRCmaLM2thLVIaHdYQ4j6bzhFmOrEp477attMPCw 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-20240715_015923_297650_37346A06 X-CRM114-Status: UNSURE ( 7.55 ) 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 --- 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 Mon Jul 15 08:59:22 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: 13733147 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 D3D36C3DA59 for ; Mon, 15 Jul 2024 09:00:31 +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=eNFC+rrop6jD8hAn4btzWTeM6d nnIIvhX7UYPV9vkoJe3QZLDkCUcKPUyXt2tVi5FY0X2wfvmZVzKZQUbdh+9A6pGpLvDJh8+fRjnco MVWgJmrWQX35xy1IiSdXqhbcm3h1jvkX8P9H0i/BsKBWj1EGux4dUKM6d18RrdMgDn3OG2ROu9IIW +RHrCcSBliEBIK2TmaFWhkaOprNNmdrVw//8KQpY2OyUoJ/2fZ1K3txdiarBGbRpgvtI7AeGfjJpv 0KaSKQIJSzcUINOdvgmVCVj26ddOxeMX2yM2ENNkhZWxSt+3e1KjiqHew5FnHdZcIlcnrEXEBac/C /Xo6VFzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTHZF-00000006RjS-0Qc4; Mon, 15 Jul 2024 09:00:21 +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 1sTHYJ-00000006RGn-0UYv; Mon, 15 Jul 2024 08:59:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 4173860CD4; Mon, 15 Jul 2024 08:59:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 8327BC4AF1A; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721033961; bh=wmZGgge85Q8CYqbZQFHFPVFmynDO5FkI+xVqMHo6QG4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=C0BxBChq6OdgSVELJx0/VsmZk5XhTBkhcGqw+ch1dN2vWA3sbi3fNk9Cvpa63oIac IFjzexFRH60a52CyibxiuLY1nza5+IQ39ihe3F1LjibQQ2Xb+74pbKJ///j6kjktH3 KHfER/vOZLsY5mxkahTV6/BG4EyxZLyjuCj1oq88Ek93JBFhikQIrDTbKyKBdkKiJv D99nFD7q4uZqNrMgJ5qJXHzJXyJ5stRIqFH+5fgF0OAGVXWzY/bImHNyTtp+w6dJAm j/gjTETgRWD5Wjh5Drwevk4Zz485Pj/qrNacpmD/WhkwTqy+bOj7AQOcK/HJJFD4WV Ot/fCWFA6deqg== 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 76434C3DA5D; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 15 Jul 2024 16:59:22 +0800 Subject: [PATCH v2 4/6] arm64: dts: amlogic: c3: add ao secure node MIME-Version: 1.0 Message-Id: <20240715-soc_info-v2-4-3836c8cc27a5@amlogic.com> References: <20240715-soc_info-v2-0-3836c8cc27a5@amlogic.com> In-Reply-To: <20240715-soc_info-v2-0-3836c8cc27a5@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=1721033959; l=1017; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=pjY4KC1fe2AmkCqstiXeLGWqLV1HNwoDAqmTzk6+a3Q=; b=RII61pRiQ3eExWxOca40zgebKBhZyKovGqTyN7yz7Oqslr65rO7JHjZphrFnJvc3S1RUj7Sfy s/b2ehfaew6AVBqMQ7oME0iNuGj9yYTyKs3zsFc7b7/s9LSx86kh3ot 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-20240715_015923_261248_CD6381E7 X-CRM114-Status: UNSURE ( 7.24 ) 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 --- 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 Mon Jul 15 08:59:23 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: 13733149 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 5CBFDC3DA5D for ; Mon, 15 Jul 2024 09:01:09 +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=tVK6Fn/Bf5G4f7sGzeZ4+zz6Zi 8hmELYetDbugGK2wI5OikFv4/8Oqv1Cic8PNXK5lWqiVZBhlSwq7LVUcHbwjOK8cC1aSuqZfI9prF A0DdvzWanfvk6xAgiq/mb80Gmk/c8hRrT00Qcn+28G9bWb7JYUKw9pgd/451D5AsUboe7nZhELU0h wosjPJ676BDsgcANOWmQwDP7veNs6bUbUsMuH4aqOL21feGjqDHjufThte+LYluR/g3FF+oO8NwpT AeArlJjfF/0pE/od6JMZbRDlkupLaBWEk8oD+7HJwTK9NLSrVcRLr2v3VtJmwEdVUTzxt/aO9xW77 jYboqNKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTHZn-00000006RxL-0DHn; Mon, 15 Jul 2024 09:00:55 +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 1sTHYK-00000006RHb-2uDU; Mon, 15 Jul 2024 08:59:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id DA3E9CE0E56; Mon, 15 Jul 2024 08:59:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 90E5DC4AF50; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721033961; bh=4MDbIzbgcDxHoNJ3qQdw4vdK4aOodPlMv8exrJKFJK0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=H9Hddjc7DyWZP8sf2JP06XA4UK3OtGz6pHzwTxQwaNqIWFogGYiw+waVB+xJjyp0w 4ZZ2OBitXyc1AqXyN1QuHHkBCgrAlztLURJHaq9Ec4i5ggiPHXz/iEc+udzXHQ4jWm cutkjBI3U/39hPPQCPzjMflZPb/XbV/rOt2s2zSvPQ37QyBTdWZ0k6YE+yAt5CuXqs NwO3d0n7GSEeLQIz5Ov4pNFATrPIPvEMCYezQI24kMaa3lWYi8ZP0/4hCddn7Z1KI6 2Hlqzx0SPd8Lv+jLFWSWDJRA5MWlp6Mbdng50EJ2+bZ3VEDQ0ekFfZQVI24iA7Z04E A6gJQB3apzpIA== 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 84E6DC3DA59; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 15 Jul 2024 16:59:23 +0800 Subject: [PATCH v2 5/6] arm64: dts: amlogic: t7: add ao secure node MIME-Version: 1.0 Message-Id: <20240715-soc_info-v2-5-3836c8cc27a5@amlogic.com> References: <20240715-soc_info-v2-0-3836c8cc27a5@amlogic.com> In-Reply-To: <20240715-soc_info-v2-0-3836c8cc27a5@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=1721033959; l=1056; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=X8apXJPtSL4pC+EPOExwu5CekUwHZ9o11FW6DgwjmrM=; b=79C2+yoRvFX/D99nnIDVl1pyGJqIOfzDdPRRMglXTnf1vlGE6q5YN9FGlgwHIv0glOi8CPJPu GIf8wLvaezUCCRiTRUUZ0rKPcPPYWxCBjIPjzbqGJFqtqmGkulCUrHK 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-20240715_015925_215628_7B30AF04 X-CRM114-Status: UNSURE ( 7.71 ) 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 --- 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 Mon Jul 15 08:59:24 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: 13733150 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 13070C3DA59 for ; Mon, 15 Jul 2024 09:01:28 +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=NIRsHNeFp3gUbVnue81xxsDi9b rX4PGtjZ15xeWPuPUCQgge3bOOrbUx8FAhhk4l4OJz0SrxdRbRca0hM2rkRqJlrp2diuau/qpldr9 GfVync+8PQ86AtwH/uJeA5wfgFflt/4V9YQTljRyBFZuNc+MOhQ8BbpeE3Dyn7CZY9eGxZqL6/UWE nMDm84hOP9v1QzH5y+9HW+/FUBntHo92jkSTO+xInlYz4vvTYnSqG/HSh/RA0Zg4DDk8TRqw1UyF2 JCrlu68tfmf/q9w/nghYo//xedKEhB2MF1Cp7Ej0MHzT7nkF3oYUhC1dh+M20r9iS6u6D1vQGO1Ac HWlIiiww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTHa5-00000006S5q-34d1; Mon, 15 Jul 2024 09:01:13 +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 1sTHYK-00000006RHg-36EO; Mon, 15 Jul 2024 08:59:27 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id E3FB1CE0E5F; Mon, 15 Jul 2024 08:59:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9E31AC4AF51; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721033961; bh=rzLwwkC/oer4IKZiroanbDLw+etqrVLhhYZwC5by1VY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=b6WLiiwik8eHWyaWElku+XLxk+xaeU7QkDynvMF+MImfQJc9qJUNfTLWcGxSwVl2e CmBdAAjE/8MmJUZLMSna3G5pkMAZbsePoDiG82Au7Ey6CF382KF6dZI25M/fAF9sw9 T8zGoVXZIAi/kmGmezFoTfp0QHPJ6b1HDpIWK6qsRbBa2/Baj6Szxz4MQvTQz808yP +0HyL+psJNkw6KkedywDTOS49w8HDb+CKHUZUMwygyT5cgXuUjhdBDfpGkMUhr9lgY 7sB1Mc02eDb1fiPvOFeeMCqj0y2xn/pTrbrW/wTkdu2PtI5oRdqMF9UqVYWp6L6BwV IVtIaTEE2YmaA== 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 96304C3DA60; Mon, 15 Jul 2024 08:59:21 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 15 Jul 2024 16:59:24 +0800 Subject: [PATCH v2 6/6] arm64: dts: amlogic: a4: add ao secure node MIME-Version: 1.0 Message-Id: <20240715-soc_info-v2-6-3836c8cc27a5@amlogic.com> References: <20240715-soc_info-v2-0-3836c8cc27a5@amlogic.com> In-Reply-To: <20240715-soc_info-v2-0-3836c8cc27a5@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=1721033959; l=1080; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=Zl2TiQJDwOdSpUPv3WU4sx37kiV4xoQ/BADR59alPhc=; b=Cm3hWH8krZDqMFl1wW+XfR7T/Tx/H31QC2TCprxjiutEEEBomQGa8QwM5fRhNlWkmcBJNkeUs 9F6aPdGGrvXC9asuqf6QQHqKJFfPtbxWYknlxwop5DIEhD/c+64nnW2 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-20240715_015925_218842_890AFB08 X-CRM114-Status: UNSURE ( 7.71 ) 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 --- 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; + }; }; }; };