Message ID | 20230707003710.2667989-1-xianwei.zhao@amlogic.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2942701vqx; Thu, 6 Jul 2023 18:16:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlHoH1YPeVuLaqgAbVKHspaMqlXLzcsMULCNkViZUjb4tsl7KiXe/w16nDcag9ISMCjHOuZS X-Received: by 2002:a17:90b:283:b0:263:45c3:b17c with SMTP id az3-20020a17090b028300b0026345c3b17cmr3230475pjb.14.1688692569955; Thu, 06 Jul 2023 18:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688692569; cv=none; d=google.com; s=arc-20160816; b=LM/Um3DQhU2eCcX71H9VSQBAv3YRTObFk2rzuDpS1T0g2p4kVMqYg5jAs+14jtIs02 auzub8sPDAHpKuziid1AHdhMW+MTU/qGVJSwYtmUYy5HEkkH5lWMSB7k0+Jlv+KUCa3Y Ba77HYQ/E+Rl3H6Mu5aqDdIpFdYj8ZCfsIYjO/4f/yhuMNCoDFWg/uuB5htfHcSW4xSU 3fxskbHtmoa25cy1Hw7lwk92fsowjYJTFQhyp/QSMGsttp96zmhynuBOL+wfts3ckuHU 8E6xVxiCfR6hlfoCtbRS0yySb/dQCB2FoeoX63xluLSGOI6g1pe0Vzz86NY3+MuTjh+6 F/UQ== 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 :message-id:date:subject:cc:to:from; bh=VxEx/8eTds1+ES/q6doKgwXngvmulp/Kfm4m0AmRadM=; fh=WzRG3WH3uvRbKqWQdKb+SWZNQhoyocMFA6Hw0LDjFNQ=; b=eqTGfZs9TNhXUumz2eBO2fMF8YlCnlYiV/p13fBi+/fHhtqNxRWKKtzBnX25yhxazU tLYJNqjJqAnIHhU2F2xRM43c2wmYc1d3AjPVWNnY7p59ObZZCLkAI84n1NQ2fs/YtdYV /0QLv6/TgWKvuf2fiwZSzYOzgZlS3FQzr/HWFzVm02DlhUrAjYq3LOoxSLyC2OoxMn62 1YOdWI8DADmhRJMrro8EaEbyokRhISGzVUxCN/9LWekLQTFp2oWKZFrC24sYmmmry2m7 0V45v5inZf2EaGD+8E1UIxU5KnkPeputUJf8YNFfN+ounAyz/vEaOdtEzoK7KruN3kTC SolQ== 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 y17-20020a17090a8b1100b002634977e6e5si814362pjn.142.2023.07.06.18.15.56; Thu, 06 Jul 2023 18:16:09 -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 S229880AbjGGAiC (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 20:38:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbjGGAh7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 20:37:59 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC41619A7; Thu, 6 Jul 2023 17:37:14 -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; Fri, 7 Jul 2023 08:37:04 +0800 From: Xianwei Zhao <xianwei.zhao@amlogic.com> To: <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-amlogic@lists.infradead.org>, <linux-kernel@vger.kernel.org> CC: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, "Neil Armstrong" <neil.armstrong@linaro.org>, Kevin Hilman <khilman@baylibre.com>, Xianwei Zhao <xianwei.zhao@amlogic.com> Subject: [PATCH V2 0/4] Power: C3: add power domain driver Date: Fri, 7 Jul 2023 08:37:06 +0800 Message-ID: <20230707003710.2667989-1-xianwei.zhao@amlogic.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770722499896018452?= X-GMAIL-MSGID: =?utf-8?q?1770722499896018452?= |
Series | Power: C3: add power domain driver | |
Message
Xianwei Zhao
July 7, 2023, 12:37 a.m. UTC
First patch is that Use 'name' instead of 'index' as criterion. The variate 'index' could be equal to zero in some SoCs. Such as C3 SoC, PWRC_C3_NNA_ID be defined zero. Other patchs adds power controller driver support for Amlogic C3 SoC. The power domains registers can be accessed in the secure world only. Changes Since v1: -Add a new patch for change that use 'name' instead of 'index'. -Mofiy filename matching compatibles -Delete unnecessary blank line. -Fixed some formatting. -Delete status,use "okay" status by default. Xianwei Zhao (4): soc: amlogic: use name instead of index as criterion dt-bindings: power: add Amlogic C3 power domains soc: c3: Add support for power domains controller arm64: dts: add support for C3 power domain controller .../power/amlogic,meson-sec-pwrc.yaml | 3 +- arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 9 ++++++ drivers/soc/amlogic/meson-secure-pwrc.c | 28 ++++++++++++++++++- include/dt-bindings/power/amlogic,c3-pwrc.h | 25 +++++++++++++++++ 4 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 include/dt-bindings/power/amlogic,c3-pwrc.h base-commit: 057889cb4244096ea5abcbe76ffd4d311c3078fe
Comments
Hi, On Fri, 07 Jul 2023 08:37:06 +0800, Xianwei Zhao wrote: > First patch is that Use 'name' instead of 'index' as criterion. > The variate 'index' could be equal to zero in some SoCs. Such as C3 SoC, > PWRC_C3_NNA_ID be defined zero. > > Other patchs adds power controller driver support for Amlogic C3 SoC. > The power domains registers can be accessed in the secure world only. > > [...] Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.6/arm64-dt) [4/4] arm64: dts: add support for C3 power domain controller https://git.kernel.org/amlogic/c/22a9b2a488c3f0937fe0c57c96176cbea0953c20 These changes has been applied on the intermediate git tree [1]. The v6.6/arm64-dt branch will then be sent via a formal Pull Request to the Linux SoC maintainers for inclusion in their intermediate git branches in order to be sent to Linus during the next merge window, or sooner if it's a set of fixes. In the cases of fixes, those will be merged in the current release candidate kernel and as soon they appear on the Linux master branch they will be backported to the previous Stable and Long-Stable kernels [2]. The intermediate git branches are merged daily in the linux-next tree [3], people are encouraged testing these pre-release kernels and report issues on the relevant mailing-lists. If problems are discovered on those changes, please submit a signed-off-by revert patch followed by a corrective changeset. [1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git [3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Hi, On Fri, 07 Jul 2023 08:37:06 +0800, Xianwei Zhao wrote: > First patch is that Use 'name' instead of 'index' as criterion. > The variate 'index' could be equal to zero in some SoCs. Such as C3 SoC, > PWRC_C3_NNA_ID be defined zero. > > Other patchs adds power controller driver support for Amlogic C3 SoC. > The power domains registers can be accessed in the secure world only. > > [...] Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.6/drivers-genpd) [1/4] soc: amlogic: use name instead of index as criterion https://git.kernel.org/amlogic/c/fadf18180022743ff74b1f6ca4f3cff462ddaddb [2/4] dt-bindings: power: add Amlogic C3 power domains https://git.kernel.org/amlogic/c/83b03d62939c46c118a8d722f07ae03a87967b00 [3/4] soc: c3: Add support for power domains controller https://git.kernel.org/amlogic/c/77e2f4e3cbd5cde442d05a7bdb6cd01565bead6d These changes has been applied on the intermediate git tree [1]. The v6.6/drivers-genpd branch will then be sent via a formal Pull Request to the Linux SoC maintainers for inclusion in their intermediate git branches in order to be sent to Linus during the next merge window, or sooner if it's a set of fixes. In the cases of fixes, those will be merged in the current release candidate kernel and as soon they appear on the Linux master branch they will be backported to the previous Stable and Long-Stable kernels [2]. The intermediate git branches are merged daily in the linux-next tree [3], people are encouraged testing these pre-release kernels and report issues on the relevant mailing-lists. If problems are discovered on those changes, please submit a signed-off-by revert patch followed by a corrective changeset. [1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git [3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git