Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1246589pxk; Thu, 10 Sep 2020 10:30:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwCreESPkFZyx/ZEyqDwHL/h4Qv9ItVobs2B8/2QfdhcDns+215SgyZL8RtUEl3VLkZfZL X-Received: by 2002:a17:906:556:: with SMTP id k22mr9749593eja.369.1599759051095; Thu, 10 Sep 2020 10:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599759051; cv=none; d=google.com; s=arc-20160816; b=zgUr12+MN0w/cJXuAC17BGG+RdCS4LbSnY8mdLa/HBrhJ2m6wQVqBnd7ZQS623o1TU wo7It0DhTpUMUtFqlTc8P48amaYUDYOWan+YBSsiD0wfGM86xCDeeNvCFx9lG0B4Bh3p 8W56sqwLoyFYiitkXyIskbnZFrl8zvE73lpeUkbD/WLZKwS7yKcI40DjrdUAxCQHbkEn NjPSQajvYaTs62tvOhRl7e1LxrCdPkFr/eSigQDZuyicCYjcj+z02Pbe8YMkZ+G1Dz8H m9SJdydBFxjmNmxtzK4PRqDip0M/2X8aGqN4z7AdJcP+atPm3cDI0UgKN4jfGyHFZsM+ ajOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=GmmjmQeVd+y28i9Y81smk6kkDefhLhseY4Iz9ubDVwc=; b=VeqlsFwQ8lc2ZEw8ziiuThr4IMFJYL2lwCMMfq5ywbcgmDYqGoEiWwvaKT4/ZIec6a OlyTPF67T/5/cYZ/wtifg6hJ/8Cs8N5fq+/iD5rIMLWAekWVWb32XpVrlPZxX8D6yu+g fowDFGKmRP5URzplUfRBW0Icf/+gnfiICAwDxQMNduLndT7pUZnZbMFTa4LuW46RttgJ wxR0DqGHHhFaWwdpwJ7VMFIWfDcOwf96DagKsz69aoxhM7WV7bux06BG9/JH+UCjHe5s T2Wlc/YZjM5ahS2mo7yKorb+NLscqlnEI3eBIAVDAQjL1FsSmNPPfRa2VPjinQ++pXrT cb7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r2si3456343edc.25.2020.09.10.10.30.27; Thu, 10 Sep 2020 10:30:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727119AbgIJR2p (ORCPT + 99 others); Thu, 10 Sep 2020 13:28:45 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54570 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727775AbgIJR2k (ORCPT ); Thu, 10 Sep 2020 13:28:40 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 3C01029BB05 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , fparent@baylibre.com, matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, weiyi.lu@mediatek.com, Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 00/12] soc: mediatek: pm-domains: Add new driver for SCPSYS power domains controller Date: Thu, 10 Sep 2020 19:28:14 +0200 Message-Id: <20200910172826.3074357-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear all, This is a new driver with the aim to deprecate the mtk-scpsys driver. The problem with that driver is that, in order to support more Mediatek SoCs you need to add some logic to handle properly the power-up sequence of newer Mediatek SoCs, doesn't handle parent-child power domains and need to hardcode all the clocks in the driver itself. The result is that the driver is getting bigger and bigger every time a new SoC needs to be supported. All this information can be getted from a properly defined binding, so can be cleaner and smaller, hence, we implemented a new driver. For now, only MT8173 and MT8183 is supported but should be fairly easy to add support for new SoCs. Best regards, Enric Enric Balletbo i Serra (4): dt-bindings: power: Add bindings for the Mediatek SCPSYS power domains controller soc: mediatek: Add MediaTek SCPSYS power domains arm64: dts: mediatek: Add mt8173 power domain controller dt-bindings: power: Add MT8183 power domains Matthias Brugger (8): soc: mediatek: pm-domains: Add bus protection protocol soc: mediatek: pm_domains: Make bus protection generic soc: mediatek: pm-domains: Add SMI block as bus protection block soc: mediatek: pm-domains: Add extra sram control soc: mediatek: pm-domains: Add subsystem clocks soc: mediatek: pm-domains: Allow bus protection to ignore clear ack soc: mediatek: pm-domains: Add support for mt8183 arm64: dts: mediatek: Add mt8183 power domains controller .../power/mediatek,power-controller.yaml | 173 ++++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 78 +- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 160 +++ drivers/soc/mediatek/Kconfig | 13 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-infracfg.c | 5 - drivers/soc/mediatek/mtk-pm-domains.c | 952 ++++++++++++++++++ include/dt-bindings/power/mt8183-power.h | 26 + include/linux/soc/mediatek/infracfg.h | 39 + 9 files changed, 1433 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/mediatek,power-controller.yaml create mode 100644 drivers/soc/mediatek/mtk-pm-domains.c create mode 100644 include/dt-bindings/power/mt8183-power.h -- 2.28.0