From patchwork Fri Jul 12 06:54:46 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: 13731336 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 BE9EBC2BD09 for ; Fri, 12 Jul 2024 06:56:32 +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=nplWjn47YvfPqI/hAskbHvEKOAz9ufGmE9+R6X17kU8=; b=dHe68LO5eQxaeYMP2O7VH+Jg9N qY95iVM+64zS2nBIwKZ23ZqN2mythjyOeUfhD+FOG4EZUJIfttQRJ1E9Sm2kIZmQz9hj/A3JrA1E+ pD/18U3Fja82jq2w5xY/2uWXb3/5pwkA/Uwjjx6OF6YJJaJoSEVjzJXCERnkQ8VCgNFnO4LumHbZB X4VzGHrpKwo2Buy72L/UzgYPfYVdSLtyJF7xGVrb0ZRf2ks4JNQ0GT3sY2lQDl8BfunPfuxXIsUZl tqFdk1gcHtOUVWzfsqA2CCvFw83OH+/2U4shZwHyUlZhLZhJdSKAL/lo4UDG39kWJ/ztxZzspOOWU 1n3IjTag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSACb-0000000GgtE-2pmM; Fri, 12 Jul 2024 06:56:21 +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 1sSABA-0000000GgE3-3Leu; Fri, 12 Jul 2024 06:54:54 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id D4EC0CE171E; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 19AAAC4AF07; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720767290; bh=mQvjWlhdUJODo7htZQ1+hcdFam/twUz6WZBVeqfHTXg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gNQNOJfdeRMDorQD77FQu6qn3j0KMvbEqq6iCAXtINIuQz0f4EJLIcXzFsnKJPeLh KKR2tRFWfNHyRFLfvrFZlPSeS7LfF6AuuRlhtSYio7U1Yv9i/8b/IlyW0ZSnkARHgM bPu5Km/JbVXVYiwPRABq1aIUJQ4lW1d1GcergPYfPZmpcq3GMDZOdFU77iomxpZxLI qcB9s7NzGddeBJwKFsoLm0ZPmoC4Den8xvr+8Y8DegVNpPtyETNS0zJQBTjfFPJAM8 P0IE6pcUbotSCf4JRxnAGi2zlp9ZREg16MJdIHw549DmnE2zV4wQ4KrqIie1pZsxC5 2q3T/U3bfgl5g== 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 07781C3DA4D; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 12 Jul 2024 14:54:46 +0800 Subject: [PATCH 1/5] soc: amlogic: meson-gx-socinfo: add new SoCs id MIME-Version: 1.0 Message-Id: <20240712-soc_info-v1-1-05ba95929d5a@amlogic.com> References: <20240712-soc_info-v1-0-05ba95929d5a@amlogic.com> In-Reply-To: <20240712-soc_info-v1-0-05ba95929d5a@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=1720767287; l=1125; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=nnMjotXuHyUIt8Kx/nCa5XJH4NAVjChyKcIYDRAZ0Ws=; b=K2wHE0oUM7+bxhhudhE+NS3cqsySKqwMYTRXO3u1/826jSaFfDzabCLBVDD2ggy/RhSsImpVP eUd8thcgohACM1bc6py1qK9wuxEz7fF/aezCnHlp9kaUm0E+YZsAAVQ 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-20240711_235453_075398_6736FCC0 X-CRM114-Status: UNSURE ( 7.84 ) 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. Signed-off-by: Xianwei Zhao Reviewed-by: Neil Armstrong --- 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 12 06:54:47 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: 13731337 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 ADF8CC2BD09 for ; Fri, 12 Jul 2024 06:56:51 +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=OqkhvnDRHhHxc9akhepTApdBuxFl6J0Dv8jw4zSs/NA=; b=ZDwWl9SkmXs+F3r4jS3jl0d/AM pPNrN+m4UU5EeiNqUAuo1xq830siUTv+lkLnGQcHFy+E6Ld/iLw38FXqczXXCGsfjn+90PZgP9kEp xa4F3Natvje62nwl4PQQUPSOU3EZaCLq72hfQzU2J7bqol+TrAMoUhp2cv94EmSRJwdZsu1w4xDGM 0pjXMjEcYYONsufZ4tq9InAU/nGClZMlCy/mhAua9LTBQZjI9Newq/P4p28Xwnw4Rf9tt4/2nXnnj 4vgGhQnQuJMorzbmcbNJYsgVi40B9xp11YbbPIWhUjrqUDcuGjitXdM73UXKNX+J43y6gRsM0zmHO KKlN9uqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSACu-0000000Gh41-2Bh1; Fri, 12 Jul 2024 06:56:40 +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 1sSABB-0000000GgE8-0CEA; Fri, 12 Jul 2024 06:54:55 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 3A3A7CE199D; Fri, 12 Jul 2024 06:54:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 26D2CC4AF09; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720767290; bh=m+iNwr8XqQmoN6/h7bndxFBce7494wo4m/jNNEKTkOM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=T2bMaqZzE+GYrU3mt4h2mIOiMALuUKy11oELyMh+d20A/6rKVkTlhINgpKOGoeeNY nFD3nFkQuDaQSzjOVgHM0XZft/uO8hUY8h1xH+VoPkvmNMSsLzPj/WbPa/YFQOqE3B FP7V+Ozax/WFHxy9m2Oy5aKEqPsROtUND4UfzWQbgNqmVzbcsI1twaIi8jM3rnK79U PUzFlPXZf2M2JtkqqpzON+qH1USPvK2KuZY6EUyR4ddXNSW0+UmOHrVZxKW25Z+m88 EZlN2qDGj+QsAnk/lTFaGl0Be/lzIgeof8NqBySHGAV+oDTWFmjwh4dc1sp2cSl6eQ KdAVEI6CcdKpQ== 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 14A9EC3DA45; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 12 Jul 2024 14:54:47 +0800 Subject: [PATCH 2/5] arm64: dts: amlogic: s4: add ao secure node MIME-Version: 1.0 Message-Id: <20240712-soc_info-v1-2-05ba95929d5a@amlogic.com> References: <20240712-soc_info-v1-0-05ba95929d5a@amlogic.com> In-Reply-To: <20240712-soc_info-v1-0-05ba95929d5a@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=1720767288; l=1031; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=7PP3wpwyeNhRjy2GgIapC6CYSMcoSRh5nUct3QlTnCc=; b=Cf3A1+/cFFFp6d+el5Zs82tP9+WFpxClaZdHoC/jfpz6Nwl3TqxqbR8o6Wn6i9+U3q41LkPzo GpFCBhv0PSIByJrGkOSndt14QLD2Aq4LtQQhF9+OR7/RWYyhepLgYDQ 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-20240711_235453_350898_F2480D4E X-CRM114-Status: UNSURE ( 7.37 ) 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi index c11c947fa18c..316905ec191c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi @@ -763,6 +763,12 @@ reset: reset-controller@2000 { #reset-cells = <1>; }; + sec_ao: ao-secure@10220 { + compatible = "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 12 06:54:48 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: 13731334 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 BE825C2BD09 for ; Fri, 12 Jul 2024 06:55:59 +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=s2QpFDEAbO7Vs2WElsJKqUlv/kbBuHzyFtFupcm3/NQ=; b=1HYJFQoCn4ERwBFirlVpgIWfva paGey2ASWnXiu9OqQFQsfevZc50wSnqI0+GNADRpaW3mVPyJqCTIPzlJUjhURH/0xJTNS/u3QF7T0 8yK0kBsknV1UsynZkqQSA7GRVMzSHHMWxh3l8YuJRzBqY6SJFj9Kv3BPH4GER6QwVDhE9zGMy5XEI VuAnYB2wIT6Vgvno5T9+PPJrbzbt2zPmeNTr98Im0f2L1zIqYB3xsqhvOw64rDt1HQ3awep/Bl5e9 8miSpaVpKAONay8v9/lhckOuhorn2AEVpLSder5CPV3ACHrVaqmzlBKU2jk/Ek9BOobb23ax0FAV6 WeFOtsAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSAC4-0000000GgeZ-36EZ; Fri, 12 Jul 2024 06:55:48 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSABA-0000000GgE5-1MaO; Fri, 12 Jul 2024 06:54:53 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 4243F61E51; Fri, 12 Jul 2024 06:54:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 37B2FC4AF0B; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720767290; bh=AU9KTXadbxI8oIBrYquNcFFE218xKds4EJiKkSzo9PE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=d6sRShauuPv/QMI0alTwT7hy2a2fUGv5+9Qa7jbvCjMe1BO5Yxyey6XiaIxUEcE3k VDAp9AR8L8ntFg1ceGUZjR+szaBnkraoEFNht1mgm47J9SixnA1Vf9LjsFbszIp/0z 608aa+bJM3DicBahLXQ/pDtPwNZEj+t0vwnKwZ4BpXQ9//LJcR6U9tSy8NQfIEE2ih /KBvpXaJBze3oVfjNYT45M/1EOylA2SrEgTsu/GNavrQpKwG4v6uI2fRDcxOzM5mek B/yCvyrH58/mXFQFfGjhirJYZAtVaUMB+FLFT/fOlDOE/NgHtrwqy8GtR3GpJJaoOQ BMQSE5h6BlMOA== 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 2225BC3DA52; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 12 Jul 2024 14:54:48 +0800 Subject: [PATCH 3/5] arm64: dts: amlogic: c3: add ao secure node MIME-Version: 1.0 Message-Id: <20240712-soc_info-v1-3-05ba95929d5a@amlogic.com> References: <20240712-soc_info-v1-0-05ba95929d5a@amlogic.com> In-Reply-To: <20240712-soc_info-v1-0-05ba95929d5a@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=1720767288; l=967; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=Vo92QkR7KttBJIDyNMyI82sWcd31gahBSNFC4bI9l+Q=; b=65es6tnxvyljk4Wr5boKxighjBwUeJysMTyc7FjzOhbQ0iyt56Mynu3k2WDIhJul2JJWVjDDf mWLWufJGuw4BR9YMOafe5KQesRryXb+FbSh/OgoxIug5MN1Msq//SE+ 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-20240711_235452_469376_E947796B X-CRM114-Status: UNSURE ( 7.70 ) 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi index f8fb060c49ae..d6a94c828fd8 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi @@ -129,6 +129,11 @@ uart_b: serial@7a000 { clock-names = "xtal", "pclk", "baud"; }; + sec_ao: ao-secure@10220 { + compatible = "amlogic,meson-gx-ao-secure", "syscon"; + reg = <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; }; }; }; From patchwork Fri Jul 12 06:54:49 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: 13731333 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 B0A36C2BD09 for ; Fri, 12 Jul 2024 06:55:42 +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=l5J/+qBD8TEDt0nwdD6TgMGYsTB3lJkYgSfCD0HZJ7w=; b=nd0bb5m2I2rUZqYk+M60Tgozwg jkGBZKzezvgaj+l571nlf9VA1BNMkb0GmakY+zyNmBsraFPwWamTsbOE038Q30RflXAexkwQPZQ5/ cQ6IuL1/5uljIcSjgBIlqYMKoLNMaW3opv04CsKOlrADAttf3Bs9QlcukN4CRaxtnv4W48D/pcJfL 0uZSmQBaFRCZGY1qAXhcIuZuQ9EjCSSnRATrnZxgIj188YKS04izeJoA65sIQuz6Jc6Mck+7QACVL xQBlf8ncbE0xa21WBeZD05Fbl9KuH8pij4E1B0nte/BcTjnEbncJSKO1a2yUAKoQ7av7kcEx6a62j vWAzmbNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSABn-0000000GgWk-3OSs; Fri, 12 Jul 2024 06:55:31 +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 1sSAB9-0000000GgE4-3aj8; Fri, 12 Jul 2024 06:54:53 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 5552761E55; Fri, 12 Jul 2024 06:54:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 3C1ADC4AF12; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720767290; bh=82EL7UtqOt5BKQ0zNdO4ISrbWoeY1ULwxbT03D2KIhk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Vl0R4Mg3xR9HjWnhvLfaD92s1A+SNx3+oD3se7cZaq5T3Jf2XlcupZ3hTWqQ8Ci+r m9ri8Cdj7BYk/nFKDDmknu2ydzLHzaJstRdGyKFvsSh5O/1WqURKVCFslj9kAHfnht Bw43HhKG5r18iUF7pnxRwY/FCcZjacMDvjQWj/VxrmG2Fl/YBQYAMQRnWjaa+IoF5C OzdECa1iNzO4A2snSNSgy+pOT8FtvJBgkmE81NKD2hahy9DK3KL9+Q1amxMUSyEk1u JAETcSDNsAbn5Ct4In1+2kcDVlO6pXQsIW2KNoYUcF6GDxs2qgmP5TDKOW+BNxW7YD KlfmdnY5Tu4Rg== 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 3193AC3DA50; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 12 Jul 2024 14:54:49 +0800 Subject: [PATCH 4/5] arm64: dts: amlogic: t7: add ao secure node MIME-Version: 1.0 Message-Id: <20240712-soc_info-v1-4-05ba95929d5a@amlogic.com> References: <20240712-soc_info-v1-0-05ba95929d5a@amlogic.com> In-Reply-To: <20240712-soc_info-v1-0-05ba95929d5a@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=1720767288; l=1006; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=e/+Wxh8VonbmvPjjJfR5Wewh1r5F0lbqTjlqgINIHco=; b=pdL9RfF8KxiT6JauuAiMOmdhs9iPi/+40gnKTUC4s7MzZZ+gOaU5Zu8fe0uOm8DY67HC57GUY HOLFmGIKeNABnrJgZHUrRDih7K975N2SnrwGaDfn/SFsO/kmWCopkK5 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-20240711_235451_977058_CFAA527A X-CRM114-Status: UNSURE ( 7.69 ) 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi index c23efc6c7ac0..777935821c3f 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi @@ -194,6 +194,12 @@ uart_a: serial@78000 { interrupts = ; status = "disabled"; }; + + sec_ao: ao-secure@10220 { + compatible = "amlogic,meson-gx-ao-secure", "syscon"; + reg = <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; }; }; From patchwork Fri Jul 12 06:54:50 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: 13731335 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 65F73C2BD09 for ; Fri, 12 Jul 2024 06:56:13 +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=052cmRi6abApxDJ7s8mkR+lFMR8iAbk4xSFwSKFIwk4=; b=zFNsQkVST2kcI9Dv5QV/kngeP6 FBsaD9zg/ZyR5lV+ax8k2ofG0RcILHh6AgwlmlqYHQKhCIiHZpxeRffS3qKGrXtgVNuSmo1tKNhFb kbCf+o+6VN3vg0PgLuxgLXRZqDe2NUp5wvAGDppCpuY0n8wWJJ2E2Tze/pLpbH+SUF3MK8F33OvZ+ HVlDbkxbeeHtMmDkQW2hkPvQrML9CePRXnebbgygLD4zQg8eeGPvoouoNsRHmQlC3AtNhstoV3GhK fF0faGqr8Ob/DtMq3f/SXyIDt2qCizkQiOwlR9w1UaNM9xLZVOU9cWM+G5cAfZdl81a06dZ7nXCDA QJdVbvGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSACK-0000000Ggk5-10zZ; Fri, 12 Jul 2024 06:56:04 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSABA-0000000GgEA-1MQO; Fri, 12 Jul 2024 06:54:54 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 5A2E661E5B; Fri, 12 Jul 2024 06:54:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 48DDFC4AF16; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720767290; bh=ahmwNoaojs04Fx7mXoQxYzUbWsL7zJCUJ5NMNIOghP4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=U1fKW0F5DBcG3b5WF84lL3lTHiqFQpVEXInO2OJ66bw0rTDSpMTYreJ8+C7Qns8/o vP7XjvUKWWwOlfxMrFrCcYPx1ElWW+EI74OOyHnq/MVLWmFB5GbFvnc9J/aWfsvCku hlTicC789QkgHVASotyGNsJynCP6kcIBloqPcZH/lCqgA2ErCJtDvtpRYYaKlj1Onh Yb+hfKImsKMYjw4fx2TlAwyAXu8dgkgdmWAkpZs+7JBOhL+qY6IoZztJCPr485P9Z7 KmkctAa4Lu1lV+FjwhRJ8tjWLGh/nWUfz6dXU1NL10fR02yiUv+NoVbk4m3BEOflem DgqilNMW+qNgA== 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 3F95CC3DA4D; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 12 Jul 2024 14:54:50 +0800 Subject: [PATCH 5/5] arm64: dts: amlogic: a4: add ao secure node MIME-Version: 1.0 Message-Id: <20240712-soc_info-v1-5-05ba95929d5a@amlogic.com> References: <20240712-soc_info-v1-0-05ba95929d5a@amlogic.com> In-Reply-To: <20240712-soc_info-v1-0-05ba95929d5a@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=1720767288; l=1030; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=G1LdCWQoDojr4AHtdIqIbyagH63JW7WzRMIuNP5lA+U=; b=DNHVyQ25UOpRo1hZdF91lS3hKRMODgmx0y0Pb+JM2DzwvsL2pHvqwtDWu4UG5JUlXyiieHzld 9fjVWSrmSpkCHyiWehwBCrsEaqvudAjGUkmon5EJCEVNa29ytJ0i0vQ 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-20240711_235452_474993_BBE3587E X-CRM114-Status: UNSURE ( 7.58 ) 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 | 6 ++++++ 1 file changed, 6 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..901103a288e4 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi @@ -67,6 +67,12 @@ uart_b: serial@7a000 { clock-names = "xtal", "pclk", "baud"; status = "disabled"; }; + + sec_ao: ao-secure@10220 { + compatible = "amlogic,meson-gx-ao-secure", "syscon"; + reg = <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; }; }; };