From patchwork Fri Jun 21 07:04:37 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: 13706916 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2046.outbound.protection.outlook.com [40.107.22.46]) (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 182B9168C1D for ; Fri, 21 Jun 2024 06:55:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718952956; cv=fail; b=WnbQLHUN46MJhAlbb0gsBknl6kcveEqpsPFKJ4wqqkXqsjJhurnJvGf+s8TK2s5hj+YHgVcT4r2e+Fs7wGyhkYcH/YgkjiSm0zLKVFOTUjl5XVEBNlk44JiWj5/WZK4ilRowIYMndmQUCA+Ef7UyPDkKHS4JncVQ7GWyLY7fVCM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718952956; c=relaxed/simple; bh=G4nGSdnZXL5YrqPNc+JpT348+bi1RjrP7YsaFpTG4aY=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=cYKDVDYbuP3fLSSy57sWxwtGmywcLrXetAI2KJ6QQf9DiXA2bg9hRJCBmMijAbucpZSqavsz2sTpDArxLHwbTeg1JbwRFgYIXHCjKv3/H/rfbvpH2TIo8dZdkNKVbSkMaTjEUeYelKgaaP+J40HwioqPnhy2buGczf2g5EMXiRg= 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=flODI7lk; arc=fail smtp.client-ip=40.107.22.46 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="flODI7lk" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xa+/fpXcm3iFaj6/e0BIzmblGFK6UVbAguJraf5JrOfSxaW+r2qGvbGRXI4kSNAWUyaMv51Z4QwMu7X8PHejKxekIMBSgSTx/3UJ+gZzhLTylB/rpHh1hsRn7F8Wj+4A8KL9ORJ0YBYa7964NDeM0cP9uRJE5BqQN6W2XazRaRTdOa4/iN4MSGYR32Q/Qc2N+4KtAs7yAk3+tArLf7PDtOwyKBNjkhWrSNwbnkqGyhkXm+UknZg5xWIkuBewC/THN5+C+J+rugC04OaGXuix2c59iL+x3CytmcgU8vpGUMgmDeBehqzCB8NezPVffHM8wgb2T0FHnlUf1qQYVzcLXw== 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=3QoauDQxxFBenh0iSUn2b3RJUCaW1ML4tL550SXdj6g=; b=Je64J+fsuq38ire+7vx0AnW67M+zW5DT5Fp0ti/0vkElSValnccnsd/Oz1/TWGfifZufwF48JVTSX7lsd85zFtL0WA7r5Ql2/0+Ck3zo6/vcKnohWQVs089acw2GgjlV8a1ipkeV8G84GLRU8wlhLH9oOEkCCpO2zcLSFo2nJ/muKHeY22yH6gwf2jciWMyT6xDZ4HqSe/53L1p2xnnsn83F5eeWCczfv1Lupk3Ujfml/4Yy9LWslb4goihhCfi7lwTReWNGhMdLe7LUIZYvgcc4T0z2Ybx+TNB5Q7wbgtI/xCYKC5KBSG+2Hrewo5w3kLfQY6gEj3V9DCObPRQN1A== 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=3QoauDQxxFBenh0iSUn2b3RJUCaW1ML4tL550SXdj6g=; b=flODI7lkJaa+W4NWrIt5V1ong9RG0pl/mQRVmp72ARG/09B2sUcd6qteJlCY1i1qZlMmsV8K31DbTFzdgS2a39zUKWy8pr7+Fcz393v7V74pOZhyds6+yQpJZh2JKnYV7InnAFFiMgwiWyXc2RCDisw4ORAWb/4jqtlT0vHYU0Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB5941.eurprd04.prod.outlook.com (2603:10a6:20b:9e::16) by GV1PR04MB10426.eurprd04.prod.outlook.com (2603:10a6:150:1cc::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Fri, 21 Jun 2024 06:55:50 +0000 Received: from AM6PR04MB5941.eurprd04.prod.outlook.com ([fe80::9f4e:b695:f5f0:5256]) by AM6PR04MB5941.eurprd04.prod.outlook.com ([fe80::9f4e:b695:f5f0:5256%4]) with mapi id 15.20.7698.017; Fri, 21 Jun 2024 06:55:50 +0000 From: "Peng Fan (OSS)" Date: Fri, 21 Jun 2024 15:04:37 +0800 Subject: [PATCH v5 2/7] dt-bindings: firmware: add i.MX95 SCMI Extension protocol Message-Id: <20240621-imx95-bbm-misc-v2-v5-2-b85a6bf778cb@nxp.com> References: <20240621-imx95-bbm-misc-v2-v5-0-b85a6bf778cb@nxp.com> In-Reply-To: <20240621-imx95-bbm-misc-v2-v5-0-b85a6bf778cb@nxp.com> To: Jonathan Corbet , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peng Fan , Alexandre Belloni , Dmitry Torokhov Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, arm-scmi@vger.kernel.org, linux-rtc@vger.kernel.org, linux-input@vger.kernel.org X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718953487; l=3120; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=XkeqFAGjNHOKfoWCkbUZAUkgOf7T6GEG5kbFMiWO5cE=; b=evh5Cwt3Yx42Ap7J/WIZLUu1fj85CvDAkAWvSR/udDvf/zZ20Lm3CYBLvW5qtnW3kJWC1Ujqk jLfnFUjXAJeDIblXyt+hVj1uHR2uILB2IVOVhTePO9r713BHG3vqsjd X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR01CA0122.apcprd01.prod.exchangelabs.com (2603:1096:4:40::26) To AM6PR04MB5941.eurprd04.prod.outlook.com (2603:10a6:20b:9e::16) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB5941:EE_|GV1PR04MB10426:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e28bfc7-114a-4c27-ae9d-08dc91bf2fb3 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|366013|52116011|7416011|376011|921017|38350700011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Rx+mpZwhNp28s8a39+mjYsT2laM7m51?= =?utf-8?q?WutMdWA/1bGFFlhgpvnUXByCE+sj0HYwWQXXac8PapeVeRAyEApsk5T1DZ8nnQvaR?= =?utf-8?q?GeF2jH6KOGnv2SFpd3GnKkOjUrN3CWzlMkijhrBez+SZV7ZVJ5GWBX4ZX4+AtcZMd?= =?utf-8?q?wu/FyFTkYdj5UjIbAN+UjMTDOwszydxd+1JXoMqPlImklR2VLIS7xuB8OeVCL05lx?= =?utf-8?q?5GIypdnAkl1j0w1IfDMSP9M3v8bAGMO5JU2FcOyEGthr3A64FF3rE6kUV2j7dnLPi?= =?utf-8?q?BvhdUsBOMZBz5wlguhgDrPIU05KW1pLaJRvYfHx85jqP5i5KlYCyWEIuZQyzHfGed?= =?utf-8?q?lkuj0WcUnDkMJwgP4TwQxezHd0eyjZAiUPCOFD/ko7oXptLQQRk6JlerpZNd6raeV?= =?utf-8?q?ZutmBITshV7MIjBiAAMHdXTA2YRHkDDDagCtMyQW4/0eJke0NPBCMhWfLPs0NNomJ?= =?utf-8?q?WP+AOIMgvYB8yODGFaa1mPZNjthsv/AvEhyWO6SHjrhNQL847JPSXYjcd939yrp85?= =?utf-8?q?4LRxusRDwZ3LC+2VpABgt5XyoB6NF2mMU6d0mQtSC2HYim7yiBHxX39vzWLk3sZm6?= =?utf-8?q?QC0xMworYFzGZ7Y2CWK6vyQNe20X33+mUoij1Nm69HZSS7vD/HFziN7wJBxygQMjy?= =?utf-8?q?8t8yCXYKptuMlpHIhf0YYKgfZujS4qGPiV987vdoZM4NMdavx8B3G4GOj5WsFMhD7?= =?utf-8?q?XcqSAfCdeQm98uve08JNxCIaAAEXrx7u2gsEWOvr9ymaETdBcGrCWhgqF2Ughl638?= =?utf-8?q?Wq7LHQ499tl3B/fiiHGA/yEv/GutRrm44M9f1BKuYD1tk2Iyje7YOE2eObYGBVANt?= =?utf-8?q?Wq/t7SgJjH/jd5yZ4F3bepEJXg0lwS7jIs5f2oVvaqcKiKYBsPjSdXMdt0MQHnNAW?= =?utf-8?q?7O9nI/QmwHKfs0Uu3Zi8CEicFSY6bQK6UW5W0FkfGCCSwuHHD+ORWcPYJXnv2ydrH?= =?utf-8?q?JR+IpIagjZxU2Z8huaWehW2NqSy9XHGaEH2HeXXjSVmBWaombGant8MYfSooNsMIK?= =?utf-8?q?LXeOGePLYlSDojG/W8hXQPB7yBn0NrfGaV7kHIDJxpmSiegHDhwd6zNSc6xBVkTha?= =?utf-8?q?RcPXIc2Td8QmneO1UHFuwQi2RQd4UAK9ca8SsHQiNNEBLxfdqz4uxHIQZ1goPQuw7?= =?utf-8?q?f2xeHZDeBYn/qZ+93v8bNiVuIPEnCk7Xf1S2u29xNPcxY6JZVqq/7+GCuXjIeoZnz?= =?utf-8?q?iOQ9eo47flKJ4iD4dNjeNEjMvauGVEJgHu9c96brk5C4+m4jJKyF+eFRT5r2ZNjD9?= =?utf-8?q?TRSmNKHI41swchAjNF46RcAJjRjBp+TyIUw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB5941.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(366013)(52116011)(7416011)(376011)(921017)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?hZz5/oIbX4Y6wlgXBVzp55wu1NDD?= =?utf-8?q?SDELHwOwemcoNk5c5peJhp88UJclnHJtf6ILMSJq2co2gDQJTh6MkU7TRKD4KvFsD?= =?utf-8?q?laU9v9LlxM+NIDpjpjiC3UMZTK0Xt+kXGOrcuB/iTrk2Q/CkZHprm+2pqPgXM85Zl?= =?utf-8?q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+yAFE2t5Bq7ZBPpFwne4xkwtSEAaW+dIwi/8AMPbrykLPNXLYUgINu+btePfLp3H?= =?utf-8?q?YhHBedwnd7mbfxEWD8bk+Mj4TfusyWu506Q25oIaaPwY1RaNQpFqru4XDzhliKaZn?= =?utf-8?q?mQI3n5UIesrswdwBVQy3OuwQeL1kgoztCNsJ/UqZG9tTvTHYJFSLGsOvBuXwQsbz7?= =?utf-8?q?yRaZEjUn/nLN9uI12YmAP24+nTI21kMYYGx6D+t4hhYEbH9T7dJ94UGmOUUEFWJKR?= =?utf-8?q?wAiAmrVQ2jgvU3Vff4sEFvA3y4mO0kegtydmiqsjnzL5pzgp1lK+EKBmiA1GHkoI+?= =?utf-8?q?iPTp90cy4CxtNehmhrgRB8R75ForVmrVAI+Hh8sbThIQFq8bBJvUIPa+sOQ35RHLs?= =?utf-8?q?i/dYZodjeuV3Oqeie664XcVcsjmyctAy4ePEmiZqH6h8fw3jKF2NHzCa/56ztxQgb?= =?utf-8?q?ejsMv1i9eWWNxRtmpmKzhuIHfT/dl36TGPChR7izyWfYxyZ75c1i/dnTyYyp6J1fX?= =?utf-8?q?NRICKnVkNjfZ?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e28bfc7-114a-4c27-ae9d-08dc91bf2fb3 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB5941.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2024 06:55:50.6673 (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: Ij2s4Uq1Sj7fND8rw/rhQWlrNsZMGUKM5NEYKohiLuqFRo9nR+P6jwMNgllcdi11EYR2BmNC3VGOoR63gyTggw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10426 From: Peng Fan Add i.MX SCMI Extension protocols bindings for: - Battery Backed Module(BBM) Protocol This contains persistent storage (GPR), an RTC, and the ON/OFF button. The protocol can also provide access to similar functions implemented via external board components. - MISC Protocol. This includes controls that are misc settings/actions that must be exposed from the SM to agents. They are device specific and are usually define to access bit fields in various mix block control modules, IOMUX_GPR, and other GPR/CSR owned by the SM. Reviewed-by: "Rob Herring (Arm)" Signed-off-by: Peng Fan Reviewed-by: Cristian Marussi --- .../devicetree/bindings/firmware/arm,scmi.yaml | 5 ++- .../bindings/firmware/nxp,imx95-scmi.yaml | 43 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 4d823f3b1f0e..47f0487e35de 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -22,6 +22,9 @@ description: | [0] https://developer.arm.com/documentation/den0056/latest +anyOf: + - $ref: /schemas/firmware/nxp,imx95-scmi.yaml + properties: $nodename: const: scmi @@ -284,7 +287,7 @@ properties: required: - reg -additionalProperties: false +unevaluatedProperties: false $defs: protocol-node: diff --git a/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi.yaml b/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi.yaml new file mode 100644 index 000000000000..1a95010a546b --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2024 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/nxp,imx95-scmi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX95 System Control and Management Interface(SCMI) Vendor Protocols Extension + +maintainers: + - Peng Fan + +properties: + protocol@81: + $ref: '/schemas/firmware/arm,scmi.yaml#/$defs/protocol-node' + unevaluatedProperties: false + + properties: + reg: + const: 0x81 + + protocol@84: + $ref: '/schemas/firmware/arm,scmi.yaml#/$defs/protocol-node' + unevaluatedProperties: false + + properties: + reg: + const: 0x84 + + nxp,ctrl-ids: + description: + Each entry consists of 2 integers, represents the ctrl id and the value + items: + items: + - description: the ctrl id index + enum: [0, 1, 2, 3, 4, 5, 6, 7, 0x8000, 0x8001, 0x8002, 0x8003, + 0x8004, 0x8005, 0x8006, 0x8007] + - description: the value assigned to the ctrl id + minItems: 1 + maxItems: 16 + $ref: /schemas/types.yaml#/definitions/uint32-matrix + +additionalProperties: true