Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp667942lqp; Fri, 5 Apr 2024 05:39:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0ozrzWQTCibHlvPTo+OiqOZ4gKJtdfwnJRecPnVZetqeoLclOnKix2isSCIlEnrElCEZRhPdCbuOBC//f3cS/vxXfces591Mlz/TgPw== X-Google-Smtp-Source: AGHT+IEptnYQaOV76q2bUJWE8m2qafe9rWYnHe9P99xHwNNH+KNgHLT7f2g7YmzwBo5w9HjdHRLv X-Received: by 2002:a17:90a:f0c8:b0:2a2:21a7:48bf with SMTP id fa8-20020a17090af0c800b002a221a748bfmr1361854pjb.14.1712320768709; Fri, 05 Apr 2024 05:39:28 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 31-20020a17090a09a200b002a2d615dce4si1360469pjo.127.2024.04.05.05.39.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 05:39:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=V6054nZt; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-132991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9E6C12888BF for ; Fri, 5 Apr 2024 12:32:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A138216D4DE; Fri, 5 Apr 2024 12:31:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="V6054nZt" Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2123.outbound.protection.outlook.com [40.107.14.123]) (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 681191E88D; Fri, 5 Apr 2024 12:31:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.123 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712320311; cv=fail; b=ez+aYa2/2Jkx5idJM81aC6SZ4m1ELb3tGV/g6Gw4R4zx0kIIRsvt6qvi7DFzj7xo4UjOU3YgwrYwudra3Mmt0Eji0Fzp1LNQCxtpco68SKfiyrU27Fum4dEHfB5fvBkVxvj8U/F+kGw5kbm/vk8bKJHH/jRo0yOrWvWfl0DI6lI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712320311; c=relaxed/simple; bh=njXEMiMpEtIfaZaIhvK6loNWL5RDpfROj9sYckAJ0PI=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=edYwax0AHnM4kvopwsKfuqtC6CgxMAQ6OnUgQ6cQTINHu4le1zH69wM9xO0vTg8mkc8s26Z2cTTcHbg+OdFNaM3yYkAbcaVUIOS3MsPJUSq2EOuZvQd8RCNE/ACciwFDJ0tnbhu/bCC614QoDZR6GV4os+Nkoti4Oitb4ZmxgM0= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=V6054nZt; arc=fail smtp.client-ip=40.107.14.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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?B?ZVZsOS9SaVdlWTdRQkViTzBYeHlWWlk3dnVDa1h1MlQ0TWl5YW4ranZTQmZu?= =?utf-8?B?WGZ3VktwZURwbFBqWHJ6TTZZdjZhZ3VIZEE4TVF6cjVWZk41T3ZWbFRxdDVi?= =?utf-8?B?R0lGdlBKWFZ6VWdxSWE0M3NidDRKUklzd0g2S2U1dFhhMlR5eElGbGNYTE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W1lcVhsNDh2UFEwMll0dzZudGlNOHFGVVk4?= =?utf-8?B?K3BPMHVjUlJRY1A2NlkzNHp5QWdVZWpEMG4xWjkwOUFYNlE5ZlNraWs5TFov?= =?utf-8?B?QlRKUXVPUllOSG5IRGg2bFJWd1RoOEpkcFRPNkhUVWExYlh4N3M3YmpiMkdM?= =?utf-8?Q?J133Mor2bAsX4B/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 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>; + }; + }; + }; +... -- 2.37.1