From patchwork Tue Aug 29 02:03:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao X-Patchwork-Id: 13368515 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 28A3BC71153 for ; Tue, 29 Aug 2023 02:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GRMAr3tGXF4jVPzivHIL8FzR1GF5Moxyo7yO2IL8lcc=; b=u5cV6n9xCfLNyy Vlk4kcKDSIK/g/cXTqhw2ohe6iSPxDjtNEnyeOwgFnsPw/zEiFP6dP6FkerfrUv60GYTpmjZPrVpo AsfhBxluw7+EHAhtwvJkVE8q2Fy9Yzc/rVt0OCtv0v1J5wnID8VlHVfilXbKnvRjd3hHQ34a7W2V2 1Tvx4E2BLLHFTIpHYxfsAFOuif8hVOmLC1v/YngsK0bzQPaKJijRWAwWHshY8oorT1TrgadB8p0AB Pd2xBeK/FUfIwSa3q11MFB8o9Hee+cE+E1QztZQuRzQXIJXBSLTsmQddKqtJgmmDY2gFrmgo4JGHG KnpKanZ4drMHx3J4/dpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qao5f-00AaT6-2P; Tue, 29 Aug 2023 02:04:23 +0000 Received: from mail-sh.amlogic.com ([58.32.228.43]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qao5d-00AaSh-2i; Tue, 29 Aug 2023 02:04:23 +0000 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; Tue, 29 Aug 2023 10:04:07 +0800 From: Xianwei Zhao To: , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Neil Armstrong" , Kevin Hilman , Xianwei Zhao Subject: [PATCH V3 0/6] Power: T7: add power domain driver Date: Tue, 29 Aug 2023 10:03:58 +0800 Message-ID: <20230829020404.4058677-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230828_190421_901223_AD67F19C X-CRM114-Status: UNSURE ( 7.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org First patch is that remove C3 some power domain ALWAYS_ON property. Second patch is that add driver to support power parent node. Third patch is that turn on power if initial power domain with "AWAY_ON" property state is off. Other patchs adds power controller driver support for Amlogic T7 SoC. Changes Since v2: -Modify subject. -Define PWRC_NO_PARENT UINT_MAX -Remove modification that transform is_off into 1 or 0 using !! Changes Since v1: -Fix license from "GPL-2.0-only OR .*" to "GPL-2.0-only OR MIT". -Modify T7_NIC flag "ALWAYS_ON" xianwei.zhao (6): genpd: amlogic: modify some power domains property genpd: amlogic: add driver to support power parent node genpd: amlogic: init power domain state dt-bindings: power: add Amlogic T7 power domains genpd: amlogic: Add support for T7 power domains controller arm64: dts: amlogic: t7: add power domain controller node .../power/amlogic,meson-sec-pwrc.yaml | 3 +- arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 6 + drivers/genpd/amlogic/meson-secure-pwrc.c | 127 ++++++++++++++++-- include/dt-bindings/power/amlogic,t7-pwrc.h | 63 +++++++++ 4 files changed, 185 insertions(+), 14 deletions(-) create mode 100644 include/dt-bindings/power/amlogic,t7-pwrc.h base-commit: 413f5c02929bb33042bbc4ee233166550a5fca70