Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp226043pxu; Tue, 1 Dec 2020 09:43:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIGnhhs77joGtUfNfGVOO0vSKBaABVNP/bHV5IzACP4DvCc0AydPlusfKth6LNy3BPgZpv X-Received: by 2002:a17:906:1405:: with SMTP id p5mr4034098ejc.282.1606844597376; Tue, 01 Dec 2020 09:43:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606844597; cv=none; d=google.com; s=arc-20160816; b=xoHnyCgb8KzCavfYfhoiWNK0d4+rAmlL33T0ncMCuEeyrtRKQa0jI6cgECKR/MYoR3 EL+br7/dIxRqpgdimNB3/6muO0WelwvT3wGZYhge3Z0v5J2tHgHRr4YjaJLArpOy2BqF lz1lmycoPzrWEO7nvEXBsWv0+4pgnZcz5OJFmeB7/E9HRx7skZQSYQ7HJ7VjqvRxk5R5 0yVEkvO0Js65z+hmjBGImswttBSro/jZHfTJZ5+y7JOXVEofSP8djuRSWsy4m/oLpGCB qMuyugT03oz6m14oJxefVCBhBK+9EYQOFG13xLRiH605lFXINbX5M4EzQMvNGRCqMITK zzTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=O2MBam3s+VrnWLi+2ifnXhtaxBufla+rFTfjiV4mz6k=; b=t16+QdUVP30B/fZIjomSPS0pZrHOgXKXOJ8/vKPZCzBxtv4BkoCJZ747ceDAM4wWvn S1K26gy8Zq2FfR/PqpQ3CLrBb5OTdmK9/nmAE12DEr41MFXb/iY3bcfXdQg5m20vtVKH DL1ksq/8eGlk4Oyx5JpvYwMriRISc2e7uERLReCn9HqKekMXk6wZcGEX0b2eqzFi1/h5 ewSI6S+V2gFzTUxCARhR87ipA7LH9uzIW+Op4YzzTd2FkBbk0t0IR2HToT8hH2CGZpaF IEknPh1if14LvcrpJa0tYeTEcNfR4LAp/TIgEWAnLhBjctyrr3BFZyE6+fTZqTZMxdTK SyRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=q7gvXsO8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si316764edr.365.2020.12.01.09.42.53; Tue, 01 Dec 2020 09:43:17 -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=@kernel.org header.s=default header.b=q7gvXsO8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392160AbgLARht (ORCPT + 99 others); Tue, 1 Dec 2020 12:37:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:50888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391945AbgLARht (ORCPT ); Tue, 1 Dec 2020 12:37:49 -0500 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8F10C21D42 for ; Tue, 1 Dec 2020 17:37:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606844227; bh=KNAM6f9lqa9mSdVyTIG/dKQEu1sW8SSDpknGMUKbCiU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=q7gvXsO8ykqAn2xVepDAm7HMlbTj1GN5iniIENiosDRNoP34C9CXV2n19OssOrOSf zrHyfvybHLN4CfnLGsVrl2JcsaJ+CdjwlOBwLTkB41lyPHgC9pllif5zp7zhSV4eOu N50+hBxxWoZ6tlmxD6bJrD1Hh6WkQ4KIF5fOnMpg= Received: by mail-ej1-f54.google.com with SMTP id x16so5814239ejj.7 for ; Tue, 01 Dec 2020 09:37:07 -0800 (PST) X-Gm-Message-State: AOAM5321luAWYhACxtM2aY33PdtL1di+ynP5N5Kv1QJbN17KDBGGZlZo RqfO2RBV4ANoebQk+iu6hAmZbiBIwJs7ZPahPQ== X-Received: by 2002:a17:906:c20f:: with SMTP id d15mr4059120ejz.341.1606844225944; Tue, 01 Dec 2020 09:37:05 -0800 (PST) MIME-Version: 1.0 References: <1606746513-30909-1-git-send-email-kevin3.tang@gmail.com> <1606746513-30909-2-git-send-email-kevin3.tang@gmail.com> In-Reply-To: From: Rob Herring Date: Tue, 1 Dec 2020 10:36:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/6] dt-bindings: display: add Unisoc's drm master bindings To: Kevin Tang Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , Mark Rutland , Orson Zhai , Lyra Zhang , "linux-kernel@vger.kernel.org" , dri-devel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 1, 2020 at 12:36 AM Kevin Tang wrote: > > Hi Rob > > Rob Herring =E4=BA=8E2020=E5=B9=B412=E6=9C=881=E6=97= =A5=E5=91=A8=E4=BA=8C =E4=B8=8A=E5=8D=884:29=E5=86=99=E9=81=93=EF=BC=9A > > > > On Mon, Nov 30, 2020 at 7:28 AM Kevin Tang wrot= e: > > > > > > From: Kevin Tang > > > > Once again, DT patches must Cc the DT list if you want them reviewed. > Ok, i will add DT list to my Cc list. > > > > > > > > The Unisoc DRM master device is a virtual device needed to list all > > > DPU devices or other display interface nodes that comprise the > > > graphics subsystem > > > > > > Cc: Orson Zhai > > > Cc: Chunyan Zhang > > > Signed-off-by: Kevin Tang > > > --- > > > .../display/sprd/sprd,display-subsystem.yaml | 39 ++++++++++++= ++++++++++ > > > 1 file changed, 39 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/display/sprd/sp= rd,display-subsystem.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/display/sprd/sprd,disp= lay-subsystem.yaml b/Documentation/devicetree/bindings/display/sprd/sprd,di= splay-subsystem.yaml > > > new file mode 100644 > > > index 0000000..9487a39 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/display/sprd/sprd,display-sub= system.yaml > > > @@ -0,0 +1,39 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/display/sprd/sprd,display-subsyst= em.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Unisoc DRM master device > > > + > > > +maintainers: > > > + - Kevin Tang > > > + > > > +description: | > > > + The Unisoc DRM master device is a virtual device needed to list al= l > > > + DPU devices or other display interface nodes that comprise the > > > + graphics subsystem. > > > + > > > +properties: > > > + compatible: > > > + const: sprd,display-subsystem > > > > As I said before, we try to avoid these virtual nodes. Make the DRM > > driver bind to the DPU node. > > > > The case where this might be needed is if you have h/w that's a > > mixture of shared and discrete blocks. I don't see anything here > > matching that. > > This is how I understand this sentence: "h/w that's a mixture of shared a= nd discrete blocks" > We have multiple display controllers and corresponding physical interface= s, typical dual-screen display scenario > E.g: > 1. dpu0 and dpu1 both binding to DSI for dual mipi-dsi display; > 2. dpu0 binding to DSI for primary display, and dpu1 binding to DP for ex= ternal display; > > It looks like this: > dpu0------>MIPI-DSI------>DPHY/CPHY Combo------>Panel0 > ^ > ----------------| > | > dpu1------>DisplayPort------>PHY------>Panel1 > > For DTS like this: > display-subsystem { > compatible =3D "sprd,display-subsystem"; > ports =3D <&dpu0_out>, <&dpu1_out>; > }; Yeah, this would be one such case. Just make this scenario clear in commit message. Rob