From patchwork Tue May 28 08:39:28 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: 13676319 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 9F0FCC41513 for ; Tue, 28 May 2024 08:39:46 +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=BQ76n229yuPs/dtHqY//hefxwc60gIpvn8KUokDj2xY=; b=m9x6XYy+565a7R MTuM+G6DnjgASwxG5SeM+qhM+lFGPvWaHII5o8lG/J5D5ZhWo/m99jwmj3cNZAmBYmSwc4oh2abEz ALTswtQu7oSksUKO+T8dQcKawYXXKcCfznbyajeY5cAALNY7t4uvtPYsXhV2qD0iJ2sbSUW134E59 8ks0uNz0AJhsfRDEtaKea/u8HIP7a88OvTm4nnu0RrhBBl4qKFokBiS6x0gVgzZbCipM45b22DcnK f7yJvTzofgiHODHyoKEC2EIJp+HTPIcP8v0o1BCXJ5h2eyXY83RKr6N5syLT390J3S1+M6Xd8WQWS V2Z5kPUEGKE3fHEk7PRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBsMv-0000000HVO4-0FLX; Tue, 28 May 2024 08:39:41 +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 1sBsMp-0000000HVLO-1CPW; Tue, 28 May 2024 08:39:37 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 0F6BACE1174; Tue, 28 May 2024 08:39:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 46AABC4AF08; Tue, 28 May 2024 08:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716885572; bh=Dy2THCFbsLq2DkMOQsSH+bQnrboFNI6ntqt8fIhFvT8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=RLfKoV4GF0NBgr9yn86EPh0qrdIf3uigBN4yLQyaPJkcEAOOHErkGPwSvSR9l7ktK +z5OzEgQRD9RTYU61E3sdOJV/NtR2vxrEdsLZr47cbXihV08QBJesDJnq04Pbv8qen 0/P5P8N9yi790n2f80JzEC+zVeUj5S325pFPf5rcg/iTxEDarbAgKrvBKxlRc5uNpt kH4yAeEYVtykuccoe8jq1pE7zhRW5gxBkpLIBmGrJoNilCZ3QzJYht9zExK0ZDgMnW aDONbJ9Absj6kYUUEzyesn/hOT8f3WBaNaK+Xs3loY9yswVTwQyrq7Hk7LU2AGEkWM f3Zi7Cl9ptjSg== 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 33A07C27C44; Tue, 28 May 2024 08:39:32 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 28 May 2024 16:39:28 +0800 Subject: [PATCH 1/3] dt-bindings: power: add Amlogic A4 power domains MIME-Version: 1.0 Message-Id: <20240528-a4_secpowerdomain-v1-1-2a9d7df9b128@amlogic.com> References: <20240528-a4_secpowerdomain-v1-0-2a9d7df9b128@amlogic.com> In-Reply-To: <20240528-a4_secpowerdomain-v1-0-2a9d7df9b128@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 X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716885570; l=1750; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=RgSjH36Qe2U+EgCLbgQ34YnSw/n5HAn5hYl8u+yR7yg=; b=0fO2oQhlkgQwkWydhbu+RcPN78HB4L/zQ19HTV6D8l8yETaxV2MPvQUb4RleDjl3sHKwKXzqX 1WjcP+vIKYRAeHouzTEy4/UeFCiddZ5A1ZlqqpHBnr731DojYlwNg2W 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-20240528_013935_742783_68C4F4E2 X-CRM114-Status: GOOD ( 10.26 ) 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 devicetree binding document and related header file for Amlogic A4 secure power domains. Signed-off-by: Xianwei Zhao Acked-by: Krzysztof Kozlowski --- .../bindings/power/amlogic,meson-sec-pwrc.yaml | 1 + include/dt-bindings/power/amlogic,a4-pwrc.h | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml index dab3d92bc273..59915f9d4860 100644 --- a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml +++ b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml @@ -20,6 +20,7 @@ properties: enum: - amlogic,meson-a1-pwrc - amlogic,meson-s4-pwrc + - amlogic,a4-pwrc - amlogic,c3-pwrc - amlogic,t7-pwrc diff --git a/include/dt-bindings/power/amlogic,a4-pwrc.h b/include/dt-bindings/power/amlogic,a4-pwrc.h new file mode 100644 index 000000000000..bd2f9c558d22 --- /dev/null +++ b/include/dt-bindings/power/amlogic,a4-pwrc.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (C) 2024 Amlogic, Inc. All rights reserved + */ +#ifndef _DT_BINDINGS_AMLOGIC_A4_POWER_H +#define _DT_BINDINGS_AMLOGIC_A4_POWER_H + +#define PWRC_A4_AUDIO_ID 0 +#define PWRC_A4_SDIOA_ID 1 +#define PWRC_A4_EMMC_ID 2 +#define PWRC_A4_USB_COMB_ID 3 +#define PWRC_A4_ETH_ID 4 +#define PWRC_A4_VOUT_ID 5 +#define PWRC_A4_AUDIO_PDM_ID 6 +#define PWRC_A4_DMC_ID 7 +#define PWRC_A4_SYS_WRAP_ID 8 +#define PWRC_A4_AO_I2C_S_ID 9 +#define PWRC_A4_AO_UART_ID 10 +#define PWRC_A4_AO_IR_ID 11 + +#endif From patchwork Tue May 28 08:39:29 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: 13676321 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 949A7C27C44 for ; Tue, 28 May 2024 08:39:47 +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=xUMxyQlaRbNr4fm+kNCHnWvdlzQj0bMRKsh3YbudvOM=; b=JeiaqAlq5PByHs Ip31PuVqUS7BCzmOqF0ZfRxTJkUhsZDWmkoMkWNCRnblQQJ+WW2YIIWdTfxmUj1scYbMUFk+Gq9Pf HAweEV3ZyJKMaqDHg0l3CHlpaal54SP/Ls2h1PJXj6r1xUFJw+2ZX6sCX59N0hBnv1L5LnXB3qW8z 99bXR9sWyJ9DF5dcB/pyr75mlvnP/JsYYY8OxaYbhQoB64HBWNqzMBM1dsMA5udjGyB/mIQEKPAJI id38IFrXQBHvsk6FySb3ZtXw548w43yx7MUg/eUN7aU8AyLmI3PF3kFK7g22EFj3MeNheXjzXQNGD 6huUnSo+WjSnNJo+WnfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBsMv-0000000HVOA-1mf9; Tue, 28 May 2024 08:39:41 +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 1sBsMp-0000000HVLS-36op; Tue, 28 May 2024 08:39:37 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id A4BDDCE1196; Tue, 28 May 2024 08:39:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 5ED52C4AF09; Tue, 28 May 2024 08:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716885572; bh=VixEXuZN/OUSqy2eSZYxrDn1DpDfF97cg6Yk2ft7Kos=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=c78yXd7CJrMeLJd3mtx29rXEPEEMhocLaIPBkGbR17Mn0IyMTUeg+yu0fautD+aAQ vAEOwkaFnc4d03KiXVkutm9kC3XXmXAHzaRkKkfAuA3hJdesXsEsvtLOdPmeHR49i4 LpvnSAddF+h5H7a/vEMGJJUACzHzKjl5yCrCwd6PFBdIpMplSmcWWr7buhZ8cXwzuF PojOnWpRI8tG+etwNLe4exT463RBgH4UiFGdN/AyODAtQws7Ody0JloPP3UAtIQsSV zVzDaYzoAbft7JE+aYORlib2xTv3P9u/+rRMzrBBDhclTJAYuvv3cmcbtZrBixjMnM XGs9cHb7KrQ7g== 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 48A4FC27C4F; Tue, 28 May 2024 08:39:32 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 28 May 2024 16:39:29 +0800 Subject: [PATCH 2/3] pmdomain: amlogic: Add support for A4 power domains controller MIME-Version: 1.0 Message-Id: <20240528-a4_secpowerdomain-v1-2-2a9d7df9b128@amlogic.com> References: <20240528-a4_secpowerdomain-v1-0-2a9d7df9b128@amlogic.com> In-Reply-To: <20240528-a4_secpowerdomain-v1-0-2a9d7df9b128@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 X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716885570; l=2569; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=sQe+JwBMkCZfsqfQe37iTq45WTX2B0aYtud4pwYKDcM=; b=RVEpNY3eCln5PraEVAxGJTB52ZTa/wiupPq237n3Ai2rXX+7bKSnHgeuc59YoL2mVESl6YaUT R0AV89gyPqPDWcfpMVduWbCJfczFVVrFWPLvzhdleELMX0Vd8QdoQ2t 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-20240528_013936_172990_5CCEACB3 X-CRM114-Status: GOOD ( 11.82 ) 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 support for A4 power controller. A4 power control registers are in secure domain, and should be accessed by SMC. Signed-off-by: Xianwei Zhao Reviewed-by: Neil Armstrong --- drivers/pmdomain/amlogic/meson-secure-pwrc.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/pmdomain/amlogic/meson-secure-pwrc.c b/drivers/pmdomain/amlogic/meson-secure-pwrc.c index 4d5bda0d60fc..3a84d8a74a5e 100644 --- a/drivers/pmdomain/amlogic/meson-secure-pwrc.c +++ b/drivers/pmdomain/amlogic/meson-secure-pwrc.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -136,6 +137,24 @@ static struct meson_secure_pwrc_domain_desc a1_pwrc_domains[] = { SEC_PD(RSA, 0), }; +static struct meson_secure_pwrc_domain_desc a4_pwrc_domains[] = { + SEC_PD(A4_AUDIO, 0), + SEC_PD(A4_SDIOA, 0), + SEC_PD(A4_EMMC, 0), + SEC_PD(A4_USB_COMB, 0), + SEC_PD(A4_ETH, 0), + SEC_PD(A4_VOUT, 0), + SEC_PD(A4_AUDIO_PDM, 0), + /* DMC is for DDR PHY ana/dig and DMC, and should be always on */ + SEC_PD(A4_DMC, GENPD_FLAG_ALWAYS_ON), + /* WRAP is secure_top, a lot of modules are included, and should be always on */ + SEC_PD(A4_SYS_WRAP, GENPD_FLAG_ALWAYS_ON), + SEC_PD(A4_AO_I2C_S, 0), + SEC_PD(A4_AO_UART, 0), + /* IR is wake up trigger source, and should be always on */ + SEC_PD(A4_AO_IR, GENPD_FLAG_ALWAYS_ON), +}; + static struct meson_secure_pwrc_domain_desc c3_pwrc_domains[] = { SEC_PD(C3_NNA, 0), SEC_PD(C3_AUDIO, 0), @@ -311,6 +330,11 @@ static struct meson_secure_pwrc_domain_data meson_secure_a1_pwrc_data = { .count = ARRAY_SIZE(a1_pwrc_domains), }; +static struct meson_secure_pwrc_domain_data amlogic_secure_a4_pwrc_data = { + .domains = a4_pwrc_domains, + .count = ARRAY_SIZE(a4_pwrc_domains), +}; + static struct meson_secure_pwrc_domain_data amlogic_secure_c3_pwrc_data = { .domains = c3_pwrc_domains, .count = ARRAY_SIZE(c3_pwrc_domains), @@ -331,6 +355,10 @@ static const struct of_device_id meson_secure_pwrc_match_table[] = { .compatible = "amlogic,meson-a1-pwrc", .data = &meson_secure_a1_pwrc_data, }, + { + .compatible = "amlogic,a4-pwrc", + .data = &amlogic_secure_a4_pwrc_data, + }, { .compatible = "amlogic,c3-pwrc", .data = &amlogic_secure_c3_pwrc_data, From patchwork Tue May 28 08:39:30 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: 13676320 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 500D2C25B7E for ; Tue, 28 May 2024 08:39:47 +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=rKpsD0+d8q5QRamfD4wxyYlwvX753QNtF16zxyvDhjU=; b=SJa0mt2RzN00IJ 2xrhmVCm4YCjPkxB59T+ki6MeVzywkpqay6vvedWqE2YkEVRVeHo7H2miul5ofGwnPeBGd5QE8JaK ITroqLSS330jBCLj5XwKM036HqCsFc8LuTvOmUFiOl+J0Xm5MpdMTJ++1L1KtYIhfQIArCGR1K17N oZx+2751xSBE6h/2mFJ76SOrwxG3g3BjOeDtbeRsziG0/K1Z1IQt+7mxHne0lbbD+EWQrjL/x5DLm K3tb2tqXNILRPDmvRJm/LSVlIZBGqyeN+aVz3CBLG5S7i3eRBeaQ90a/veH30RGlyR8Zq0B2Py57b 0hPRTgt+SD2mU1RZ7l2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBsMs-0000000HVNA-1blO; Tue, 28 May 2024 08:39:38 +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 1sBsMp-0000000HVLP-1CnM; Tue, 28 May 2024 08:39:36 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 6ACF161E63; Tue, 28 May 2024 08:39:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 66975C4AF10; Tue, 28 May 2024 08:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716885572; bh=Kj+dnbcQsJtNSINo7zvlXmb60tMjgfrr8JYjVExuHhA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=G45asAmvuYIvV+L9qlMaBrBFgK+DPE1Gnu8rqWsbm3fQ/H34Cv1F0u8/T2JF06INz NEIjvqzzD0VxCVXGueD962xY3sOT06ohLyVY/Q2FmecMW0lxj9akbWt4OFbsYG5+B/ BQaYIh1B0ANWhF2IJV+bqjt5fe9ntwYaAWloJGcSqYp1D0A7dOZjD+qJ3J0wctXOXV tQd9dLHERurEsDqcSqFL3EyN+pRFIr/C5i+VP8uIWFoV9nFEOX0eq1qHLmzsR9dM4m DaLzfKlLbjd9Rvki6RT4+utUJ7NepJAF0YpR9kFsKFkNswy6LoTp8gpmrhnUQn2otX 9j9Y4DKsZnjvQ== 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 5C0D6C25B78; Tue, 28 May 2024 08:39:32 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 28 May 2024 16:39:30 +0800 Subject: [PATCH 3/3] arm64: dts: amlogic: a4: add power domain controller node MIME-Version: 1.0 Message-Id: <20240528-a4_secpowerdomain-v1-3-2a9d7df9b128@amlogic.com> References: <20240528-a4_secpowerdomain-v1-0-2a9d7df9b128@amlogic.com> In-Reply-To: <20240528-a4_secpowerdomain-v1-0-2a9d7df9b128@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 X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716885570; l=1210; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=nbykAnIJ2GCD2WnAPtjMU24T/l4oTV2riXHYjP6paJ4=; b=FdbPTyKbc+thp9uswV6KRGymTZOcdUZfBsO4rleZ34pKhtz7H21eiq5madq8Vko4zKXFmJmT7 LDb0D2hwFMVC1K2zczPowHbHIIkPqRNAI1G/s0o4LEHtMW0ptT2gc5N 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-20240528_013935_406994_3DDFC4AD X-CRM114-Status: UNSURE ( 8.64 ) 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 power domain controller node for Amlogic A4 SoC Signed-off-by: Xianwei Zhao --- arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi | 4 ++++ arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi index b6106ad4a072..eebde77ae5b4 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi @@ -27,6 +27,10 @@ xtal: xtal-clk { #clock-cells = <0>; }; + sm: secure-monitor { + compatible = "amlogic,meson-gxbb-sm"; + }; + soc { compatible = "simple-bus"; #address-cells = <2>; diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi index 73ca1d7eed81..917c05219b9c 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi @@ -37,4 +37,9 @@ cpu3: cpu@3 { enable-method = "psci"; }; }; + + pwrc: power-controller { + compatible = "amlogic,a4-pwrc"; + #power-domain-cells = <1>; + }; };