Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2130849rdd; Thu, 11 Jan 2024 23:21:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGr6AtJ9bsmxesz2vANQJA3TUjZsy/SOnFF97O/7Qep7bkbkS5E+jgzMGW22J9bSPIfE9Pe X-Received: by 2002:a05:6358:4c43:b0:175:7087:64bf with SMTP id lc3-20020a0563584c4300b00175708764bfmr1027025rwc.59.1705044078213; Thu, 11 Jan 2024 23:21:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705044078; cv=none; d=google.com; s=arc-20160816; b=OwIgmf42zNjJib8SKyjOQNVTdwlf+Jr2T6TtLUPT6wYupQPr2pOrbuDYdNU4oWbKmr EEkjidyoQe2kwB1Q3oGBRlQpKIXNiB/tI1a9aVHjjSqyZSQ0+DXf5v/tDHjNbblh/v3c kA2FiIMyinPxwfK/R7BMMoh+E2F6L79GWTtYfZfEzT/9KmmVBN3mMcUOnONXIOfV8v0n 0UsuMSVmXeXQDtZfoXms1ieXH8oe7V+qVBdQCVtcglRVa+yqfTN/iRJBkexonbsO52ua UDsGBVLRL8DV/ALBRN77Zai3f/4Q0IJn4UJvbVLthokxkGhmRAYiJY0EpjF7KAMcECbU 8YVQ== 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=WW6jGJjARLyzmvJo/Ejz9ZPhSP+j9ZHeaKbDRm9v9fQ=; fh=U9urMAb6SbeXCBp8dI3rpinnhHDooz1CxeFDBBkYHBw=; b=0i+fdpmd4h35/Sr+NWLuqjXT6BoVzQJl8ZE7Pt/qfZQy300LziYerbjsj5+SqXI/XP oH/poqidY9VRDuCfC+E4c074igz4ntyxfJ7JBeTnPSEH14KkLOl1pnYlKqn8MLJd+h2p KrG65O5QzeeOQEb1RwHqmOKiI8WNAJ0TYQqU4AZ+9UOSh+3UfxICFjICl4uzqzOfCUg5 sp6L6TJbHeZdXpk2Ds/Isa2GQ0FDfYbj4Mz03LHc/N+XRTfkN2jEoZuCD4XDGojRGxIL wBUBAyNCAYwFAGrnpJMKE2D2CiMF4S27i8Ti41otpWyhSexaO+QIiwXED9aDYWb2uTMp e2AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LHZRP8As; spf=pass (google.com: domain of linux-kernel+bounces-24364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24364-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f23-20020a635557000000b005ce107e6eb6si2782772pgm.657.2024.01.11.23.21.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 23:21:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LHZRP8As; spf=pass (google.com: domain of linux-kernel+bounces-24364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24364-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E705BB22378 for ; Fri, 12 Jan 2024 07:20:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21B075C912; Fri, 12 Jan 2024 07:20:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LHZRP8As" Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 6E45F5C8FF for ; Fri, 12 Jan 2024 07:20:38 +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-lj1-f175.google.com with SMTP id 38308e7fff4ca-2cd7e429429so29537691fa.1 for ; Thu, 11 Jan 2024 23:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705044036; x=1705648836; 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=WW6jGJjARLyzmvJo/Ejz9ZPhSP+j9ZHeaKbDRm9v9fQ=; b=LHZRP8AsO5pxEs076QSrtdtstv+n5CWw1drSqXrsxCUbmvU9gs6p3kgxtg1Nkm07n0 nHH3y+GLewPLKYAL0aoW2KIPbes+X1/2jNfg+oLuG7UOMfUODiCCokfYJQT8Id1E9YaL AtJ/RecQhE2NSoStILS6y55L0uWAzI3TjZ04j672E+dVx17QJ6gPmIL7qKBpmA/oinsK XM+nQpBw59BCEqOIfxTCaDXXSiW9d4U2mo2wVg1UTKozYTxAQGqNm8ujoH63El+R8oCW y9aGNy1+BZiclvdlcJxJIsvIP3RKiHedAUtdr4EB2VYK0O1yJeJ9uC3TBqyFEFLa5GHF WiCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705044036; x=1705648836; 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=WW6jGJjARLyzmvJo/Ejz9ZPhSP+j9ZHeaKbDRm9v9fQ=; b=cwcQdoAi762fBKddZJ+Z915rWv9oI/Ix5yuDP8EmPznr3oV7DPoeopqLiY8KFx4c28 +o/Aj8akoZwe1W6RXZoY23g0zpJj5OLj0xO/jElXdJ8pFtCTFElMur1MomU2U43SkxIN 7S9fw4tlajuNVKBowoxpiL/SYsoBwdzkmhB5XiCf4/NBKBmGIiEtMRkHVcvHsBujaY7V 3kF1/pICY2ybWKO+ZYUcU64V8NOfncNlPV/V9+mUXnBXsH6c4TiYQdB/DnaldCAv6dCc if7vSv0/S3d4O6jmVQDWuoQaBFal1VPt8dJ9q5ObyYEHurZPm4sZu/KahXQw5MTFWf96 2dlQ== X-Gm-Message-State: AOJu0YwjsOyt68R/8NhWB2NuN7uKbbqf8y0L4gvBH+Ql/LtcckOpr3Mw 5qiZ6GIPPl2n7Lfhdt5qARBR3Dwgm4Y/ew== X-Received: by 2002:a2e:aaa3:0:b0:2cd:690d:5d37 with SMTP id bj35-20020a2eaaa3000000b002cd690d5d37mr398220ljb.29.1705044036312; Thu, 11 Jan 2024 23:20:36 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id o12-20020a5d474c000000b00336aac53e75sm3021620wrs.97.2024.01.11.23.20.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jan 2024 23:20:35 -0800 (PST) Message-ID: Date: Fri, 12 Jan 2024 08:20:33 +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 v2 1/4] dt-bindings: mailbox: Add mediatek,gce-props.yaml Content-Language: en-US To: "Jason-JH.Lin" , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Chun-Kuang Hu Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Jason-ch Chen , Johnson Wang , Singo Chang , Nancy Lin , Shawn Sung , Project_Global_Chrome_Upstream_Group@mediatek.com References: <20240110063532.14124-1-jason-jh.lin@mediatek.com> <20240110063532.14124-2-jason-jh.lin@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/BIfX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m3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240110063532.14124-2-jason-jh.lin@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/01/2024 07:35, Jason-JH.Lin wrote: > Add mediatek,gce-props.yaml for specific GCE properties for both > Mailbox Providers and Consumers. > > Signed-off-by: Jason-JH.Lin > --- > .../bindings/mailbox/mediatek,gce-props.yaml | 41 +++++++++++++++++++ > 1 file changed, 41 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mailbox/mediatek,gce-props.yaml > > diff --git a/Documentation/devicetree/bindings/mailbox/mediatek,gce-props.yaml b/Documentation/devicetree/bindings/mailbox/mediatek,gce-props.yaml > new file mode 100644 > index 000000000000..aac776b74e88 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mailbox/mediatek,gce-props.yaml > @@ -0,0 +1,41 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mailbox/mediatek,gce-props.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Global Command Engine common propertes for both Mailbox Providers and Consumers. That's way too long. Please observe coding style wrapping. Just MediaTek Global Command Engine Common Propertes (pay attention to capitalization) > + > +maintainers: > + - Houlong Wei > + > +description: > + The Global Command Engine (GCE) is used to implement a Command Queue (CMDQ) > + driver using the Linux Mailbox framework. The GCE is an instruction based, > + multi-threaded, single-core command dispatcher for MediaTek hardware. > + We use GCE Mailbox binding to define GCE core properties for GCE Mailbox Provider. > + A device that uses the CMDQ driver to confige its hardware registers by requesting configure? > + the Linux Mailbox Channels in the GCE Mailbox Controller is a Mailbox Consumer. > + This binding defines the common GCE properties for both Mailbox Providers and Consumers. Last four sentences: a lot of text yet absolutely no meaning. I still do not understand why same property is shared between provider and consumer. Also, wrap according to Linux coding style. > + > +properties: > + mediatek,gce-events: > + description: > + Each gce-events is an event id corresponding to a specific hardware event > + signal sent to GCE. The event id is defined in the GCE header > + include/dt-bindings/gce/-gce.h of each chips. > + CMDQ client drivers have two usage of GCE event signals, > + one is sfotware tokens and the other is hardware events. > + Software tokens refer to GCE event signals triggered by drivers. > + e.g. software drivers append GCE commands to set a GCE event after specific > + GCE commands. Or CMDQ client driver uses the CPU to write the event id > + into GCE register to trigger the GCE event corresponding to the event id. > + Hardware events refer to GCE event signals triggered by hardware engines. > + e.g. When OVL fetches all the data in the frame buffer, OVL will send There is no full stop before "e.g." and no new sentence. Please run this through grammar check, like Google, ChatGPT or human. > + a frame done irq and send a frame done GCE event via hardware bus directly > + at the same time. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 1 > + maxItems: 1024 Best regards, Krzysztof