From patchwork Fri May 24 08:56:44 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: 13672836 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2050.outbound.protection.outlook.com [40.107.247.50]) (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 84D43129E7C for ; Fri, 24 May 2024 08:48:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716540493; cv=fail; b=WQIJMubiGuynBEM9B5Ofjo85p+rOAtIxrArH3wzAzAb6nNdwhHCYVS4EXeBwbT4jR1XzpSQ18oxXjKrfcVdtKCJA+0n8e4cQdDXGRsuDQ8lrvJCtkqHCxXFvejq7Vy3ONmthm7+51oyF/BwjqcjexUYiSQoh64ctowI4SaiA0oM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716540493; c=relaxed/simple; bh=maUBS8lwJVJ7F7fPkL/LNZGOYajZV0DK+3wXC+d3+7A=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=HEQTk0HFwQTcSdnq29yXLtPKlfoC/wE+AfYAfI3XDjBg0cMtVDpupB9oTCO7nYH7K+e3Ff7hE0lwXvT/WNTOPWkDkU5T/ZsCzCDmCt86dH4+I0mIpaxcDQLg1D33jzGmMWe4m/Sxwa5ZKMwFOB5dRljGQj7ZlxjT+9NrQr+ReQg= 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=lzEMJv5F; arc=fail smtp.client-ip=40.107.247.50 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="lzEMJv5F" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eQ/n3ttP9UsPBxyeUrY8NvEGcSYKdXnGiaMTftWCOyTbH8ljj/qP0Muq9a/okVkynBwLQKb1VFcYM4Bwkdf/62VUkUjlcIzYmQkwSmmNl3aaY7f130Ptz/JfZeNwwDUymjVuvVXEiXBTv5FMaQqJi73GP+mxy9/XIjwNOVlmKMWA9pbB1bI1DjqlwWMHvaNOpkep5ITNMmNJwWCL+cbKfmXM52vILMHda62/d8TA9wv2bCJwZL37uX3Rw+AapWmSEMCT5GhJ2CO6yToHr5NZzLC0AdbIVVUCSc/n8p/fzvzCIRBm/nrbuoodiotgCvkNvXbyvc2Fwy7FhaT14MF6gQ== 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=hvXC7aj8CdPSyHC5mKr9ZyjkOxagmn4DuQ76T39nl34=; b=HL/bzScUwfpsaCduIcDNFjqbOqwlEssCRTaHkROdOUBqa/rjbn+NWyj0YOLES4QSbtqMUygQI0J8pXfBww2CrS7x3tN03f2dgTI49BoYBkEe9pN0jojp0KsL2diwJOka2183MHKOtPpzD7y2JHEeR3Z4eMJSeCeQ0JfIp2HowpaOV4X9VfVSAPS4tFlTld+oz5uDWQ+mzWTgAkdJ9BUfbY4yoRTX+DGYEzWqA+8OXM1Y/r0CGVfg+dynGR0N4u7YBj56otm3y/L53oGcvhtYZvuE+Y4bB/zoz6GYPyzzPFHJKYCtTr9qUpFkWYQYwlYtm6373S2nU6x9frLRg9NjXw== 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=hvXC7aj8CdPSyHC5mKr9ZyjkOxagmn4DuQ76T39nl34=; b=lzEMJv5FDRO9Prg35Q4FeQp7grkOPzen1WhZ4kLwQdblK8hwSvAcFppIMue7qWWJkEFNXL3Ggq/Lff9A4to7ybk5WtfVL0eC/DRtWoRO03027XksC6iTDSxEUMkwoQftOBDAxqPjEif2O6bcji277/CXakXpQGD/9LuBIYjMDVo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by VI1PR04MB9931.eurprd04.prod.outlook.com (2603:10a6:800:1d4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.20; Fri, 24 May 2024 08:48:08 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::557f:6fcf:a5a7:981c]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::557f:6fcf:a5a7:981c%7]) with mapi id 15.20.7611.016; Fri, 24 May 2024 08:48:07 +0000 From: "Peng Fan (OSS)" Date: Fri, 24 May 2024 16:56:44 +0800 Subject: [PATCH v4 2/6] dt-bindings: firmware: add i.MX95 SCMI Extension protocol Message-Id: <20240524-imx95-bbm-misc-v2-v4-2-dc456995d590@nxp.com> References: <20240524-imx95-bbm-misc-v2-v4-0-dc456995d590@nxp.com> In-Reply-To: <20240524-imx95-bbm-misc-v2-v4-0-dc456995d590@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 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 X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716541024; l=3068; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=jOGh34hNYtgrB3ysqbY5VPgRsqG8KK1fo2mx+9aW9nk=; b=UTrPVmTaF4kP1gw7YOYGKTSVmrdERvgmmY2Je3WUs3I9YBYACfLejAJtL0JN1YsD/pDwrhW8l L/Zf6K9+hvpB50apSubCYSsfymX8CLz/F4/5K6rTPwvQmnpdNFtgZNN X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0023.apcprd02.prod.outlook.com (2603:1096:4:1f4::19) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) 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: DU0PR04MB9417:EE_|VI1PR04MB9931:EE_ X-MS-Office365-Filtering-Correlation-Id: 1504684a-3470-486e-f7f0-08dc7bce3bdf X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|52116005|376005|7416005|366007|921011|38350700005; X-Microso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rJFC79OtZ3t/9P2iXc1GfAzuyHqdNiuuEu0uNX5uoi8pfY5Vcs2qDyk0oTH?= =?utf-8?q?nc2y0YxUA8kXjP0vQe8IlzvKyQVoHrm+jtG4fSz++hv3CyeYDI0UR8u90F+9bcNLu?= =?utf-8?q?DZcLUuXjo1LfEYdaBwTqIZ+Ws5rEj44SAtbStCKrMlZ+iE4i65H6Sk3bwgtYv4jb7?= =?utf-8?q?s0NieRPMp3+wgy6FZWPdQ/oxh3xMJ3Ms/f8bMFBKOkBRDXvS7yLkNaDdgrQwMBhkK?= =?utf-8?q?O541X50WnBIjcIkhXdzAeiAmoVlxH7U63SkIfEAJWLjevKNJN4XSOlwzYtcl1NWNa?= =?utf-8?q?FFZfDFPWIi/cbyRPmQSwvkdKGoj8XzcS5mtN2VarfbfdgyGTgsA3WKwwZlEuxSy3I?= =?utf-8?q?3CuvUH6Vg0TqgTgR1yrYxAFPBta+aaBqQXlRm8xkgI3/qA03cBS//qgOU=3D?= 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)(1800799015)(52116005)(376005)(7416005)(366007)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?kr65vZTYqOxxxSRkysUp6IxyT22M?= =?utf-8?q?RTQulOXrRRr7b9rt7ToF1aw6Lm/P47bRUAdcYWWKF9HukUmN4EItKpUlsOjnD52s0?= =?utf-8?q?WW2zLjAVvyYCgV43gvqdxi3cXt/5Oac3o9oXhzllWOXiqWXCsZSjWF5mHg8oWAJo/?= =?utf-8?q?lbDpSm4duveKw2lLHtteeEFF9Bl+ndaHR9SL3U8SsoUOMIYt6UEvS9YhPP3hZG92w?= =?utf-8?q?Q5lRKEyP8nLhmrInxEfG64g7ZsOCQdsQ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fkRwcE4JkGX6B28DFG?= =?utf-8?q?e8wm7NpM9IBoQ1hqLPmbjgIyDFuljlnXCH5Np7avpEH4A4aeRIAxCn9DFgR+jvcvT?= =?utf-8?q?lIZJ4QQQxE5yZDuIkQPurn3ZT4PAnx10vgjTKqr0aX97dj0gGpx0cVjRLAlBK0Qke?= =?utf-8?q?XnZweW8qTon0XGf0K2ZfOw1xOHPC59N8wJ0iNecIqwYOScjD3rwsltmvnBPrC21y4?= =?utf-8?q?EJR2PrldT3jCZoaGGEFYEZttjr2mSc9ou2PPL8taiI3FKqMi1o8WWhJQLJDIYVRLz?= =?utf-8?q?+Tj1+jPd+pjGN5pTTW2Q/xU83WhRunV7duAq//mqibeZpTjfBIO3zRezBMOxEisap?= =?utf-8?q?/vcmadvTiup3chPfhzChxBVGR0N/Nl7sihLGswFh6R8BULTCPjxu3gH7+uNok2/vc?= =?utf-8?q?4XHrjYbXu0no?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1504684a-3470-486e-f7f0-08dc7bce3bdf X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2024 08:48:07.8678 (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: kwiK9Yoy3V0kl4QEVZHBq9g4j39NfAg+DkIpqeTbDIIgbuNRDxpdrmhTWvhGpCLhRkSVrT1HRPu3qLQirbrt/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9931 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. Signed-off-by: Peng Fan Reviewed-by: Rob Herring (Arm) --- .../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 7de2c29606e5..cead03fbe22a 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 @@ -278,7 +281,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