Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2950831rwb; Mon, 16 Jan 2023 01:27:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXvLMHLLIpJITMWMSZ2d3WTuWIFYRHBd88uN94Ho2On4PiF9WRh/kFim4u0bcOKtdSWloKmU X-Received: by 2002:a17:906:1c14:b0:871:32e7:79ac with SMTP id k20-20020a1709061c1400b0087132e779acmr1433055ejg.5.1673861277219; Mon, 16 Jan 2023 01:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673861277; cv=none; d=google.com; s=arc-20160816; b=g2VFGG5PtJ0YIBIj12u/cIE4NXkb+VSQUxz7hWjjsscxqT4DLLWn921WzWaBmG7PNV /fYQOsnNp2P5rpaxK0IKIsRMne2irIO9Bwoo0KlhkUKTpohieX471DOagYNIPrKIOqoW QRZFAeNzek/6lsejYoPYdZL8bjxcyTT7veWcPGy3TiSRdeHr12gqDE0rzYiTCeTD8dGk kFkC6d/PkfoPnKDjWVsE6SN3A76TEkJrW2IOl4mRmth+szVMLMKIjid4yPKro2ps9e8l rdq43KulOk2sxvFW57U/694R8JH0F2eG4fXg+qubkdaSZJsfeURSRNkEaSVPGxKYF8HM eRYQ== 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=zms17SHseS3wAoavooLT/19S/3viSn8s+o0NzNuVEiU=; b=zZ9g4CmNzfK9ugg2FRrLrE/aKZiQX0hhAK3/mW3vlmIiykPTP4/A7pEnnrZfC19Rym tp2Xj9BEb+9xsRtSpiCmmj7S/jUDfSbAzaHdnYi9x7uF/psEbSqWSiD5M67k3OpcSX9n 6vpiwiCaIP7QVc3kDBVhM//l7LGK2tQ3jjf/YZD8koFlula0fVuLG3qa4wId+gDvtocn kv60GxWlN1E8JqfU523sHb0W0ipOE7pzRWQWQVAFqhZPmdEFJahHd6fnrYw/4UUwjuTm efL9IzbWYpy9oNIzJMbSP07eV5Vew+K7sotIu3UQNQ3v8dLVqVD1iFlgOHRI+A2NKFZ1 +xTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h5Sj63KX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cx19-20020a05640222b300b00494cb3beb5bsi28380520edb.180.2023.01.16.01.27.44; Mon, 16 Jan 2023 01:27:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h5Sj63KX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231808AbjAPIKP (ORCPT + 51 others); Mon, 16 Jan 2023 03:10:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231966AbjAPIKM (ORCPT ); Mon, 16 Jan 2023 03:10:12 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54B56172B for ; Mon, 16 Jan 2023 00:10:11 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id qx13so7778381ejb.13 for ; Mon, 16 Jan 2023 00:10:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=zms17SHseS3wAoavooLT/19S/3viSn8s+o0NzNuVEiU=; b=h5Sj63KXGKJ6mTUFmnOoksQZFRd0wz0/9nKYmTFIxVovnq8T/KiMMHhMmv/YX/kO2d +d/hw+HaA53PTT1rJma1PlfP69+vcM9CadbwgE2yzurhYx/4KXcCFN2mRR41bzabVb4c sy6pvuXMaf7/9MNYHWQgZMyObKeSv25F1+zHPIQzPpvqAn5+sAYLrHcQEM0sDE7DVSFZ 7KlgjqHiXG+qZaWlD0JWhoUv+0gsqXjd3q6gHl4H5QKJsxBCvM5AjBkmWESZz5Uh86GM MP1dSaDM4YuaoQNJ9DAHklVpcu96FXpdNUXT18aMH3PJ8YJ6scB2CkeQZ3/fi4AeivH0 hrYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=zms17SHseS3wAoavooLT/19S/3viSn8s+o0NzNuVEiU=; b=1JyjnsgyWJtLsdWZ15oke7a5STVubz1ps2AnbXy6TG1z1m4GfjbQmjI+v3aiOU3Hgj A9uGRNXzDfyybfHGP1hnO+y2B75w91wUaj5s+v9PiHcEll0V48TCuq7YLeA9njbsXF68 TzdAzQRhte4CUFr79VDfcqG2dcEJMvESiZHfVbdxpFMg/SlKWReZ3KEj6yzq9As90arP c8y+9Yh/7iPtdP1ai+bTmRLqPHy6KHf6rfBuTva0T+oS+jbmmz/s5uAhEDSiaFYcTkCm IyuntyapgCuJCYMKr74deju306nJ3BaqjU9v11vKDzbkaUSB5uzuz5x7gWKJwXJ6CdoF RX8Q== X-Gm-Message-State: AFqh2ko3g1GvRuLDTOFClfB/9mh/FJliXgCVfNpi0ut8djbiXGqYUWJn SeBfmxXQSVzLFkeshxK2RCFobQ== X-Received: by 2002:a17:906:eb88:b0:870:7e7d:97a7 with SMTP id mh8-20020a170906eb8800b008707e7d97a7mr3021202ejb.72.1673856609899; Mon, 16 Jan 2023 00:10:09 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id j3-20020a170906474300b0084d4cb08f27sm8551169ejs.104.2023.01.16.00.10.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Jan 2023 00:10:09 -0800 (PST) Message-ID: Date: Mon, 16 Jan 2023 09:10:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [RESEND v3 01/13] dt-binding: mediatek: add bindings for MediaTek mt8195 MDP3 components Content-Language: en-US To: Moudy Ho , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20230116032147.23607-1-moudy.ho@mediatek.com> <20230116032147.23607-2-moudy.ho@mediatek.com> From: Krzysztof Kozlowski In-Reply-To: <20230116032147.23607-2-moudy.ho@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/01/2023 04:21, Moudy Ho wrote: > This patch adds support for MT8195 MDP3 RDMA, and introduce more > MDP3 components present in MT8195. Do not use "This commit/patch". https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 Subject: drop second/last, redundant "bindings for". The "dt-bindings" prefix is already stating that these are bindings. > > Signed-off-by: Moudy Ho > --- > .../bindings/media/mediatek,mdp3-aal.yaml | 63 ++++++++++++++++ > .../bindings/media/mediatek,mdp3-color.yaml | 63 ++++++++++++++++ > .../bindings/media/mediatek,mdp3-fg.yaml | 63 ++++++++++++++++ > .../bindings/media/mediatek,mdp3-hdr.yaml | 62 +++++++++++++++ > .../bindings/media/mediatek,mdp3-merge.yaml | 63 ++++++++++++++++ > .../bindings/media/mediatek,mdp3-ovl.yaml | 63 ++++++++++++++++ > .../bindings/media/mediatek,mdp3-pad.yaml | 63 ++++++++++++++++ > .../bindings/media/mediatek,mdp3-rdma.yaml | 30 +++++--- > .../bindings/media/mediatek,mdp3-rsz.yaml | 11 ++- > .../bindings/media/mediatek,mdp3-split.yaml | 75 +++++++++++++++++++ > .../bindings/media/mediatek,mdp3-stitch.yaml | 63 ++++++++++++++++ > .../bindings/media/mediatek,mdp3-tcc.yaml | 62 +++++++++++++++ > .../bindings/media/mediatek,mdp3-tdshp.yaml | 63 ++++++++++++++++ > 13 files changed, 731 insertions(+), 13 deletions(-) > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-aal.yaml > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-color.yaml > 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-merge.yaml > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-ovl.yaml > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-split.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/media/mediatek,mdp3-aal.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3-aal.yaml > new file mode 100644 > index 000000000000..d2e1b5245778 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3-aal.yaml Filename should match compatible, unless you already expect this binding will cover other devices. If so, why not adding them now? > @@ -0,0 +1,63 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/mediatek,mdp3-aal.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Media Data Path 3 AAL > + > +maintainers: > + - Matthias Brugger > + - Moudy Ho > + > +description: > + One of Media Data Path 3 (MDP3) components is responsible for backlight > + power saving and sunlight visibility improving. > + > +properties: > + compatible: > + enum: > + - mediatek,mt8195-mdp3-aal > + > + reg: > + maxItems: 1 > + > + mediatek,gce-client-reg: > + description: > + The register of client driver can be configured by gce with 4 arguments > + defined in this property, such as phandle of gce, subsys id, > + register offset and size. > + Each subsys id is mapping to a base address of display function blocks > + register which is defined in the gce header > + include/dt-bindings/gce/-gce.h. > + $ref: /schemas/types.yaml#/definitions/phandle-array > + maxItems: 1 items with items syntax instead: https://elixir.bootlin.com/linux/v5.18-rc1/source/Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml#L42 > + > + clocks: > + minItems: 1 Nope, maxItems. > + > + power-domains: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - mediatek,gce-client-reg > + - clocks > + - power-domains > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + > + mdp3-aal0@14005000 { Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Definitelly "3" and "0" are not generic suffixes. All comments above apply to your other files here. > + compatible = "mediatek,mt8195-mdp3-aal"; > + reg = <0x14005000 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x5000 0x1000>; > + clocks = <&vppsys0 CLK_VPP0_MDP_AAL>; > + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS0>; > + }; > diff --git a/Documentation/devicetree/bindings/media/mediatek,mdp3-color.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3-color.yaml > new file mode 100644 > index 000000000000..1d8aa5dc76b9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3-color.yaml > @@ -0,0 +1,63 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/mediatek,mdp3-color.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Media Data Path 3 COLOR > + > +maintainers: > + - Matthias Brugger > + - Moudy Ho > + > +description: > + One of Media Data Path 3 (MDP3) components used to adjust hue, luma and > + saturation to get better picture quality. > + > +properties: > + compatible: > + enum: > + - mediatek,mt8195-mdp3-color This is exactly the same as previous file. Why do you split the binding? It really looks unnecessary. Probably all other files should be also squashed. > + > + reg: > + maxItems: 1 > + > + mediatek,gce-client-reg: > + description: > + The register of client driver can be configured by gce with 4 arguments > + defined in this property, such as phandle of gce, subsys id, > + register offset and size. > + Each subsys id is mapping to a base address of display function blocks > + register which is defined in the gce header > + include/dt-bindings/gce/-gce.h. Full, real path please, so it could be validated with tools. Best regards, Krzysztof