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: 13731330 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 0DD38C3DA45 for ; Fri, 12 Jul 2024 06:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id: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=z4sWoId4rZ/YgaeaP6QbX2GdgKvWyGI8YcYby537gjk=; b=P14LoYATqaF5Lg Jj/wbfBa3wMth77w1MLFc+PhSmFoIUzMvZecERWYqDqW2xq9kiwi5Ry51fsP+3iL9eAYZ6n6EjdYb k1c7mdM0VtcS+S0Nke9cKWg7C1DU50L9IxlXfRKP8GP8MU/vBFwQ15QVmax52ZuABlz/S2lruQEzd g/jGv0dmZy+qktwNogOp+c3xg/QjS5eXKM6SC+PRIbYu4UlAwW5NH2KwU4LYitzynwrgY7i9p97rk 14UQgyJ2GzKREDL4hSTQBGK4EjESiJwFu+2w+EoTtoUVRe7r6yXXLNSHrRDAE+HexXnl9nikANBJg N5DrJdY7mF8rkQkZvRGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSACL-0000000Ggkv-2Ptz; Fri, 12 Jul 2024 06:56:05 +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-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=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: 13731331 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 18D02C2BD09 for ; Fri, 12 Jul 2024 06:56: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: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id: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=wLMOd06mKYmnIaYJPgfdFFxF0zLlDVekb3NaHKAMW3s=; b=yIRlgphqQddPsu LPMFT1pG0eZdphWthV+oT/SS9ZiIqXuZusOgvAH6UAW9fmv8jHYz31uy9VOzmafjnjLyHjFVn0PLl +3oJK3ZgxiVRW3h9Mzt/d8wq4RB5K99E9euyaY+XwzqlRW8+vaNXHmRnP7sMZp+czDu8LYx9hFn7k 9Xq1r3CHv6e8LzwxY+eAhbSjt2nw4qAmUVMk4pPFDdgR9nsAh08uJcuZf6djhncEPp7EOn+Wo2va4 UZJDH+DUfQ6m7MXgaQ89kXRf2uJwJ9ZDfGRh83bP1++DVuU0/I7j1OhXpnELn7iLqSz1aBRdj2PAU fuHXniKuQIrHBfBurKbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSACc-0000000Ggta-1a3j; Fri, 12 Jul 2024 06:56:22 +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-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=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: 13731328 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 6101FC3DA45 for ; Fri, 12 Jul 2024 06:55:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id: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=o1D8aVRhNxdrxsIgeiIiY5yEf2Fhnma2aIx6moS74iU=; b=IlPm61sVZREcrh RCoBB1ObVRJcrHIRZnaFIGwPh+AJ7mz8Z+fg6kzuIVy3CCmv8G/zSoahyPa6D+YLPD6bKiezqB2Vc Dmprb2xI2MRuSsN1KQ6Kz/wtfedon8odqZHk4cYgbKKRurbrXAU6fafQSoueXoGP+D4tIFFWzhuZL TIwmmfPjzIyEX2uvK0w7vx30dt4o9xzXhB5ra97Cbo5eeNEgLsstSBOAR8f5zczaDFJATESkzYZto ohSj9rSylW3w5zxV14PhNEcq3ISMfU1Wn046a7fWmSnbHN2MQf4RWDbV0xpa9XSrzvhGQGbM38jOZ ZyTH2Ff3dDvJOWyE/xuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSABo-0000000GgX5-2ppT; Fri, 12 Jul 2024 06:55:32 +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-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=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: 13731327 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 24A33C3DA45 for ; Fri, 12 Jul 2024 06:55: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: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id: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=ki2qHtpV3fAdJdKbMWaFLSBAVpsQjKh7Q0Oz/o6DDt0=; b=FWyS4LB2SfegSJ qgniJ3ICmZzkjb45FXPkmxRUGzHWjf9MuW4pY1ekKcAzw4DVxkkUCD0sXev+gTAAJ7MDEl4xa4Hkt j6g7Cs5Ynlgk54cGTnelGzLAHUGOXhaLJ4DTgv6mUM/2g4f+znqTqaxnaimC7j+9qWsdVMyT3/3bP jb+EGoj+P/1cgved0/tvaDGNlPnIQlhzuCsnmA+OEhlytzlY7ooyah8yR7J6pcl7xi4ayZj7k0HMI 4/pJHoHEAY+3DwydeWUWGFQmYskcosXUWp5+/vC/VDIRrAyk6nDs/PiG/VrV0QNiV53eCjbsXP9R6 M7aHxHy6q8fBO1JxHMiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSABS-0000000GgMf-2jEf; Fri, 12 Jul 2024 06:55:10 +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-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=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: 13731329 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 57F8FC3DA45 for ; Fri, 12 Jul 2024 06:55: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: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id: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=dhiqTUsjAIjD3WunjjCNY13fV7zoAcmJoWDUoGVZNfk=; b=P3TKUunq1AnVjI uWlm50qOlTMLOA/2rDHHaFtGEnzTyFbF5Dbx6XmBh3588F+AWxdF5rJKfWcIypWMGAItdVp9lvCjC biIY3RxcSKOcTkxS6OszZ4CYpdeW4J8eLE3sbh4tWOg4K4lQ4KZKJPj5HKiHqQmbDlpCoya1JjUPk wXXVNDjIizBMGuG2LkjdZN5WP47+wtVd+izqh7PVUpqLMBaE9FSgU4QSkvTzlBkMDYyVMnCvRX99N 72osYIDzqZAxuaPDH9UqQgG14DV/9RLOs85vZGYeIovGIiP9l7MZ2PtyjdMG3xnYnz0An45KiiZGu wf7Llb3AEpMZJ874tG6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSAC5-0000000Ggf0-1Yvv; Fri, 12 Jul 2024 06:55:49 +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-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=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; + }; }; }; };