Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2899745pxj; Mon, 17 May 2021 12:32:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxhde9nu/ZMoUEb9uhzAAoRPBQBcQIqU+p0qHc/ymbyD1vfBiEG1r9hZlUoVBnHPt2SC4A X-Received: by 2002:a17:906:e08a:: with SMTP id gh10mr1541506ejb.533.1621279943529; Mon, 17 May 2021 12:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621279943; cv=none; d=google.com; s=arc-20160816; b=nyryFfZILL6sVBZyrUqb4sCBPnWOGjY8q+E91XZI+XD7V6glc8Up7hgmXN5Ki6r8tY l2wQUhEi6N14VBjYd5Tcl+xdbUjb1xVibiA3fd23XWjDwE/IvpB+fkPyZdE2W/Edn47C GFO5lp2/qGR2dbAraHjUA6DjB4JFVoNbi+ENdCmVRpaCUQSH9Rbd8xt/sDrZc9iDVPfC FM1KP9zGFrSfDJ2H1xYwxOb+EI/SEZ6mRkN7lahJf3Cx94x32L0FKpqqBoy9ZqIcOe7X LkD46Nc/NtZadzLM0ueCFG6VMc694UP1x1YXWuZITLSFboUhKlK4G3uXT3zM16x4bbSB 48pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=ZChMzxeCYWWqJjy3TyvTnCOrl7Y2U9YSvC0CVHhDN7I=; b=lDERfuFgAcKOG++65lzMUsqfD262KVgcgmsY/4Jod8loL5TU8LgYaUfiv2BKkcSRqX Ot5LKUE2FLLZ3v+3D3onivHth7TrIL0mnNCHWLX6yrL+Pyjo/DX1qlUbECXLhXRO1Y27 bX0ph0cJslUdcmv4hl6moAFnwMQlRzZPj8USnwPVWad7HvzUwsELbKtPBznggbERFGT9 q0xf3IOt1boo424NDdorW3ag2hBc3T7H5Ea/JIBVOi4Dt3asgBeXP2FCFwJktOoNFJtR 2CcgnAQYan0kSgwMYRhOGuHDjTL8SwZdRHQzf1TK9ErWHXgv0Kp+rXRJYt09QP6yQCHl iX2Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bk20si14770545ejb.185.2021.05.17.12.31.59; Mon, 17 May 2021 12:32:23 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237461AbhEQNr4 (ORCPT + 99 others); Mon, 17 May 2021 09:47:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235085AbhEQNr4 (ORCPT ); Mon, 17 May 2021 09:47:56 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17CFEC061573 for ; Mon, 17 May 2021 06:46:40 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lidZf-0004om-9Q; Mon, 17 May 2021 15:46:23 +0200 Message-ID: <7c09d1ffbe79c3d6138258d0827613a1cc6544c4.camel@pengutronix.de> Subject: Re: [PATCH v9 03/13] media: hantro: Use syscon instead of 'ctrl' register From: Lucas Stach To: Ezequiel Garcia , Benjamin Gaignard , p.zabel@pengutronix.de, mchehab@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, lee.jones@linaro.org, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@siol.net, hverkuil-cisco@xs4all.nl, emil.l.velikov@gmail.com, "Peng Fan (OSS)" , Jacky Bai Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-imx@nxp.com, kernel@pengutronix.de, kernel@collabora.com, cphealy@gmail.com, linux-arm-kernel@lists.infradead.org Date: Mon, 17 May 2021 15:46:20 +0200 In-Reply-To: <5aa5700b862234895a7a6eb251ca3c80fdc1a6d3.camel@collabora.com> References: <20210407073534.376722-1-benjamin.gaignard@collabora.com> <20210407073534.376722-4-benjamin.gaignard@collabora.com> <7bcbb787d82f21d42563d8fb7e3c2e7d40123932.camel@pengutronix.de> <831a59b052df02e9860b9766e631a7ab6a37c46a.camel@collabora.com> <72fef3d9f79194876f2035e996bb83f9f8b12902.camel@pengutronix.de> <5aa5700b862234895a7a6eb251ca3c80fdc1a6d3.camel@collabora.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.1 (3.40.1-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, dem 17.05.2021 um 10:23 -0300 schrieb Ezequiel Garcia: > On Mon, 2021-05-17 at 12:52 +0200, Lucas Stach wrote: > > Hi Ezequiel, > > > > Am Sonntag, dem 16.05.2021 um 19:40 -0300 schrieb Ezequiel Garcia: > > > Hi Lucas, > > > > > > On Fri, 2021-04-16 at 12:54 +0200, Lucas Stach wrote: > > > > Am Mittwoch, dem 07.04.2021 um 09:35 +0200 schrieb Benjamin Gaignard: > > > > > In order to be able to share the control hardware block between > > > > > VPUs use a syscon instead a ioremap it in the driver. > > > > > To keep the compatibility with older DT if 'nxp,imx8mq-vpu-ctrl' > > > > > phandle is not found look at 'ctrl' reg-name. > > > > > With the method it becomes useless to provide a list of register > > > > > names so remove it. > > > > > > > > Sorry for putting a spoke in the wheel after many iterations of the > > > > series. > > > > > > > > We just discussed a way forward on how to handle the clocks and resets > > > > provided by the blkctl block on i.MX8MM and later and it seems there is > > > > a consensus on trying to provide virtual power domains from a blkctl > > > > driver, controlling clocks and resets for the devices in the power > > > > domain. I would like to avoid introducing yet another way of handling > > > > the blkctl and thus would like to align the i.MX8MQ VPU blkctl with > > > > what we are planning to do on the later chip generations. > > > > > > > > CC'ing Jacky Bai and Peng Fan from NXP, as they were going to give this > > > > virtual power domain thing a shot. > > > > > > > > > > It seems the i.MX8MM BLK-CTL series are moving forward: > > > > > > https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=479175 > > > > > > ... but I'm unable to wrap my head around how this affects the > > > devicetree VPU modelling for i.MX8MQ (and also i.MX8MM, i.MX8MP, ...). > > > > > > > > For the i.MX8MQ we want to have the same virtual power-domains provided > > by a BLK-CTRL driver for the VPUs, as on i.MX8MM. This way we should be > > able to use the same DT bindings for the VPUs on i.MX8MQ and i.MX8MM, > > even though the SoC integration with the blk-ctrl is a little > > different. > > > > AFAICS, there's not support for i.MX8MP VPU power domains. I suppose > we should make sure we'll be able to cover those as well. > > Will i.MX8MP need its own driver as well? > > I haven't looked too closely at the 8MP VPU subsystem yet, but I expect it to be slightly different again so it will need changes to the blk- ctrl driver. But that's the whole point of this virtual power domain exercise: abstract away the SoC specific things in the blk-ctrl driver, so the VPU driver doesn't need to care about them. Regards, Lucas