Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1063151pxb; Thu, 9 Sep 2021 19:30:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsNxys1gAn9O3o1MlURRxkYX4NdsJgotyA82yg8B3+X4B4QYC38j2OXXH/yR58Zy5LXud8 X-Received: by 2002:a92:dd88:: with SMTP id g8mr2662342iln.306.1631241058413; Thu, 09 Sep 2021 19:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631241058; cv=none; d=google.com; s=arc-20160816; b=hC+CBoLPWhS/0Nxget7Z51W61OpcsQ46piSkCffz240yIAe75x4nESDRjVmDLprrDq CCeukHs+M2TWxFJBD3zy3EAVysAZuEwmHWfPfbaRlINgElL9RjR9nwqrwuJtonkOPA0Q wY9uQWNRICgdHP/ZWzARR8XPJax/vk8wzVVFcwUo6w248fmx9HtevHSLzZJdMkqZ7ecV uphT1EWcHYyiINg4pZn+QlVQ5EzBb76BpW/0I6iUPijM76gf/U2T7tyAdWS3HpKlmXmj 9LutPuQej7wTIq3ZDZqnTgYGtVUU5l+53+Yol0IQF/uMrq42omzcRYzorqyxJxP0Tlad NDEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=dRvLNuF82y8S5rDtG557z/+zCyc5Wwj1DY1vkSaIkoM=; b=jNMBsuGGTZrtmddXtJFiiCgviPZTggwL0RfYQwKelkLoOQmYOmAMIMYG6JS/19NHVe iqaFklc88zYPdp6fMF1QJxtMoiipHJRKRVmqxm8XC3pJetQz0T2OlA8LiZW7pzcon2UO QuhvTxXpPUMgTF7OcxcprJMoW3M3lZ1VhI5AHCGsZwiIfVk4ijGYIOgaSdN+wBjGDPZO 4KicY8fL6uxSjLWkRz9wM5Kb9Qao/nIz7MAwrkWEFCaHe/pQ9K9DRpCEehu6g5XDyeU2 8OByA152hSZ6YbILmKpT3/+vsGhgkCzkDNEXlX/UBGviQ27/Ropppd7Vs/cVB3KUGEL9 iZIw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si3766437jaa.5.2021.09.09.19.30.46; Thu, 09 Sep 2021 19:30:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbhIJCbG (ORCPT + 99 others); Thu, 9 Sep 2021 22:31:06 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:55826 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229720AbhIJCbG (ORCPT ); Thu, 9 Sep 2021 22:31:06 -0400 X-UUID: 5e411f4b6eb547f0aa51d73d2212102a-20210910 X-UUID: 5e411f4b6eb547f0aa51d73d2212102a-20210910 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 507428610; Fri, 10 Sep 2021 10:29:53 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Sep 2021 10:29:51 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 10 Sep 2021 10:29:51 +0800 Message-ID: Subject: Re: [PATCH v7 3/5] dt-binding: mt8183: Add Mediatek MDP3 dt-bindings From: moudy ho To: Chun-Kuang Hu CC: Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , "Hans Verkuil" , Jernej Skrabec , Maoguang Meng , daoyuan huang , Ping-Hsun Wu , Geert Uytterhoeven , Rob Landley , Laurent Pinchart , Linux Media Mailing List , DTML , Linux ARM , "moderated list:ARM/Mediatek SoC support" , linux-kernel , Tomasz Figa , "Nicolas Boichat" , Alexandre Courbot , Pi-Hsun Shih , , Sj Huang =?UTF-8?Q?=28=E9=BB=83=E4=BF=A1=E7=92=8B=29?= , , , srv_heupstream , Hsin-Yi Wang Date: Fri, 10 Sep 2021 10:29:51 +0800 In-Reply-To: References: <20210824100027.25989-1-moudy.ho@mediatek.com> <20210824100027.25989-4-moudy.ho@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-09-07 at 08:11 +0800, Chun-Kuang Hu wrote: > Hi, Moudy: > > Moudy Ho 於 2021年8月24日 週二 下午6:02寫道: > > > > 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 > > I've compared ccorr driver in display [1] and ccorr in mdp [2], both > are similar. So I would like both binding document are placed > together. In display folder? In mdp folder? In SoC folder? I've no > idea which one is better. At lease put together. > > [1] > https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/mediatek/mtk_disp_ccorr.c?h=v5.14__;!!CTRNKA9wMg0ARbw!xOYd8SaiDSRvJBgpaQpLzMxqPOAstMX7cGXkhEnuYa1Wb3EMiiElNEPeycP_k2IQ$ > > [2] > https://urldefense.com/v3/__https://patchwork.kernel.org/project/linux-mediatek/patch/20210824100027.25989-6-moudy.ho@mediatek.com/__;!!CTRNKA9wMg0ARbw!xOYd8SaiDSRvJBgpaQpLzMxqPOAstMX7cGXkhEnuYa1Wb3EMiiElNEPeyTwjz4UU$ > > > Regards, > Chun-Kuang. Hi Chun-Kuang, Thank you for your recommendation. I will integrate the same component binding files in MDP and DISP, and place them in the folder same with MMSYS instead. ( https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml ) The first version of RDMA, CCORR, AAL, COLOR and WDMA will be provided by MDP and then DISP add it own property later. Thanks & Regards, Moudy Ho > > > 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!xOYd8SaiDSRvJBgpaQpLzMxqPOAstMX7cGXkhEnuYa1Wb3EMiiElNEPeyW4MmXUY$ > > > > +$schema: > > https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!xOYd8SaiDSRvJBgpaQpLzMxqPOAstMX7cGXkhEnuYa1Wb3EMiiElNEPeydwX0gSy$ > > > > + > > +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. > > + > > + reg: > > + description: | > > + Physical base address and length of the function block > > + register space, the number aligns with the component > > + and its own subcomponent. > > + > > + mediatek,gce-client-reg: > > + $ref: /schemas/types.yaml#/definitions/phandle-array > > + description: | > > + sub-system id corresponding to the global command engine > > (GCE) > > + register address. > > + $ref: /schemas/mailbox/mtk-gce.txt > > + > > + clocks: > > + minItems: 1 > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + #include > > + > > + mdp3_ccorr: mdp3_ccorr@1401c000 { > > + compatible = "mediatek,mt8183-mdp3-ccorr"; > > + mediatek,mdp3-id = <0>; > > + reg = <0x1401c000 0x1000>; > > + mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0xc000 > > 0x1000>; > > + clocks = <&mmsys CLK_MM_MDP_CCORR>; > > + };