Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp353877pxy; Wed, 21 Apr 2021 04:51:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIWz1Q/LuREVHFmGLxMAOhd3ukLa/IbHBfvHB/ZyAPMjqJ0Tp8HFXBv+syzjVYTwwHE/tB X-Received: by 2002:a17:906:b28c:: with SMTP id q12mr32903427ejz.284.1619005881673; Wed, 21 Apr 2021 04:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619005881; cv=none; d=google.com; s=arc-20160816; b=KxDK6DkNalMY02bL+tJWCBJZwZpi2xCgXPfU2Qn6a3/jm4yGZzfp9b3XWBkG2JtwZ0 KRtPUrPJindSHxHUNZsePJHLBBCgZXngIAmERyUo+U48gS9GRAKpHiYXfPVLcN9az7S3 TMqXVi+1kfndxJOlkXwGRp7lihnBYoKpy2zA0OI96k99rqD7OkHLRIdGY/vc+VsaGehU 4Veba+Ra1sRMiOYillxbrm4SToGfiQidgXkU8mCLTmFg7U+SAJlt7CsMYLKW5FAMph1k zeyCYC2UOfcb3ffvYmafKP/eLpOB4p3gD1f53r58Fd/YG9I+h4y2tQiJACrjWdEEqSIS WR8A== 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=2W4/VcQCLi4nwEha4WtXFo3m7AGhU4mE3p+qqZ+mIH8=; b=xm31nnJMWdVFER3JJX7OR0W+Hs5aqMQ0cVFeZzqyntnXiuCF17PGzZN9DGADCsNhJr ylMV4if+IjUz6bJRTtfmh3Nups3QLCvWjNYqeypTRULPNyyUsjDrKRVXc80I3ahe541I iHQyMNILylBeYDZ2HlT33DrTY5H4nKdac+JbQqqMLXuvzfj/NRF6Tj9/dN6J1sad2XRZ eQUmIONhWEKGD9V1q5Jhwlp2kbIwh0qduh/TUHRkLbOG5760jPXWJyP8vnc4C5472ENS SFa7wgs7axdNdRF+21z2/NfsIchlshhMTD+ZQinbanViHynHV+BJfyg/Ht+pRbHyYTBq 0eIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=RNB22NM4; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=up9+FJsA; 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 g8si1873135ejm.240.2021.04.21.04.50.58; Wed, 21 Apr 2021 04:51:21 -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=RNB22NM4; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=up9+FJsA; 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 S238481AbhDUJjN (ORCPT + 99 others); Wed, 21 Apr 2021 05:39:13 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:60667 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238011AbhDUJjL (ORCPT ); Wed, 21 Apr 2021 05:39:11 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 39DAD5804E5; Wed, 21 Apr 2021 05:38:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 21 Apr 2021 05:38:38 -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=2W4/VcQCLi4nwEha4WtXFo3m7AG hU4mE3p+qqZ+mIH8=; b=RNB22NM4KqSYsruQVebhTNePV+vBSXppIKlDmqegRxP feSOay/4xkYBKwLDIAszWAOnEWg4q++1gPFRQyHnBtKu8+qYYRHm12jjc3CE/5vL o6UHy45R2xnKu4IbEgNzOSNJseHua9ZFMm8YidKC96j942VcNUEeKD6JseULRaEV sqO5s7pU/fqnEWnVJUzG95LqCAsIYtEtbOQJwubB142xMO50wZX/LQXHNEkcuaRF qha+swk20WXOZKpt1klmMOUZI1EYSm6P5C8nvycJoxcEPz+Ov9bp+/bDdz/0jX5k upIt7sMI9R6BF8Dy+Du8WI+NKj4v6/wwpmRzwF7e99Q== 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=2W4/Vc QCLi4nwEha4WtXFo3m7AGhU4mE3p+qqZ+mIH8=; b=up9+FJsAHI/C47dO4CaNUM 4EH3sAPhfa0B2aKdfL/8G3bX6/akrKd+4WzkZXxmLDgVvHAaMxldntmAObi1jSCs g9KSRh5i3BiT7XvbMmxq8fLaJqS4DUb0byMl2xmLUCClYL62E158zrAG7xS+OQHA vjOY05NHBPhXUumaCV/5UXhtpnA31h8YNyuqZIXjxh61nH/3c/tROrQRgJQQHjx8 mg8UqbTqm4W3JnIrPhgtR6LQj4nnAaBcw2iIDfj/oKDE5ucPrho6rMBngPWpDuKx qxVoKIHMST9/2kMVWqBTP/GNObNsEMFspdd6EouyQZVgC+o4Uir8H3swJybRTC9A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtkedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhephfeiteehhfeuudeluedtieeuteegveevkefgkeeitdetvdeftdevtdffgeei uedvnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghdpsghoohhtlhhinhdrtg homhdpkhgvrhhnvghlrdhorhhgnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvg hrnhhordhtvggthh 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 8F3EB1080068; Wed, 21 Apr 2021 05:38:35 -0400 (EDT) Date: Wed, 21 Apr 2021 11:38:33 +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: <20210421093833.dhnkf2265hrtwkzr@gilmour> References: <20210222132822.7830-1-kevin3.tang@gmail.com> <20210222132822.7830-6-kevin3.tang@gmail.com> <20210324111316.ggo5deacaoecu27q@gilmour> <20210407104653.l4xwfl3qshaimat3@gilmour> <20210415084230.moqxuy3caym3kupk@gilmour> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rpyo6ffe5bipimwd" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --rpyo6ffe5bipimwd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Apr 19, 2021 at 12:33:42AM +0800, Kevin Tang wrote: > Maxime Ripard =E4=BA=8E2021=E5=B9=B44=E6=9C=8815=E6= =97=A5=E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D=884:42=E5=86=99=E9=81=93=EF=BC=9A > > > > 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 > > > > > > > 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-hos= t.yaml > > > > > > > > > > > > > > diff --git > > > > > > > > > > a/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-h= ost.yaml > > > > > > > > > > b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-h= ost.yaml > > > > > > > new file mode 100644 > > > > > > > index 000000000..d439f688f > > > > > > > --- /dev/null > > > > > > > +++ > > > > > > > > > > b/Documentation/devicetree/bindings/display/sprd/sprd,sharkl3-dsi-h= ost.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-hos= t.yaml# > > > > > > > +$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 co= ming > > > > 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 o= utput to > > > > > > > + the associated panel. > > > > > > > > > > > > The DSI generic binding asks that peripherals that are controll= ed > > > > > > through a DCS be a subnode of the MIPI-DSI bus, not through a p= ort > > > > > > endpoint. > > > > > > > > > > > Our DSI controller don't support DCS now... > > > > > > > > I'm not sure I follow you, you mentionned in the patch 4 that you w= ere > > > > testing for a device to be in command mode, how would that work wit= hout > > > > DCS support? > > > > > > > Sorry, I see DCS as DSC, pls ignore my previous comments. > > > > > > 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. > > > > > > 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. > Yeah, access DSI controller registers is through AHB bus. >=20 > I'm a little confused, DSI panel node should be a child of the display > controller? If they are controlled through DSI, yes. > I found a lot of cases are organized like this, we also do like it. > https://elixir.bootlin.com/linux/v5.11.15/source/arch/arm/boot/dts/tegra1= 14-dalmore.dts#L48 >=20 > > > > This is exactly what is being described here: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree= /Documentation/devicetree/bindings/display/mipi-dsi-bus.txt#n42 > > > > The second port is thus not needed at all > Yeah, dsi_out port is no need, should be detele. > Besides, I also have a question, if out dsi-phy is separate driver(eg, > dphy have it's own bus) > dsi_out port should be "dphy_in"? You could argue both, but phys are usually represented through the phys pro= perty. Maxime --rpyo6ffe5bipimwd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYH/ymQAKCRDj7w1vZxhR xT1aAQCFJmJwubW5uuEih1MMXtaGdOWmBlYyTp0PjzRuH48wVAD/YnauZ0hvub2Q gTr8Pxphr82Txyym/aDFSxH2AeubEQs= =9LY+ -----END PGP SIGNATURE----- --rpyo6ffe5bipimwd--