From patchwork Wed Jul 31 12:56:05 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: 13748715 Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013040.outbound.protection.outlook.com [52.101.67.40]) (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 7D4FA1B013A; Wed, 31 Jul 2024 12:47:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.40 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722430045; cv=fail; b=WWhGasFEaDWtX+H1NKxaAkobQdMnFfmyMRVFkYevD/IzH/hv+uek/XjK/gly/L0QK+/XvX7AmNCawN4qvXVg5YaJEUCdsl6JMjBE2IjF/zS+UD4I/B2N6arb0ay1ppYBOtCPBKqGBcOO/VsLkIXoj1FJ1QxqSzsqSmMRd14SfFg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722430045; c=relaxed/simple; bh=KhpB9ReK0bVZQnmq4pC7qBj4R8zobrOyUbLDD18i0i0=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=WE4KjV8AiMoNYpMC9PZ8ESe8H6EZe8fB4OE8cVlTUQtCR8FMYFzqwqBZpIGPr6biODP/1Wm+jE+6Eh3L/cFXrl5f2QwAMGpQ9odHHFOjXNvWKISteOeDPQsZhclTqDFKVyp21pS5/RDSy8d39jrd/TOkaHQ4OtsV4L7hD0kcbi8= 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=tqm8RpeL; arc=fail smtp.client-ip=52.101.67.40 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="tqm8RpeL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BGpqUk6FQri2AzuMnSEHjC2qTz7JBRzNQgM4Q70Fz8PUv+o2j8C7WtfXYc1DJrqSXWWCaj8hPVHiyj6N1aUaTFZqukXaEy7Ael98Zpd5F1DU62pmXKHrn9kIeEr0qYvKqFhTigbmzDMAS1ozt3+191ylAO+pxa1CZ2rcqTvLv1qf4hMlbdKNJ4QZ1sqi+MSq62C+PNvV81iv+HtlPytHp9G0+oE+PGXQRvXIKg1kTNxBy4f70KMJlTuBaTSSoIfMSS4jP6BwOL1rBEfo5pmPcSkfVHDbzZfBkgmaeaUWOpZs/Vn+Br66J3lvtuQlJ1Rd5FOGQDcoRlNbKPcx/emMtg== 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=o+tO2+VL5fu6DdwN7aFFl6k9EQ18co6ixAtEaYPutII=; b=UwofCp/PLxjsyZ6D8ilHkZBMg8XLeLel16rsBj5FGLKhmrKGa8tcQPmm1tzLXxEjdNhEREONGAnqHeV6S1bUU62ZlRRRMGGv6zHxfgTAJt+GLtxIWCDQXfKQpP0+mg03sqcihQQl4tLuHLSsGzDXvyceT+gOEDTfkNhdXnW7gbUubrLvslsMHT8XuVavkiEYi0TE/sJ+wSOm+SuWErDfDUtb9pfm4BnlNXBLO8O1p6RYm1O+8All14noFh46a2XgrdoSRw6dbv30gNhMyyulSwI7m4eeUe2+vueYwpopxS0Q5S//vAkIL8a4Ybo6+YsPms3m6NdYSe/JWn5bGwRfng== 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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o+tO2+VL5fu6DdwN7aFFl6k9EQ18co6ixAtEaYPutII=; b=tqm8RpeLwrXhkSYB83y81bRCSXUCGB/tcAQTYDPnOQgxx9yxTA+L7z39dRGZrD4+fcZefJMyg0D9ZASRRPBQUyQVB7HLC2Kx9272uGcMEJxIzrh34s6IYhvvNgJVconxLhvjy6/FsdlcuHbGkiEP5aEIvtK11pHm4RxkJqoKoFn025fMmmUp+JFmCybegbWL4D5NBmu1hyaMDqWTR3Hw+YkuFTTwOQonGUTWalAdt1RPnoSl5kU6vWzgmvEUg25b91UkVvJQom3fmu0FtjNfMDV1y86a6oRBIIE4zWvzQUb5fWw94ovNs2bmlaGUn2yPTIRpJoUWg2y6n138/8sS7A== 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 AS8PR04MB7735.eurprd04.prod.outlook.com (2603:10a6:20b:2a5::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.19; Wed, 31 Jul 2024 12:47:19 +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.7784.020; Wed, 31 Jul 2024 12:47:19 +0000 From: "Peng Fan (OSS)" Date: Wed, 31 Jul 2024 20:56:05 +0800 Subject: [PATCH v7 1/7] dt-bindings: firmware: add i.MX95 SCMI Extension protocol Message-Id: <20240731-imx95-bbm-misc-v2-v7-1-a41394365602@nxp.com> References: <20240731-imx95-bbm-misc-v2-v7-0-a41394365602@nxp.com> In-Reply-To: <20240731-imx95-bbm-misc-v2-v7-0-a41394365602@nxp.com> To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Peng Fan , Alexandre Belloni , Dmitry Torokhov Cc: 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.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722430577; l=3176; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=Y5m+1jHoUYHFvUZ453wlcI8fTxHAzlyTtxk0HQ4iV94=; b=lxa+GKjf2BU781f9P/39Fn4TPZWHN38m29UCZYsNDEy0O6awbjUrdS7iOo9SlXZ7mrRTWD9y2 gUnRetALHFeCmSMNrMAF62/XYI5cEGY4i0/MJSf1P6WHEibCoXTyDvN X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR02CA0027.apcprd02.prod.outlook.com (2603:1096:4:195::14) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: linux-input@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: PAXPR04MB8459:EE_|AS8PR04MB7735:EE_ X-MS-Office365-Filtering-Correlation-Id: ae637409-0e2d-45a9-e869-08dcb15ee9da 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|366016|52116014|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?81ldDT4GA38Qpxc0Gdadsy5MJ/89zbk?= =?utf-8?q?AqMSgJ1kM31K99255EVcywJzbTUTkTaGhDcpy42QHuHF5lhhEO1BF7NBRYs2TWQNZ?= =?utf-8?q?EWCTvj/W4L1WDGMc+NwkH+Di0IRWLY39iwHio/S/FJzq1PCpLwIg6atUQCtzYxui/?= =?utf-8?q?CFzYCk10nh+0xhANHZ5QKHIAFef4L5SEyR4D0z/ZUMMvxV0CyeWP1fjewZ7rYQzPx?= =?utf-8?q?KVSL+d/UEaWvZptM4ODvUZW8ueUsIqf0WbFDIq60kQX1pAX/4vZE00497bR0Drlla?= =?utf-8?q?8WjVYoXeyNTbBotBQJt7HBB57Wpg9P5ON3j5pXxDJhLDCbPekdWNPPqObeYqZ/YKy?= =?utf-8?q?cr0dNAWt1+8GAC19IJlVie05vks12Ue52AeGkc4yM/AhbAzEv+RT6KGslNBF7Y3Af?= =?utf-8?q?tr7CWd1iYYJ25t3gIMfZinGboi4+3dMP34gBn6B5dbdT80g65pu9AEaWttLTytahK?= =?utf-8?q?+t8VeRA8fDIaNkv1+qSdZ5I2z15nLx7x4Ieg1dSfDK2uR7qGHVBedodHw2hOFGBBa?= =?utf-8?q?CZhkQBzYjEmTn6z63eJ16YRUjQJjMcaogzEhwHJznr02qYt84QHvtA+NYUssWPF/x?= =?utf-8?q?l5oVcKV/vgavpBBFYDYgpOm+fHLQ2RCtCfN1elJ74Sjx/YLDxA9IOA5RjBIclh6z7?= =?utf-8?q?IcUJkhApeFyoeryDb6Fc4xDWh+hyQZh6s88/Qct/OupDjPSKZS+PvVmVIqniBEMiM?= =?utf-8?q?IVNoR+nZ86wzhC06gFMSazOTwMj8fIIH2jR/s9+ZxaUmvI1636g47Ek+OznK4XFKd?= =?utf-8?q?9XyNq1bPm6bnRYVnYNk2QDKOlyEE6LnkyPsmOT6Lewb+H/OT67cdPZ6Olb3QyPWgA?= =?utf-8?q?LzA1tfzW+VvE9zID/6pvdkE8Dk1oxaGjUlmqMX3NpXcHjPaan3jzCqVWLN5EGrzMC?= =?utf-8?q?lF0RrBob1kHnPxVZ8sPKpkdPHFYO45AQ9LDM1n3d428nRJOqAmgqzg3QAMCcY7+Gw?= =?utf-8?q?QLgHtuPlkYhnnv3jbMT0NSN0if6DLTrvfJUFViKKcaSedgot5XTAwnM4d5f3Gs1qH?= =?utf-8?q?H3/x9hFPBAmzY/QKSRqNlDQrFT0BK3EhbV5klaCUjVdaf1aZFVMlnEeDsCe8J5kcs?= =?utf-8?q?MX7kCrKPXfms6vVFoQYtg8Ip/B0iD6bBFxHhCdThyEcxKNgQFxm5hn89ci1JeW2kk?= =?utf-8?q?xlsSNQCW5d8AtQbTOMhOmMRnn50NkI2WO8RtvmayirxX6Vfc5EGRWv85e0uStFUqD?= =?utf-8?q?lAieSdswygEvyyGp0LIGA+xe0OtHSXsMgINFfOlis2uErI6BPzunib1llUPHOHswV?= =?utf-8?q?QRWVPYFHUoQzWAMtALxp6q8BH6MKo0YCxqBPW2WCBldJxa2jlTY4vOHGAMIdizDwu?= =?utf-8?q?FcVjeolpKYRH?= 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)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ZZPScd1uu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Lkk9QeJDt1V1epmkFy/gIk/FRk?= =?utf-8?q?YPaV8TYVGTvGGxoxY2za9dQery5DylTD1drwkgGVn2OzhWRxxiyy0pdwSa/uqzd4J?= =?utf-8?q?YZe8iw4AwdW0/RSKne6ifJ5v8h+DsLSGU7wQ+702G3iph9Wh0kj6WSSASBjs8jumT?= =?utf-8?q?DKaw4aBnwcVkIsnKp1M3L20kPXGVifIvA/M4eZFmduCtcSd/VDVP9OkDJBV1FpvBI?= =?utf-8?q?4fOCAYxrPo8y5ItW6AAl6P1CI41Ws+Aug8q3ZT1ksRTSJQ3ZgmggESK//Du2/m+Iq?= =?utf-8?q?Q1nhNint/BBi4DjvpV8kq5eGTqyLxbpjTi492Dx26UearF8jt1lZP7m4j4zF7M2j8?= =?utf-8?q?lzCt8wuVE3QnpyMwZBYuBtIWAfbfOVq4pFoEQgFg3kSayk9uahr6LqNVG0i00x3Te?= =?utf-8?q?Chl0ZX/uCjjpXBH5oqLHtp0y7DYnEu2JHxLqOkQElfJsbuXQ7MP66jXjVK5owWNg/?= =?utf-8?q?qmCmJKTKceYYd1Dt93mvxgf/iKp0Qt7jwC22s0zSG7YNgpnGkGrgTfaCSbyqGYRMp?= =?utf-8?q?8fQc3xswMkXt7qXgbWdn8egXHr/1Om/ZxYww4zydCdIRPjSTXnb5xxS1IROQpZhY/?= =?utf-8?q?PM7SQi/o2p3JPeJpOHdtqGF6iyvlWolfPmfOChz9K2ZQDURrbbo7/xKMX0XQkAQ5S?= =?utf-8?q?/HA9LjNL9SBr?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae637409-0e2d-45a9-e869-08dcb15ee9da X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 12:47:19.0128 (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: znHOyPUZSAY3vCLELQypiBZ7ev/3Qn3I3plPcHrXYpbHtKUe8WCvpNlkTiGFeCCiDDYLKjp16Aqlk1WU5OC/Ig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7735 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