Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp348112lqe; Sat, 6 Apr 2024 04:02:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4fyaQKrE2PXRQLYSsMRZ8NWhvoOdlGlz18ty4J8xJNzGZXGgvwiCj7gDWcwilijYv4pfUhPzp+xJUlcRX9tVj8O35fziK2VDyHwCxZw== X-Google-Smtp-Source: AGHT+IEfBIPoQjLArrH56DNYK9fNu7pUd6bjHLW9GRYeRiZD6Lc1e5GbZBEraLspXsrbnwqLgwzO X-Received: by 2002:a9d:6392:0:b0:6ea:db0:53a7 with SMTP id w18-20020a9d6392000000b006ea0db053a7mr192465otk.28.1712401357618; Sat, 06 Apr 2024 04:02:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712401357; cv=pass; d=google.com; s=arc-20160816; b=esV55Gp6c4v9N/GCYl6NpHH0rhnIpVj4riAMF+v2p9NjtL38X38o/z2bt99XBBreft lMCKDjZNmNXK/i0e7lvWAFZGxk706MXzURGeA3eb3DdraBM+ALYz238DaH7dYdEDJ1BL L43v6yWmTSBibDkVcXqyGa0lbxe+muduyQ2G36sbMTnvo7RmcbKxqgzDIAHkYEZTymlM oIHjBD+0Yg/J06CAZqL3E0nGibRQ4OihDH33hTzvuJfDJYwVOhhpDTawFlZGAoZPt+qK zLYnFmbDvJz6qNXJ1hXkN8mu26ctdnGGFlcGb3LKN3NGFwxqJjCnBYi1dfyEBvoJj6ht WaNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=TZAOZax8wUqFYb27zO/6oF5SMOzu2zNENE/69fBTRU4=; fh=ZmGeztkLwe9ZM46DZzHvmB59hrNa9uwpAiV6xPveUuQ=; b=ou6ljKhMnUM5RunuTQKkkOuYrQDh53O4nOCQohZmDYEp/7gIkENP4peODiBaMLZdJO +GV30fsZsch+4hPbJ8q5yT5FOYR1QK+nv9Tuvfx2bahXHlGdGsjVN6htzFfHQ9kh6G9V 47P8dqDROxiJzZe0tzZE7w1vIqXrYQEzZ+S8nIBtM/Bp7MQoVJF+GmLVpOD83fkgwD8S qkyIZugomNLSphCXNB91H9yoBAqv3IttOk2AO6Vv+vWeD9iXRS9+/Gf+SyIj+STv2VGK UGBemf0I7diWzamwIxpOhXJK+tjiZdrvWTnsB+cpQqiiIxCbLdJRM+AvGkqtJVPazl0M 2YXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OGBSp5mv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id da1-20020a05621408c100b00699424a495asi2927030qvb.283.2024.04.06.04.02.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 04:02:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OGBSp5mv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 47EEB1C20EBE for ; Sat, 6 Apr 2024 11:02:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D73D82C19B; Sat, 6 Apr 2024 11:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OGBSp5mv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5D4D210E6; Sat, 6 Apr 2024 11:02:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712401349; cv=none; b=nm+Ar2N3K8Vmxk3Sh1bfEge+jPTrJAGZxXnR8lGZQ+WFRnArm/wjGr4gTpbquCM/cdiPbzR/9eSjjXF3SjYOAbx7LYnBppWuUiCS4BFpzMY8PksuU7z0u7V86/y+PFyC3olI2kz+rCDfjkJ5wielnSfow3rhLQlnMBmGrhr5bFE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712401349; c=relaxed/simple; bh=ZpMrxADaKtuIXlCnRIxLx0NrrHdkrgR6Fbx126OpUO0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IwAjQrNTgitpT0zl6TCpxoc51jCHKqS65s/Ode2koXN4IFUX/FmTCMzk1wGWDaC2ad04kyq9yZcmacxXOAFOD8QZRbVbJedMJwOb6hmiQTVPZijFKlTt0rX3r8Jn/tD6f+DKprZPrvk67+1Da2nIpxkJzKXBoduew98HdaKTOTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OGBSp5mv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 373C6C433C7; Sat, 6 Apr 2024 11:02:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712401349; bh=ZpMrxADaKtuIXlCnRIxLx0NrrHdkrgR6Fbx126OpUO0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OGBSp5mv7v2wdUBs6QxDpTnHMH9h1RadzFJbVbEW5sCOWjrDkmPTYm/kZVAMQWZUz nexpFE0HxrFBlYNET9O+SzYFhqdVnudan30gX/UufdSdDPm1zQWqbN/5vmpjMJXtmi +3vw0QqvQETlEsTNbmofz7d6hracXoNxc8EE0MGTQE0nJd7vhghxDNCtojGIG8Q9g+ cPUEMDk6VT+y8OIdA/uSa79KuWRydn7WCF8csTGZoLqQtRioMOx9TcT681N5fOvkyT 6+2828psFxvt1G2VWsRTPIokzkhi9MWRZkFmBvK9MeoJGFA+tpYFt8ckQmBGNC3jNe JuEGoTNZaTDvw== Message-ID: <9aab8dab-27c4-40b6-b1d5-0a2babe0700d@kernel.org> Date: Sat, 6 Apr 2024 13:02:23 +0200 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 2/6] dt-bindings: firmware: add i.MX SCMI Extension protocol To: "Peng Fan (OSS)" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Sudeep Holla , Cristian Marussi Cc: Peng Fan , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240405-imx95-bbm-misc-v2-v2-0-9fc9186856c2@nxp.com> <20240405-imx95-bbm-misc-v2-v2-2-9fc9186856c2@nxp.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.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/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO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OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240405-imx95-bbm-misc-v2-v2-2-9fc9186856c2@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05/04/2024 14:39, Peng Fan (OSS) wrote: > From: Peng Fan > > Add i.MX SCMI Extension protocols bindings for: > - Battery Backed Secure Module(BBSM) Which is what? > - MISC settings such as General Purpose Registers settings. > > Signed-off-by: Peng Fan > --- > .../devicetree/bindings/firmware/imx,scmi.yaml | 80 ++++++++++++++++++++++ > 1 file changed, 80 insertions(+) > > diff --git a/Documentation/devicetree/bindings/firmware/imx,scmi.yaml b/Documentation/devicetree/bindings/firmware/imx,scmi.yaml > new file mode 100644 > index 000000000000..7ee19a661d83 > --- /dev/null > +++ b/Documentation/devicetree/bindings/firmware/imx,scmi.yaml > @@ -0,0 +1,80 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2024 NXP > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/firmware/imx,scmi.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: i.MX System Control and Management Interface(SCMI) Vendor Protocols Extension > + > +maintainers: > + - Peng Fan > + > +allOf: > + - $ref: arm,scmi.yaml# Sorry, but arm,scmi is a final schema. Is your plan to define some common part? > + > +properties: > + protocol@81: > + $ref: 'arm,scmi.yaml#/$defs/protocol-node' > + unevaluatedProperties: false > + description: > + The BBM Protocol is for managing Battery Backed Secure Module (BBSM) RTC > + and the ON/OFF Key > + > + properties: > + reg: > + const: 0x81 > + > + required: > + - reg > + > + protocol@84: > + $ref: 'arm,scmi.yaml#/$defs/protocol-node' > + unevaluatedProperties: false > + description: > + The MISC Protocol is for managing SoC Misc settings, such as GPR settings Genera register is not a setting... this is a pleonasm. Please be more specific what is the GPR, MISC protocol etc. > + > + properties: > + reg: > + const: 0x84 > + > + wakeup-sources: > + description: > + Each entry consists of 2 integers, represents the source and electric signal edge Can you answer questions from reviewers? > + items: > + items: > + - description: the wakeup source > + - description: the wakeup electric signal edge > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + > + required: > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + firmware { > + scmi { > + compatible = "arm,scmi"; > + mboxes = <&mu2 5 0>, <&mu2 3 0>, <&mu2 3 1>; > + shmem = <&scmi_buf0>, <&scmi_buf1>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + protocol@81 { > + reg = <0x81>; > + }; > + > + protocol@84 { > + reg = <0x84>; > + wakeup-sources = <0x8000 1 > + 0x8001 1 > + 0x8002 1 > + 0x8003 1 > + 0x8004 1>; Nothing improved... If you are going to ignore reviews, then you will only get NAKed. Best regards, Krzysztof