Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp26149rdb; Thu, 21 Dec 2023 01:32:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeDI9yY17Ht8ef1Io8Bc73cFXIjBiLKJr8RSeyzXlF6wmmZOUFaohh+2eU5OClbQRgW0Fq X-Received: by 2002:a17:906:856:b0:a1f:821a:11a7 with SMTP id f22-20020a170906085600b00a1f821a11a7mr442570ejd.25.1703151122990; Thu, 21 Dec 2023 01:32:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703151122; cv=none; d=google.com; s=arc-20160816; b=GUmxEfmDBZiESnmF+48/svUzHZc8r5yF8oCL+CQ5ChnP3cX4Srrie5gR4ZQyqTqZUI zfXDZM2AhnB23EamUiUIPd87ejMOche7FXWlG65t7hoZ827lHokStTbxH1+EuuFoP4B9 BmDUk50WiByaVoQ9Yqgz72hRVipTxVzYK8FEGcvVlGoI5MmyKtyuUW4KZi2Gy6XjR3bq 6qM+DoTP8uZnaUzu0AI3XvONRVgFdmBpalTWtc5gXodTnLWWhfSkavrX5TfcLTm0iPDw ZS/LdO6hf00FLiMtATTWbpTrMa6o1f1GJjhPu5FngKWRnNpCrl5qdB5dX7mcHL4g6+IK Ukxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=A/j28HQDSe+//7LuwIWL47ztJLL4UHEPLfDCuDFQ2rg=; fh=A0bCKXvFYZ4+WuiT4gWD2DbXlL0Dn6XJCKyRnbf4TqA=; b=fRx54mbGXxJMDcEhvxt9xBvccBiu9WTzT+2I94FxyOgNDOdjmPSQ+VEb0zDKrZIYpK WbN5Dq2WPEUVzp8FwCmPCERdJtbDTFti6qaU6Wm1/6DDRaDFbvoXHuHIKs2DNA8SlYuh caPsJeaFnlxGsZ5qyYwJWQrjcH8othKz4jfH3IA5Def9n/xVrIm/c8yCVGttgrD0bdo9 tr49k0/IXDjjDXNbPWN0l0+tSUX62UZqgSG1K5EOHgyRxuj99+BacOKsC7HDdqHkskUK mp54qOFymdu+eeh+A7BfWfIHKPiWm9J94k+1W1dp0Byv3TdLQhSXpCL9a72HrH+Vk6fH lJ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GpC3T1ln; spf=pass (google.com: domain of linux-kernel+bounces-8121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id uz8-20020a170907118800b00a235671220fsi670977ejb.742.2023.12.21.01.32.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 01:32:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GpC3T1ln; spf=pass (google.com: domain of linux-kernel+bounces-8121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8BF8B1F2516E for ; Thu, 21 Dec 2023 09:32:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B34E822324; Thu, 21 Dec 2023 09:28:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GpC3T1ln" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86D8B219F6 for ; Thu, 21 Dec 2023 09:28:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-552d39ac3ccso3078928a12.0 for ; Thu, 21 Dec 2023 01:28:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703150935; x=1703755735; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=A/j28HQDSe+//7LuwIWL47ztJLL4UHEPLfDCuDFQ2rg=; b=GpC3T1lnCLjovvJ3LNYG16682RkoVVLP02qNhni0tecoNG3lHDnTDQIHXr1HOAw2Lc 2Z8o4G6/jeGNKkjxy4dwSAUgI2pn2lNO8nTZNjq6KfQCGMAQ3B2ci6KBiEi2lczsxKvR +2MCdFMNkjDreE5PRVmGPeJxMsnIWzpACSBFI5DIPav7rabcy+MKu0Uzs93k8/pWdhlJ gL5sNVgTkUafpXSCCdYnOKejzQe+tCwe70BTjxX9NJPFWK98PpiI7Pdh77eg+A8N4Vh0 Rc2nJLhTz2T8nYJc0PhNZ5+g2ICw2kae4HCSCsouplwLUSH9cIutj+a8PzHSgri2dkS7 qnVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703150935; x=1703755735; h=content-transfer-encoding:in-reply-to:autocrypt: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=A/j28HQDSe+//7LuwIWL47ztJLL4UHEPLfDCuDFQ2rg=; b=Miu4hFXOQPVMG+J+rmA54DEeH6xHJ0rQtTeoWKWNEt0Swpj8vgSpSMooO9iYZgys74 eeigmfUAKuAWVkCk0gdicfKcjG8satwsW0ytfR1ia92LU0P4BeaoKqErOwuicFt6OqUD 9FhveHmxgP97RSwLa462y0Y4VCrFcw937cfWS/TQSlsCxU//llzay86lUm02hr6ORZ/4 KqbFbnZSkhV4hVeb6GFIfKKJz66B0175vJ3qaKPRaIwRCScnhnKIU3M3IuqcTTiDVFLq DSFf1fBujOH7ICskVatBryHA8BfLD/7CE+3eJkepRH0/IbQuMZ+zTPyMKKPkL4/nw5wd v9Vg== X-Gm-Message-State: AOJu0YwGTXuR5BKNdH4YY1BE5mG5IobiKwH1R4zi7Uti1eyfZ4uLX4/s Qitqga4gfd8BkVGsoP4WLlnTiw== X-Received: by 2002:a17:906:6a14:b0:a23:62ed:105b with SMTP id qw20-20020a1709066a1400b00a2362ed105bmr545323ejc.69.1703150934819; Thu, 21 Dec 2023 01:28:54 -0800 (PST) Received: from [192.168.0.22] ([78.10.206.178]) by smtp.gmail.com with ESMTPSA id el1-20020a170907284100b00a1c96e987c4sm740897ejc.101.2023.12.21.01.28.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Dec 2023 01:28:54 -0800 (PST) Message-ID: <250fead9-868b-4063-a054-4cb966dc4ba3@linaro.org> Date: Thu, 21 Dec 2023 10:28:52 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10 02/16] dt-bindings: media: mediatek: mdp3: merge the indentical RDMA under display Content-Language: en-US To: Moudy Ho , Chun-Kuang Hu , Philipp Zabel , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil Cc: 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: <20231220100853.20616-1-moudy.ho@mediatek.com> <20231220100853.20616-3-moudy.ho@mediatek.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXf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wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231220100853.20616-3-moudy.ho@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/12/2023 11:08, Moudy Ho wrote: > To simplify maintenance and avoid branches, the identical component > should be merged and placed in the path belonging to the MDP > (from display/* to media/*). Combining bindings into one bigger meta-binding makes it usually more difficult to maintain and review. > > In addition, currently only MDP utilizes RDMA through CMDQ, and the > necessary properties for "mediatek,gce-events", and "mboxes" have been > set up for this purpose. > Within DISP, it directly receives component interrupt signals. > > Signed-off-by: Moudy Ho > --- > .../display/mediatek/mediatek,mdp-rdma.yaml | 92 ------------------- > .../bindings/media/mediatek,mdp3-rdma.yaml | 43 ++++++++- > 2 files changed, 40 insertions(+), 95 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml > > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml > deleted file mode 100644 > index 7570a0684967..000000000000 > --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml > +++ /dev/null > @@ -1,92 +0,0 @@ > -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > -%YAML 1.2 > ---- > -$id: http://devicetree.org/schemas/display/mediatek/mediatek,mdp-rdma.yaml# > -$schema: http://devicetree.org/meta-schemas/core.yaml# > - > -title: MediaTek MDP RDMA > - > -maintainers: > - - Chun-Kuang Hu > - - Philipp Zabel > - > -description: > - The MediaTek MDP RDMA stands for Read Direct Memory Access. > - It provides real time data to the back-end panel driver, such as DSI, > - DPI and DP_INTF. > - It contains one line buffer to store the sufficient pixel data. > - RDMA device node must be siblings to the central MMSYS_CONFIG node. > - For a description of the MMSYS_CONFIG binding, see > - Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml for details. > - > -properties: > - compatible: > - oneOf: > - - const: mediatek,mt8195-vdo1-rdma > - - items: > - - const: mediatek,mt8188-vdo1-rdma > - - const: mediatek,mt8195-vdo1-rdma > - > - reg: > - maxItems: 1 > - > - interrupts: > - maxItems: 1 > - > - power-domains: > - maxItems: 1 > - > - clocks: > - items: > - - description: RDMA Clock > - > - iommus: > - 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 > - > -required: > - - compatible > - - reg > - - power-domains > - - clocks > - - iommus > - - mediatek,gce-client-reg > - > -additionalProperties: false > - > -examples: > - - | > - #include > - #include > - #include > - #include > - #include > - > - soc { > - #address-cells = <2>; > - #size-cells = <2>; > - > - rdma@1c104000 { > - compatible = "mediatek,mt8195-vdo1-rdma"; > - reg = <0 0x1c104000 0 0x1000>; > - interrupts = ; > - clocks = <&vdosys1 CLK_VDO1_MDP_RDMA0>; > - power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS1>; > - iommus = <&iommu_vdo M4U_PORT_L2_MDP_RDMA0>; > - mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x4000 0x1000>; > - }; > - }; > diff --git a/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml > index e1ffe7eb2cdf..e9955639ce19 100644 > --- a/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml > +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml > @@ -20,8 +20,12 @@ description: | > > properties: > compatible: > - items: > + oneOf: > - const: mediatek,mt8183-mdp3-rdma > + - const: mediatek,mt8195-vdo1-rdma > + - items: > + - const: mediatek,mt8188-vdo1-rdma > + - const: mediatek,mt8195-vdo1-rdma > > reg: > maxItems: 1 > @@ -60,6 +64,7 @@ properties: > items: > - description: RDMA clock > - description: RSZ clock > + minItems: 1 > > iommus: > maxItems: 1 > @@ -68,6 +73,10 @@ properties: > items: > - description: used for 1st data pipe from RDMA > - description: used for 2nd data pipe from RDMA > + minItems: 1 > + > + interrupts: > + maxItems: 1 Why existing devices now support interrupts? > > '#dma-cells': > const: 1 > @@ -76,13 +85,41 @@ required: > - compatible > - reg > - mediatek,gce-client-reg > - - mediatek,gce-events > - power-domains > - clocks > - iommus > - - mboxes > - '#dma-cells' I see little value in this commit, considering that next month you will want to split it because it will grow unmaintainable. Best regards, Krzysztof