From patchwork Mon Jun 22 16:46:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 11618445 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D4DAC60D for ; Mon, 22 Jun 2020 16:48:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AE8BD2073E for ; Mon, 22 Jun 2020 16:48:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="xiGk7iel" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AE8BD2073E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=5R8GnNwIK/bTSoHyMEfeLQp/1TAquQxH9NodVpOskRk=; b=xiGk7ielqYqyyZwhleYSeL+oLY L6g7DUuzbopdc1q2OruoipVpxNqZtagsyeRtSt5VK7Ip1v6F8CjnwJl7Y2ZM8qwV5q/zVreTZB2s4 4fNGHyCX+9aXKMwLlo73Y3xE5xOqRBWbydrXWhDG5XJVs69U3rIolBSjUTeaK7P5IezBZ2u/tCwCE wIPb7utnqdJ3xJIbe256PhS+HEYKqbJZ9RgyfE0cQKYQrljirM4eIq1bs03CE/jBhsk8wCwNzlvkE 3DxA6OjdOEw0Q+wlqoTVUfQnaYApSLR+RFMDENFcwd8F1dg5rLtwET6jOjEO07dI47OMcLCZP4lZw 15nxVcGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnPb6-0002zF-BD; Mon, 22 Jun 2020 16:47:04 +0000 Received: from muru.com ([72.249.23.125]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnPb3-0002yh-Mj for linux-arm-kernel@lists.infradead.org; Mon, 22 Jun 2020 16:47:02 +0000 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 325A48140; Mon, 22 Jun 2020 16:47:53 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Subject: [PATCHv3 0/6] Add initial genpd support for omap PRM driver Date: Mon, 22 Jun 2020 09:46:46 -0700 Message-Id: <20200622164652.12054-1-tony@atomide.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [72.249.23.125 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "Andrew F . Davis" , Tero Kristo , Santosh Shilimkar , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi all, Here is v3 set of patches to add genpd support to the PRM (Power and Reset Module) driver. Initially we just add one hardware accelerator power domain for sgx, and one interconnect instance for l4_abe. The rest of the SoC specific domain data is probably best added one SoC at a time based on generated data. Regards, Tony Changes since v2: - Update binding to clarify a single power domain provider - Fix maybe unused compile warnings Changes since v1: - Dropped clocks from the binding and prm driver as there's no need for them as pointed out by Tero - Add checking for domain transition bit in pwrstst register as pointed out by Tero - Add omap_prm_domain_show_state() for CONFIG_DEBUG Tony Lindgren (6): dt-bindings: omap: Update PRM binding for genpd soc: ti: omap-prm: Add basic power domain support soc: ti: omap-prm: Configure sgx power domain for am3 and am4 soc: ti: omap-prm: Configure omap4 and 5 l4_abe power domain ARM: dts: Configure am3 and am4 sgx for genpd and drop platform data ARM: dts: Configure omap4 and 5 l4_abe for genpd and drop platform data .../devicetree/bindings/arm/omap/prm-inst.txt | 2 + arch/arm/boot/dts/am33xx.dtsi | 2 + arch/arm/boot/dts/am4372.dtsi | 2 + arch/arm/boot/dts/omap4-l4-abe.dtsi | 6 +- arch/arm/boot/dts/omap4.dtsi | 6 + arch/arm/boot/dts/omap5-l4-abe.dtsi | 6 +- arch/arm/boot/dts/omap5.dtsi | 6 + arch/arm/mach-omap2/Kconfig | 1 + .../omap_hwmod_33xx_43xx_interconnect_data.c | 16 - .../omap_hwmod_33xx_43xx_ipblock_data.c | 40 --- arch/arm/mach-omap2/omap_hwmod_33xx_data.c | 2 - arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 2 - arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 33 --- arch/arm/mach-omap2/omap_hwmod_54xx_data.c | 31 -- drivers/soc/ti/omap_prm.c | 274 +++++++++++++++++- 15 files changed, 298 insertions(+), 131 deletions(-)