Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2208132imu; Tue, 6 Nov 2018 10:40:27 -0800 (PST) X-Google-Smtp-Source: AJdET5dFTpS1dEXPO6dU4xoc1m3LvTJuLtWbwTfcpLTWvv2KMf5Qh21+LtFltst9Iv1ewTZa2Nmk X-Received: by 2002:a17:902:28a8:: with SMTP id f37-v6mr27695374plb.264.1541529627164; Tue, 06 Nov 2018 10:40:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541529627; cv=none; d=google.com; s=arc-20160816; b=pUM6ImzotVXNWUcbyPVKzodxG4QAfToqNFwXIh6YVMsxDbdgB5B1yxJm1dDpEsMg6C tngK4jXH9tZWPNgqZDTG/ImT+t62Np8PfJouVlw6o0haBLGj5pqsVK08G93V60fOrIDr JxbolBDQ6vwJUt+tDIRzuQRot+Zv+UCOsYh6IBM7aJagRFOns4TTfAwKFm8z24+f13OA emQ7wyeg1CAsuagAzF49Uc+Pww+XqWIlnD+N+xkr1TLA+mTulDhP2lnntr9E8LE9zGID DIPVQSi/IjCr6lkf1Dno6QcEartptFiQdaqylkych5vtCU0dyAbpOM8tgK/MvYi+OKkn qd7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=emX/m+n1+Yp7yE5ZvgTbYbo6lbFzoISXALZO0xGwjL0=; b=x3GWOoE5EXLraYr9mwMdSRGFgoMFi0JSbsQXQ9Non3nBNfzX9MMPuEkI7SgVvvYP6T JNCB52xKCYuULVMsfvHeIq3R5FGPf0Q0tOssfmNBXmT1Qcbku710MHVvNu5h8Gdd49en YxRLo/84yxuUVI0MIyCSHt8PoaJlwXDJAoAGlmXKCD7zfHMhIdHucgBS0HNmwp9RwwXc /G64RtJeBXTgHmOVmoA2UaMEDfu7AENHu5yDWF07k5LCMBeTvItLsGrl119gATvOGDPa KEHOzrcVSs2v44w+5YutQyzTyOSyVbtZFwfUGXdbTZquObD+TO0TerfPbhNsUKM5F7aP 3P4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=koy3oD0c; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11-v6si33535812pgu.301.2018.11.06.10.40.12; Tue, 06 Nov 2018 10:40:27 -0800 (PST) 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=@amarulasolutions.com header.s=google header.b=koy3oD0c; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730723AbeKGDfm (ORCPT + 99 others); Tue, 6 Nov 2018 22:35:42 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:40466 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730599AbeKGDfl (ORCPT ); Tue, 6 Nov 2018 22:35:41 -0500 Received: by mail-it1-f193.google.com with SMTP id e11so15657640itl.5 for ; Tue, 06 Nov 2018 10:09:16 -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=emX/m+n1+Yp7yE5ZvgTbYbo6lbFzoISXALZO0xGwjL0=; b=koy3oD0czVrp/QRyX1v9KXBJ9EWoXNAwjFkVUX90Utjzz+mMw3XMHfsfo3NLI1CS6o tTusowHJZLWaLU4ediGoIFinbwAqz92vwlDJaJU4FAlGBCV5gqq+c+jrx5wC/SvJNp1t jeHc5PwSTkXxvGPj8bXxJGA7gLhbpcbi49xZA= 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; bh=emX/m+n1+Yp7yE5ZvgTbYbo6lbFzoISXALZO0xGwjL0=; b=d6aM0bvTuyA3vznfYTvSK1HETegG9S8OxbceFDfWSs+jj0YRiii7reBUi38wAD34c4 e39L0Y3gVUuJPlEFDDunF1+NgrT5mdBKuNqulH0oHdHacJpZrvfPKpB8bFya0ZmKoK4W TVAJR8kAhSA3dEGqdSpWMjuscaoezprvdxL5qPWeQctNA8yZHONFjDYOm1MJjXAnERAA OrCKXv5wAYXoWM4yC7qNxG9f4TTOOvMk7s0Jbv4iczAUyHUG1gLH1dYZesZ2JQjdaAOE XG5RDYoSOnrWflfqQY2AXaOtQ0H6aA2DEHJmiJNjNghgC8GUmVh5ygdM5/9tCI2fOtcb R62g== X-Gm-Message-State: AGRZ1gKpBV5UVJukIDsg2C9aRSOB5S4er8Go+Nmhpa4sUq6dwinVjJrE CxzaVeOCc7G0MzrZ9+JbN47qxdJ/8UHnLaOrCin0pw== X-Received: by 2002:a02:966e:: with SMTP id c101-v6mr13228490jai.58.1541527755866; Tue, 06 Nov 2018 10:09:15 -0800 (PST) MIME-Version: 1.0 References: <20181026144344.27778-1-jagan@amarulasolutions.com> <20181026144344.27778-18-jagan@amarulasolutions.com> <3c4c8a08-8c1e-1ac6-2b53-81389d69c97b@samsung.com> In-Reply-To: From: Jagan Teki Date: Tue, 6 Nov 2018 23:38:53 +0530 Message-ID: Subject: Re: [PATCH v3 17/25] dt-bindings: panel: Add Bananapi S070WV20-CT16 ICN6211 MIPI-DSI to RGB bridge To: a.hajda@samsung.com Cc: Chen-Yu Tsai , Maxime Ripard , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel , Michael Turquette , Stephen Boyd , linux-clk , Michael Trimarchi , linux-arm-kernel , devicetree , linux-kernel , linux-sunxi@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 31, 2018 at 2:45 PM Andrzej Hajda wrote: > > On 31.10.2018 09:58, Chen-Yu Tsai wrote: > > On Wed, Oct 31, 2018 at 4:53 PM Andrzej Hajda wrote: > >> On 26.10.2018 16:43, Jagan Teki wrote: > >>> Bananapi S070WV20-CT16 ICN6211 is 800x480, 4-lane MIPI-DSI to RGB > >>> bridge panel, which is available on same PCB with 24-bit RGB interface. > >>> > >>> So, this patch adds DSI specific binding details on existing > >>> dt-bindings file. > >>> > >>> Signed-off-by: Jagan Teki > >>> --- > >>> Changes for v3: > >>> - Use existing binding doc and update dsi details > >>> Changes for v2: > >>> - none > >>> > >>> .../display/panel/bananapi,s070wv20-ct16.txt | 31 +++++++++++++++++-- > >>> 1 file changed, 29 insertions(+), 2 deletions(-) > >>> > >>> diff --git a/Documentation/devicetree/bindings/display/panel/bananapi,s070wv20-ct16.txt b/Documentation/devicetree/bindings/display/panel/bananapi,s070wv20-ct16.txt > >>> index 35bc0c839f49..b7855dc7c66f 100644 > >>> --- a/Documentation/devicetree/bindings/display/panel/bananapi,s070wv20-ct16.txt > >>> +++ b/Documentation/devicetree/bindings/display/panel/bananapi,s070wv20-ct16.txt > >>> @@ -1,12 +1,39 @@ > >>> Banana Pi 7" (S070WV20-CT16) TFT LCD Panel > >>> > >>> +S070WV20-CT16 is 7" 800x480 panel connected through a 24-bit RGB interface. > >>> + > >>> +Depending on the variant, the PCB attached to the panel module either > >>> +supports DSI, or DSI + 24-bit RGB. DSI is converted to 24-bit RGB via > >>> +an onboard ICN6211 MIPI DSI - RGB bridge chip, then fed to the panel > >>> +itself > >> As I understand this is display board, which contains 'pure' RGB panel > >> S070WV20-CT16 and optionally ICN6211 DSI->RGB bridge. > >> These are separate devices, just connected by vendor to simplify its > >> assembly. Why don't you create then bridge driver for ICN6211 and RGB > >> panel driver for S070WV20-CT16 - it looks more generic. > >> Then you can describe both in dts and voila. > >> Creating drivers for every combo of devices (panel + bridge), just > >> because some vendor sells them together seems incorrect - we have > >> devicetree for it. > > Rob suggested this, and also the opposite: using the same > > "bananapi,s070wv20-ct16" > > compatible string for both types of connections, and have the driver deal with > > detecting the bus type. > > > > The thing about the bridge chip is that there's no available datasheet that > > describes all the parts of the init sequence, in fact none at all. I managed > > to work out some bits, but the others remain a mystery and must be hard-coded > > to match the panel. That would work against having a generic bridge driver. > > > But it is common for many chips - 1st version of the driver is developed > on one platform and it supports only one configuration, if next platform > with the same cheap appears the driver is augmented if necessary. At-least few of the commands from panel initialization code, the respective opcode data values are based on panel timings and even clock value is different in DSI. I think it look hard to try bridge driver for these restrictions, do you have any suggestions?