Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp592172pxb; Thu, 15 Apr 2021 01:44:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKP0V8Y8KI/h5/zpiynyJWds8Mno32V3OgAWYISZk+ZQ7aTe3AOQ1U5W8F0p71LZO7xV3C X-Received: by 2002:a17:907:9485:: with SMTP id dm5mr2309018ejc.194.1618476265434; Thu, 15 Apr 2021 01:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618476265; cv=none; d=google.com; s=arc-20160816; b=odL3j4V/NEpBbOpSZZJ/PwOY2Dyvf0FI1Lb2vfI5fStxMybdHsnkoGmGU4q2DNNUM1 DIcJJOscLgJmu4gc90mcoisRapzdLmwHl/BOjCas/BNfgMWVe3ak0Um/iRNDsnkdbFAp DM/fg9xT37euPfAwRNjFGpjhtfqy4Qw45GSlVa9ekZXq1tzNFZROPenkHCkKmUUJVoam jNLO3p2aCfFxXY+4iS25xzkCjDJHEENvGmd+fhKFv6ZvBoy565t5Bt46u3n9/4hOOpRf mYGC7qN1khqBgChjfyNbRf2m2RPMwO0M9jMCVN2w51BmUtuczUXmwCgu5QLXH+Hd3GdP hXJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=GW8n0s7NGEU++w2zgBGmnzhZ7STD4akNONxdJj8wiSU=; b=WvroXE3U+ALdQ0pBQEx/SW/QLINFt6Upf0riyuvnwMU8fzO0SIPwXVNWUAbKTCHJdT snmXrD/9wB3beyk8TiAhqA4YrdrBExGla4pz3l8lsE1vJjm6EyYICfuObFybO/isSyA9 zKphaynr6i6ZdMQrJtIq/i4V3i3QyD+MiexePvb7edyGVmsZJR903JgLaXt5sNJYIOm9 +uVKPpqBc5Pj9kdcX48UDfQ6sLuUhMI72wHNznCbncRnzd/k4gm8mnExmxhaCGdrCczL VeNrSxs3SwG+YZq/G9+kfGo6Cme5qM8377rlGrMM1fyh6tNrYcBUbMZYIfJ2TnNvBgUb kZvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=pAYkdDGg; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="ckYYBa/o"; 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=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p31si2031190edb.415.2021.04.15.01.44.02; Thu, 15 Apr 2021 01:44:25 -0700 (PDT) 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=@cerno.tech header.s=fm2 header.b=pAYkdDGg; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="ckYYBa/o"; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231864AbhDOInG (ORCPT + 99 others); Thu, 15 Apr 2021 04:43:06 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:49333 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231826AbhDOIm7 (ORCPT ); Thu, 15 Apr 2021 04:42:59 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id B491E5806CD; Thu, 15 Apr 2021 04:42:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 15 Apr 2021 04:42:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=GW8n0s7NGEU++w2zgBGmnzhZ7ST D4akNONxdJj8wiSU=; b=pAYkdDGgCvqWvjWhl45AZAWK54u6p48mjD8JQeB1kxw htQjEUpYvLqAHeN8HJSPXJG19Qy4uY5nXIIWZafMBNTglHVJiQdxjND7tuOvKrr5 ZG5+d3FrOvXT7J9iiBveZTNDwxPcxAQNGFgQKmTSbmDLnLP4niXvo+AHIlyKvoW4 tBzag6WM4IrCFyz2EruyiwP2Cs9+cUGxAQ2qVS07+LN+3ZmoiptOqU4ETZ8lFsja 8T1K0sWeyL8u/N+x7Usiped7It8me2fAjaRJxVw8MAVgSXP4lhxruLV6JjLoIZFg agrCvBl3oiUcHsph+K7aT9qz6+l1JKAh75UOMyFkDzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=GW8n0s 7NGEU++w2zgBGmnzhZ7STD4akNONxdJj8wiSU=; b=ckYYBa/o1ySg985iSXQLWF cyzD9BOWQ8blRA0XPGSMJ2/bf0w7SbDvdKMybOQ8gYV7owpUEaPDEG9ILVU76Yq0 SplBZhEfQX4MdYLG7YRhf7/cQdCV+xkbpGWupPno0lZrVOjozZjC6BHZh4tHzWqB YGPdIfKvkzARfyKYAhy+t/nFvYSaPOyP5ch92e8HPq0aXMtMMIGXHZDldIkB84UV hJ456oIB5xcKl+xtorGlhZxVreIDAgfbFILxNnMR0eUcTZuwj0pGkTKB+WNaqwHn PTCgXTapIizYhljuRB+aVnolIPOD6mGwbxuXcyaGmBLZST1GAL3vcyyjiHzvcqbg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudelfedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepuddvledvtdejgfehjeehtdeugeetjeehfedvffdthffhffeugeektdeitddv fedunecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghdpkhgvrhhnvghlrdhorh hgnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 335EB240054; Thu, 15 Apr 2021 04:42:32 -0400 (EDT) Date: Thu, 15 Apr 2021 10:42:30 +0200 From: Maxime Ripard To: Kevin Tang Cc: Maarten Lankhorst , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Orson Zhai , Chunyan Zhang , "Linux-Kernel@Vger. Kernel. Org" , ML dri-devel , devicetree@vger.kernel.org Subject: Re: [PATCH v4 5/6] dt-bindings: display: add Unisoc's mipi dsi controller bindings Message-ID: <20210415084230.moqxuy3caym3kupk@gilmour> References: <20210222132822.7830-1-kevin3.tang@gmail.com> <20210222132822.7830-6-kevin3.tang@gmail.com> <20210324111316.ggo5deacaoecu27q@gilmour> <20210407104653.l4xwfl3qshaimat3@gilmour> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="grolchpxzvyplpoi" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --grolchpxzvyplpoi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 09, 2021 at 08:23:19AM +0800, Kevin Tang wrote: > Maxime Ripard =E4=BA=8E2021=E5=B9=B44=E6=9C=887=E6=97= =A5=E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=886:46=E5=86=99=E9=81=93=EF=BC=9A >=20 > > On Wed, Mar 31, 2021 at 09:49:14AM +0800, Kevin Tang wrote: > > > Hi Maxime, > > > > > > Maxime Ripard =E4=BA=8E2021=E5=B9=B43=E6=9C=8824= =E6=97=A5=E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=887:13=E5=86=99=E9=81=93=EF=BC= =9A > > > > > > > On Mon, Feb 22, 2021 at 09:28:21PM +0800, Kevin Tang wrote: > > > > > From: Kevin Tang > > > > > > > > > > Adds MIPI DSI Controller > > > > > support for Unisoc's display subsystem. > > > > > > > > > > Cc: Orson Zhai > > > > > Cc: Chunyan Zhang > > > > > Signed-off-by: Kevin Tang > > > > > Reviewed-by: Rob Herring > > > > > --- > > > > > .../display/sprd/sprd,sharkl3-dsi-host.yaml | 102 > > ++++++++++++++++++ > > > > > 1 file changed, 102 insertions(+) > > > > > create mode 100644 > > > > > > Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-host.ya= ml > > > > > > > > > > diff --git > > > > > > a/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-host.= yaml > > > > > > b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-host.= yaml > > > > > new file mode 100644 > > > > > index 000000000..d439f688f > > > > > --- /dev/null > > > > > +++ > > > > > > b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-host.= yaml > > > > > @@ -0,0 +1,102 @@ > > > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > > > +%YAML 1.2 > > > > > +--- > > > > > +$id: > > > > http://devicetree.org/schemas/display/sprd/sprd,sharkl3-dsi-host.ya= ml# > > > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > > > + > > > > > +title: Unisoc MIPI DSI Controller > > > > > + > > > > > +maintainers: > > > > > + - Kevin Tang > > > > > + > > > > > +properties: > > > > > + compatible: > > > > > + const: sprd,sharkl3-dsi-host > > > > > + > > > > > + reg: > > > > > + maxItems: 1 > > > > > + > > > > > + interrupts: > > > > > + maxItems: 2 > > > > > + > > > > > + clocks: > > > > > + minItems: 1 > > > > > + > > > > > + clock-names: > > > > > + items: > > > > > + - const: clk_src_96m > > > > > + > > > > > + power-domains: > > > > > + maxItems: 1 > > > > > + > > > > > + ports: > > > > > + type: object > > > > > + > > > > > + properties: > > > > > + "#address-cells": > > > > > + const: 1 > > > > > + > > > > > + "#size-cells": > > > > > + const: 0 > > > > > + > > > > > + port@0: > > > > > + type: object > > > > > + description: > > > > > + A port node with endpoint definitions as defined in > > > > > + > > Documentation/devicetree/bindings/media/video-interfaces.txt. > > > > > + That port should be the input endpoint, usually coming > > from > > > > > + the associated DPU. > > > > > + port@1: > > > > > + type: object > > > > > + description: > > > > > + A port node with endpoint definitions as defined in > > > > > + > > Documentation/devicetree/bindings/media/video-interfaces.txt. > > > > > + That port should be the output endpoint, usually outpu= t to > > > > > + the associated panel. > > > > > > > > The DSI generic binding asks that peripherals that are controlled > > > > through a DCS be a subnode of the MIPI-DSI bus, not through a port > > > > endpoint. > > > > > > > Our DSI controller don't support DCS now... > > > > I'm not sure I follow you, you mentionned in the patch 4 that you were > > testing for a device to be in command mode, how would that work without > > DCS support? > > > Sorry, I see DCS as DSC, pls ignore my previous comments. >=20 > dsi input node is display controller and dsi output node is panel, > I still don't understand what it has to do with dcs? and it seems that > other vendors also like this. >=20 > can you help provide some cases? So the device tree is a tree organized through which bus controls which device: Your DSI controller is accessed through a memory-mapped region and is thus a child node of the main bus (I guess?) and then, since the DSI panel is going to be controlled through the DSI controller and MIPI-DCS, it needs to be a child of the display controller. This is exactly what is being described here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Doc= umentation/devicetree/bindings/display/mipi-dsi-bus.txt#n42 The second port is thus not needed at all Maxime --grolchpxzvyplpoi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYHf8dgAKCRDj7w1vZxhR xaWJAQDa4g+JQlJo7RK1O/eUA0Obqrlbnz+fucRtuGsvmSyfPAD/ZnyIEIiOEYjc s+1BtXu7e0IGuspk16iOS2/ywpbqvgA= =UFOF -----END PGP SIGNATURE----- --grolchpxzvyplpoi--