From patchwork Fri Jul 7 00:37:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao X-Patchwork-Id: 11716 Return-Path: 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 + 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 ); 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 To: , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Neil Armstrong" , Kevin Hilman , Xianwei Zhao 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 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?1770722499896018452?= X-GMAIL-MSGID: =?utf-8?q?1770722499896018452?= 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