Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp480675pxb; Wed, 1 Sep 2021 03:21:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjCidbO+IjLIkq7L7U5D2Dip89YQMusxHq0Zbx0JqzcR1yWxac8Cx4i7avsY8+PFrb/TgE X-Received: by 2002:a17:906:1191:: with SMTP id n17mr24120271eja.244.1630491708762; Wed, 01 Sep 2021 03:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630491708; cv=none; d=google.com; s=arc-20160816; b=D7vb0NHwCu3SbBBEJthZih5WD8QteaawJfec1Gs1Bu8raMxF2NmEyi33iItcORaXHi K8FAt8dqzlbW1p7eyjqlQIkX7o3NYev+bOLzmnwUrJ6PTDVqNfOSO0VzMdID79dK2NYm 31TP8FcIjY7WoHdK30TJfji+TTcEhN8yA7xk4WY7AUA5Iw8eTEXE5K5TMYKsd4HHv/8Q e8Q3sU8YMEn4wYUj3GIzmn+0MoZXYBrXMIw1+4Qz+wn4zfp2DWOutcPIVjIQJPpYJroM Wq1d72B1ic9WSTkvfieIbSaC4t0i+4peT229CVJzkOxarqU3f/njMkrq/DFdGI2gqgUX 11KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=729GdT2MAhx/jAkVDNeGvCJtX9tbrZQ8mIDJwfE61ws=; b=fLBDOgGTuWt7/OdRd1SakSgbbH8v08HnY7JomSca8wU9Eh/ZXbrbIE8qgJG4yKhPAl L0Fo1mzQv0b0Lbp8NIRv2z4bxLx5fzjo7eJV90Ib5EXXPe7vMb8vBCVkKHLaxOLHisyX qfmfjcABb/WOd88GgBp3NxfFn84SxosycWa4sOhkmj8EUOTC40tqaFvozHYdMslfS+eG ywHO6sTqNJ1GJWBqCdIoLJrzyTYhqvmnK/k5QEai90yRDn2Mz9KPVZS8Xmf3ngs6rDZG gMwLcWC0WXfGXrg9Zl97L63xT4EUqfooC6sUYrtVp03FGvDxgwFp6GDn5LxGRj3GDBiA uegw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TsbNK53C; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e21si20704214edj.249.2021.09.01.03.21.01; Wed, 01 Sep 2021 03:21:48 -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=@chromium.org header.s=google header.b=TsbNK53C; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233595AbhIAKRa (ORCPT + 99 others); Wed, 1 Sep 2021 06:17:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233327AbhIAKR0 (ORCPT ); Wed, 1 Sep 2021 06:17:26 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAC8CC061764 for ; Wed, 1 Sep 2021 03:16:29 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id f18so996668lfk.12 for ; Wed, 01 Sep 2021 03:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=729GdT2MAhx/jAkVDNeGvCJtX9tbrZQ8mIDJwfE61ws=; b=TsbNK53CZn8ef5BEtVqTZyY/QDW8Rq4bPoXqq311KEaLylPbm35GPM9rS4+xye8UcH lIILdVPttftswk9PX0ZAsCjLZtKtqLoNdXChK9JCKAJm8Y/XoCjVdQHOqPO75UOli1ey 8KKDxOap/6WYDNgiMTqySf7cXWC/ufsRxAWdo= 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=729GdT2MAhx/jAkVDNeGvCJtX9tbrZQ8mIDJwfE61ws=; b=k916rVMFoCfmv9V4K6DnVz6u/WdR4wIcYE3EESJ/PXIapLcHoTjpdUBl80xa5JMjoZ iS3R/UTMgF46GnHBcIH1giQAgdXqf3eUuklwEur7hfjJIM7r+Qj5Dq+LfmeLKU2+zQLR PmzivtgcOaTsrjxEhY9nf0ZIdyydputkAevMT5ofc2gxi9WVEVOGlNc/tYZt9Lh4f28s T7XrhtbDJdrvLTmsF/etd0R+JgYHfkWP5Bl/sjdb/NhbbujcSMT3i7DSz4rfgZKPLhvJ K8xx5h0aPnUmgh+/+vFQWsMTPFWiCVv2e7AWlaUB5ndQsvXwsGhPPiIL2wqhE/lgz/yc QRfQ== X-Gm-Message-State: AOAM531jvwrZJY34UZQDOyWUvKgW+pFsNuNRBAYXfqlDxa2tZy1pNi4H Sl5eRTV4ug9RCAOIvGq/fKb1i7KGXcgLg2/b2xcP+Q== X-Received: by 2002:a05:6512:318a:: with SMTP id i10mr3805568lfe.444.1630491388108; Wed, 01 Sep 2021 03:16:28 -0700 (PDT) MIME-Version: 1.0 References: <20210824100027.25989-1-moudy.ho@mediatek.com> <20210824100027.25989-4-moudy.ho@mediatek.com> <0092244acd520acac81208b8863b15fba58f4193.camel@mediatek.com> <39cec599a65eeb142cb7e729f954098a25652b2b.camel@mediatek.com> In-Reply-To: <39cec599a65eeb142cb7e729f954098a25652b2b.camel@mediatek.com> From: Chen-Yu Tsai Date: Wed, 1 Sep 2021 18:16:16 +0800 Message-ID: Subject: Re: [PATCH v7 3/5] dt-binding: mt8183: Add Mediatek MDP3 dt-bindings To: moudy ho Cc: Rob Herring , Mauro Carvalho Chehab , Matthias Brugger , Hans Verkuil , Jernej Skrabec , Maoguang Meng , daoyuan huang , Ping-Hsun Wu , Geert Uytterhoeven , Rob Landley , Laurent Pinchart , Linux Media Mailing List , Devicetree List , linux-arm-kernel , "moderated list:ARM/Mediatek SoC support" , "linux-kernel@vger.kernel.org" , Tomasz Figa , Nicolas Boichat , Alexandre Courbot , Pi-Hsun Shih , menghui.lin@mediatek.com, Sj Huang , ben.lok@mediatek.com, Randy Wu , srv_heupstream , Hsin-Yi Wang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 1, 2021 at 5:04 PM moudy ho wrote: > > On Mon, 2021-08-30 at 10:05 -0500, Rob Herring wrote: > > On Mon, Aug 30, 2021 at 2:58 AM moudy ho > > wrote: > > > > > > On Tue, 2021-08-24 at 13:02 -0500, Rob Herring wrote: > > > > On Tue, Aug 24, 2021 at 06:00:25PM +0800, Moudy Ho wrote: > > > > > This patch adds DT binding document for Media Data Path 3 > > > > > (MDP3) > > > > > a unit in multimedia system used for scaling and color format > > > > > convert. > > > > > > > > > > Signed-off-by: Moudy Ho > > > > > --- > > > > > .../bindings/media/mediatek,mdp3-ccorr.yaml | 57 +++++ > > > > > .../bindings/media/mediatek,mdp3-rdma.yaml | 207 > > > > > ++++++++++++++++++ > > > > > .../bindings/media/mediatek,mdp3-rsz.yaml | 65 ++++++ > > > > > .../bindings/media/mediatek,mdp3-wdma.yaml | 71 ++++++ > > > > > .../bindings/media/mediatek,mdp3-wrot.yaml | 71 ++++++ > > > > > 5 files changed, 471 insertions(+) > > > > > create mode 100644 > > > > > Documentation/devicetree/bindings/media/mediatek,mdp3- > > > > > ccorr.yaml > > > > > create mode 100644 > > > > > Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml > > > > > create mode 100644 > > > > > Documentation/devicetree/bindings/media/mediatek,mdp3-rsz.yaml > > > > > create mode 100644 > > > > > Documentation/devicetree/bindings/media/mediatek,mdp3-wdma.yaml > > > > > create mode 100644 > > > > > Documentation/devicetree/bindings/media/mediatek,mdp3-wrot.yaml > > > > > > > > > > diff --git > > > > > a/Documentation/devicetree/bindings/media/mediatek,mdp3- > > > > > ccorr.yaml > > > > > b/Documentation/devicetree/bindings/media/mediatek,mdp3- > > > > > ccorr.yaml > > > > > new file mode 100644 > > > > > index 000000000000..59fd68b46022 > > > > > --- /dev/null > > > > > +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3- > > > > > ccorr.yaml > > > > > @@ -0,0 +1,57 @@ > > > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > > > +%YAML 1.2 > > > > > +--- > > > > > +$id: > > > > > > https://urldefense.com/v3/__http://devicetree.org/schemas/media/mediatek,mdp3-ccorr.yaml*__;Iw!!CTRNKA9wMg0ARbw!1C0ChLqzi7Zq8D2d4_S4IqCEei4GXdgy3_VCQg8MdsJP7n8TlxbGyajipusfH8hi$ > > > > > > > > > > +$schema: > > > > > > https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!1C0ChLqzi7Zq8D2d4_S4IqCEei4GXdgy3_VCQg8MdsJP7n8TlxbGyajipi-OInix$ > > > > > > > > > > + > > > > > +title: Mediatek Media Data Path 3 CCORR Device Tree Bindings > > > > > + > > > > > +maintainers: > > > > > + - Daoyuan Huang > > > > > + - Moudy Ho > > > > > + > > > > > +description: | > > > > > + One of Media Data Path 3 (MDP3) components used to do color > > > > > correction with 3X3 matrix. > > > > > + > > > > > +properties: > > > > > + compatible: > > > > > + items: > > > > > + - enum: > > > > > + - mediatek,mt8183-mdp3-ccorr > > > > > + > > > > > + mediatek,mdp3-id: > > > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > > > + maxItems: 1 > > > > > + description: | > > > > > + HW index to distinguish same functionality modules. > > > > > > > > If we wanted h/w indexes in DT, we'd have a standard property. > > > > Why > > > > do > > > > you need this? > > > > > > > > > > I'm sorry not quite sure what HW indexes means (something like > > > aliases?) > > > > It means whatever you said in your description. > > > > And no, I'm not suggesting you use aliases. > > Sorry for the inaccuracy described here, the comment i mentioned before > should be "standard property" instead of "HW index". > > > > It was originally used to mark multiple identical modules in the > > > MDP > > > data path algorithm, so that appropriate paths can be dynamically > > > dispatched. > > > > If they are identical, then why do you need to distinguish them in > > DT? > > If there's some difference you need to know about such as connections > > to other blocks, then describe that. Another common example is > > needing > > to know what bits/registers to access in a syscon phandle. For that, > > make the register offset or bits be args to the phandle property. > > > > Rob > > Integrating the previous discussion, maybe I can revise the description > to the following: > description: | > There may be multiple blocks with the same function but different > addresses in MDP3. In order to distinguish the connection with > other blocks, a unique ID is needed to dynamically use one or > more identical blocks to implement multiple pipelines. With display pipelines it is common to describe the pipeline with an OF graph. With the pipeline drawn out, you also get ways to derive identifiers for otherwise identical blocks, such as from port IDs. See Documentation/devicetree/bindings/display/allwinner,sun4i-a10-display-engine.yaml and arch/arm/boot/dts/sun9i-a80.dtsi for such an example. ChenYu