Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1277951pxb; Fri, 21 Jan 2022 14:09:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqoIB3nlgpbKEvXN8/WCQeh+Z2bRjjc8stPxl5xupXNu/VrFGud7SP7clFPV4CFesa9jv2 X-Received: by 2002:a17:902:aa49:b0:14a:dea9:f9f5 with SMTP id c9-20020a170902aa4900b0014adea9f9f5mr5805192plr.168.1642802962308; Fri, 21 Jan 2022 14:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642802962; cv=none; d=google.com; s=arc-20160816; b=CbZNsVEyfDhY4rjj4e+1exs5UP8IramlhPcw0ydMXyxfmVx9z6EC9HZTGwQqZpDt5D E/nrWBtvHsfO+t2NJvHPWWhNsg/lEwdtwkx0EHThmktOgxESrO01tEpB50whdUn3oDJ+ 4UdWPgTCC8yCAZn/dR7txh8K146ivOmaUF1HNIr9aiXBzU89hrr6tyjBC4MpBaJbw/Qv zrTHztk8x26ua6E8fm3Jexv9JtSuJQavm1YYHjwk+cd4SAo6xSc0Y6Kwd6ybpx6nWtKG gAw8gxTwMVvk71h74iezZTsin3uZ+Dtwoop9VYH59ujeS7CS4rSwVyoRGMZA8BhVQK9V mCsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=o79zmIgM+0ygHLPIofxNguMisbIrS5RcmJsJrzjmaPQ=; b=rnJ9UxJneYcQI8iN6vbTOX9JwRjuXpwLLAAY/fjCM42QrNTQq8ppmPyX6VXw5dsVJ8 2ZQbHMi0fbixXpxsQpHtcD7KFIbsh6LapHdmLPXVyfCkx12HH2vQRAGP3qG7TgJf9Y5p uDKxDzGeY2zKHhAio21cbc6HO7f9PTzF0gT7C2dNi7M37tVBj2qRfuSSyJI26y0AJeym rO2tU8vDxVW452KO3kD/77p9WBnXJQv817rJgsT7qQqMsxwJJBYFOzaZClxpDPBUPwO8 5ZlHFBgRFGDp+c+RpWD7pFiFbnEw1MV4fiQsT/HwbBj8n2vmuedtsHjAYeEVMCetsWVC kBzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Xj7UKsSl; 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 d17si691138plh.314.2022.01.21.14.09.10; Fri, 21 Jan 2022 14:09:22 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Xj7UKsSl; 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 S245642AbiATN2W (ORCPT + 99 others); Thu, 20 Jan 2022 08:28:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237971AbiATN2P (ORCPT ); Thu, 20 Jan 2022 08:28:15 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64458C06161C for ; Thu, 20 Jan 2022 05:28:14 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id q141-20020a1ca793000000b00347b48dfb53so13860536wme.0 for ; Thu, 20 Jan 2022 05:28:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=o79zmIgM+0ygHLPIofxNguMisbIrS5RcmJsJrzjmaPQ=; b=Xj7UKsSlDlKrCE2AIAP0jK14mFJPZQ6XVUdmOf0NO2O+eQn8fA69i3yrf2cTGf73nT tcLTUQsVkA2upYrCJYN+XWCsLabv4GNy5J0PT7+IiAjbbYwWmUm+O6psOlFWwIIy7u9N D1FsHzOf9kVonNk56g+QCtmB3s1imUSTq2blX8TOMy04a0PEmGLL8861MtDtzATA91nF 3rQg4Nw0c+ZVi6FLmo/NXBeb88AWhERtowV4m56WbiRvMPbexwawbmBEx/31AEHaUejD /4BUJ5wGtl8IbmWtscWIxFrfU9hdpOmMdogn8UBHmUSdi0ctF0bJMq0pjPOrk1bqTP8V ffUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=o79zmIgM+0ygHLPIofxNguMisbIrS5RcmJsJrzjmaPQ=; b=5FJU9RDTILc6XWfC/2BuYcPiugcrompzqWsftVVmVYi9QttfSK6Y1c5xsk+fu3kOj/ dZcVI+ZaoGJdSgGq+jJN0/eXw73W5m144zeg9Qrgr63eCklp7J9iVrqkhBelDAZdS7ZX 5aMVEXEJJ1Pf0hEE/u8U1+Z0Eecl2cgRITXVo4I2iCSOHLuJFs8O8EKPNOrfOMlGAygt oYR7zVn1Tx2tugBA/p+/yZYr1YdS12GXp5EFjshK9lZvh4Zvz/kwiBEvhYT7Ocykqb4N GFlw7R41rSBR/bF6juWatfN1TdfOAlf4ZoRcPnox8jbjQhEn7aJTvutZY/P/XBlHu4fD jxKA== X-Gm-Message-State: AOAM532weUKfg6XXD28P/42D+ZI8qg+5dYCIF3pSEF7dXtFXjwFngZXs KD9XtA/WArd1skeMyHhLuI2MAw== X-Received: by 2002:a05:600c:1c99:: with SMTP id k25mr8710099wms.159.1642685292800; Thu, 20 Jan 2022 05:28:12 -0800 (PST) Received: from ?IPv6:2001:861:44c0:66c0:ced2:397a:bee8:75f5? ([2001:861:44c0:66c0:ced2:397a:bee8:75f5]) by smtp.gmail.com with ESMTPSA id i8sm4537859wry.45.2022.01.20.05.28.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Jan 2022 05:28:12 -0800 (PST) Subject: Re: [PATCH 6/6] drm/meson: add support for MIPI-DSI transceiver To: Jagan Teki Cc: daniel@ffwll.ch, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20200907081825.1654-1-narmstrong@baylibre.com> <20200907081825.1654-7-narmstrong@baylibre.com> <70d1af3f-bc00-4afd-1157-1cf70d3b2c88@baylibre.com> From: Neil Armstrong Organization: Baylibre Message-ID: Date: Thu, 20 Jan 2022 14:28:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jagan, On 20/01/2022 12:03, Jagan Teki wrote: > On Wed, Jan 12, 2022 at 1:49 PM Neil Armstrong wrote: >> >> Hi, >> >> On 12/01/2022 08:24, Jagan Teki wrote: >>> Hi Neil, >>> >>> On Mon, Sep 7, 2020 at 1:48 PM Neil Armstrong wrote: >>>> >>>> The Amlogic AXg SoCs embeds a Synopsys DW-MIPI-DSI transceiver (ver 1.21a), with a custom >>>> glue managing the IP resets, clock and data input similar to the DW-HDMI Glue on other >>>> Amlogic SoCs. >>>> >>>> This adds support for the Glue managing the transceiver, mimicing the init flow provided >>>> by Amlogic to setup the ENCl encoder, the glue, the transceiver, the digital D-PHY and the >>>> Analog PHY in the proper way. >>>> >>>> The DW-MIPI-DSI transceiver + D-PHY are directly clocked by the VCLK2 clock, which pixel clock >>>> is derived and feeds the ENCL encoder and the VIU pixel reader. >>>> >>>> An optional "MEAS" clock can be enabled to measure the delay between each vsync feeding the >>>> DW-MIPI-DSI transceiver. >>>> >>>> Signed-off-by: Neil Armstrong >>>> --- >> >> [..] >> >>>> + >>>> +static const struct component_ops meson_dw_mipi_dsi_ops = { >>>> + .bind = meson_dw_mipi_dsi_bind, >>>> + .unbind = meson_dw_mipi_dsi_unbind, >>>> +}; >>> >>> Do you thought of non-component based meson DSI like STM DSI? It >>> require changes from meson drm but just to understand if you have any >>> such plan. >> >> I have no such plans for now, note this serie has been rewritten at [1] but still >> with based with components. >> >> If worth it, the plan is to get it with components and than yes if it's simpler >> drop components completely. > > Dropping components make the pipeline well suited for bridges as we > are moving bridge-driven pipelines in other areas. > >> >> I'll have a look at how ST does > > ST has no components. As I said above, eventually there would be > common bridge driver for dw-mipi-dsi if meson and rockchip moving away > from components. ST driver is much more simpler. And having a common dw-mipi-dsi is unreal since each HW has a different glue HW me must handle. Even if we moved all the glue handling under drm/bridge/synopsys, we would need a different set of callbacks for each HW for each compatible which is basically the actual situation except components. Neil > > Thanks, > Jagan. >