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: 13363588 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 B56C1C27C40 for ; Thu, 24 Aug 2023 06:00:26 +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=3Px3v4RpHipsqbbzepC7AO51ky+iXGpDzzbpFZSK2dk=; b=yzvhlu84j/W2lQ G32yC2WOUKDerSuqRa/0kddZKIM0qWDdoW4k1iHYV5tVAgOMuA2WAYtIbllFl0jjuSKN44z89xpqX zxb6EWNcpJM03/tkPgzvdVcAtqa7LObZhS7pfRDhbKdUJ7WEx45M6TipAm/H0Yp8nhujS6Woal1pZ sBEDWiaYJhaDbU3x6JYgxuCsOIQkJ3JOEn270fEfgGQ6tKCT76bUVFZoUzRAW/KEHKfg357+oZv20 IXZCvEyjdrs/gY2Fz7Vfwu7v4Q1524KPl3J7a/Zor/2U6C6MctYK+Alx2xatY38UdZM8OybOGDoiP 9kpL/LEbgTDMoSNUwSbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZ3Nv-002HfA-1Y; 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-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 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