From patchwork Tue Feb 15 10:49:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Jie Chen X-Patchwork-Id: 12746869 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 B2015C433EF for ; Tue, 15 Feb 2022 10:51:01 +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=q9Y1RJP3R7cHVCo+T+TidnXogU/8v6j3BqPQvMjBC0Q=; b=fn4L+BKFlB+/jE KekOsLc5zYtNSSUoYLoXuWRZ7k2ViTLuOg0Awh12B6T+/UIkJ3zzbMoUdDTw85aHIAhNdxjgKw/O3 2qD63hI1tDXxeILpRqt78VnuSRsR3v28fS9r6MsR+i5RGjXkUHZz+e+HrtXlHefXRjj1kOlvmndDv L7lwIq8asq9dnCjmuO7z7SLWR6z3pDEYpjjZu/lIb1lrY95c8nYjGhZdVFN1MksBJ+nfg7lSRVfE4 VATK2oIT2hiT+1kdA9iHFh8roiXwQZagvT5eHmaR9muwRqavZtAuRMjp811VUP3o/nF+TlDKhVm3G 580eDt8uc6mn05KVnUmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJvOr-002MGF-MR; Tue, 15 Feb 2022 10:49:37 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJvOn-002MEB-1x; Tue, 15 Feb 2022 10:49:35 +0000 X-UUID: eef6ec4839f74cbab0ff18b0791ea835-20220215 X-UUID: eef6ec4839f74cbab0ff18b0791ea835-20220215 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1547879403; Tue, 15 Feb 2022 03:49:30 -0700 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Feb 2022 02:49:28 -0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Tue, 15 Feb 2022 18:49:26 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 15 Feb 2022 18:49:26 +0800 From: Chun-Jie Chen To: Enric Balletbo Serra , Matthias Brugger , Nicolas Boichat , "Rob Herring" CC: , , , , , Subject: [v2 0/2] Mediatek MT8186 power domain support Date: Tue, 15 Feb 2022 18:49:15 +0800 Message-ID: <20220215104917.5726-1-chun-jie.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220215_024933_121475_A8A1C649 X-CRM114-Status: UNSURE ( 9.77 ) 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 This patch series adds power domain support for MT8186 and depends on [1] based on 5.17-rc1. change since v1: - change to dual license in dt-binding [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=609799 Chun-Jie Chen (2): dt-bindings: power: Add MT8186 power domains soc: mediatek: pm-domains: Add support for mt8186 .../power/mediatek,power-controller.yaml | 1 + drivers/soc/mediatek/mt8186-pm-domains.h | 344 ++++++++++++++++++ drivers/soc/mediatek/mtk-pm-domains.c | 5 + include/dt-bindings/power/mt8186-power.h | 32 ++ include/linux/soc/mediatek/infracfg.h | 48 +++ 5 files changed, 430 insertions(+) create mode 100644 drivers/soc/mediatek/mt8186-pm-domains.h create mode 100644 include/dt-bindings/power/mt8186-power.h --- 2.18.0