From patchwork Thu Aug 24 05:59:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao X-Patchwork-Id: 13363581 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 EE41AC3DA6F for ; Thu, 24 Aug 2023 06:00:25 +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=aF5BVGKxJfc6fKKM4T/MjGvZ2tnOZsz20qySCmWaaDI=; b=oiDGJ0Af+eFzvf 2kMuV9WPMxbLra4kqIhr2AWtmzsPMHBSMgjm67JGfEILnqd7erSkX/SrbQYADsn2qP0hy/QXPGRSD k7X9/d7S+eEtPrS9VwQ7pt2tzKVRHGU2/bayepgeT0xcXLeQHJYwHqa01yj8Y9lN7+224jUsaDrdv ZnEylQo7Q68vsBGEtVzVVBxdlVT/B9AxvGg2bSbt9tejzQ5Q2HFjAlJOcyC7a/tui57i+okBaF9A4 3RlA5v1R2WaWiaozZlho6At7p6dShxwbhZR2ov62jhBK0ZOwqSIaiWVjXnzoTu8oU4jHlF1U5afJJ xPmnJKclWlm7njy8Kr0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZ3Nv-002Hfa-3A; Thu, 24 Aug 2023 05:59:59 +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 1qZ3Ns-002Hdv-1T; Thu, 24 Aug 2023 05:59:57 +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; Thu, 24 Aug 2023 13:59:46 +0800 From: Xianwei Zhao To: , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Neil Armstrong" , Kevin Hilman , Xianwei Zhao Subject: [PATCH V2 0/6] Power: T7: add power domain driver Date: Thu, 24 Aug 2023 13:59:24 +0800 Message-ID: <20230824055930.2576849-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-20230823_225956_526652_70391160 X-CRM114-Status: UNSURE ( 6.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=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 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): soc: amlogic: modify some power domains property soc: amlogic: add driver to support power parent node soc: amlogic: init power domain state dt-bindings: power: add Amlogic T7 power domains soc: amlogic: Add support for T7 power domains controller arm64: dts: add support for T7 power domain controller .../power/amlogic,meson-sec-pwrc.yaml | 3 +- arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 6 + drivers/genpd/amlogic/meson-secure-pwrc.c | 129 ++++++++++++++++-- include/dt-bindings/power/amlogic,t7-pwrc.h | 63 +++++++++ 4 files changed, 186 insertions(+), 15 deletions(-) create mode 100644 include/dt-bindings/power/amlogic,t7-pwrc.h base-commit: 413f5c02929bb33042bbc4ee233166550a5fca70