Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3389026rdh; Thu, 28 Sep 2023 10:08:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVkg+Wi8cwPJCUg0NZEb72Rk9bbPyVRVhP4TQpNL/XrYsQN9oUSOpmIlqTpqBrDjuscph1 X-Received: by 2002:a05:6a21:a5a6:b0:133:8784:15f7 with SMTP id gd38-20020a056a21a5a600b00133878415f7mr3184496pzc.14.1695920889942; Thu, 28 Sep 2023 10:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695920889; cv=none; d=google.com; s=arc-20160816; b=AEsho2KsHKeXARnViFg1iXmYvvrK2ZNSyGRQN5zlBHnU3KVCSf9HPwdT/BwfZAhFaH Uc1+Q8uf7g+ZNVttbMdZHwUB4bIi4Tz8RX3nPBiH+VxHUs4g77X2QkSYXOdQxghDkoPl w6/pCR4M75HhlqpXx+KZ02y4+SANpvrbH+hcF76uehQFCnTbtYgVXZ1L81xYeOOxHu0P rOIk29oOzGcI1SoeLbULHd16atMlyk5ABvuiYvBczu9at4lzcrLh9OIp1VAbdzUzREzH O9UgeAI0IVmEmyd/VWe6fl9klp/8ApnvAeYtAiip/sPHwBKg2bMCkPcTlUSTn1LGGjYa Bp+Q== 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; bh=gn6NBobN5SNSYU088cn+UnWuDrLahjgmhawcx/1b3Y0=; fh=cVwl5u6kMjUQkUkuQyR0ewJSF1JlhKuA8eNbpFiDNnc=; b=tpuqFAkP8x8keN5lmSHVvY1h5dxai89l58YXh6sz55rchc1u3pv1NQvyf6hhvW1vIH 5abax+vIh+l3yw7ueF8kwfWTn4TMawvesEiJf6n2SpotlAydPIMS6bDjYhPhYLoxuwAq iMEg2nzP9DEMMd3N4s85EynYAC5Jwsda/z6s8hm0dAbatLXpqZFzVTsGMR0WNi+vUxE5 Xj0MCoU5VdxKp194ZUsGjWiFq9OLZ40//LXts5rNBjW+GIVgHK1TnAXMA9fhuJBNlwUS d7fITOWp08Mek3q+MfCn9IIOHl1eU0PFmQCEl0SaHQyR8Mj5lHCCFXMJ9ASIxha2r65n bdvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Db4BIMAE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e23-20020a63db17000000b00578d026e2eesi18061879pgg.283.2023.09.28.10.08.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 10:08:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Db4BIMAE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 054D082A8882; Thu, 28 Sep 2023 09:49:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbjI1QtN (ORCPT + 99 others); Thu, 28 Sep 2023 12:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231687AbjI1QtK (ORCPT ); Thu, 28 Sep 2023 12:49:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 456DA1B4; Thu, 28 Sep 2023 09:49:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 448EDC433C7; Thu, 28 Sep 2023 16:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695919747; bh=OeEEMzb0mAUmb+1aOokCsA6Qtj1woMg6PHCCVn3/JME=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Db4BIMAEruuU/barRuapyi3/Do9/1bDem/5vK75erdBa4OOv0a1ayu8JhhwMhiB1B b7FWDXnC9y2GsNVWgvvUIv6epHjo0s+2m9CpR4mOrH1GbZPa4NHYS8ThmE2VxxCI6V tzuRfZSSWdkk2mAYTYjfGbTU46igF52qvkooGb36BaLRROU/HFmzbxWBpsvzILGUvY pMJm89sxGOxi3ZnZu23ElsoQI3nkiUmhgeURqhYzRmP0giv7f9ZN/c7osFWg8g/gXK TkguG9vvRACHovu32wesmkPf+mMsKyrABHaY39fy50sqyvNZxLaFoXjy7EbhFUESl2 nan2yXLQizmUQ== Date: Thu, 28 Sep 2023 17:49:01 +0100 From: Conor Dooley To: Moudy Ho =?utf-8?B?KOS9leWul+WOnyk=?= Cc: "conor.dooley@microchip.com" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "robh+dt@kernel.org" , "linux-media@vger.kernel.org" , "chunkuang.hu@kernel.org" , "devicetree@vger.kernel.org" , "mchehab@kernel.org" , "daniel@ffwll.ch" , "p.zabel@pengutronix.de" , "conor+dt@kernel.org" , "dri-devel@lists.freedesktop.org" , "hverkuil-cisco@xs4all.nl" , "airlied@gmail.com" , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" , "linux-arm-kernel@lists.infradead.org" , "angelogioacchino.delregno@collabora.com" Subject: Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195 Message-ID: <20230928-keep-attractor-1e7cd0df03b2@spud> References: <20230922072116.11009-1-moudy.ho@mediatek.com> <20230922072116.11009-13-moudy.ho@mediatek.com> <20230922-zebra-modify-87ff23c70bb3@spud> <20230922-overhung-deception-e9b461ba0372@spud> <7c445195e17e15d5af5fcb30ae53f76c713e958b.camel@mediatek.com> <20230927-crunching-prancing-36fe3eb79607@wendy> <825ac03b692043d48563620ad9542a4ee43211e7.camel@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rL+dijxgtPL7w+1l" Content-Disposition: inline In-Reply-To: <825ac03b692043d48563620ad9542a4ee43211e7.camel@mediatek.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 28 Sep 2023 09:49:26 -0700 (PDT) --rL+dijxgtPL7w+1l Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 28, 2023 at 02:52:23AM +0000, Moudy Ho (=E4=BD=95=E5=AE=97=E5= =8E=9F) wrote: > On Wed, 2023-09-27 at 10:47 +0100, Conor Dooley wrote: > > On Wed, Sep 27, 2023 at 07:19:28AM +0000, Moudy Ho (=E4=BD=95=E5=AE=97= =E5=8E=9F) wrote: > > > On Fri, 2023-09-22 at 16:51 +0100, Conor Dooley wrote: > > > > On Fri, Sep 22, 2023 at 04:49:14PM +0100, Conor Dooley wrote: > > > > > On Fri, Sep 22, 2023 at 03:21:12PM +0800, Moudy Ho wrote: > > > > > > Add a compatible string for the COLOR block in MediaTek > > > > > > MT8195 > > > > > > that > > > > > > is controlled by MDP3. > > > > > >=20 > > > > > > Signed-off-by: Moudy Ho > > > > > > --- > > > > > > .../devicetree/bindings/display/mediatek/mediatek,color.yaml > > > > > > =20 > > > > > > | 1 + > > > > > > 1 file changed, 1 insertion(+) > > > > > >=20 > > > > > > diff --git > > > > > > a/Documentation/devicetree/bindings/display/mediatek/mediatek > > > > > > ,col > > > > > > or.yaml > > > > > > b/Documentation/devicetree/bindings/display/mediatek/mediatek > > > > > > ,col > > > > > > or.yaml > > > > > > index f21e44092043..b886ca0d89ea 100644 > > > > > > --- > > > > > > a/Documentation/devicetree/bindings/display/mediatek/mediatek > > > > > > ,col > > > > > > or.yaml > > > > > > +++ > > > > > > b/Documentation/devicetree/bindings/display/mediatek/mediatek > > > > > > ,col > > > > > > or.yaml > > > > > > @@ -26,6 +26,7 @@ properties: > > > > > > - mediatek,mt2701-disp-color > > > > > > - mediatek,mt8167-disp-color > > > > > > - mediatek,mt8173-disp-color > > > > > > + - mediatek,mt8195-mdp3-color > > > > >=20 > > > > > How come this one is a "mdp3" not a "disp"? > > > >=20 > > > > I don't know what mdp3 means & googling gives me no answers. > > > > What's > > > > the > > > > "disp" one controlled by, since it isn't controlled by mdp3? > > > >=20 > > > Mediatek's Media Data Path ver.3 (MDP3) is associated with MMSYS > > > and > > > acts as an independent driver that operates between VDEC and DISP. > > > By controlling multiple components, it carries out tasks like > > > converting color formats, resizing, and applying specific Picture > > > Quality (PQ) effects. > > > The driver can be found at "driver/media/platform/mediatek/mdp3". > > > Since the same hardware components are configured in both MDP3 and > > > DISP, considering previous discussions, I attemped to integrate > > > into a > > > single binding, named after the controlling user. > >=20 > > I'm still kinda struggling to understand this. Do you mean that the > > hardware can be controlled by either of the disp and mdp3 drivers, > > and > > a compatible containing "disp" would use one driver, and one > > containing > > "mdp3" would use another? > >=20 > Sorry for any confusion caused by the software information. In the > video pipeline, after decoding, the data flows sequentially through two > subsystems: MDP and DISP. Each subsystems has multiple IPs, with some > serving the same functionality as COLOR mentioned here. However, these > IPs cannot be controlled by different subsystems. Therefore, I included > the name of the subsystem after SoC to identify the configuration's > location. Is this approach feasible? I'll have to leave things to the likes of Laurent to comment here I think. I don't understand this hardware well enough to have a useful opinion. It would seem like a different part of the datapath is a different device that should be documented separately, but I don't know enough to say for sure, sorry. --rL+dijxgtPL7w+1l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRWufQAKCRB4tDGHoIJi 0nsWAP9Z5+p8LVkSBzp2zIp0mJIEPuMJ/5L9jDuxGtzFI/iWtgEArrzswN8FG3pb YVD0T3yCkqjyqOjvhOwzAdI5Kr9a5go= =Rkco -----END PGP SIGNATURE----- --rL+dijxgtPL7w+1l--