From nobody Sat Oct 4 00:32:10 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 6BE49284B39; Fri, 22 Aug 2025 05:41:29 +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=1755841289; cv=none; b=emJJVcg105MAIoYcfkmR4vZQLanoi9lZn26aJAY/zQcm1IkTZBMr69uGid1HZG7Mzpagfpgu/Cq9c+WWQSQHcwouxAfk2PopqdSThv70oL7An6ZdEdwdF0rzWQlwmLJ81iVO/eHkdBkHHSQTyHsCb1CywxOTsjOCQ5/9OFpb86U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755841289; c=relaxed/simple; bh=MkL21viVLE82recvc2SokjMWpd4F/UILyRs//82QGlE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DzTO/AyHzbJBkQ9JmRthE5CwzWKljpnVzjCzTTlIa9VtumV+E9Z9d37puIPmlx28X1BHgHZBrPpHbftQ/AXCD1Oq6PHGfHp4BiQ2os69o2mhPvbi9Pu3pIX/X+C69E80S9w74VzihYdzSYF4FvFU4z4d0XmtksUV7jeXcQ7p5to= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A2FW8kax; 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="A2FW8kax" Received: by smtp.kernel.org (Postfix) with ESMTPS id 09532C113CF; Fri, 22 Aug 2025 05:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755841289; bh=MkL21viVLE82recvc2SokjMWpd4F/UILyRs//82QGlE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=A2FW8kaxWLxFoIEn8WF6eH5qTF+uVqSyCDmMciNOPclVw4GYbVczzZwOqhXi0DnuE s3DI2YhQPF9O8d28Izc/Mhr6tq+1Z4fWV2nabrD+8FESSfRuC2DT6ev6aQiOV9fOUc ARxMkbfG54Zf6wd82kmLUtIGo6zTPEWWxnrFmnZg0/Ze0h9vXZFw/P1i3JUrD/25kb vwO/Q8puDvGHvqgmEOW7RUV0D9N+a+R6STWkKxwS+DcLGb7nIfQcvEycjiS5R1+Q2Z r4MbotS+N2u6yIYfmmR3YB/sYYpD4DCRhK4a5n6W033qnwfFlsdo8Di/zwg55oQwrW D3pxX61DKU/NQ== 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 EAAB8CA0EED; Fri, 22 Aug 2025 05:41:28 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 22 Aug 2025 13:39:55 +0800 Subject: [PATCH 1/5] dt-bindings: power: add Amlogic S6 S7 S7D power domains 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: <20250822-pm-s6-s7-s7d-v1-1-82e3f3aff327@amlogic.com> References: <20250822-pm-s6-s7-s7d-v1-0-82e3f3aff327@amlogic.com> In-Reply-To: <20250822-pm-s6-s7-s7d-v1-0-82e3f3aff327@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jianxin Pan , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Xianwei Zhao , "hongyu.chen1" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755841286; l=4197; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=rDe2MvG1qbv0VUQE4y/E8LC5I45fmELEIBYCB0B5NkY=; b=MxArxjiZLEg5X5S2V8GYItRjycPJtxsQAxo+PCbv7Qh+80U93vSBt/w1iFUzp2AIkO+OCPim/ aNKISq1F598C8eEN6/OwOEHW1ECi7huZNruPlQjTep8MrYjxtTKVaW9 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: "hongyu.chen1" Add devicetree binding document and related header file for Amlogic S6 S7 S7D secure power domains. Signed-off-by: hongyu.chen1 Signed-off-by: Xianwei Zhao Acked-by: Conor Dooley --- .../bindings/power/amlogic,meson-sec-pwrc.yaml | 3 +++ include/dt-bindings/power/amlogic,s6-pwrc.h | 29 ++++++++++++++++++= ++++ include/dt-bindings/power/amlogic,s7-pwrc.h | 20 +++++++++++++++ include/dt-bindings/power/amlogic,s7d-pwrc.h | 27 ++++++++++++++++++= ++ 4 files changed, 79 insertions(+) diff --git a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc= .yaml b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml index 15d74138baa3..12b71688dd34 100644 --- a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml +++ b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml @@ -24,6 +24,9 @@ properties: - amlogic,a5-pwrc - amlogic,c3-pwrc - amlogic,t7-pwrc + - amlogic,s6-pwrc + - amlogic,s7-pwrc + - amlogic,s7d-pwrc =20 "#power-domain-cells": const: 1 diff --git a/include/dt-bindings/power/amlogic,s6-pwrc.h b/include/dt-bindi= ngs/power/amlogic,s6-pwrc.h new file mode 100644 index 000000000000..2c005864ae73 --- /dev/null +++ b/include/dt-bindings/power/amlogic,s6-pwrc.h @@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (C) 2025 Amlogic, Inc. All rights reserved + */ +#ifndef _DT_BINDINGS_AMLOGIC_S6_POWER_H +#define _DT_BINDINGS_AMLOGIC_S6_POWER_H + +#define PWRC_S6_DSPA_ID 0 +#define PWRC_S6_DOS_HEVC_ID 1 +#define PWRC_S6_DOS_VDEC_ID 2 +#define PWRC_S6_VPU_HDMI_ID 3 +#define PWRC_S6_U2DRD_ID 4 +#define PWRC_S6_U3DRD_ID 5 +#define PWRC_S6_SD_EMMC_C_ID 6 +#define PWRC_S6_GE2D_ID 7 +#define PWRC_S6_AMFC_ID 8 +#define PWRC_S6_VC9000E_ID 9 +#define PWRC_S6_DEWARP_ID 10 +#define PWRC_S6_VICP_ID 11 +#define PWRC_S6_SD_EMMC_A_ID 12 +#define PWRC_S6_SD_EMMC_B_ID 13 +#define PWRC_S6_ETH_ID 14 +#define PWRC_S6_PCIE_ID 15 +#define PWRC_S6_NNA_4T_ID 16 +#define PWRC_S6_AUDIO_ID 17 +#define PWRC_S6_AUCPU_ID 18 +#define PWRC_S6_ADAPT_ID 19 + +#endif diff --git a/include/dt-bindings/power/amlogic,s7-pwrc.h b/include/dt-bindi= ngs/power/amlogic,s7-pwrc.h new file mode 100644 index 000000000000..3f21d095f784 --- /dev/null +++ b/include/dt-bindings/power/amlogic,s7-pwrc.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (C) 2025 Amlogic, Inc. All rights reserved + */ +#ifndef _DT_BINDINGS_AMLOGIC_S7_POWER_H +#define _DT_BINDINGS_AMLOGIC_S7_POWER_H + +#define PWRC_S7_DOS_HEVC_ID 0 +#define PWRC_S7_DOS_VDEC_ID 1 +#define PWRC_S7_VPU_HDMI_ID 2 +#define PWRC_S7_USB_COMB_ID 3 +#define PWRC_S7_SD_EMMC_C_ID 4 +#define PWRC_S7_GE2D_ID 5 +#define PWRC_S7_SD_EMMC_A_ID 6 +#define PWRC_S7_SD_EMMC_B_ID 7 +#define PWRC_S7_ETH_ID 8 +#define PWRC_S7_AUCPU_ID 9 +#define PWRC_S7_AUDIO_ID 10 + +#endif diff --git a/include/dt-bindings/power/amlogic,s7d-pwrc.h b/include/dt-bind= ings/power/amlogic,s7d-pwrc.h new file mode 100644 index 000000000000..c6998553670a --- /dev/null +++ b/include/dt-bindings/power/amlogic,s7d-pwrc.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (C) 2025 Amlogic, Inc. All rights reserved + */ +#ifndef _DT_BINDINGS_AMLOGIC_S7D_POWER_H +#define _DT_BINDINGS_AMLOGIC_S7D_POWER_H + +#define PWRC_S7D_DOS_HCODEC_ID 0 +#define PWRC_S7D_DOS_HEVC_ID 1 +#define PWRC_S7D_DOS_VDEC_ID 2 +#define PWRC_S7D_VPU_HDMI_ID 3 +#define PWRC_S7D_USB_U2DRD_ID 4 +#define PWRC_S7D_USB_U2H_ID 5 +#define PWRC_S7D_SSD_EMMC_C_ID 6 +#define PWRC_S7D_GE2D_ID 7 +#define PWRC_S7D_AMFC_ID 8 +#define PWRC_S7D_EMMC_A_ID 9 +#define PWRC_S7D_EMMC_B_ID 10 +#define PWRC_S7D_ETH_ID 11 +#define PWRC_S7D_AUCPU_ID 12 +#define PWRC_S7D_AUDIO_ID 13 +#define PWRC_S7D_SRAMA_ID 14 +#define PWRC_S7D_DMC0_ID 15 +#define PWRC_S7D_DMC1_ID 16 +#define PWRC_S7D_DDR_ID 17 + +#endif --=20 2.37.1 From nobody Sat Oct 4 00:32:10 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 6BF3B29346F; Fri, 22 Aug 2025 05:41:29 +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=1755841289; cv=none; b=rAfmqnh8ksJjlWvt/Yd+TgKSxpHR6KqsOrA0fQ/keTZUPg9e0W/caXSmRz7JNeTm/fU/h7qV87+wK4MatbcFgRx73N4e0W4t6gPcKYbbO9thkwKBv16/eELWa7a0CIE+noA1DZ6JxfXwRaZO9blwEcRL1pmJC1cW7c8wQOV64uA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755841289; c=relaxed/simple; bh=MQ9NuAWPDpPyLjcRYr12dzgmrw8Z7IvytBTk8yXQ46c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pAjJYW13i92vNYUYX3SuBAuYyWoC4UdeQtM8qiFPaevfzM49TdYeb7qTMUeUjEA3HZ59s4qo6xdvMyVJBMUZSoEofCEKohsTWIsUdgcBs1RvmWSWbQUGDCYKHhRsGYDLPk/6SmV1Lie/ECqROewU+VPXk7YzWyM92szkmx/1NQ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Dty9wqER; 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="Dty9wqER" Received: by smtp.kernel.org (Postfix) with ESMTPS id 12898C116B1; Fri, 22 Aug 2025 05:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755841289; bh=MQ9NuAWPDpPyLjcRYr12dzgmrw8Z7IvytBTk8yXQ46c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Dty9wqERTz8vOs3UY0ho/3Q4MGtTRVuuy2iHbUKQiqalYrpnhSZHOP1xJB48b/Xbt gH/jDqKwi47QrvPCt0qF02zlWWL2L0PF+iIkG/7Gy8dEsRp22LcHqRODiKgq9BAg1F dBChAPqDNG3z+f9J3MA05C981C4N+P6nEXt4JZIOA6s+Jwjkb9mAbHbNJsNH0DkLhB /q32TYECsMOtrlLCd0JLY9OlugYwpASGn9BiTbZsu5YfNe5D0I6kmtu4A4Qi3lUgrS ti/iqNcftmftxYNUriYYkEAjMDJ5MK3COi20xLGMLwLLVMH1Xc1iwN9vTuSzcP1iRG VLJzfPKsmk8ag== 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 03AC6CA0FE4; Fri, 22 Aug 2025 05:41:29 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 22 Aug 2025 13:39:56 +0800 Subject: [PATCH 2/5] pmdomain: amlogic: Add support for S6 S7 S7D power domains controller 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: <20250822-pm-s6-s7-s7d-v1-2-82e3f3aff327@amlogic.com> References: <20250822-pm-s6-s7-s7d-v1-0-82e3f3aff327@amlogic.com> In-Reply-To: <20250822-pm-s6-s7-s7d-v1-0-82e3f3aff327@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jianxin Pan , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Xianwei Zhao , "hongyu.chen1" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755841286; l=4719; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=f2m0nsIUf/owC+/pGLzsEn5pyQIYJ6wrUlxsJFTx2lE=; b=pwitmZC4ygGsQN/beTX1T2nbDqayrzpNTwBhuxE50uUBEkMZv8EqkL5nsYtHy9Vdkv1dgMiy9 RdOGT7HWMBPDcBeSx54/4CPNhf8ng0FiM8VoH5ixsmzJLEe5bvfICsR 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: "hongyu.chen1" Add support for the S6 S7 S7D power controller, whose registers are in the secure domain and should be accessed via SMC. Signed-off-by: hongyu.chen1 Signed-off-by: Xianwei Zhao --- drivers/pmdomain/amlogic/meson-secure-pwrc.c | 95 ++++++++++++++++++++++++= ++++ 1 file changed, 95 insertions(+) diff --git a/drivers/pmdomain/amlogic/meson-secure-pwrc.c b/drivers/pmdomai= n/amlogic/meson-secure-pwrc.c index e8bda60078c4..1d2f371d2d7f 100644 --- a/drivers/pmdomain/amlogic/meson-secure-pwrc.c +++ b/drivers/pmdomain/amlogic/meson-secure-pwrc.c @@ -16,6 +16,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -201,6 +204,71 @@ static const struct meson_secure_pwrc_domain_desc s4_p= wrc_domains[] =3D { SEC_PD(S4_AUDIO, 0), }; =20 +static const struct meson_secure_pwrc_domain_desc s6_pwrc_domains[] =3D { + SEC_PD(S6_DSPA, 0), + SEC_PD(S6_DOS_HEVC, 0), + SEC_PD(S6_DOS_VDEC, 0), + SEC_PD(S6_VPU_HDMI, 0), + SEC_PD(S6_U2DRD, 0), + SEC_PD(S6_U3DRD, 0), + SEC_PD(S6_SD_EMMC_C, 0), + SEC_PD(S6_GE2D, 0), + SEC_PD(S6_AMFC, 0), + SEC_PD(S6_VC9000E, 0), + SEC_PD(S6_DEWARP, 0), + SEC_PD(S6_VICP, 0), + SEC_PD(S6_SD_EMMC_A, 0), + SEC_PD(S6_SD_EMMC_B, 0), + /* ETH is for ethernet online wakeup, and should be always on */ + SEC_PD(S6_ETH, GENPD_FLAG_ALWAYS_ON), + SEC_PD(S6_PCIE, 0), + SEC_PD(S6_NNA_4T, 0), + SEC_PD(S6_AUDIO, 0), + SEC_PD(S6_AUCPU, 0), + SEC_PD(S6_ADAPT, 0), +}; + +static const struct meson_secure_pwrc_domain_desc s7_pwrc_domains[] =3D { + SEC_PD(S7_DOS_HEVC, 0), + SEC_PD(S7_DOS_VDEC, 0), + SEC_PD(S7_VPU_HDMI, 0), + SEC_PD(S7_USB_COMB, 0), + SEC_PD(S7_SD_EMMC_C, 0), + SEC_PD(S7_GE2D, 0), + SEC_PD(S7_SD_EMMC_A, 0), + SEC_PD(S7_SD_EMMC_B, 0), + /* ETH is for ethernet online wakeup, and should be always on */ + SEC_PD(S7_ETH, GENPD_FLAG_ALWAYS_ON), + SEC_PD(S7_AUCPU, 0), + SEC_PD(S7_AUDIO, 0), +}; + +static const struct meson_secure_pwrc_domain_desc s7d_pwrc_domains[] =3D { + SEC_PD(S7D_DOS_HCODEC, 0), + SEC_PD(S7D_DOS_HEVC, 0), + SEC_PD(S7D_DOS_VDEC, 0), + SEC_PD(S7D_VPU_HDMI, 0), + SEC_PD(S7D_USB_U2DRD, 0), + SEC_PD(S7D_USB_U2H, 0), + SEC_PD(S7D_SSD_EMMC_C, 0), + SEC_PD(S7D_GE2D, 0), + SEC_PD(S7D_AMFC, 0), + SEC_PD(S7D_EMMC_A, 0), + SEC_PD(S7D_EMMC_B, 0), + /* ETH is for ethernet online wakeup, and should be always on */ + SEC_PD(S7D_ETH, GENPD_FLAG_ALWAYS_ON), + SEC_PD(S7D_AUCPU, 0), + SEC_PD(S7D_AUDIO, 0), + /* SRAMA is used as ATF runtime memory, and should be always on */ + SEC_PD(S7D_SRAMA, GENPD_FLAG_ALWAYS_ON), + /* DMC0 is for DDR PHY ana/dig and DMC, and should be always on */ + SEC_PD(S7D_DMC0, GENPD_FLAG_ALWAYS_ON), + /* DMC1 is for DDR PHY ana/dig and DMC, and should be always on */ + SEC_PD(S7D_DMC1, GENPD_FLAG_ALWAYS_ON), + /* DDR should be always on */ + SEC_PD(S7D_DDR, GENPD_FLAG_ALWAYS_ON), +}; + static const struct meson_secure_pwrc_domain_desc t7_pwrc_domains[] =3D { SEC_PD(T7_DSPA, 0), SEC_PD(T7_DSPB, 0), @@ -367,6 +435,21 @@ static const struct meson_secure_pwrc_domain_data meso= n_secure_s4_pwrc_data =3D { .count =3D ARRAY_SIZE(s4_pwrc_domains), }; =20 +static const struct meson_secure_pwrc_domain_data amlogic_secure_s6_pwrc_d= ata =3D { + .domains =3D s6_pwrc_domains, + .count =3D ARRAY_SIZE(s6_pwrc_domains), +}; + +static const struct meson_secure_pwrc_domain_data amlogic_secure_s7_pwrc_d= ata =3D { + .domains =3D s7_pwrc_domains, + .count =3D ARRAY_SIZE(s7_pwrc_domains), +}; + +static const struct meson_secure_pwrc_domain_data amlogic_secure_s7d_pwrc_= data =3D { + .domains =3D s7d_pwrc_domains, + .count =3D ARRAY_SIZE(s7d_pwrc_domains), +}; + static const struct meson_secure_pwrc_domain_data amlogic_secure_t7_pwrc_d= ata =3D { .domains =3D t7_pwrc_domains, .count =3D ARRAY_SIZE(t7_pwrc_domains), @@ -393,6 +476,18 @@ static const struct of_device_id meson_secure_pwrc_mat= ch_table[] =3D { .compatible =3D "amlogic,meson-s4-pwrc", .data =3D &meson_secure_s4_pwrc_data, }, + { + .compatible =3D "amlogic,s6-pwrc", + .data =3D &amlogic_secure_s6_pwrc_data, + }, + { + .compatible =3D "amlogic,s7-pwrc", + .data =3D &amlogic_secure_s7_pwrc_data, + }, + { + .compatible =3D "amlogic,s7d-pwrc", + .data =3D &amlogic_secure_s7d_pwrc_data, + }, { .compatible =3D "amlogic,t7-pwrc", .data =3D &amlogic_secure_t7_pwrc_data, --=20 2.37.1 From nobody Sat Oct 4 00:32:10 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 6BDDA2820A3; Fri, 22 Aug 2025 05:41:29 +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=1755841289; cv=none; b=p0j/d4Tldq2QskQ15WE4tlwzRvNxLcmpk+CPu2S+adJH825mXa7k9kl1PiyPGEI+HlyHdU+ILfjyElrIzBbZdUREfjHrqpZlxF+EUvc5FzU7fxJBis6ErgccHgCPZhJNLmZTXEMa0mYl3CZNJjreWbnE8o7wNVWIHRfg8Y3vHJg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755841289; c=relaxed/simple; bh=jf9fstk9wE+vQeskkAEyhsMSu0t2e6OAGeuGQ8JCH94=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NdnX2JDBkpH0ljuk+dk7wuuOosBrxB2rR4RaKF58pVzLZ39YuOb/qFGvHaMKQZ9aWEZhP1+nlUYJW7MBPxV8vLslWoNp5ZANAEw4VDJ0bn+IxB2RHTkSfe106Hk6QJvjwR2uW/3uZCkqJXC6tYF9LyCFaPbcoGje3/PmrJ5CWdI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UBIRVmQR; 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="UBIRVmQR" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1A6A8C116C6; Fri, 22 Aug 2025 05:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755841289; bh=jf9fstk9wE+vQeskkAEyhsMSu0t2e6OAGeuGQ8JCH94=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UBIRVmQRBEwi//GZN3lGsyqtkKQPW4jvDDlniRORX7SrUNwDGCDwjaCsXBM6I7mv6 qJnrj5AOcCtjJhcacJd6HAhX+Al/aw+uqx+S/cOcl3vcVzmR0nPg3+y4VmcaEg544o 1L/r4zmSMrMz1sfwI/gZizMnR+aAUz21sKN9mrQTtZ5zoxaihTYllOQAqZjAAIsGu8 4PK7uLLbiLDmkb0y/Vj0icgcjRdQ7V+E+t/kd3odvf8yVIriHcacVdLFGKPilJUY5i JJ8a+A5z5jyvDRQ3Q5t7p7RHjyDZ6+R1AflRU99/2hmq3tXPLlzMKNlrkLa5IgjObE wxPPqo0rI2vsA== 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 10966CA0EEB; Fri, 22 Aug 2025 05:41:29 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 22 Aug 2025 13:39:57 +0800 Subject: [PATCH 3/5] arm64: dts: amlogic: s6: add power domain controller 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: <20250822-pm-s6-s7-s7d-v1-3-82e3f3aff327@amlogic.com> References: <20250822-pm-s6-s7-s7d-v1-0-82e3f3aff327@amlogic.com> In-Reply-To: <20250822-pm-s6-s7-s7d-v1-0-82e3f3aff327@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jianxin Pan , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Xianwei Zhao , "hongyu.chen1" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755841286; l=1145; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=kaj5R8JXVNmN1FRoL5Yj/r2ULPjPs0Piqs4W5hS0JIc=; b=mNWwLLgu/xNH88+Fcp2R6hiHPFt3qyqtax1tCkA5cWc5xDTGy40bxgHirv+0PdP4kSNEpHllh ErUZY0ni+izBFCMmB47LG4bOyeAuJGPyYKWMyELiZbj6DppovDMfviA 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: "hongyu.chen1" Add power domain controller node for Amlogic S6 SoC. Signed-off-by: hongyu.chen1 Signed-off-by: Xianwei Zhao --- arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi b/arch/arm64/boot/= dts/amlogic/amlogic-s6.dtsi index 5f602f1170c0..0dca64a2ef9e 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include / { cpus { #address-cells =3D <2>; @@ -41,6 +42,15 @@ cpu3: cpu@300 { }; }; =20 + sm: secure-monitor { + compatible =3D "amlogic,meson-gxbb-sm"; + + pwrc: power-controller { + compatible =3D "amlogic,s6-pwrc"; + #power-domain-cells =3D <1>; + }; + }; + timer { compatible =3D "arm,armv8-timer"; interrupts =3D , --=20 2.37.1 From nobody Sat Oct 4 00:32:10 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 801682E228D; Fri, 22 Aug 2025 05:41:29 +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=1755841289; cv=none; b=SNDyb1sn5Vw0I00xS4zyyC7ILUxcIPj4LGAaI33/BXpyy/avhvPcwMkwhdxI577o0w60ixz5j/ZRvWJlbcynGePcb7entE2jibZDA6SVOO+lw+jAO8wL4fDTxOCXZcnKSeHd6uZWDyFNlRdvKLoFsouBFS5yzIjagJqZ7SkSb1U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755841289; c=relaxed/simple; bh=YthMYH+u7VxdtCFxsK4McprwGIGcM99TrDlR69FIdic=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qLElA+6OOziRt4wpZOZL4Y1Z2R8d6xDoPerSkdrGAlSLeu9rE0NI09XJdw0knljwsYSOM0Sk7UeQTAhGySDU7svzonbOQLjETwZVOlbFYEDj0vWFUYugCVjYJsS0qbbky82fT+KNe4Hq73vmsk6EklUlQgNW4/1AZDQc2WFh4y0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vCjprZzf; 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="vCjprZzf" Received: by smtp.kernel.org (Postfix) with ESMTPS id 2B302C4AF0D; Fri, 22 Aug 2025 05:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755841289; bh=YthMYH+u7VxdtCFxsK4McprwGIGcM99TrDlR69FIdic=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=vCjprZzf6+GTEOawcCEP5sllLT4PaEOkQjFkt4kUPDybsrdfdKRtHl2r1f06n0Hlg 6YiW0qRachTGAK1VT5r7IPhA65INYZewsaD6jGR4SumYwzacgl9/cUHBwYOJZqbfPI gIysaQkmKK7KJp+TjLx0i6B2bwHE/orrOyYgC/s70wVZPmn4qNjfGXksn1ekXPe2Q7 tgOHM98X2z/2dYpuZ+8wTQTsA8H4Eq0lG6B72e0SUPrUgynvJsiZYdcbUz5c45N8WK N1XrAm0dkuGZDGSBtYyvckTb7xs7teUPcyVQlQpbxFA7AYYHJP3rcDVFf4cG2fgmKL gi9+kw3Bw27Pw== 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 1EAB9CA0FE8; Fri, 22 Aug 2025 05:41:29 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 22 Aug 2025 13:39:58 +0800 Subject: [PATCH 4/5] arm64: dts: amlogic: s7: add power domain controller 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: <20250822-pm-s6-s7-s7d-v1-4-82e3f3aff327@amlogic.com> References: <20250822-pm-s6-s7-s7d-v1-0-82e3f3aff327@amlogic.com> In-Reply-To: <20250822-pm-s6-s7-s7d-v1-0-82e3f3aff327@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jianxin Pan , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Xianwei Zhao , "hongyu.chen1" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755841286; l=1118; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=Z2bZ8ygUDmcoyAdECyCuE+r70QpbVdcGLNPdDdonfMQ=; b=WI05JnHjXuCY998BA879NJ+KdanWzhdaPSvrGTLqMbeVhoRG3ElRKWk7bYPheM3Uvf39dcPCN BxXiBF6tjZ2D3xRGAsP0n7Z42wLPfArjZEFLcYW03QW7HFrsR4eaQj+ 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: "hongyu.chen1" Add power domain controller node for Amlogic S7 SoC. Signed-off-by: hongyu.chen1 Signed-off-by: Xianwei Zhao --- arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi b/arch/arm64/boot/= dts/amlogic/amlogic-s7.dtsi index 260918b37b9a..0473ca7195b9 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include =20 / { cpus { @@ -43,6 +44,15 @@ cpu3: cpu@300 { =20 }; =20 + sm: secure-monitor { + compatible =3D "amlogic,meson-gxbb-sm"; + + pwrc: power-controller { + compatible =3D "amlogic,s7-pwrc"; + #power-domain-cells =3D <1>; + }; + }; + timer { compatible =3D "arm,armv8-timer"; interrupts =3D , --=20 2.37.1 From nobody Sat Oct 4 00:32:10 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 E63892E2DC3; Fri, 22 Aug 2025 05:41:29 +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=1755841290; cv=none; b=SFJs+dVcKsuVCox+aWeeijzjvwbfKyjSfBGB3Y6Sm6zMPBoweSnGXw+UN9HJKI3jBaXeXHb6QF/kREOfOZcTF95ojB/yrhASIZTgDDT8DFuhfQyW9UX+y14geqXekRPHhcbi/2PYA2t5iwNC03X5JVmHzTfl52sR5KVQJCaE0bI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755841290; c=relaxed/simple; bh=q26G8rY/yZxO41j2xn0EyyR4ny+JDENIwRMkvg4w+oE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iy9vORFkwpA7I+OOU6ZEnfh7yaaZuNn/k/5zr2QDR4GlAIO4ZF7TR4txzqGWjd7pfHRkn9HqrFgnCvCmUuayEIPYsdIvZFpPYdzTb3Wh+9zUDX/hlVkv7M5f2hU9unzqKbbAPE/SzqWcIic0hJ0vFSYUXnFBgDdSpwl8E11BsdI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YWPqCCbc; 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="YWPqCCbc" Received: by smtp.kernel.org (Postfix) with ESMTPS id 35F65C19424; Fri, 22 Aug 2025 05:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755841289; bh=q26G8rY/yZxO41j2xn0EyyR4ny+JDENIwRMkvg4w+oE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YWPqCCbce2TXBlmjKsaYLv09yUF129Nd3IXQr9GOs3zg1mGrnywVqjqmT7OB2ydq+ r7Q72X9Ss4nRax5iTWUQD9LrBoquxLQZ9pjNCKIPp1h/1Zrjrutr8UcJ9RojefRVLO 155qejoBXjstryIOYR62R1+xQHQJX0o/sPAHRRYOTbt5usLENwhU7ugHn38SGWrx0K hZBhZksOY8eGNqi4WDUNR6amMLkvwz5t6J3GypHaafwUY0ikZ7Db98f1GCJyWrhaRF G996J9/C/s/Znvr16OMb57fHCCBIL5zxY/SsZqcKIJkLZIg+EuK9zJ7/UFGbvSvQIB QEzsgOw4D06yA== 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 2C5B4CA0EFF; Fri, 22 Aug 2025 05:41:29 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 22 Aug 2025 13:39:59 +0800 Subject: [PATCH 5/5] arm64: dts: amlogic: s7d: add power domain controller 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: <20250822-pm-s6-s7-s7d-v1-5-82e3f3aff327@amlogic.com> References: <20250822-pm-s6-s7-s7d-v1-0-82e3f3aff327@amlogic.com> In-Reply-To: <20250822-pm-s6-s7-s7d-v1-0-82e3f3aff327@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jianxin Pan , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Xianwei Zhao , "hongyu.chen1" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755841286; l=1126; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=F3DI1ogP18md6om9oJnkr6Qx94X86wm1hH073PtNhiw=; b=UTBvqx5lDN8I3xs1OuAWV2aGNtBoLnpVVnLb1uKQWs+18TabxePARl+cb3YJVjQdWDHm//7l6 g8zqxGWO9CbAeMCbeVw3FBbyXciArP6U74hOtKEYt1E4rSVLRVDtg9o 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: "hongyu.chen1" Add power domain controller node for Amlogic S7D SoC. Signed-off-by: hongyu.chen1 Signed-off-by: Xianwei Zhao --- arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi b/arch/arm64/boot= /dts/amlogic/amlogic-s7d.dtsi index c4d260d5bb58..f1c2e91ec6c5 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include =20 / { cpus { @@ -43,6 +44,15 @@ cpu3: cpu@300 { =20 }; =20 + sm: secure-monitor { + compatible =3D "amlogic,meson-gxbb-sm"; + + pwrc: power-controller { + compatible =3D "amlogic,s7d-pwrc"; + #power-domain-cells =3D <1>; + }; + }; + timer { compatible =3D "arm,armv8-timer"; interrupts =3D , --=20 2.37.1