Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2685130rdb; Tue, 12 Sep 2023 09:04:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEz3cCKgSMIhA33LmPd0KEFQiHRVMoNOirPLGbaZJa4JcNTN/J7nGmgkS1UELQJAtQMk28h X-Received: by 2002:a05:6a00:2482:b0:68e:3012:fd69 with SMTP id c2-20020a056a00248200b0068e3012fd69mr170544pfv.30.1694534672178; Tue, 12 Sep 2023 09:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694534672; cv=none; d=google.com; s=arc-20160816; b=vLpGB+f+irxFJq3Igw38C0babJ2vr5NhB67pqX7642HiOdlTzUBq51I+24oOy4/d/I JvxGa14AYfH8G81CyMltVE7vtcnXxy9nJDANDFDryg8TqechreQ6dK84Jta/yxDe3gyE 8w/snZZqxK/gR3JcUmwr4uRsdEpZnSE3zG6X3/vuhTGoP5+VnVXXoU3HAOUi0s6vMI7Q kBSD3uvVKowV+jj3jVBQ/ElT58S329JDWywUsZa+N51fSI9WG8HEcJfm7OqMA0OY7s4x DfMw1f2T4VTTdwKlwgMVoEyIRtP9mMZ4XrbDv4yGg7xPI+hxYLle5YbyHDuNZgkpWI51 GiFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=stR6EqZjuV5HhouRZxBMlxYw04Q56qEGFFA6lvC7lcc=; fh=IQw47I1KE+Wdv/PHN4v6BZ5cyYZ/aqgBZyZTpsrZ7TM=; b=K6tCCCmYeD2JKFRwmJs5zLRjmLODSuUGelmpo9a7PwjG6C35W3ostIDX357KKdQ44l Ho9WG1Smwny0DjAEjbQCrwPUUs5SxrASCOh5VZr3PWX7d646/fkHx0ndazRC4reAJL5B nwRIqhWtkT1Hg9quY0NS5tJaAikWlfYy32etV9NaijEFY453S2Ox7zCGVSBO6TYRSfat 8/wucFwWi+/f2tInT6O2IyHDgJgTfipKlW4UOT47WeWgTFEsM0WGLATtP0mXYsUsfcHj VbL1Wzel0VKCyDFtN8QHgEENK4d2zic4BMZsNaDnes5mXc5w6rmAakX7YzqhO7ATnKH9 UiEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dsuj8GAU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id j190-20020a638bc7000000b005775a43d53bsi4916281pge.61.2023.09.12.09.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 09:04:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dsuj8GAU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 21EBE802977C; Tue, 12 Sep 2023 01:20:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231894AbjILIUD (ORCPT + 99 others); Tue, 12 Sep 2023 04:20:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231868AbjILIUC (ORCPT ); Tue, 12 Sep 2023 04:20:02 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60400E78 for ; Tue, 12 Sep 2023 01:19:58 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-52a40cf952dso6999483a12.2 for ; Tue, 12 Sep 2023 01:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694506797; x=1695111597; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=stR6EqZjuV5HhouRZxBMlxYw04Q56qEGFFA6lvC7lcc=; b=dsuj8GAUbRfBH50KySuXMoGnyQGHxHiflORe3L6VZU3PbNgo+AjaHD6jBee02JtVGJ 2VSHt83YpzJZPXT0nrHbF8OKU1L5USnRnZkAP/DSNeu0tYotLAz9D/dQsh7k54YUw751 VRQ5npAW6/PSDapBme6e1WMVD92FXviG3VZ4zhr8nXEq+Luh45YApMmE5WY2urTLn8XY flpHpX0SbM9iTCdR872rXF9xOY+xhF/8n3sBoPILbWJg2uhsPb1PJBYzDRsbABbTGZec tsWZOlkfz7rfFN8I9Fnvi0dVmu8DI7QfPqRfHIXXbFXi4RQxyTbst9d3AMIfu03qSfu1 9eUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694506797; x=1695111597; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=stR6EqZjuV5HhouRZxBMlxYw04Q56qEGFFA6lvC7lcc=; b=qhGQxIcO4UFdQFiBYxZO8PvBfIm/M0F8Kw1/e4n+Wny4fvJBYtzDLI48FDmTIumw6F 7LFbdKlp0FfxKDY2mWuqfRkvKcNa/vZUdSckaBBkmNcKRPGwuchXWW3a5+WDz6DxcxcZ lI9oV4He4tTqzHu1ORpHPbw0mYfvJrBDorml7bti+4cqe5PxTJqrqy0K2IGk1f5jaC/2 Q99Yp+4fMuBj07n9sA/fhPudgkMlyTA1f3k5OJI5fyP6TfT0HUc6jXvXWkjb8rygH9I3 LdiVZPhkto/46jhhKbfPJXnkrUmMlw20VbtS7ikBsoxRFMg5wQtLUu594baIQifoUzuO FyWA== X-Gm-Message-State: AOJu0Yy7W3wCfQJGHQazlajtm18kz2lZhVG0haHT2KcBhzaiiiiL42yy 1vFzk2rB9pAympteizVQKf55nQ== X-Received: by 2002:a17:907:a0c7:b0:9ad:8f26:fdba with SMTP id hw7-20020a170907a0c700b009ad8f26fdbamr477711ejc.15.1694506796686; Tue, 12 Sep 2023 01:19:56 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id r12-20020a170906c28c00b00997c1d125fasm6476225ejz.170.2023.09.12.01.19.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Sep 2023 01:19:55 -0700 (PDT) Message-ID: Date: Tue, 12 Sep 2023 10:19:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH v5 3/3] dt-binding: mediatek: add MediaTek mt8195 MDP3 components Content-Language: en-US To: Moudy Ho , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab , Matthias Brugger , Hans Verkuil Cc: AngeloGioacchino Del Regno , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230912075651.10693-1-moudy.ho@mediatek.com> <20230912075651.10693-4-moudy.ho@mediatek.com> From: Krzysztof Kozlowski In-Reply-To: <20230912075651.10693-4-moudy.ho@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 01:20:19 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 groat.vger.email On 12/09/2023 09:56, Moudy Ho wrote: > Introduce more MDP3 components present in MT8195. Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. > > Signed-off-by: Moudy Ho > --- > .../display/mediatek/mediatek,aal.yaml | 2 +- > .../display/mediatek/mediatek,color.yaml | 2 +- > .../display/mediatek/mediatek,merge.yaml | 1 + > .../display/mediatek/mediatek,ovl.yaml | 2 +- > .../display/mediatek/mediatek,split.yaml | 1 + > .../bindings/media/mediatek,mdp3-fg.yaml | 61 +++++++++++++++++++ > .../bindings/media/mediatek,mdp3-hdr.yaml | 60 ++++++++++++++++++ > .../bindings/media/mediatek,mdp3-pad.yaml | 61 +++++++++++++++++++ > .../bindings/media/mediatek,mdp3-rdma.yaml | 16 ++--- > .../bindings/media/mediatek,mdp3-stitch.yaml | 61 +++++++++++++++++++ > .../bindings/media/mediatek,mdp3-tcc.yaml | 60 ++++++++++++++++++ > .../bindings/media/mediatek,mdp3-tdshp.yaml | 61 +++++++++++++++++++ > 12 files changed, 378 insertions(+), 10 deletions(-) > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-stitch.yaml > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yaml > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml > > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml > index 7fd42c8fdc32..04b1314d00f2 100644 > --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml > @@ -24,6 +24,7 @@ properties: > - enum: > - mediatek,mt8173-disp-aal > - mediatek,mt8183-disp-aal > + - mediatek,mt8195-mdp3-aal > - items: > - enum: > - mediatek,mt2712-disp-aal > @@ -63,7 +64,6 @@ properties: > required: > - compatible > - reg > - - interrupts Why? commit msg tells nothing about it. Why interrupt is not erquired in mt8173? How dropping such requirement is anyhow related to mt8195? > - power-domains > - clocks > > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml > index f21e44092043..8e97b0a6a7b3 100644 > --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml > @@ -26,6 +26,7 @@ properties: > - mediatek,mt2701-disp-color > - mediatek,mt8167-disp-color > - mediatek,mt8173-disp-color > + - mediatek,mt8195-mdp3-color > - items: > - enum: > - mediatek,mt7623-disp-color > @@ -66,7 +67,6 @@ properties: > required: > - compatible > - reg > - - interrupts Why? > - power-domains > - clocks > > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml > index eead5cb8636e..401498523404 100644 > --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml > @@ -24,6 +24,7 @@ properties: > - enum: > - mediatek,mt8173-disp-merge > - mediatek,mt8195-disp-merge > + - mediatek,mt8195-mdp3-merge > - items: > - const: mediatek,mt6795-disp-merge > - const: mediatek,mt8173-disp-merge > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml > index 3e1069b00b56..10d4d4f64e09 100644 > --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml > @@ -26,6 +26,7 @@ properties: > - mediatek,mt8173-disp-ovl > - mediatek,mt8183-disp-ovl > - mediatek,mt8192-disp-ovl > + - mediatek,mt8195-mdp3-ovl > - items: > - enum: > - mediatek,mt7623-disp-ovl > @@ -76,7 +77,6 @@ properties: > required: > - compatible > - reg > - - interrupts Why? > - power-domains > - clocks > - iommus > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml > index a8a5c9608598..a96b271e3240 100644 > --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml > @@ -23,6 +23,7 @@ properties: > oneOf: > - enum: > - mediatek,mt8173-disp-split > + - mediatek,mt8195-mdp3-split > - items: > - const: mediatek,mt6795-disp-split > - const: mediatek,mt8173-disp-split > diff --git a/Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml > new file mode 100644 > index 000000000000..71fd449de8b4 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml > @@ -0,0 +1,61 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/mediatek,mdp3-fg.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Media Data Path 3 FG > + > +maintainers: > + - Matthias Brugger > + - Moudy Ho > + > +description: > + One of Media Data Path 3 (MDP3) components used to add film grain > + according to AV1 spec. > + > +properties: > + compatible: > + enum: > + - mediatek,mt8195-mdp3-fg > + > + reg: > + maxItems: 1 > + > + mediatek,gce-client-reg: > + description: > + The register of display function block to be set by gce. There are 4 arguments, > + such as gce node, subsys id, offset and register size. The subsys id that is > + mapping to the register of display function blocks is defined in the gce header > + include/dt-bindings/gce/-gce.h of each chips. > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + items: > + - description: phandle of GCE > + - description: GCE subsys id > + - description: register offset > + - description: register size > + maxItems: 1 > + > + clocks: > + minItems: 1 This must be maxItems. Use existing code as an example, do not re-invent it. > + > +required: > + - compatible > + - reg > + - mediatek,gce-client-reg > + - clocks > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + display@14002000 { > + compatible = "mediatek,mt8195-mdp3-fg"; > + reg = <0x14002000 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x2000 0x1000>; > + clocks = <&vppsys0 CLK_VPP0_MDP_FG>; > + }; > diff --git a/Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml > new file mode 100644 > index 000000000000..fb1bb5a9e57f > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/mediatek,mdp3-hdr.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Media Data Path 3 HDR > + > +maintainers: > + - Matthias Brugger > + - Moudy Ho > + > +description: > + One of Media Data Path 3 (MDP3) components used to perform HDR to SDR > + > +properties: > + compatible: > + enum: > + - mediatek,mt8195-mdp3-hdr > + > + reg: > + maxItems: 1 > + > + mediatek,gce-client-reg: > + description: > + The register of display function block to be set by gce. There are 4 arguments, > + such as gce node, subsys id, offset and register size. The subsys id that is > + mapping to the register of display function blocks is defined in the gce header > + include/dt-bindings/gce/-gce.h of each chips. > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + items: > + - description: phandle of GCE > + - description: GCE subsys id > + - description: register offset > + - description: register size > + maxItems: 1 > + > + clocks: > + minItems: 1 Here as well. Why is this minitems? > + > +required: > + - compatible > + - reg > + - mediatek,gce-client-reg > + - clocks > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + display@14004000 { > + compatible = "mediatek,mt8195-mdp3-hdr"; > + reg = <0x14004000 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x4000 0x1000>; > + clocks = <&vppsys0 CLK_VPP0_MDP_HDR>; > + }; > diff --git a/Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml > new file mode 100644 > index 000000000000..13b66c5985fe > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml > @@ -0,0 +1,61 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/mediatek,mdp3-pad.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Media Data Path 3 PADDING > + > +maintainers: > + - Matthias Brugger > + - Moudy Ho > + > +description: > + One of Media Data Path 3 (MDP3) components used to insert > + pre-defined color or alpha value to arbitrary side of image. > + > +properties: > + compatible: > + enum: > + - mediatek,mt8195-mdp3-pad And you cannot add it to existing padding because? > + > + reg: > + maxItems: 1 > + > + mediatek,gce-client-reg: > + description: > + The register of display function block to be set by gce. There are 4 arguments, > + such as gce node, subsys id, offset and register size. The subsys id that is > + mapping to the register of display function blocks is defined in the gce header > + include/dt-bindings/gce/-gce.h of each chips. > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + items: > + - description: phandle of GCE > + - description: GCE subsys id > + - description: register offset > + - description: register size > + maxItems: 1 > + > + clocks: > + minItems: 1 Nope > + > +required: > + - compatible > + - reg > + - mediatek,gce-client-reg > + - clocks > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + display@1400a000 { > + compatible = "mediatek,mt8195-mdp3-pad"; > + reg = <0x1400a000 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0xa000 0x1000>; > + clocks = <&vppsys0 CLK_VPP0_PADDING>; > + }; > diff --git a/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml > index 0c22571d8c22..17cd5b587e23 100644 > --- a/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml > +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml > @@ -23,6 +23,7 @@ properties: > enum: > - mediatek,mt8183-mdp3-rdma > - mediatek,mt8195-vdo1-rdma > + - mediatek,mt8195-mdp3-rdma m is before v > > reg: > maxItems: 1 > @@ -50,17 +51,19 @@ properties: > maxItems: 1 > > clocks: > - items: > - - description: RDMA clock > - - description: RSZ clock > + oneOf: > + - items: > + - description: RDMA clock > + - description: SRAM shared component clock > + - items: > + - description: RDMA clock Why now mt8183 can have SRAM clock optional? How changing mt8183 is related to this patch? I'll finish the review, sorry fix basics here. Best regards, Krzysztof