From patchwork Thu Jul 18 07:41:53 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: 13736138 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 F34BEC3DA49 for ; Thu, 18 Jul 2024 07:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=USxdF/Fa9alunxDt01m0bd9NBcF0HOL4/7JSuw6JnBE=; b=Z6TZ/USIDKOn/W1Nhlbrxjlffb a28JM0r45eWUTBoAvf+L1ATTZqBBGqZ7oLYW9NEtvCWr0HNx57I6elWs2ZruoLbgmUYNZmOsV9JBB AGmRmM5au6rU/QRBYebakfUbgI0X4kOMcHHKpEpqbiTt6Pnv0TJ1Em3uKsBl82j/fvZwO7qi/kxeB qGxzmVAMXPexu+Z0ORI+AdT3HaMgS9ZW5hsu5pK7I+nCoGr8OENrNdIiLyT8vDgNQSDD7OZl/jup6 l6HL68EkqtlSiLdIb6rFvXB7bdMHIeh/cjFpY7y8ydiTTdDHGI3rWlW9R16uCDSwkTXE5558MFVu7 //l+/mzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sULeK-0000000GDGw-1qYS; Thu, 18 Jul 2024 07:34:00 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sULdV-0000000GCph-13H6 for linux-arm-kernel@lists.infradead.org; Thu, 18 Jul 2024 07:33:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JRN3c5HSdyVywPI/362tK5fIw2SiayA0/AtmmEeTcT2Cwi5SNjXv1T2sun4srHf8fOsBmaLid5t+rPgLWtpjv1KA82mb+xI0TGfZ+7IflJ3th/bpGIsShKAM7m52pXc5Il7oc2IqCoy066qbkDnfjPsRz8J7Dwls8cdKVUgIb4WbS74VoQkS+qqqQCWhGDb5wRtqYyYQPurfTbi522CucUYdUB4GNQvqhWdfSB4DuXpeROoAo+fjN9WZlmHxxRxXYtKFMG3reJOxZlDYPT2Ivmbzj/BIVuD31VT+s5i69/7HaApVA+KBGiE8WYY1qWvB+eXxJtrV/EyM3wsTvYaoyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=USxdF/Fa9alunxDt01m0bd9NBcF0HOL4/7JSuw6JnBE=; b=OVKZgmOIhb95K8F3vKR1cxtSUObT21QJKbYcIhXoXHqG7HqjKsIhYx9mSJJV5tHm4FUjHt+NcacflGvQcEw9pCJFx/67ngnuAaJRgE/BEd/4FDuVaLjXX1ZfO/ZSTCmSPa5CHc6SM9pWLx+8TqZb8Kbie5F7PoRZxslKAgZwHMJ9+dCQLIky1eXrnVvjCyLHFZFnEdUK6xy2id4U4lmbUc9MI+kyydZOcnFAEtX8t6b/ahYko1WNW2HRSpzKTvrxEoXjbkZT3p1mbzvOcw0kjL9pCaJh1OaPucpWJMod1enbP8bvO4Lq7+lKDsq0wUsHcDFFZQvBdXstwZfdEdep0w== 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=USxdF/Fa9alunxDt01m0bd9NBcF0HOL4/7JSuw6JnBE=; b=fMIT9oYyz5PkcD5qxCdERh8/aNGihnlVacWHr/6ZMyDZ4DZ4f4upDospl9bGktO5jnn9UwVTsFQrMUsTwMJfhY7EXphG21gH1kKV4iAJ9shF/l5NtDFiuPGhXSvdtQBMapaTt7htcjKTNV++HJFjQH1CsplAX3FvqZsM1pT80H0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by DU4PR04MB10457.eurprd04.prod.outlook.com (2603:10a6:10:561::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16; Thu, 18 Jul 2024 07:33:07 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%4]) with mapi id 15.20.7762.020; Thu, 18 Jul 2024 07:33:07 +0000 From: "Peng Fan (OSS)" Date: Thu, 18 Jul 2024 15:41:53 +0800 Subject: [PATCH v6 1/7] dt-bindings: firmware: add i.MX95 SCMI Extension protocol Message-Id: <20240718-imx95-bbm-misc-v2-v6-1-18f008e16e9d@nxp.com> References: <20240718-imx95-bbm-misc-v2-v6-0-18f008e16e9d@nxp.com> In-Reply-To: <20240718-imx95-bbm-misc-v2-v6-0-18f008e16e9d@nxp.com> To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Alexandre Belloni , Dmitry Torokhov Cc: Peng Fan , arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, 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=1721288528; l=3178; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=SaWHFK6ZVOWEyaRZy4LYIlOUlB7Iolddy0RrUcTK3VQ=; b=dM55gc+27hAnACrwQaDH/fKW9/FdaZY5zyF5BSCeHJirO8UPsHNt1iXQZOAEqoN0+fnSbKvTQ 1U3iEI7Vx63AvK5jAyduDPAeuKk5FaFHcGA2UKD+Ep4rAyT89s2S5sJ X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0046.apcprd02.prod.outlook.com (2603:1096:4:1f5::14) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|DU4PR04MB10457:EE_ X-MS-Office365-Filtering-Correlation-Id: f1a0e4b4-d3f9-47fd-4fa4-08dca6fbde17 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?mCG+9f/CPJvbopc+s3uQ7UHvdoekkg8?= =?utf-8?q?FXctqSX9R4JCOHg3NIHV9PwVijElE5R6TcBx9NS3afTw5pkU9jNWGDhuAbzqkSrjk?= =?utf-8?q?1I2Rkx+QskB59NYC5xCHheQtIJSZIUYLt/H2c/dkGO+tPcFAwb50fCjcpr8pCUKp/?= =?utf-8?q?Nhc4iOrZMvqQGYU5W04HFg+C6hIFmywx96Wu0Wavg6uF4ikA7QTO/tHVqPLUZV1Gq?= =?utf-8?q?8XwArq2TsXGmeIiWSXuR8hHf+lQE7Q9tOehtYMFer+lrq2v+q/8792+ulMZ62EVpg?= =?utf-8?q?vRTZO65BsK8B9KUeBxQs/MO3cHKJ7rX1kVRngS1pseFHNEPNpF/ymZ/rFkt/VFbyD?= =?utf-8?q?QqsMSk5At1+bOmczjwnUlHq78GOI4ojyJLt9LPszAZkCl6TOutsovdjNhsE41P32P?= =?utf-8?q?9LoLyRMd+43OM/7KfJ3q45lkc+C2dj9L5dJnr4fDqM6jyW/7MCVMIZJvcP3b903op?= =?utf-8?q?TYv28Q5MON2OlXqx+hQEthxNdgYhBiH9OITtOmHyEejNbWxlrKmjJn1ZicXyTzM3b?= =?utf-8?q?KimFTGBy5oPvvi7QNKwez63ScQfcWqwax0RG0LS0L75yHkvGtY3OtbKBaRvxF48DX?= =?utf-8?q?TleJA0oTqPlfxqdrooDgY6aXHBAKegTkP7jcSjLKi9BcS25d5mioXPHVETpHI1CMR?= =?utf-8?q?o9zsDVxpD7IYykl/xrVQYc/a/8lDt826j159GMkOtYwzYaraPnFOOX54l9VVcLRHy?= =?utf-8?q?t6KNIAmMTgurg+oTBIohiZeRkJwuIyLjmbVEVok2h7dbrmoVVUWuqEq3iAWLIjXo6?= =?utf-8?q?YaDR+/zGL2aDJLZq8S+CKxMXwbf/SnPyqm96tx7yoafWTAo3ymOaMk28f1yMuJvAV?= =?utf-8?q?mD6ScTVsVOrvnvs85kCcotKo8iTw6NW0rpN4K4TYs7odP0nr/2XKtCUvFIOdTDGUr?= =?utf-8?q?LULK8n9AyCnZwI10NZdK6dDznYzZOFc3c6/bDrD5zkCRgrcCAshEW5wn8vinsa5lc?= =?utf-8?q?HmG6+njSsRd946ehQ8bO+86Ly3sVzXb8ewUrkH+lHhryP23Jz2VLQPUg8AlSCU0ay?= =?utf-8?q?xLWWEV6BreIsA2hJ8FAGVbcODYo1Z8b0yABXCPy5fKGDGZ3OXq7PHEphzyn5/C47T?= =?utf-8?q?l2gF9dJ0PBrGNsAANTcYcyapQBvZZJMU+5/sLZ+WWP6QkZJjDgRnXrIFifFscm5/I?= =?utf-8?q?POiOC+8x1Y1alpNN35p+qks1b0H/GCf0tstN4GpdqwMc002NqD02WpH0h2zK3Urv8?= =?utf-8?q?/1CY8rlMrS14p4I6XNRDeKz1WXxfM060cugpF1C7k40c9E6/e1Yu52M0AtWCqBPop?= =?utf-8?q?pyAp1vEqD5nTan+Lvg6s2EShZ6Fx+txI92y0ctp/nOw8FWyI7IBDRh+5aoqA6WswT?= =?utf-8?q?NDJdtZfxyJXD?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(376014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SX5hl+FQ+NeSv7qCt4ubJY2wcSre?= =?utf-8?q?VeeiDPmPuEQfgVWfE0V8drhP7/s0M1s+P7QsWUArRbXgmjlQEvjjfo7iLu9ymvXCi?= =?utf-8?q?GsLdqiADTO2y8Z1LafcuS7m4w0Ra8fHPPV8oZNG9kIT92Z64qKSbI9xl+4quCtJ+m?= =?utf-8?q?N/GVwD0xx5OikF5bcBCxX67hF8OL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/kksuoYjm3WuUQMby++VIi+VuY1KW53A7EJCLabi8ZrW1wI7s?= =?utf-8?q?zuevn/thu+6X3bjdmLkhVax5qTiVPG/A+aQwK1qPiM/SfAVuYQOAdvQib3aphy2rG?= =?utf-8?q?7q443TuAckdUhBmqdFkJ3qUYY1lj8TaqofJDVAgGHytp+DoYXxlWLbIqzIvx4v1i9?= =?utf-8?q?/6WL+TOH8G30C8FzoQgmd2wbKEbfQXU/trie0fZcxTLborNBAGsW2/oUpk5G6HnTp?= =?utf-8?q?CEnhLpVHZ5DtBmD3D+E1B+Nqj6o2CU/0R+46eSIY0KWXzapzfFJmJuTxTR+Vjm28+?= =?utf-8?q?8i2lTqp9cWQFaqqb80OL0ceuTxRFXQQl9t6Lq5Om7c/e7NcVzjLCgQE8rXW6D7NR3?= =?utf-8?q?cpibFRYh2qTgdtr6nkAo+OZfqjW6pyYXxxr8SyjyeZuvWgQmJVzVbYyWgRNTSzIsB?= =?utf-8?q?+empyPTFulr+pyiwXbLnlBXWBfMhvdQsiuMABKRP/h9RIkAstfr9FbrWQPe3ha7dB?= =?utf-8?q?14Zh22zUW/kV?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1a0e4b4-d3f9-47fd-4fa4-08dca6fbde17 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2024 07:33:07.3912 (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: HiISAhTdGx9oqr0NrvFai6bjJ1oTU9WsuogD1wuOWBUGrnTaJADc5rtPHQyX43y2363B2lk3MDgyTYajOAOYEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10457 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240718_003309_341616_4C664915 X-CRM114-Status: GOOD ( 12.37 ) 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 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)" Reviewed-by: Cristian Marussi Signed-off-by: Peng Fan --- .../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