From patchwork Mon Jul 3 09:31:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao X-Patchwork-Id: 115252 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp396835vqx; Mon, 3 Jul 2023 02:42:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5fbuQAX4F1L8+jIyI4dfTj3SwsuC/rwGcnK36YQslPlM4Gq37F8iUm08FsPTJmMQxog72g X-Received: by 2002:a05:6a20:7da6:b0:10b:e7d2:9066 with SMTP id v38-20020a056a207da600b0010be7d29066mr12881985pzj.2.1688377326810; Mon, 03 Jul 2023 02:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688377326; cv=none; d=google.com; s=arc-20160816; b=PMTOwoJL7QUtD/2NF1d12WjJygXNk/pNl4nqK6+GWlvxqvjp5T4HzPtBsW7BqZ18ug lA8y30saihuMaKWVPDk4R739SS84RnI2KhgmrhToJE/LYG2aNHYDqi903Ioq/9FHK1Bj y+X0YtEMOB/ZILUIQLjzETrBwJIxvfvwE/dRnGGoAh935TUlECpFRxnSP6dVensFE4nY YtRsqNkmuzEPTN2yKy8sMTgFMUOBAhzQFS2SqUFXWoLChF43FVqE8EYV5SLlzMiLdmfe j6LN7TcgXqxJJQOdqpoKzeVaxaXP/LFc9gAgapxz6WyXF48I2XXvr2lv7cxFiY/NWA5n MePQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=06bFPudQup294OalkC1Ai87PNlPT8zAiBl1p0VwW5Z0=; fh=OGsX7d96NIKgN7a/X5aL1VFkJp7BmfP/4DIlJu3fPig=; b=IvETR8sh/NjCKTZ2sqBoybG3yXtuGTYE1pta6aA5N3cClDTXbH/gjX8BxIdcduswOv zXPQVz9DovduemA/GImmzT3Ex3k31T63sMzmkRtqdeBh+PA5Se7HP0G1YrKiq23fCgsZ YoqEN7pkTFL7VhUKWxIj8/0koZIpbToWNzbyW+ZvEK4JI0sUJnThL+OZ+oiCRB2B1OpP i+CAArQsoQ/LYehVXdzosW4d0WmYqroTFJg+GY/iBkhKi44JK1rmneT/u1vBL1MU3u/C n941fyQlwXNQUAcPpdfmUQXgAQimc+k7OEg9fWSULBTfEsT9Kzc504YLaTjRuZkfM5WY U8/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb6-20020a170903258600b001b8080a9f95si14132645plb.335.2023.07.03.02.41.53; Mon, 03 Jul 2023 02:42:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230051AbjGCJcI (ORCPT + 99 others); Mon, 3 Jul 2023 05:32:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230088AbjGCJcG (ORCPT ); Mon, 3 Jul 2023 05:32:06 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89DB5E59; Mon, 3 Jul 2023 02:32:02 -0700 (PDT) Received: from droid01-cd.amlogic.com (10.98.11.200) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Mon, 3 Jul 2023 17:32:00 +0800 From: =Xianwei Zhao To: , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Neil Armstrong" , Kevin Hilman , Xianwei Zhao Subject: [PATCH 1/3] dt-bindings: power: add Amlogic C3 power domains Date: Mon, 3 Jul 2023 17:31:40 +0800 Message-ID: <20230703093142.2028500-2-xianwei.zhao@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230703093142.2028500-1-xianwei.zhao@amlogic.com> References: <20230703093142.2028500-1-xianwei.zhao@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.98.11.200] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770391944135847186?= X-GMAIL-MSGID: =?utf-8?q?1770391944135847186?= From: Xianwei Zhao Add devicetree binding document and related header file for Amlogic C3 secure power domains. Signed-off-by: Xianwei Zhao --- .../power/amlogic,meson-sec-pwrc.yaml | 3 ++- include/dt-bindings/power/amlogic-c3-power.h | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 include/dt-bindings/power/amlogic-c3-power.h base-commit: 057889cb4244096ea5abcbe76ffd4d311c3078fe diff --git a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml index eab21bb2050a..d80bbedfe3aa 100644 --- a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml +++ b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml @@ -12,7 +12,7 @@ maintainers: - Jianxin Pan description: |+ - Secure Power Domains used in Meson A1/C1/S4 SoCs, and should be the child node + Secure Power Domains used in Meson A1/C1/S4 & C3 SoCs, and should be the child node of secure-monitor. properties: @@ -20,6 +20,7 @@ properties: enum: - amlogic,meson-a1-pwrc - amlogic,meson-s4-pwrc + - amlogic,c3-pwrc "#power-domain-cells": const: 1 diff --git a/include/dt-bindings/power/amlogic-c3-power.h b/include/dt-bindings/power/amlogic-c3-power.h new file mode 100644 index 000000000000..3403e7c0b49d --- /dev/null +++ b/include/dt-bindings/power/amlogic-c3-power.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: (GPL-2.0+ or MIT) */ +/* + * Copyright (c) 2023 Amlogic, Inc. + * Author: hongyu chen1 + */ +#ifndef _DT_BINDINGS_AMLOGIC_C3_POWER_H +#define _DT_BINDINGS_AMLOGIC_C3_POWER_H + +#define PWRC_C3_NNA_ID 0 +#define PWRC_C3_AUDIO_ID 1 +#define PWRC_C3_RESV_SEC_ID 2 +#define PWRC_C3_SDIOA_ID 3 +#define PWRC_C3_EMMC_ID 4 +#define PWRC_C3_USB_COMB_ID 5 +#define PWRC_C3_SDCARD_ID 6 +#define PWRC_C3_ETH_ID 7 +#define PWRC_C3_RESV0_ID 8 +#define PWRC_C3_GE2D_ID 9 +#define PWRC_C3_CVE_ID 10 +#define PWRC_C3_GDC_WRAP_ID 11 +#define PWRC_C3_ISP_TOP_ID 12 +#define PWRC_C3_MIPI_ISP_WRAP_ID 13 +#define PWRC_C3_VCODEC_ID 14 + +#endif + From patchwork Mon Jul 3 09:31:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao X-Patchwork-Id: 115253 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp398625vqx; Mon, 3 Jul 2023 02:46:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5czhIohfKyXBqb0AN3y4WNW67EvW+K8BguZ1b9UrVNKwv7JfGyXEgD8lGG5J97hs224mlV X-Received: by 2002:a05:6602:4995:b0:783:617c:a8f0 with SMTP id eg21-20020a056602499500b00783617ca8f0mr10594498iob.2.1688377581886; Mon, 03 Jul 2023 02:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688377581; cv=none; d=google.com; s=arc-20160816; b=w4nRJXZq/u8prwLNeov5cr41fS/jecDIgx0lDe6h+N3kONBH3nAPaoWo7RIjtyQ2Dz yVW/OGWu+qPZ6YaO3gS6Jbmh6A5o/TUAO8SJsRQ+xKvdKFROliTEfwXrYpYIIwXwTcSb VlO1uSTKJQdIClpKnxa9+YKUqMsp0hmutc+eor7PZCKmtky76Tf5sgWXiQgLfu+NC5+e jaaBc8Eyuy/IugDle16tlwrBxS1xqhFa4Nh0L6Z9OLyCeInNDorNaApIBJgtAYrIv+xP WzbdPKNZbwzD1ZMyw4jM6avhLyBZAT7RqSz/YsHIBjqAnHpC1CdaD/hTB6dpvMEW+nhW E5dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UU+KjGKUgT1oXBM3e7PRhKhCrDFO/M3uUjVJmooATE4=; fh=OGsX7d96NIKgN7a/X5aL1VFkJp7BmfP/4DIlJu3fPig=; b=HSNef7bVB0FtQ4I195Bq2VM1EwoSP2NQpmGDg04veZ9oEYG88YMc/8AWHEZrRZe0V9 nmJcxIj11q2zCGSDDF0G419wSkcPy7HscAuRgQXIWuQd2pj7FgA4Ug0sS4eBPewADXOD HDtZEXgL9QncCFE4fi7rkbsAcUjInTUF7GVIKwtYhD097aFp2uNc+gOVAeOslqjlqkDX qwyxRw8IwCxW0t7E2Vzz6ZuqME3O6fprkhPapaenhDh+iml/sYG1QkyltEkasSUb9NVM uAYCjYwghgovYCTRlSAN6P9hkwF+hT1pQpR2PW6KbV4g/Dgt91mdd2oBlhVblY+mn4Hb Priw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y190-20020a638ac7000000b0055b89e6b24fsi3638972pgd.373.2023.07.03.02.46.08; Mon, 03 Jul 2023 02:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbjGCJdC (ORCPT + 99 others); Mon, 3 Jul 2023 05:33:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230323AbjGCJcz (ORCPT ); Mon, 3 Jul 2023 05:32:55 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B69518D; Mon, 3 Jul 2023 02:32:06 -0700 (PDT) Received: from droid01-cd.amlogic.com (10.98.11.200) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Mon, 3 Jul 2023 17:32:01 +0800 From: =Xianwei Zhao To: , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Neil Armstrong" , Kevin Hilman , Xianwei Zhao Subject: [PATCH 2/3] soc: c3: Add support for power domains controller Date: Mon, 3 Jul 2023 17:31:41 +0800 Message-ID: <20230703093142.2028500-3-xianwei.zhao@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230703093142.2028500-1-xianwei.zhao@amlogic.com> References: <20230703093142.2028500-1-xianwei.zhao@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.98.11.200] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770392211503651875?= X-GMAIL-MSGID: =?utf-8?q?1770392211503651875?= From: Xianwei Zhao Add support for C3 Power controller. C3 power control registers are in secure domain, and should be accessed by SMC. Signed-off-by: Xianwei Zhao --- drivers/soc/amlogic/meson-secure-pwrc.c | 28 ++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/drivers/soc/amlogic/meson-secure-pwrc.c b/drivers/soc/amlogic/meson-secure-pwrc.c index 25b4b71df9b8..39ccc8f2e630 100644 --- a/drivers/soc/amlogic/meson-secure-pwrc.c +++ b/drivers/soc/amlogic/meson-secure-pwrc.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -132,6 +133,22 @@ static struct meson_secure_pwrc_domain_desc s4_pwrc_domains[] = { SEC_PD(S4_AUDIO, 0), }; +static struct meson_secure_pwrc_domain_desc c3_pwrc_domains[] = { + SEC_PD(C3_NNA, 0), + SEC_PD(C3_AUDIO, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_SDIOA, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_EMMC, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_USB_COMB, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_SDCARD, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_ETH, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_GE2D, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_CVE, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_GDC_WRAP, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_ISP_TOP, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_MIPI_ISP_WRAP, GENPD_FLAG_ALWAYS_ON), + SEC_PD(C3_VCODEC, 0), +}; + static int meson_secure_pwrc_probe(struct platform_device *pdev) { int i; @@ -179,7 +196,7 @@ static int meson_secure_pwrc_probe(struct platform_device *pdev) for (i = 0 ; i < match->count ; ++i) { struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; - if (!match->domains[i].index) + if (!match->domains[i].name) continue; dom->pwrc = pwrc; @@ -207,6 +224,11 @@ static struct meson_secure_pwrc_domain_data meson_secure_s4_pwrc_data = { .count = ARRAY_SIZE(s4_pwrc_domains), }; +static struct meson_secure_pwrc_domain_data amlogic_secure_c3_pwrc_data = { + .domains = c3_pwrc_domains, + .count = ARRAY_SIZE(c3_pwrc_domains), +}; + static const struct of_device_id meson_secure_pwrc_match_table[] = { { .compatible = "amlogic,meson-a1-pwrc", @@ -216,6 +238,10 @@ static const struct of_device_id meson_secure_pwrc_match_table[] = { .compatible = "amlogic,meson-s4-pwrc", .data = &meson_secure_s4_pwrc_data, }, + { + .compatible = "amlogic,c3-pwrc", + .data = &amlogic_secure_c3_pwrc_data, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, meson_secure_pwrc_match_table); From patchwork Mon Jul 3 09:31:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao X-Patchwork-Id: 115276 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp405897vqx; Mon, 3 Jul 2023 03:02:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lwJpbpwv93mOoZcuEJlnMLwsdqmZo9T5gDQw0ZDPoCdtD8aQK04MV6PNizA4YKw51XQZ/ X-Received: by 2002:a05:6a20:1456:b0:111:77cf:96dd with SMTP id a22-20020a056a20145600b0011177cf96ddmr15492526pzi.5.1688378574862; Mon, 03 Jul 2023 03:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688378574; cv=none; d=google.com; s=arc-20160816; b=QgRDg17oGRBYHYRKuqfjNFYJltOHprOTHx669xlW1opwkauVmd5ZH0IafI/GrLWU9/ 0eeSz81Zwcj+xMaomftWgBWM7WB6mKCeWoXcx9jxixJ0VeR2QNK6gfocMSU1yjwmB/gP Lw9eA3RmhK+ZgBXfylH+P60RewAXNir1DMC/QjZ/DKs5pcF+ZCecNpWMp7HClg0KQB6S fL4mUxB/h32W3+affR00+SAxcHCWzhWLfKqy5RKhuzsvKhu0skIitt1QJzbS0+gXJnVS ekqCjcc6cL66JSUveeP96V+juQp4rsRN0LvbzxVN2R1bnZJolx4lOtC24STkwA9Aiunw zrrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=FQUxwG+KLeKYDrrxAgB8ohZ7PdrQUUxco7s7zrIlozA=; fh=OGsX7d96NIKgN7a/X5aL1VFkJp7BmfP/4DIlJu3fPig=; b=v8IMjihJKfLoPqRlHRpwMqzEv/dY+rxxvguD9E1b5n69p4gGTOL98GURj2nX4BE3BH W2XvpFblpVr/ylDPBaUIx5uk0JBCCQ3nunTJ2RQGZlZDQjTs11CTkS1iuDVaSDqh1i5U tAjFV2hAc/fPsZamrTgnXybnjiTZKU7MR7OasTeeUuX+x0gDL6vzkQAR3oxCF/6h8AHK 3gAtBc9TTTZNV/i8h90cuijAIiOW0Pxegtaqw5a80lpo5mI/MTjZEQc7X7sOIeouaEEM hmDp5zdjsF1s+4UqyxArjrjACS6pPYOIjdrwRF4EOHg47QfZQ84oWEYOvY6DYOToss8L IwDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8-20020a170902e74800b001b849afa713si9788622plf.4.2023.07.03.03.02.40; Mon, 03 Jul 2023 03:02:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230357AbjGCJdA (ORCPT + 99 others); Mon, 3 Jul 2023 05:33:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230507AbjGCJc6 (ORCPT ); Mon, 3 Jul 2023 05:32:58 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66400E54; Mon, 3 Jul 2023 02:32:09 -0700 (PDT) Received: from droid01-cd.amlogic.com (10.98.11.200) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Mon, 3 Jul 2023 17:32:02 +0800 From: =Xianwei Zhao To: , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Neil Armstrong" , Kevin Hilman , Xianwei Zhao Subject: [PATCH 3/3] arm64: dts: add support for C3 power domain controller Date: Mon, 3 Jul 2023 17:31:42 +0800 Message-ID: <20230703093142.2028500-4-xianwei.zhao@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230703093142.2028500-1-xianwei.zhao@amlogic.com> References: <20230703093142.2028500-1-xianwei.zhao@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.98.11.200] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770393252429620836?= X-GMAIL-MSGID: =?utf-8?q?1770393252429620836?= From: Xianwei Zhao Enable power domain controller for Amlogic C3 SoC Signed-off-by: Xianwei Zhao --- arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi index 60ad4f3eef9d..826c51b1aff6 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi @@ -47,6 +47,16 @@ xtal: xtal-clk { #clock-cells = <0>; }; + sm: secure-monitor { + compatible = "amlogic,meson-gxbb-sm"; + + pwrc: power-controller { + compatible = "amlogic,c3-pwrc"; + #power-domain-cells = <1>; + status = "okay"; + }; + }; + soc { compatible = "simple-bus"; #address-cells = <2>;