From nobody Wed Dec 17 08:56:34 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74A0513D538; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720767290; cv=none; b=AzPqZXTBjnZWow/iIKOmOryUg089XMUO8Vsj7cNkQ8R0ZeukX/B+YBIcdiU7MnlM0pFwwQ6OXVgxuws+coXJ+eHhnYWAVqwrh0Fkk1Rm/zMCsBDm1DGYypm95mSQl5wKa6G5A6erXBMeX5jmudLbawE//CREVj9r8TPRjCx/Oz8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720767290; c=relaxed/simple; bh=mQvjWlhdUJODo7htZQ1+hcdFam/twUz6WZBVeqfHTXg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fAuL8fjmCZKF9ctw5E0WLm+dCowX8dzE9X5MIgOxwABLA1MeEv1FdwqRIAEGWSsi2mFHqLkRdSOLk/wsdpMD8ASagN2oOBKrH9nL2bi790NHXwwKItXPlzzg1VG0MlMQNSQpLS6PzVuiZT/yNHruiD+9K2+/UTjmZoU8SudF7F8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gNQNOJfd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gNQNOJfd" 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Reply-To: xianwei.zhao@amlogic.com 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/m= eson-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 }, }; =20 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 }, }; =20 static inline unsigned int socinfo_to_major(u32 socinfo) --=20 2.37.1 From nobody Wed Dec 17 08:56:34 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 924B613D601; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720767290; cv=none; b=oXCoS+lSl3rVZdeqXrAjGWfsI2tnuSGO4ufMJxXF0uJD/roWdoVpnumaGe1nyH/cOAUALhomRkhLnV+OMe9l7G/wDhWJ2dTJ84DZO5f0yht4MQX+AeA87qShpWMZomdUYJgJZxRcW4TjbA8GTnSlOPqUGXHeOa4DZ2EClb3Whcs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720767290; c=relaxed/simple; bh=m+iNwr8XqQmoN6/h7bndxFBce7494wo4m/jNNEKTkOM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=crwFLWhgJdP5y/0sEXC2U/jxtQp0wNwPb8l1inV0zsyejJNjxWdZ8roVJ7cXiOyv6fcDqFjP1TPtsSBZZMEZWSisw/8JFUP5QzoWes9xv4vYP4ZeXUx6dIT/Vq5CHUemrdwpxQmUCvOGlIqgBvMBXi5U7zDvVhWuaSibxiQNJwA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T2bMaqZz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T2bMaqZz" 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Reply-To: xianwei.zhao@amlogic.com 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/dt= s/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 =3D <1>; }; =20 + sec_ao: ao-secure@10220 { + compatible =3D "amlogic,meson-gx-ao-secure", "syscon"; + reg =3D <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; + ir: ir@84040 { compatible =3D "amlogic,meson-s4-ir"; reg =3D <0x0 0x84040 0x0 0x30>; --=20 2.37.1 From nobody Wed Dec 17 08:56:34 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 924F913D606; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720767290; cv=none; b=XvLsP3+LkFnDdsHwtDpjBP4hEIB0UArgvsqsVxOJsY2vNaQsJUOTymuZt4s0Mrpo27sh5CShXf2A/OdwQV6pcTKZHHKAuU8PydtFv8PZDKATJDh5exAEYyli1uBT3Ag4qNFWIoY2bbIme8Nh7E7006mzrGBsrWLVub8NF4oPgKo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720767290; c=relaxed/simple; bh=AU9KTXadbxI8oIBrYquNcFFE218xKds4EJiKkSzo9PE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U80D17WbgX9kyp8TY5bIbrghLoikXNwribKNk5e40CysToRgRgwZvLTAOeUWHG3pngli7UaK852Zq2g3QMIMb7lwV1W2/y4HG6YURXj/hPd/bCBplk38jkEAPLMrfimBI4UTN33rKPghUq8tH6+kdWqTJjdd1qqNmpC72G0eP60= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d6sRShau; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d6sRShau" 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Reply-To: xianwei.zhao@amlogic.com 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 =3D "xtal", "pclk", "baud"; }; =20 + sec_ao: ao-secure@10220 { + compatible =3D "amlogic,meson-gx-ao-secure", "syscon"; + reg =3D <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; }; }; }; --=20 2.37.1 From nobody Wed Dec 17 08:56:34 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACF6013D628; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720767290; cv=none; b=okXdJicsvyGlUnZ16a29avXuBP6JNQfBFrrjyQQfuT+AH1uJ+VdjaUbJqsxqfYvMLcv4I+TKlYSB8NCL5Xm9RshjWPDjFK7RLzefpu6nzFczpwiOkMeu5BcmcJt2DkagXhdJucTdOQJU7s+GFFuDp42dmihjL5rUDz6/fLJt2K8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720767290; c=relaxed/simple; bh=82EL7UtqOt5BKQ0zNdO4ISrbWoeY1ULwxbT03D2KIhk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=riQn6KMSWCE8XyOEUXzHAQH0/P+I/FskAZH/h7a27Eg7XN33nVcUDvYt1DTiYoMDoDSvml8x6AadQ5SVsL3BNr8JxJAIUtCGMNfb3QwNpbxMwPApqi1NgTijsFD82dPFqLqjGwI3O+9El2Wojm5/fG63NFjQC3Gg2oB9jO/uEGc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vl0R4Mg3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vl0R4Mg3" 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Reply-To: xianwei.zhao@amlogic.com 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 =3D ; status =3D "disabled"; }; + + sec_ao: ao-secure@10220 { + compatible =3D "amlogic,meson-gx-ao-secure", "syscon"; + reg =3D <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; }; =20 }; --=20 2.37.1 From nobody Wed Dec 17 08:56:34 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3C1213D622; Fri, 12 Jul 2024 06:54:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720767290; cv=none; b=Ql0d4yjKKZeA3FdKCStHIVovLdIsO+29BvLesF0Gb1faoYUK7pxGcJbhqqftjIzR7gtY9uSksZj1nM8saww0fDXesRVAg9XD0gLp8XVkWulNHNaRBGVr2M6zlP2CAsetvRazZERYdJahXAXv4n2f4xMLC/RffSKZi7m2pFfRg4E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720767290; c=relaxed/simple; bh=ahmwNoaojs04Fx7mXoQxYzUbWsL7zJCUJ5NMNIOghP4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PuhgsXMtVA1ppwY7NfHEhHn+CjH4/z8JaDeH2yiFIZB1dmpxHhlflygzw6BtkWMeDC/mPKPCRaPzGop9yDPIxbIbBTiaAobUTk2TDJgmZOSSyCj3rB9Bwkkd7pIXXwlbNbO5oaCGxstqhrClAMfwvyZ+UqnzOVhmk224gumTKs4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=U1fKW0F5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="U1fKW0F5" 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Reply-To: xianwei.zhao@amlogic.com 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/arm6= 4/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 =3D "xtal", "pclk", "baud"; status =3D "disabled"; }; + + sec_ao: ao-secure@10220 { + compatible =3D "amlogic,meson-gx-ao-secure", "syscon"; + reg =3D <0x0 0x10220 0x0 0x140>; + amlogic,has-chip-id; + }; }; }; }; --=20 2.37.1