Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2600260ybb; Mon, 30 Mar 2020 09:15:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsBN10GOhGIJJUHtNCXp+bcBrIPtu59NEse5GDWuupHCfPI6Mja4ii7k6NuCQuet9SEKC/V X-Received: by 2002:a9d:4810:: with SMTP id c16mr6419111otf.138.1585584906073; Mon, 30 Mar 2020 09:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585584906; cv=none; d=google.com; s=arc-20160816; b=SSUeKjQdwCxp9TUONY8QMslqtCYsv2+1kyeAwl8sOfA0buOP+ZM5/EAGav93sDOeTY V/ZJpN4zYl2mG008YvD/mDzePZYeTw561iB+bhL/gV0DJAu7/b6yL3f9ldGaWbLjTjfK CII9lfatcFZCPmSGdJX1bAQIq86N9ZSOvE1v9GJoHqzAoZVDqvELXHVi3O8vhGhObyYh EDOdNWUfV0J3C1e0UwhJESBKwztokSJbB1np+forZhYwSrrRLyssC6uNvzCjaTrTd2d8 a8vu6OYwjl50Qof84Zy3iCo/z7JWsyPuGZ96IRcCfe0VoDUhmuNGwi/fx4hMfQFra9NW EzyA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dJobNzydt2z0v/ZbYP8V/EAM8yQfDq9NQNIdReY6i2k=; b=W0p+PEh3nGSVbjxmRQ7h9jvAl81xmYrgLolLLTy6UOjTSMum4t9rU3V8SPaw8nIySC xxbmCSMLatk3l+r7dKjb//mikDV1TgY1L+oG4/FweBqkMloWvvXdnWG3CUJrVzQDS4fh flhcI6jA3+O8ksQtV0Ipjr6DFfvC92TgMt7HeG3MwBDHmtu8etmHmq/xXnyvqC0TxNcB eJo2NgzvmGIe6u0qZG7Sgjgl6Z3GEo3O/MQZDLn5dAs9fBFHL5D4GEgQU6klaMPj+Xsj fRckz+sCx/9kp0BjnWhcxDEyPOFGZ9wvL5jX1K9/4v6+DPxhdUNkSFmhzlszFM+Iz+hG tlGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CbCAOS+2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si6743176ote.164.2020.03.30.09.14.52; Mon, 30 Mar 2020 09:15:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CbCAOS+2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729004AbgC3QOP (ORCPT + 99 others); Mon, 30 Mar 2020 12:14:15 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:43205 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726981AbgC3QOP (ORCPT ); Mon, 30 Mar 2020 12:14:15 -0400 Received: by mail-ed1-f68.google.com with SMTP id bd14so21317171edb.10; Mon, 30 Mar 2020 09:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=dJobNzydt2z0v/ZbYP8V/EAM8yQfDq9NQNIdReY6i2k=; b=CbCAOS+2vyQDV49z5Q479cHLj8GAB4lcScU2VvMy5M1jCnkk0zguYR5gA1l2f4ykzZ ZPPiLal5z8KwMQjEn9TOKOBx0YKPGbFh5/qvUWQ894W75v6m/DHoS2hXKaiBtjkYERZ0 GNHY7p2E7U5sjB8YA9YZX/EJCvTDnfqOiFCZKCNvwG7g2S5yVssxvlNL8IHXxqWkiLp8 JPQd5Vv8oDf12IHpaGLTEq6+UvjXbVN4wsrtCtaEBg4zxOjOkflozl6tiEH8sO8fWkaG tByAyHrEuhgo58H7BqxjIxdG6tL3fuSAtKxwpOfgcI2jl4lB3eaGbvBGr0816/x+ow+Y Zplg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=dJobNzydt2z0v/ZbYP8V/EAM8yQfDq9NQNIdReY6i2k=; b=Ap/Z+9KiByJhluLFapfwufiOTryeMSH6rc/BQtGisMzuFHsmWOWgbsKMmweGvVJctW wJPLaJ+sRFGYY3a9wasLB3HVzJd+SYVyfWQVC64gnNUMz99sfNEDKeNwg8W599fWusrL smC0UMfkjxykpS3rMBN78E/LUPNC0DEao04O3j3rUgFF0p0CXtYNzXYmpBUOlPNquqJG T9mEM6XP/NmSwkJf/LgNiYqu6x71WzXktyghlWKQAIQocVQiLfMKdmUaC73mcsY/H8o2 E2OO+s/mBTIqSMMdLQkl1MIZYLj99/vHRq6cMq6WtyrZODTTNORBPsFgBFNRhAQNRSde Wmvg== X-Gm-Message-State: ANhLgQ0zJpwuj5RXpEd9oCPFFoBnj6luDRHXwnwQGI038IXvB0a8cRXV SKwZCvEsD9Fv8058/ZRLFChSgVMlWnNFucpinrI= X-Received: by 2002:a17:906:ccdd:: with SMTP id ot29mr11481877ejb.144.1585584850221; Mon, 30 Mar 2020 09:14:10 -0700 (PDT) MIME-Version: 1.0 References: <20200330113542.181752-1-adrian.ratiu@collabora.com> <20200330113542.181752-2-adrian.ratiu@collabora.com> In-Reply-To: From: adrian61 Date: Mon, 30 Mar 2020 19:13:58 +0300 Message-ID: Subject: Re: [PATCH v5 1/5] drm: bridge: dw_mipi_dsi: add initial regmap infrastructure To: Adrian Ratiu Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Jernej Skrabec , Andrzej Hajda , Jonas Karlman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-imx@nxp.com, kernel@collabora.com, linux-stm32@st-md-mailman.stormreply.com, Laurent Pinchart Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Forgot to mention mention DSI version 1.1, see ref manual for STM32F769 for more details: https://www.google.com/url?sa=3Dt&rct=3Dj&q=3D&esrc=3Ds&source=3Dweb&cd=3D1= &ved=3D2ahUKEwiRm4mhy8LoAhUP4BoKHaiLAJcQFjAAegQIBRAB&url=3Dhttps%3A%2F%2Fww= w.st.com%2Fresource%2Fen%2Freference_manual%2Fdm00224583-stm32f76xxx-and-st= m32f77xxx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf&usg=3DAOvVaw1= 4nl_UqwBs39ORzC0yaope On Mon, Mar 30, 2020 at 6:58 PM adrian61 wrote: > > Hello Adrian, > > I am testing hese changes on my STM32F769-DISCO and i found that: > > On Mon, Mar 30, 2020 at 2:35 PM Adrian Ratiu = wrote: > > > > In order to support multiple versions of the Synopsis MIPI DSI host > > controller, which have different register layouts but almost identical > > HW protocols, we add a regmap infrastructure which can abstract away > > register accesses for platform drivers using the bridge. > > > > The controller HW revision is detected during bridge probe which will > > be used in future commits to load the relevant register layout which > > the bridge will use transparently to the platform drivers. > > > > Signed-off-by: Adrian Ratiu > > --- > > New in v5. > > --- > > drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 208 ++++++++++-------- > > 1 file changed, 117 insertions(+), 91 deletions(-) > > > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gp= u/drm/bridge/synopsys/dw-mipi-dsi.c > > index 5ef0f154aa7b..6d9e2f21c9cc 100644 > > --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c > > +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c > > @@ -15,6 +15,7 @@ > > #include > > #include > > #include > > +#include > > #include > > > > #include