From patchwork Fri Aug 23 09:05:17 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: 13774804 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 27C0AC52D7C for ; Fri, 23 Aug 2024 09:04:25 +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=kfP3fyHgZ67LxyuKCIpPfKfchfag5OlWpJDtUSQOpoY=; b=0QVXJkSg/d3O4kfkl8RCya66rl Yj0I1zY/bMvl1tXNCPEN1UNdyEJ8COAOTcxs2KROyp7peBP8Yl2M+Pdjapft3gCsZtH/4kLDTykYJ SIjQu895i+ZI5+uDRCquCMfW4aFtIyTiErEJs1SOtcWjpTGKlrC3mWvR/U1H+QLdOXM8HmUX6ky0c siWSdVMf8u1jf2iKRLL7UaZJIpfDmw44XqeLfH/6fTm+wX0Woz5bhJuHz3kX8t5lE9VJTc5UMXrbB XqpPJOxgRyGCLwi+X3iSQaI5NpjKKxRWJYabIhtNYsIwI+/QDMqGZRZevG9iLI9/zx7/BFvyCepoq ye9MK7Gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shQDL-0000000G14h-2UiG; Fri, 23 Aug 2024 09:04:11 +0000 Received: from mail-am7eur03on20601.outbound.protection.outlook.com ([2a01:111:f403:260e::601] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shQ6F-0000000Fyby-47lN for linux-arm-kernel@lists.infradead.org; Fri, 23 Aug 2024 08:56:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uHgxRtyYJcAErnGORUGzgFqOf6Vv8gp9NC8BX432exKQJvxD7TXBQJoBc0i3G1ycnIS5WtcZdLTNFyq93UsWiIFuZZ5HDWFbL/ZhnNgIFeCWPMvcqbnCXikgmtuG4rarVT2M9hVnEDVkHA5k/sFGwqQDRG+SWv6IHW5NV1cm6KolYE2TU6cGf37kg1YbrUj9GrUDSJVaGORXQ7MvEMkpIOxYS9VQUJh9euT1ZlvfBLZrbzGeFHJC3ZRbvS/8GW+XVw/RuSvzKzRfS05z1O12OSoOEydQbeCMdhLow7t8Of0ORwEUzPJkX5SZKlBk7Ki32EsKGd6yWWViK0gJ+M18VQ== 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=kfP3fyHgZ67LxyuKCIpPfKfchfag5OlWpJDtUSQOpoY=; b=bfdx0/am60u6N+1ukuiZocfeqcwn1GNBeeetmoF/i4N97RS93nVcfkW8wVG+URVUF7262/+bQccfs4NhZEj+cF5sIgtmQL9NJPk/xjiMaV1UV4XmqwwJkNS5cgYWD8kEM9LBlovBWdRywrwTkP0lbkDTcEGWUXVk6kuRI9VpkSiy81r+2ZddfMo2jf7PDEBZX4ZkMWyIawNLpMG97gP2fDCUdrzQ5LLapVwZy6R0vSnlMuIQV0WgNd9U14B1V+drLtnNcHUUcgqT0wgBbFYHFuAULfii4T0j4I8q7cJgoQCGGqmlBp/7KMeVc/HSuVZ0RBXsiJEoMBNy1S2TmXEJ6A== 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=kfP3fyHgZ67LxyuKCIpPfKfchfag5OlWpJDtUSQOpoY=; b=QbPyaluo/E1iEEGbERzsrxd78n2eJiTpt6sJR/CtkkkCKEUh1y0iexbrqMmMYyPILGDb3T2mh18xHOJi9h786aUOKnDXzLcuZY1wrZ0q+yyDqe3JjiSL5IOekMNTJAxSLkiUfalGgtVL0DtiRJ0gJl8kz4FPFMwDmWhL4dwj3aHPsmOmKxXoO56d/eYFiBR1tQ7DkzfBs7eKUIKNBAYMGGeh6NJryWqBMzYksSpNHpvRoJjlNswUWiyAyC3UeHqDPflKMTYn6Z3W2Z56FcHiniQZT6cL6in8t+ROyDYpvorfN+IEJ01HJoEsSF7DV7n5D1MvmvOOS670qbniIK6oYA== 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 PA1PR04MB10892.eurprd04.prod.outlook.com (2603:10a6:102:488::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.19; Fri, 23 Aug 2024 08:56:50 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7897.014; Fri, 23 Aug 2024 08:56:50 +0000 From: "Peng Fan (OSS)" Date: Fri, 23 Aug 2024 17:05:17 +0800 Subject: [PATCH v8 1/7] dt-bindings: firmware: add i.MX95 SCMI Extension protocol Message-Id: <20240823-imx95-bbm-misc-v2-v8-1-e600ed9e9271@nxp.com> References: <20240823-imx95-bbm-misc-v2-v8-0-e600ed9e9271@nxp.com> In-Reply-To: <20240823-imx95-bbm-misc-v2-v8-0-e600ed9e9271@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=1724403944; l=3176; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=1UJH5hjLqh4YN/4gw/b+EmkX5IO48u961dXp/hGkojY=; b=M/iZih/4IO5TrsyNqqsq+Nowydss4EhYcCxJbyZs8v/5TAyXw0xtHmppqT7ICwZGq7flX19Dq cx8sNs6NcV8ASzprMEvjusOWVRhPI0RZEUQw3pbH82aILNpxFCxViAS X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR01CA0173.apcprd01.prod.exchangelabs.com (2603:1096:4:28::29) 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_|PA1PR04MB10892:EE_ X-MS-Office365-Filtering-Correlation-Id: c7a7253e-7cef-4807-213b-08dcc3518708 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|376014|1800799024|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ZyTTiFrOVlucJ3ICRkji971CikXQ7LA?= =?utf-8?q?uRnfeb4QZmUFwBNUWnSqxCa7ZIUgSFN2ItH9ep0Jl3ojLckx12jtimmZwICH7xdNN?= =?utf-8?q?FGjRD0Bz/257Iz1lRpUUxlH1BZUTk9V5SaJPQK16LNgnQtIZxNErPRjuiqr4OJk13?= =?utf-8?q?s9ljaLquAe0o9Gr9yswd9LdUFx8A78Fhv3aBWhTgTGtg9lq+rKkgp57NScCnfvy9P?= =?utf-8?q?CXsDXTNl0TjAYM6lTQ+Fwbav0+aQy0nrdQPVlf0MBdNqFwaECVbhy0IMXJVRg7Yq6?= =?utf-8?q?uGUPSpPiHYByIAhwQt9CCvhi/i0q2NNhNT1exidHkPLN8Hl7puT44m5LYucnIu5/Y?= =?utf-8?q?g5Eo+MkztYajRyebv2SiBAVmVkX7AWWjJ0jfTXqHBl1yQ3e8e1VI55zMctBhw4Pfq?= =?utf-8?q?YktpY9t0XrL6ph4zYd1bF2mfDgWj7oITFUc3wPqPAFpmoFrIAMX78DZkIbaJ9uzh9?= =?utf-8?q?XvAEpJwauhNfmHg8+ECymw2aKshQSVnLzJyuDQiQR0oDz/Rpgelu8RNptcAymiTxc?= =?utf-8?q?UsYaIgftp1T0941IUxm7JxxjP+mELS3cemMvVwkpp1KjZnizl0r3RCebFBoTEicKd?= =?utf-8?q?tTX90PWBjWOMpKLQQ82TdrPCZZhPp1G/Wp54mLg5YR+VUbMFx+UJZdqDYjehEsD9w?= =?utf-8?q?olLPQ3PxRQRkwNncHpTIm1PT5zmgyW4EG6GCMaieqv1e/OLahzCx86u2HKfe0A3N4?= =?utf-8?q?YiOdl9RG42Ooddu8OlweQ1dNbYpZTY+E3J7PRDi2v+y0pcXk+tlnwYWwKQFRbPwga?= =?utf-8?q?Ja4ksWay91GohTsKkyPY8KDAJF/7Tgs50TC6LVZOgTjVvqooCggYptJKYTrxIr7Qd?= =?utf-8?q?pRoPC/R3H/m2wL8ml1FEw7lGjX9hPKgQcMKRhZSbPogxB9AC+lxE5mkybS7DhYcTd?= =?utf-8?q?3xFaUFtOzeAcSpEdTsMnNJP/fh6Ah6tsoPUWYibTHTS4xtDZII5hKQQJw2j87r30K?= =?utf-8?q?5VUUYQ/3iK7qh9IPdEB6ga1+ipiyZw8G4md0G0PtI5X5zid0rBcs6oE2aHbiWfby+?= =?utf-8?q?BM0m5vCJGJEoljVzglsw8h76AME6PsAKlgVDfUyCXnO40wrbOx+OvZoxn2yZX11tJ?= =?utf-8?q?f6KS48EsHWtXwM/XgV8IU3GPBRXdDg8Qksh5ixewNqqg9jc70MF+sd9z7TZuq0Qur?= =?utf-8?q?8wO7csPjlV0o4x9v/oWQOWQ0htY+to+3iYRSeR/O/btzlrEFxCcX3IsikdT8js5Ap?= =?utf-8?q?MusHCxhZuoLPnNzUoeaPFFHUrtCF496/DcLCYvyNPgsFRDZ3c14l8kQgfCpSD21/e?= =?utf-8?q?MYfQmNPxul2pGMbqkPwJrcxEPxWcSYVf14iU6RrapU4YUkqnOOEB/GRTRQ7AmjHQW?= =?utf-8?q?g9ZfNkmEhLwf?= 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)(376014)(1800799024)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?sLu1HhnScFLi48NvowxjJTDKIL6K?= =?utf-8?q?rIGbuyJ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6VSrNhH1dr7yBbzf+DwfxsykuCxAMbSdglifGsOfhkSW0FAUD+ddPZx9H8OwR?= =?utf-8?q?Q/IcjQUDh+8PedCsKgzG0Nd2alxnx/f1cdGwNVJRInZNdW8BW0JdCBp3gkE77f3ND?= =?utf-8?q?fJLOz9lceV2sYn9OPDQCzb35CS7wUhWT2Q2hoOoytXdVmLx5rGSH2rJEFVcYCdzUh?= =?utf-8?q?YZjZOdpdhTjfsdevlGPA2vSKuAilbWhBzm0ub+2zwMbkAbfp0rWSvyVdDD697u/Tu?= =?utf-8?q?lrHG4yP8+j2/5FS4uR3aRlNDG/qKa36Ya122wi2Auqx/W/soRUTkKthICrg6r7/wt?= =?utf-8?q?mQwRsb0YASW3nJUt8kqOQszi5yQSGDM+XUy96N3qdxvDYjWZglRLLpFCbeIaOBcYX?= =?utf-8?q?UOmxIa5SR72z4BXBeADQpvb5ngGkn/AF42AL4TNZBtNeBUDzugRiA3tZeU47nzwNO?= =?utf-8?q?oTROSvAMYOIMpgTkeICMryrMFBmAXJAOP64ggZ6qHRvUEX3MsgfQ41TrnA+CX2r55?= =?utf-8?q?IgR5ZyEWuiBG9dS2UhBY7pnpN8E4lT22xlAYZjYaPfx+88ZfiIMaN5oWSl6bEolEA?= =?utf-8?q?VM7CyNy6Z+mAMRLXv2bNcylaVDC4Qm2y9kmmM7b30fPGM9wKi9G7W8KddwqNYeaYU?= =?utf-8?q?IvzzNPh7qqAa?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7a7253e-7cef-4807-213b-08dcc3518708 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2024 08:56:50.6027 (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: DhjlgTBe2y3ASzjlW+gkYHD6vKbHdAE3+LTpLmZTHy/fqvuS9ZPu3aY5/rMto3+N3z21YQMDsXZfN6CMdZ5Qag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10892 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240823_015652_232053_F4706BF4 X-CRM114-Status: GOOD ( 12.43 ) 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 211f5254adf2..54d7d11bfed4 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 @@ -299,7 +302,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