From patchwork Fri Apr 5 12:39:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13619016 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB0ADCD11C2 for ; Fri, 5 Apr 2024 12:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=r0MCG8dUbyyOBfrNO/Ppj3BKpoBTHeY9C+D8XAilO7s=; b=G9IcsbRqO820qY4zfon0xENO4g Tk/zi3p+ZzPrKGaLuIg11SnY0437B7nk+NOvunJvr+o9qIu4PZ5vlzJgmvI//uWgXcqRJlk/QsrJ1 v2iJmHw6/0lMj5cytvP+z2z2go5XO4GXbpicurcd+ISbmtRPl/yfvWvUAoQlMR2aX9FwYmrkALHMj 67XwSediQ6oV8JUwMLNarDXpOEus5JPkXtaj9zrwJxM6Ae/jv9hwMVK2EdDOopch9sPMjQAgbiNuU JW8WdeNk6ADoYPEFzVx4eHI0sTIP/NVYtMmMujcP7DuXxED85gyEZuggOdwVPQzS73dlxfeJtdFIL pLlzLkHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rsijb-00000006woc-25wx; Fri, 05 Apr 2024 12:31:55 +0000 Received: from mail-ve1eur01on0720.outbound.protection.outlook.com ([2a01:111:f400:fe1f::720] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rsijV-00000006wgp-0vMO for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2024 12:31:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IDhVeKazmZnDfd8EG9twr2fJVhyBYLMaZ3XQNVHC88gQkyoLiTZbp+K3TeV+JRzifI/USQS5xxq6quJtXsxXf54ZYT+Nkn+jxB2hXBVNM5x6/sYz7e8ukrocTXTpqYZpSbPGJyAjD5Fh8X4MS3fDMDF3kQnsONI0g2gTkxEIqrmSVBYKzwTHVW2ITA3dk8t+xiQaP966w4bLVrTJVV2N2P6kVx/g2Bb5xIBrvAusUaJnxfg6LqgAEbkg4z6WPgWMHq7eEpv4JivWmftGff79hfz1RlU2IwlL97vutBQOPs2Tc55xJAzxDUORZFQySoxe1xnHgryW3U5zRZzFkzmh0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WLhlRCiWVsLIeV7NVQXArw+BAOVRkiuO/QlS5Qa4hLw=; b=UgiEJ3Qz+FTCE17Ok3YiVqj82y4KcjdrSSl2+7M5bQAtxTEegnqy4PjK8Is5XY+rZSjFEcINm/VSOkuJHaSo+uOfwGwfwe+NMbk3ozjlLBC4VOi7AZU/bxfrHSoA9rvBq1O5TLvRSgunitl88q1yJXvj/lDqh+hWlngGWSmChOBNLmQV9h7t4uvoVGNi2sBtnkCd52Ulq2xhXbpOnVy8QXjdIjhtjWudwxqCgf8ehYjKNZyvks+ZtkqYb1YIH3P3dm0YIqjDIklPbFatU5h8cUHTOhj8XzwNYzH7TUjD1HY0t7UbQHyQqiVC8N+jKsimv5cr5lmdjG6OBHdr8P6M4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WLhlRCiWVsLIeV7NVQXArw+BAOVRkiuO/QlS5Qa4hLw=; b=V6054nZt3ikgmb2xzQj0spH9G/gSR1uHoERObHSjUX565/nywiAMu75yvREONZJOa3UEeBijPH1wPhYC5J7JltmPbMqz4V5SnTlo0XdF/2EYuMOJ/DfWoK4KQuxGVENBEW6ajCH+u8tMdXhpeuuEYMIy09vU9+Lyqqcr6BiYkrk= Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PA4PR04MB7744.eurprd04.prod.outlook.com (2603:10a6:102:c9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 5 Apr 2024 12:31:46 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7386.037; Fri, 5 Apr 2024 12:31:46 +0000 From: "Peng Fan (OSS)" Date: Fri, 05 Apr 2024 20:39:24 +0800 Subject: [PATCH v2 2/6] dt-bindings: firmware: add i.MX SCMI Extension protocol Message-Id: <20240405-imx95-bbm-misc-v2-v2-2-9fc9186856c2@nxp.com> References: <20240405-imx95-bbm-misc-v2-v2-0-9fc9186856c2@nxp.com> In-Reply-To: <20240405-imx95-bbm-misc-v2-v2-0-9fc9186856c2@nxp.com> To: 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 X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1712320792; l=2717; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=V2qEDgdGzTv/oSyf8SB67tGPyUyth0sA80L0w5qSmfA=; b=5QfGF7Twg0+Q1c/qsnnMpvQrEoNCxtcZcvFmHcbJTNudBBTyOC9jGDN4pLdmyvI7qil6RvinC W1eWz15oOzOB7ZoBQR4zIRQl6ZDc8JgIRIPGAuABUI1Oceo15ESS+IT X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0024.apcprd02.prod.outlook.com (2603:1096:4:1f4::12) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PA4PR04MB7744:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hVFlMhT1tmvR1DyaObPqn2D+EETYMbrT1B4s5shWl8Ute7f5JE58xDoLf2KgOJwPPGRD9vu3y4zrN1yMNswq0si31flg1NaRG1gsiVhpIH6gqusAJ412ZwThTh0eZ/pgJYiddlDtCXBQ0/xY4OX0gGFF/1QnI/UfB1TlwvaUi4Y1V3H4K8m8p9u/ltfOTyJ1E/ROvYrwPB3925cIy+5I4ub2fKwEjP6J0QaKSX1d75ZpxzYV6K41uCJ5F/9TAbQfj6JcIJcx0Wx1Mq+32Kromvs/qC1nBfVZKvegPLUTgphVh8DrayGqZY+1og/EvkqZaBmzySM+XX9wWPMTu4/ga8REkOMkQyPdlw1d2vL8AvRPPOkJS7FgfvADU4ysSI/m61bJ1DFBbw8G8g1hHJdbQ3xHXJArHjeEwUW8gstMtBa6e1Ga+mkDlHfRuyOPiihia2ilF9Wp2VL/52NFGjNdrK1e4hoDp22FHwBEo55C/cEeXAG2zMuQCuhxmJa9cKgNkfAAW+8aFd5kU66yecvdvonE39rRxA58P2sE9W/iS3yy8mgMvzF1X8CWX1ehzJJxvbHz39W3OSe//wLvR/tILzyf9sHr9BujyeSYiWFZmY93KdkOm4mXhfHZ9BGCYl5N5GNpnavtiewsvLbgTFhT7Fyc3wnpjJyIxhed9jaLk3o= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(1800799015)(52116005)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?eVl9/RiWeY7QBEbO0XxyVZY7vuCk?= =?utf-8?q?Xu2T4Miyan+jvSBfnXfwVKpeDplPjXrzM6Yv6aguHdA8MQzr5VfN5OvVlTqt5bGIF?= =?utf-8?q?vPJXVzUgqIa43sbt4JRIswH6Ke5tXa2TyxIFlcXLHk1ZVW3TF+OkY+PrOAq680ykG?= =?utf-8?q?OyZP59YHtHWTcF4wl+H59r142kS4tvPDexhdXj/tTLvTRXH7sv3EJVfva65AWeK1g?= =?utf-8?q?/CUl7NIVpqTMpdO6JX9A2p6F50RA2APlIBnMLq2l9OTMGx7j19Pi//IXxEbha3bDR?= =?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8?q?fQEgXTscV9wUMagiDSSYMBfpgnekaJCx+Qb1WLIPLcCMpKH+gOJwn5mMyyk/H68qZ?= =?utf-8?q?MqeqbG9ZciGOVup0AGfw2tsqgBxkvj4/Epnkdnbiaw8wIfTA7qyoUzp7e04Zr7N6Z?= =?utf-8?q?bjVXRin0l/rrVPUFQTohnwBYpQ1FVSDnEnbr70StGSesqwZW/ZluCo5/JdUoTCbJY?= =?utf-8?q?C1tHbeYfqJBGXrBetgw70g2KyWtELb3w3elzarb9PPAGJXy07XQUvgd9I1WY270rL?= =?utf-8?q?9meqXl48vPQ02Ytw6ntiM8qFUY8+pO0ucRRQcP66Y34zyAgUejD0n1Z909AX6Q9fS?= =?utf-8?q?kik9LZ/BTJQuORYNHnHDh6lRVwTh8JdpTO6HTUa1bXx7s7bjb2GLJ133Mor2bAsX4?= =?utf-8?q?B/0bZVgrgcE2?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: efc710a7-cf80-4204-206b-08dc556c5b96 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2024 12:31:46.2833 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +VwKrp1SZfiJx2a22SI3Rj9uxZna7RA9jswX62V/GV0BVg9NqKdV+4hJ1ugJm6pw7tdcISxijel2IgS+zuvhtg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7744 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240405_053149_459818_3B89B56C X-CRM114-Status: GOOD ( 10.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peng Fan Add i.MX SCMI Extension protocols bindings for: - Battery Backed Secure Module(BBSM) - 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# + +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 + + properties: + reg: + const: 0x84 + + wakeup-sources: + description: + Each entry consists of 2 integers, represents the source and electric signal edge + 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>; + }; + }; + }; +...