Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31214181rwd; Thu, 6 Jul 2023 18:02:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlEEX2cBekwlDU7/JqvyBzrkuPRk0PhNAcc344j7L1gKtsqT08IpmwyZJbG5FA6IhAiI/J7Y X-Received: by 2002:a0d:c101:0:b0:56d:4f2e:6f83 with SMTP id c1-20020a0dc101000000b0056d4f2e6f83mr3733755ywd.4.1688691746945; Thu, 06 Jul 2023 18:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688691746; cv=none; d=google.com; s=arc-20160816; b=Zvb87Id/o+t++5L1+Jjavxb6cwe+VJboFNl6hFPo5xqP1rtMO4ljJZAnzCN0eWPBkK /ABSJ/2iKIjWn5bJlkINo99pEJi8xJxixWfaGIXI5+32oH08wFCcTm8ZCAnYtoc3c+0Y hwX8L1y4PThDvWHHY4BBJrkquxnb73U7QbgjKhOgZL20LtCOiv0cRAmTYQ89Fojx/i+r JAba3oFsWtUGFQyjkGn/uErWihWdV11eaJN4mUzkx1qPsRA7SYz38MXOuL7UET2uq8/D MeBXmFkP46ZEQBhJ4SwjF/JYZTbDXJWxIPZQLVXBFDaiXdLLlPuPPbc1S4crB4hv5XaO liGg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a63dc15000000b0055b66cf8d77si2568233pgg.412.2023.07.06.18.02.10; Thu, 06 Jul 2023 18:02:26 -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 S230195AbjGGAiC (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 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.37.1