From patchwork Thu Jun 27 11:47:51 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: 13714273 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 8FF5DC3064D for ; Thu, 27 Jun 2024 11:48:57 +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=8PZ+H/zZuut3ZvjtzBlHXozJIizIbNsgSN+P00i+mvU=; b=UgtRDVNZXxE2Ul kuUbdTr7BdQm3kCT+Orm8NbOLjUwsh/rSBf3T9EOHVefVs6pd0aq7SuX5DdEpLxpLxHlvrTsuMxb8 vxSfXY5BbsGAtsRZ0RUJmmxffSRiMvcAJCI8f9yvrPtyDQM8q1FdX1kp9DBgcmhveNEl3HUSuG4ax wlp7lgXmrL5BaAh9gJtq/SmWgRJ8uifFAcHNYgqDnJ/M9pVXerxFpABe7VRV7FmZO7itsjndeWRnJ HS327UhIPDrBJFnS6mrJMxxT1dqWBUj8k/s0qdz5Iq7BA57KusXtZMFqHEmOqDeKKWa+NuqT8tWQ1 +q2LS6aEk7BHquYBCEYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMncS-0000000ADLi-1scU; Thu, 27 Jun 2024 11:48:52 +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 1sMnba-0000000AD1z-1QV8; Thu, 27 Jun 2024 11:48:02 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id D1474CE2E4A; Thu, 27 Jun 2024 11:47:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 20334C32789; Thu, 27 Jun 2024 11:47:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719488875; bh=Ai1qsjDV8TVB8n60kMviqZ3G0IrZICdk1tqlzmLNIcQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=uEhmHgv6/P24cuQWYsbs/RGcxh0yhvXBD9/OJakAugtujrmn5yVC8h6IbNM+XlJOt 95dZyKutL+TlhivysdyXBA7nSGCczddyb3coq3QJ0Z2aE5H+TJvbqIWl7D0xx4kbBl M+TGt4Xb6MfsKbdnRhjN8nwnbjJzZJdSE050fOKVSb8MTz8nhIHPr3ZeMYVlJLCxkl Bw4up29DhZDCB5rZE2A1LzUFA/pprm38Vkpg/sSFOLKM5+3PjjZzKP3qSLYoPGW/IO uK58xuQXiCL7m5YioUxQD87R8jAJLlbhLk8Eki8dOWS1jxq7mrSBNHDKJOEvcyHFb/ noKFv63HFk5pw== 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 02CB1C30653; Thu, 27 Jun 2024 11:47:55 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Thu, 27 Jun 2024 19:47:51 +0800 Subject: [PATCH 1/3] dt-bindings: power: add Amlogic A5 power domains MIME-Version: 1.0 Message-Id: <20240627-a5_secpower-v1-1-1f47dde1270c@amlogic.com> References: <20240627-a5_secpower-v1-0-1f47dde1270c@amlogic.com> In-Reply-To: <20240627-a5_secpower-v1-0-1f47dde1270c@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 Chen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1719488872; l=1760; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=Txc3iSqLPbJi5Rszcezcb/g0/wY8paHucg8OqrKhoA4=; b=zuduol9Qa4JxnPSke443YVNvHYmL2hfXZ5bF3i+i0yMOzt3NZdwSLoIOjJhdk35/+t7kbV7xr uOlQNcygpQUCvxGKP754w1v61IbP0+gK0mzC4SGWbFobhHoVATK5R76 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-20240627_044758_842509_DF24D93A X-CRM114-Status: GOOD ( 10.41 ) 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 A5 secure power domains. Signed-off-by: Hongyu Chen Signed-off-by: Xianwei Zhao Acked-by: Conor Dooley --- .../bindings/power/amlogic,meson-sec-pwrc.yaml | 1 + include/dt-bindings/power/amlogic,a5-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 59915f9d4860..15d74138baa3 100644 --- a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml +++ b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml @@ -21,6 +21,7 @@ properties: - amlogic,meson-a1-pwrc - amlogic,meson-s4-pwrc - amlogic,a4-pwrc + - amlogic,a5-pwrc - amlogic,c3-pwrc - amlogic,t7-pwrc diff --git a/include/dt-bindings/power/amlogic,a5-pwrc.h b/include/dt-bindings/power/amlogic,a5-pwrc.h new file mode 100644 index 000000000000..3a6f53eb959f --- /dev/null +++ b/include/dt-bindings/power/amlogic,a5-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_A5_POWER_H +#define _DT_BINDINGS_AMLOGIC_A5_POWER_H + +#define PWRC_A5_NNA_ID 0 +#define PWRC_A5_AUDIO_ID 1 +#define PWRC_A5_SDIOA_ID 2 +#define PWRC_A5_EMMC_ID 3 +#define PWRC_A5_USB_COMB_ID 4 +#define PWRC_A5_ETH_ID 5 +#define PWRC_A5_RSA_ID 6 +#define PWRC_A5_AUDIO_PDM_ID 7 +#define PWRC_A5_DMC_ID 8 +#define PWRC_A5_SYS_WRAP_ID 9 +#define PWRC_A5_DSPA_ID 10 + +#endif From patchwork Thu Jun 27 11:47:52 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: 13714272 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 7185FC2BD09 for ; Thu, 27 Jun 2024 11:48:52 +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=9b9p2//OrMinwQH0W1TpZy7hPJqgOSpHlkUY8Osmn18=; b=2GgnHe0Kt3wPPa Pndq1oftEkOzYI4/muV4mKW22DsLjPHsTke+nhR4W8TWXWk6E2Rm4xXBue0GS0znTBv08jnKxZZf4 WVA6jvTN7SQKmkTLsEDJ2rn+MWSJBhZqIbYCFE/4oPROhK18QZdc/slXSONv+GFsW0sBhY7Owzta4 /8osBpHNkuPxz1EUCEpqrsNEoB1Pzyr6aey2jFbZhF0O+rtvMKoSEDo0K2vNlRufqqJw7gMzJgW0y zU63NhY523eH5V8ZDZmvj4Mhg3Uc2BkR9Mda5TEr89NbflNzDalyxGf01HhEzozfd3pW/uC02LR1z Sa9SJ/Yj6AB2I370aXOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMncF-0000000ADE0-1cxi; Thu, 27 Jun 2024 11:48:45 +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 1sMnba-0000000AD24-12Hr; Thu, 27 Jun 2024 11:48:01 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 2CE43CE2E47; Thu, 27 Jun 2024 11:47:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 33546C32786; Thu, 27 Jun 2024 11:47:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719488875; bh=lpXzYkzUB9eFRCkMDQeOFIvUniE98WzHWrrhrNYqR4M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=IdtOQfOuJhAvYLJcKkItpR2JNUMnu8FvdlDaqtG+BmnlDs85bh0jDHBIjeh/qk/IH ugMPXtt3jccb6nsSBr9pcAh+vVc3OnfTY0MGNA0/yoIOZxTs2bDSSLFwgAdWuxHaKk 3rclwG+s9QSMAZgZDeiMX4k8Cyr7WzOIsIG/R8gUKrQU0by1riqPBlFMo6WJZ7T06W 9Cvu8W8A0PxigiyVYldkFNHsbC/AKcZU7zdx4RCLiOOCXNCNrNkswyD4e251NsZuI0 Gj6JN7jrg9H9IybEGEshUZKoGZTX7QOp57YEzq7YeJdU+OUvIj947b1ZDgL/izGWZM AYBMtjvo5kHUQ== 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 216DEC30659; Thu, 27 Jun 2024 11:47:55 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Thu, 27 Jun 2024 19:47:52 +0800 Subject: [PATCH 2/3] pmdomain: amlogic: Add support for A5 power domains controller MIME-Version: 1.0 Message-Id: <20240627-a5_secpower-v1-2-1f47dde1270c@amlogic.com> References: <20240627-a5_secpower-v1-0-1f47dde1270c@amlogic.com> In-Reply-To: <20240627-a5_secpower-v1-0-1f47dde1270c@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 Chen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1719488872; l=2530; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=zWxLtelNKu19heqKs9wOyiplUpI+DyeIV7xOkfT+HwI=; b=Q2fjW+FoiPk3SlMyEGT1KOBPCDtlv+iKtLDF1wDDMNTEdR1UsHTAvXROY6xZNm5ch7gAtubOt ARKBdI22iOlC0SFpCvBkVGmqTg5pB0id21KF/i0mvBc3B9PmbWAxM+p 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-20240627_044758_706445_43CF2A28 X-CRM114-Status: GOOD ( 11.95 ) 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 the A5 power controller, whose registers are in the secure domain and should be accessed via SMC. Signed-off-by: Hongyu Chen Signed-off-by: Xianwei Zhao Reviewed-by: Neil Armstrong --- drivers/pmdomain/amlogic/meson-secure-pwrc.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/pmdomain/amlogic/meson-secure-pwrc.c b/drivers/pmdomain/amlogic/meson-secure-pwrc.c index df5567418226..f6729eea6b8c 100644 --- a/drivers/pmdomain/amlogic/meson-secure-pwrc.c +++ b/drivers/pmdomain/amlogic/meson-secure-pwrc.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -155,6 +156,22 @@ static struct meson_secure_pwrc_domain_desc a4_pwrc_domains[] = { SEC_PD(A4_AO_IR, GENPD_FLAG_ALWAYS_ON), }; +static struct meson_secure_pwrc_domain_desc a5_pwrc_domains[] = { + SEC_PD(A5_NNA, 0), + SEC_PD(A5_AUDIO, 0), + SEC_PD(A5_SDIOA, 0), + SEC_PD(A5_EMMC, 0), + SEC_PD(A5_USB_COMB, 0), + SEC_PD(A5_ETH, 0), + SEC_PD(A5_RSA, 0), + SEC_PD(A5_AUDIO_PDM, 0), + /* DMC is for DDR PHY ana/dig and DMC, and should be always on */ + SEC_PD(A5_DMC, GENPD_FLAG_ALWAYS_ON), + /* WRAP is secure_top, a lot of modules are included, and should be always on */ + SEC_PD(A5_SYS_WRAP, GENPD_FLAG_ALWAYS_ON), + SEC_PD(A5_DSPA, 0), +}; + static struct meson_secure_pwrc_domain_desc c3_pwrc_domains[] = { SEC_PD(C3_NNA, 0), SEC_PD(C3_AUDIO, 0), @@ -335,6 +352,11 @@ static struct meson_secure_pwrc_domain_data amlogic_secure_a4_pwrc_data = { .count = ARRAY_SIZE(a4_pwrc_domains), }; +static struct meson_secure_pwrc_domain_data amlogic_secure_a5_pwrc_data = { + .domains = a5_pwrc_domains, + .count = ARRAY_SIZE(a5_pwrc_domains), +}; + static struct meson_secure_pwrc_domain_data amlogic_secure_c3_pwrc_data = { .domains = c3_pwrc_domains, .count = ARRAY_SIZE(c3_pwrc_domains), @@ -359,6 +381,10 @@ static const struct of_device_id meson_secure_pwrc_match_table[] = { .compatible = "amlogic,a4-pwrc", .data = &amlogic_secure_a4_pwrc_data, }, + { + .compatible = "amlogic,a5-pwrc", + .data = &amlogic_secure_a5_pwrc_data, + }, { .compatible = "amlogic,c3-pwrc", .data = &amlogic_secure_c3_pwrc_data, From patchwork Thu Jun 27 11:47:53 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: 13714271 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 123A3C2BD09 for ; Thu, 27 Jun 2024 11:48:18 +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=asm1O/iSO28uRhZQAptFi0fTr4xrWbiQBSsJWynhys4=; b=LVjFW577SSySeL raLmCc5r1CShpGUu7KnmbcJtY6ggSFEG7WrQKH5mbjYjX6VxkANJfDZ1dIWgW8lxKYqgJa9y3P8zH Tc7IH0Jv66ZJMX9kYCu0eWIFe3IEmPqDxZlTo5hSrg43zYhVJQKkmdQFel8uueY2fm6gyBDucxTa8 j22qfKEATbmsRUTset9yQnu7NHbPHkZFR7AoQ69tyKdu/HsjebQye94qcU9+A2Y5YO3RuBAz+nPUK XSSUncFgpkVExAGRU0jyUDIaO5r87V9yD/6LPxUN7bbpWrtZ/MXBAA0vDdlucCeEhc0AIgM65opfl Ud67A+MyCcY0CTvW+ykg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMnbd-0000000AD3b-2xOX; Thu, 27 Jun 2024 11:48:02 +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 1sMnba-0000000AD23-1PvW; Thu, 27 Jun 2024 11:48:00 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 32F7A61E52; Thu, 27 Jun 2024 11:47:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 48081C4AF0E; Thu, 27 Jun 2024 11:47:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719488875; bh=eyjxy3sxdu3xoTQb6Z89zNdOHxg3M/MGMf8s4ii97+g=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=rDLFp2F3ezKHScCh4xiy2zMKT7119vaePYGsezyMJTEf0gHUygZ77vJiqtPOBOVr0 +6e99Xc+Cm8nxJigQbla1J6r4IUo8yG5/5jyz7ojRJAD4DVYLI4wWU/PF+Mn9sH5pX zfbUl6T/ZF+AVgcgxm2b6iatsg762IjB2zz8c2zYuLcvMmDRyqV3xwupRmdTtVWuVE rH6LGjzNV94nPaOwXo/uuE8g2GN2xZqrX0wHvY/dYmhxAoK4IDZDq7sgm6+UHwXRiR NDohfTn4+TPoQtJKlfcpA2bVwqt9msQuoXUPOO8TnEiAdiG+wi06yZZvhPovL6pIs/ qq2MDj8Fiuiag== 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 3C098C2BD09; Thu, 27 Jun 2024 11:47:55 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Thu, 27 Jun 2024 19:47:53 +0800 Subject: [PATCH 3/3] arm64: dts: amlogic: a5: add power domain controller node MIME-Version: 1.0 Message-Id: <20240627-a5_secpower-v1-3-1f47dde1270c@amlogic.com> References: <20240627-a5_secpower-v1-0-1f47dde1270c@amlogic.com> In-Reply-To: <20240627-a5_secpower-v1-0-1f47dde1270c@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 Chen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1719488872; l=952; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=a2Zu+uHx7AvPgs0U7XpBlBsH/P/9nCVcrhSWZWMj+mI=; b=QgBeyLD1Kac4MHjy5kyxtif4bCHe3DmeuihH4WAyneRpGvyo31dywxlvvHylqdPXeH7o/vv3N QBZtc7xUpsQAbNsGbVbH85wfd+4zPivbRtVm+3Ojs5fVy7LPkc+N2nM 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-20240627_044758_615388_46BBA7A9 X-CRM114-Status: UNSURE ( 8.86 ) 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 A5 SoC. Signed-off-by: Hongyu Chen Signed-off-by: Xianwei Zhao Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi index 43f68a7da2f7..17a6316de891 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi @@ -4,6 +4,7 @@ */ #include "amlogic-a4-common.dtsi" +#include / { cpus { #address-cells = <2>; @@ -37,4 +38,13 @@ cpu3: cpu@300 { enable-method = "psci"; }; }; + + sm: secure-monitor { + compatible = "amlogic,meson-gxbb-sm"; + + pwrc: power-controller { + compatible = "amlogic,a5-pwrc"; + #power-domain-cells = <1>; + }; + }; };