Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1251074pxb; Fri, 21 Jan 2022 13:23:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwv7Md2L/C0ZSq4QqczvfwT6EoJltuvIEIwivwRCs9HkHT2B7VRAjiLEbmAFnbWzrON/yl6 X-Received: by 2002:a17:902:7602:b0:14a:4a48:cabd with SMTP id k2-20020a170902760200b0014a4a48cabdmr5369248pll.121.1642800232397; Fri, 21 Jan 2022 13:23:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642800232; cv=none; d=google.com; s=arc-20160816; b=kD7iojoQE7X+7yGNl3RhjrKU5NOhDL0PnE0cOMWrL7h15QUaW4K4LvWAF2Lhu/FACw aKmvoMk+1A2JU8Gn71J6X5HRILDGgAROK7UEM08E2R5kNrg54vEZfUdi+CzBY22rUshA q1QLia6o7nFJBPJLCFlCY4TdZzP0j1zM4PhHZqSJcsDoEDUDdtTmgvmI6/gfv07XvRxX lwO7a/5I1BnjLxKK3qVMoMLIUnJhHIp2TIF4ETUFODM2Ory5C4BrM9x7BOta79v56xus 3c9nAoig/TT/Y/mrlGheVjhnV1eeeNBphQYDVhnhkaVUAi2eOPN9/sq1nDk3rWBkAIeA WZNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=n97jOmH1Hh/lQ5JREIu8WWpMZHA+pObxbgnKcQKqkdY=; b=P2o9TTK+6rYN6rTMzaoHxuWxrjp1EqMeN5E9u6dQFOy4LzKQs37iGAYOJQALgb+67s AR33D4Wirt4d/c2aJjKLE39Kxhib6aTFchJgAQZt2NtmV2v4YMq/kztXIjwfJUx/Z8bm hsdh4MW2KpxVtJQZD2Rq1OkDzCBtuTxua8l3YMv7xbPZiKcbCa+c5Ohrxs2KNGFKMQUC /VOlY6sk81xl8LOwhV+YSe4DcwOI+Emrh+frQRMjwt1+rrnN5hlLL75xIx8Fe43bl4OW 5uXlhwGSDsZKR+fE37x3r9VMWKSpxZ2F+UxTuuAt1x4HWXj3we2mmJfiX+rDod0+lavv 4vlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OfgVg4++; 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 gl7si4288896pjb.5.2022.01.21.13.23.40; Fri, 21 Jan 2022 13:23:52 -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=@amarulasolutions.com header.s=google header.b=OfgVg4++; 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 S230181AbiATLDh (ORCPT + 99 others); Thu, 20 Jan 2022 06:03:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiATLDf (ORCPT ); Thu, 20 Jan 2022 06:03:35 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E4D7C061574 for ; Thu, 20 Jan 2022 03:03:35 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id p12so26985305edq.9 for ; Thu, 20 Jan 2022 03:03:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=n97jOmH1Hh/lQ5JREIu8WWpMZHA+pObxbgnKcQKqkdY=; b=OfgVg4++cjXVJlgE4V6UGTv+/DRslYaxUQwp42wmoRX703kLnHT6ZI42wX0OmSiDlZ SDwD6u+GkbkGAFUtJaJksGgW3PqmKgpnh610LHWTZa19Y68u4qy6t+4ixut+aX9mwwDf ovfVjhquX3wpszfrRqxTnakSBbHc8lkEazXCw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=n97jOmH1Hh/lQ5JREIu8WWpMZHA+pObxbgnKcQKqkdY=; b=SP/5iQLzDJ9UR65Q4fE3OXN3G3aGIls8RFERl/odCbhne3ZAOAudlzE8VmPYEvqI4y u7e4JuIVfiKVuLX6NV343d99R8qdXKYshZ7zCSJA/i3lHNKMDNjoC42lm3KPVvAPLwY9 TdXeuXNDk79DGnj4pgX0FH7WxSkD5klXe22HGr15zaY/2xmY8btO6keB/ieNm2VRDxcs MLzYuLUOnsZa1Lw+Y5pXN6khe1gotbswWjqjvS/5X2gCPW7cpdoUsOC8LjNh7HrngKhP EcHsHyeupWEirFVFmf7cr7k2OSCHCm4y19Ae2NT8a53NJdJN4f5XQ/TFYgAO7n7KbEhv i8Ww== X-Gm-Message-State: AOAM532UzrBUs3/9uigaQI7JhdEry3mgipjxZjWQIKNDhaPgJ1Z5oZi7 Daze0u/J/Q5rggydJ8n+y/psCobcYN+/IuNx/IL+Yg== X-Received: by 2002:a17:906:2e81:: with SMTP id o1mr9130992eji.760.1642676613863; Thu, 20 Jan 2022 03:03:33 -0800 (PST) MIME-Version: 1.0 References: <20200907081825.1654-1-narmstrong@baylibre.com> <20200907081825.1654-7-narmstrong@baylibre.com> <70d1af3f-bc00-4afd-1157-1cf70d3b2c88@baylibre.com> In-Reply-To: <70d1af3f-bc00-4afd-1157-1cf70d3b2c88@baylibre.com> From: Jagan Teki Date: Thu, 20 Jan 2022 16:33:22 +0530 Message-ID: Subject: Re: [PATCH 6/6] drm/meson: add support for MIPI-DSI transceiver To: Neil Armstrong Cc: daniel@ffwll.ch, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Jagan.