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: 700222 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6ED66EB64DD for ; Fri, 7 Jul 2023 00:38:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbjGGAiA (ORCPT ); Thu, 6 Jul 2023 20:38:00 -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] Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Reviewed-by: Neil Armstrong Acked-by: Rob Herring