From patchwork Wed May 29 03:10:33 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: 13677716 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 8EDEDC25B7C for ; Wed, 29 May 2024 03:10:56 +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=R1YqggsyykNp4cRUwC5ajC+NIIWzws1dEZUxMvq0QhU=; b=X7llfj/1LY4un5 OgPv8jAv2xLgfdXppVIJWPpv8Q7UVJtReYOxcAT3zFB4lH7YHYbVamMCocNAw2X+jIoIEMOHJbAW7 hEpyF8wlRVbdwp/gOwWzHjogMRWG6A8gKKf+AT0QP96yBKu92PDuCQyQF0H1G7F0gWcoGFGPmROif r6U2UctVidwvaTQsQsmoekoGwoTcshvC5K8hjP3/oflzLcIk5s3xuV+nuyb/WVmLkhV/Qtuemo03a ZeD44uIZLHMs4ApUlWOFKsa3pD2g0U9nwqkjDnw11xkJ3OUm7OXZIr1I8wzlZ1yabrS5Md62t473k Tl3gOegx+iOFhyap6pdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC9iF-00000002fDv-2kX9; Wed, 29 May 2024 03:10:51 +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 1sC9i6-00000002f9k-3Suc; Wed, 29 May 2024 03:10:44 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id B4410CE168E; Wed, 29 May 2024 03:10:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 8AB44C32782; Wed, 29 May 2024 03:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716952236; bh=R2PBY/msQ742b9lRMEFHyiEIA4TM8B0XBOvPygj5t68=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=C0LaGsDP9HUdITKn6KszeovQbqAGdxWVOX7Xf2Qd6rxxhFaHMUm6RpOOF9tiUMwWc 6FqNAWaJJOqWZmkKL52lLVZnPvwFLXQDch1zFJlLUhH7F67gUmJrQxT5efxd3FdXJ5 PUzzPFrTM77nsNoZ3tlGGzjAIZmKBUEeFjWQK9PLyOdRQnKRP5MGfh44d06GIvJ3gR gq5bhshp1V9neWfSuD538L3NOOJm/HzihYK1sx/fmoKIyw51AIdPj6vEQDFfkdkpKN 6Pk3TxOSe1PQJuKaWM0tfbABdSwsE1vrVfPYrJcgepYfr2JjOfcrfmy3Ufku3F8tO9 0bcdAATHbRE1g== 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 70C2DC27C44; Wed, 29 May 2024 03:10:36 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Wed, 29 May 2024 11:10:33 +0800 Subject: [PATCH v2 1/3] dt-bindings: power: add Amlogic A4 power domains MIME-Version: 1.0 Message-Id: <20240529-a4_secpowerdomain-v2-1-47502fc0eaf3@amlogic.com> References: <20240529-a4_secpowerdomain-v2-0-47502fc0eaf3@amlogic.com> In-Reply-To: <20240529-a4_secpowerdomain-v2-0-47502fc0eaf3@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 , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716952234; l=1814; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=nfoMiDo//9rMUrKLRoJnW/ImrBs0OKdTcKzaSwdwK/A=; b=EtJ0yNZ3A1Spomz+78Y0P6EEhnhU5/ot/KOLV8zTv/nUvVE9+/visaaV8Uw1+3LuqMh4xMzoX zh4d9vRrKuaCkc3UUDj6u8OH7gQlkEjf4Nkzc9l1I0F36kMD4rpnqBg 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_201043_326400_64D0672A X-CRM114-Status: GOOD ( 10.67 ) 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. Acked-by: Krzysztof Kozlowski Signed-off-by: Xianwei Zhao --- .../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 Wed May 29 03:10:34 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: 13677717 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 BFE34C25B78 for ; Wed, 29 May 2024 03:10:58 +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=d24DAkKU6hJUxb9WcKstwYUKSKmyP1H63j0QSUQxRCI=; b=Pub3O+jaxZNuiq Zj4Pj4zdDOZ2Z5jtdG/hK2/wW4FFef7ynhv/Sknb2KyNZYHg3mpxD7dVuFkt1yqS91EIBOHkc59FD zHqZNebl0HFN/nIvPU2lpwppIWRjTaNXVWfYuBUnQ2JtwIQvsPaL+7q01MQfhbL0A6dZseEenL5eo s3/8xAVTGA04q8ECoRk6bgTxX2JtidswNdk/Gi/zlDaP/nZRz5J0XM2o/Tni4GFn/Q+X1rMfLPiL4 o8rGwuv4MovA5L5+69KuIKX/d5ipjLe0linychGoXld0T38Q6UBEf0AKN6CMcLzejMiDcheIwBnLr OFFPZ4442rR+EGxE6BcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC9iH-00000002fFV-1jz8; Wed, 29 May 2024 03:10:53 +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 1sC9i6-00000002f9m-3WpF; Wed, 29 May 2024 03:10:45 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id A591FCE1691; Wed, 29 May 2024 03:10:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 96362C4AF07; Wed, 29 May 2024 03:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716952236; bh=uo0PCDDoky5dhGl+bpeCvO6ft78yeRE4RUqFKCEKRSg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=EBfjnfyREu6VyCSQTdq3JiOWwwrKtS2oIB7s9ggRQWvPBJEpGDP9j+AhRwBX44OU0 WVG/EbuYJdNo5lbE7/V8lBJXcBhu/GbMP+eMQF2niaGt0yEAPv/sfvGyfAY3Bc2vIp O4z9stj06m2YxVW9S+X2xsQ/tJObCt4w08ZWlTeKKtcuHilHxs/pNecwwxc9Atsgjd 0q0Ndl5lKyyskMEybnhl3hv6EIXa3qv0WDIuMJJF/XXulIWUQAq8/m1EKcwaWfZrEH RO+yxyRIWdSGhosrUTlCY8RnlmivNLZt1UD86/vrHW4Djh2DTbZpnQsEwIM9MiiFJC Zu4ou05JPtW7w== 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 84DCFC27C4F; Wed, 29 May 2024 03:10:36 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Wed, 29 May 2024 11:10:34 +0800 Subject: [PATCH v2 2/3] pmdomain: amlogic: Add support for A4 power domains controller MIME-Version: 1.0 Message-Id: <20240529-a4_secpowerdomain-v2-2-47502fc0eaf3@amlogic.com> References: <20240529-a4_secpowerdomain-v2-0-47502fc0eaf3@amlogic.com> In-Reply-To: <20240529-a4_secpowerdomain-v2-0-47502fc0eaf3@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=1716952234; l=2626; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=xHQwoF0xxtI+C2XFx/t3frUsHcsxAgorsw6ZKo8der0=; b=mLQ4AfvdscxxLVeNIfgZB2VnyugTUuQbZSysS6LAb0zTrB6XFaWMZjTWc1AJaCsGV4ZfjMElU 2BkqNjElNNQAPlxrDtG6tIaVTi8PEHVq+JF/CTJ9r4FZFrkaQSt00YX 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_201043_335263_95A5B873 X-CRM114-Status: GOOD ( 12.22 ) 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. Reviewed-by: Neil Armstrong Signed-off-by: Xianwei Zhao --- 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 Wed May 29 03:10:35 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: 13677714 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 22AAFC25B78 for ; Wed, 29 May 2024 03:10:51 +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=IWVyKCLAgJtL0gSFq8EAGlxNcj0O0thIorWVqcWxq0U=; b=Vgjpe/Tz2VBZpz C2ewp/+7ANLZcgCCmB7VGKRTcn9z0mZmAdQ2fYT0eFbxDgFQY/Hv4K4yCZB/5AS0vnJRyplgdVGz3 l87Cwnj/Nydi+fHkezs5SLVej0AtgHTsKFoKMOc+XkX8aoGIIsIb+PyIXJ/h/p7FjYPRRF3cDlqO+ AYCXv/5cvCFUHpjCoLWVZpv/0DarxMJ9Qs3Cu0r+U6tcEquLRj0B3So5CrrrFqX+wEt/+/19WnDte gTZbgRhRaKqIv58L6Cizgp7A+wWcUZwJWDdd/gwBycGZ6cihM62MFdE1PnkczQA+YkGkCuKPlri8L UmJdxO7OMT61RykaR8TQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC9i6-00000002fAA-1WFT; Wed, 29 May 2024 03:10:42 +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 1sC9i4-00000002f9j-1b0B; Wed, 29 May 2024 03:10:41 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 3C1DD62349; Wed, 29 May 2024 03:10:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9FB51C4AF0A; Wed, 29 May 2024 03:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716952236; bh=SCO+SFRXiKHD6gPKSKfr2t0rbWu65yFZpXELTeORBfQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=c791E4mSbk/7QrN1IGOK2J6AHbaKGmGfJdV/kBtBUqrVFeEsC/zW4uqvBw828CrMx GsZRG6eFho56ISgMOCTe97uivzEle6dfboIs8t4qgnukbseUUzmZDFQjFsNx4vHzRb GmKpJLMaJAb0hURj6JbI3xGIPyaWv/1IRJSL5aQWilAZGA31ivQDvMQG1x0Db4JnJu FbBiT5xhIKUTG7S/PtbQXYKA/WnioEWgdiXSdQmc81fK4iwKtqWILFII058Q0TpJ5v hHVR/ekj47Hp3BQloU7XRjm7rKhuBfvcDVXs4H2zT6u3zIPG0hTzEZ2nEaQ52YX9pB r36Pn5DAoyz5g== 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 92F6BC25B7C; Wed, 29 May 2024 03:10:36 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Wed, 29 May 2024 11:10:35 +0800 Subject: [PATCH v2 3/3] arm64: dts: amlogic: a4: add power domain controller node MIME-Version: 1.0 Message-Id: <20240529-a4_secpowerdomain-v2-3-47502fc0eaf3@amlogic.com> References: <20240529-a4_secpowerdomain-v2-0-47502fc0eaf3@amlogic.com> In-Reply-To: <20240529-a4_secpowerdomain-v2-0-47502fc0eaf3@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=1716952234; l=894; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=AmiofDYC3IFCMwy7sO4GQjRfJjCUwOi49fG3NzsnzK4=; b=3Bx9xAD4eRBo4zTKnXndZ9mni8Z2V6Ohu2ryGjhp0WUKOdgr0sd2zyuR2P5JOPQ3cObwW2hyM smZ8i+VozEdBdtMFmxSbzNCtICyEjW/tjoIEH2qW5BiqBW6Y2XLZCeg 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_201040_504374_1FE2106B X-CRM114-Status: UNSURE ( 9.48 ) 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 Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi index 73ca1d7eed81..de10e7aebf21 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi @@ -4,6 +4,7 @@ */ #include "amlogic-a4-common.dtsi" +#include / { cpus { #address-cells = <2>; @@ -37,4 +38,13 @@ cpu3: cpu@3 { enable-method = "psci"; }; }; + + sm: secure-monitor { + compatible = "amlogic,meson-gxbb-sm"; + + pwrc: power-controller { + compatible = "amlogic,a4-pwrc"; + #power-domain-cells = <1>; + }; + }; };