Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp748586lqe; Sun, 7 Apr 2024 01:57:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkOe/5OCSPSv3kJHCnSjQRsUBOeZh3VWJqrlE+/G6/ZLlR4CQqI0C1+UIqMW9nTa/VXopiZu45vxCtBJE6E7MjdF3HeFaEN/8afY5Zjw== X-Google-Smtp-Source: AGHT+IGgOqPV8JnPOmU8qL0j8YmgOwSpY8wR2qlB+kTxSdVAHNJk9qoLpjzm0n88hfGtCRVxn+jC X-Received: by 2002:a19:f70a:0:b0:513:e14d:15e1 with SMTP id z10-20020a19f70a000000b00513e14d15e1mr4178829lfe.57.1712480253145; Sun, 07 Apr 2024 01:57:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712480253; cv=pass; d=google.com; s=arc-20160816; b=YwsLxzoFP7V9g3eJrsJ9QPThsF+YKd3GXUGPMEjsGdp4Q2SUTDb/b7/42PpUKWT163 8/1SSmlMjTED50gOjkmR4MyiJttgmRT0XhLmg2J5UOFf5M6tuJCNFH0jMyjvWmKMADmH /b7szXT9yU72Kqr3uWyUtRZ5RF3K4aDZrN+R1Ft+SrfkJWPS7cHM0HSdtiQn4jTkyPFp 4m09yymbIfvRKto98fyfP6JI8gD4ChNmMoFeOGGUUniwwzw8ppXOK8YQH0lywy+NfvoE LXRbipLvrLjtYuhAxUZ5jlG/0/08Teoo5asfyRzRfa9S49FJWuRuhSdbrdwfZH6xlTsI zWJA== 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=EQ21yu5Ka4F8smbyNYMmWa4/AGJyFXNMUiJRljcOsJw=; fh=RygXJoentsAC0XD/haJNRDdb53yUXmyejbiUO+hcoo0=; b=cTaN6gubdqJ8n4CUL/F5O5jX7XiA+K3iKn6d7c8/wv8g3UdmjGmpSJF9zhj/SrJlER AXMgwkVU3XEo3/w5z5knGtHlgED3WBTvG8Skb4K08jNgHxC/EXGUhQykOY6mBKBa+Lo7 0xhPBlduGuOqWZXP4iBYwxwWuyrUbrYmWIcZKKWFq4cV+yRA63ooMjqk8Xxxgwk3oJYx 5QlMXeQeGIqqhHEenYeTQQ0iK59OIyTgPqu0/+3V9bjtl+GgBZ1xBrjhLJ1fFbTJe6DT 0+f0cYqjSYvNkEYoVVdvMC7r4xrGCZIio3QQ7ZcKdYr7sSNcL8eCq8PgzSw0R28E/JfP DNoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i9n3FMDo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134268-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id sa20-20020a1709076d1400b00a46c78444e4si2577727ejc.788.2024.04.07.01.57.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 01:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134268-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=@kernel.org header.s=k20201202 header.b=i9n3FMDo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134268-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B11741F2120C for ; Sun, 7 Apr 2024 08:57:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2645C17984; Sun, 7 Apr 2024 08:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="i9n3FMDo" 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 031CC125AC; Sun, 7 Apr 2024 08:57:06 +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=1712480227; cv=none; b=RJfmyR/epjxWd868AmIo2vBD5IE4twyHGnqv2k3r3jbDaJ0APQz1fs8/yG/43kgjDBpRbC841dTM3gspXq2qh4wS1bsc4ONpKhtZszVVQbPQUu4Zx9tMgCLvy+KCZznNa15a4qVlQe9TrrKGVBtYF4ZbiQLMKdfPhPM4Da+SuZ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712480227; c=relaxed/simple; bh=1UmJRBIshTbsNwOgZA2SDcfXRmjyJJJe+7oDBNgAf30=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sfJUv2fVc/VzzwkQiQYVWTh1goqARxnQ/6IX0ajw++gSy80HT0Jw4BHJ2Kfa1E9AZTo4r8yFSqERAtRycPIlutIOVfWQyaS9xdCbnDQUYlvMqpi9ivfuO9TSAs0cRW6viYWUn3RF2cVPh8W+RKMCD3wYf204hD7AedkawxUpQKE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=i9n3FMDo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FEABC433F1; Sun, 7 Apr 2024 08:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712480226; bh=1UmJRBIshTbsNwOgZA2SDcfXRmjyJJJe+7oDBNgAf30=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=i9n3FMDooGJnPJbxeHPBkUwJYKIArbiPKkYdJ+i4VzW3zkHL7/gh9OS4kVfo7E8vA TcFSFEbzZp1RNt7/5hiHsTE+5SHb254FcBCWLASA+czYxiTK4oP2GRoAHXo8+nS12F rmThpFWbRfbGneYzJRN+Jm3TflUS9CRuD1LpSW15M0vMTpi4iA6I23aoeoU4LB5D38 QGXcX7/iGBQ0pcHr3DpVpE7mtYU4fNENIixnITwRlujbSg6+Hr08F7ab+HzGO0lEVn ro0EumLzfOqhbgaXMDjlUdacBxg1+iHe/Idz+WMtdsb0tX0T0sI+m/GNevGrVkcFBI 3HrU8pRFFA5/w== Message-ID: Date: Sun, 7 Apr 2024 10:57:01 +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 , "Peng Fan (OSS)" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Sudeep Holla , Cristian Marussi Cc: "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> <9aab8dab-27c4-40b6-b1d5-0a2babe0700d@kernel.org> 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 FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX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ZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07/04/2024 02:51, Peng Fan wrote: >> Subject: Re: [PATCH v2 2/6] dt-bindings: firmware: add i.MX SCMI Extension >> protocol >> >> 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? > > I should say BBM(BBSM + BBNSM), BBM has RTC and ON/OFF > key features, but BBM is managed by SCMI firmware and exported > to agent by BBM protocol. So add bindings for i.MX BBM protocol. > > Is this ok? No, I still don't know what is BBSM, BBNSM and BBM. > >> >>> - 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: >>> +https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevi >>> >> +cetree.org%2Fschemas%2Ffirmware%2Fimx%2Cscmi.yaml%23&data=05%7 >> C02%7Cp >>> >> +eng.fan%40nxp.com%7C5d16781d3eca425a342508dc562910b7%7C686ea >> 1d3bc2b4c >>> >> +6fa92cd99c5c301635%7C0%7C0%7C638479981570959816%7CUnknown% >> 7CTWFpbGZsb >>> >> +3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn >> 0%3D >>> >> +%7C0%7C%7C%7C&sdata=mWNwPvu2eyF18MroVOBHb%2Fjeo%2BIHfV5V >> h%2F9ebdx65MM >>> +%3D&reserved=0 >>> +$schema: >>> +https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevi >>> +cetree.org%2Fmeta- >> schemas%2Fcore.yaml%23&data=05%7C02%7Cpeng.fan%40nx >>> >> +p.com%7C5d16781d3eca425a342508dc562910b7%7C686ea1d3bc2b4c6fa >> 92cd99c5c >>> >> +301635%7C0%7C0%7C638479981570971949%7CUnknown%7CTWFpbGZs >> b3d8eyJWIjoiM >>> >> +C4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7 >> C%7C%7 >>> >> +C&sdata=v4XnGG00D4I8j5MJvDUVYMRTm7yRrvz0V3fUyc5KAAA%3D&reser >> ved=0 >>> + >>> +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? > > No. I just wanna add vendor extension per SCMI spec. > > 0x80-0xFF: > Reserved for vendor or platform-specific extensions to this interface > > Each vendor may have different usage saying id 0x81, so I add > i.MX dt-schema file. > >> >>> + >>> +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. > > The MISC Protocol is for managing SoC Misc settings, such as SAI MCLK/MQS in > Always On domain BLK CTRL, SAI_CLK_SEL in WAKEUP BLK CTRL, gpio > expanders which is under control of SCMI firmware. So like a bag for everything which you do not want to call something specific? No, be specific... > >>> + >>> + 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? > > Sorry. Is this ok? > minItems: 1 > maxItems: 32 No. Does it answers Rob's question? I see zero correlation to his question. Do not ignore emails from reviewers but respond to them. > >> >>> + 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. > > Sorry, you mean the examples, or the whole dt-schema? *Read comments and respond to them*. Regardless where they are. Best regards, Krzysztof