From patchwork Wed May 8 03:32:02 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: 13658046 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2078.outbound.protection.outlook.com [40.107.15.78]) (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 1752D14AA3 for ; Wed, 8 May 2024 03:24:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.15.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715138684; cv=fail; b=RswOXNllMc2WTUNGXqKLKilThRbZWD3rx1ik98DZpFIS2/T/XK0mxfW9zgUTBlMWe5vt6Mp+04Nz3Awnw8I2AYxxhWFTk4uDvwnFvVc8DYK/ThhMN9CcuFggsI9t0k9e3vG5Zjg/lnlxHAaG7GTFYe7ti33WMoSB6MkEj4KB9qk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715138684; c=relaxed/simple; bh=3CqWMhvFpASbqlazBVq2IMTIRAb/f4zX/5EjBGg5KI4=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=oypCqUq7gQ04jRP7PqNWS6v+Ur3VSUNLjDvYRgkKdsCon4Gl5C40JEnpBqH3y24l2gp5NIWh2kOjtNak5dXxREBRSepdnsVzJ0sMwEACD/DDhvMz3tcUeMmajP3zE7MxJxAjVXbrUgI9YZQr5fbUHnZ4mC1fMvU/dRvT8z2avu4= 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=Tcssr1Ia; arc=fail smtp.client-ip=40.107.15.78 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="Tcssr1Ia" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m6FvbGosHn6w01meaUnkiM/jAwtuBhbpR/5g7iSua2PsfhsYnWoHuRzznH3ALFa5nvW/R35Bjv0nxW+LdwehN8RHmoqHgMeugVBuNTq7l5vrBRhdHfotpgwXRIT9p4gM3LgqmhRwWotnPxucfP48DFBxxM/BuuAZwipZpiaONSaO8sOBaojyVBgC89oQMV1dffgmGR8Uu4WDI4f1zQGMWwlJlXsFfyxr6uklibLn69Mlw9mVWBSE2gQRAkFZ4YQ+2MkMjcyliLBFY+lHlAD+wP9QQVMaSQRccYWxPvDsg/8XQ8DQiU3d7U59C7J2lGyiFDP3AIolmJzO9BOCRQ1e/w== 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=+hv1H59MTfHnDnpyVMtMvGxlbEW3yCywOD7f/6rVTBQ=; b=c2Z+bTOWWS4rd+OPB09XOA1+pEAgZuyfGABCzAQLvRQBmenmRRiCkm3jFXpEGJvDH6tHyEdgj0REpkHDPlLeWM/igS+27JvRwEkFFAdKXQZ5YcKCMcsXgpESmUobd9+i0/Kf9ElO9D1eJGHHr4IvB0bx/A7S4lFz41PgkzIHlETDSjEcvQdG4Tld8hP4rh++aV5nhIal8t4iEgrXP4VCFzE1FPzGKbMd4f7JalZvtBSClksCZebuDh6zajxquHbvSF9X3AlMAsciOH3BpauIUpAahGvzK3ZDEWKEaPOOkcQzsiNg5yPR0efJJ2NjKzDEFi+FatP1tBq5WbTWg5D+8g== 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=+hv1H59MTfHnDnpyVMtMvGxlbEW3yCywOD7f/6rVTBQ=; b=Tcssr1Ia4bBCOYFcUWAtrK3RUQpzjD/OpTxndGbB03ovT4BThI/JjE7I6a5ZfsIY8H9fXF+xOv4lU1OzFRQlU03iZSCzyz3d+6G3U2BrlZsvA3LFdFaItFWcdpdO6ooEgbbc30OOoH8vztALSxx6FejQ8NDNTgo3Gu4jRw8zOs0= 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 AS4PR04MB9243.eurprd04.prod.outlook.com (2603:10a6:20b:4e2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42; Wed, 8 May 2024 03:24:39 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7544.041; Wed, 8 May 2024 03:24:39 +0000 From: "Peng Fan (OSS)" Date: Wed, 08 May 2024 11:32:02 +0800 Subject: [PATCH v5 1/3] dt-bindings: firmware: arm,scmi: Add properties for i.MX95 Pinctrl OEM extensions Message-Id: <20240508-pinctrl-scmi-oem-v3-v5-1-6f2b167f71bc@nxp.com> References: <20240508-pinctrl-scmi-oem-v3-v5-0-6f2b167f71bc@nxp.com> In-Reply-To: <20240508-pinctrl-scmi-oem-v3-v5-0-6f2b167f71bc@nxp.com> To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Linus Walleij , Dong Aisheng , Jacky Bai Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-gpio@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715139159; l=2848; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=epIDuWzCH6J3807f/r6dNqln7UX230N7xRikk4P3jFk=; b=xXTasOKAbT+7kdkZ+XUi+i3MzoBWEhUw50i+fKdZWM8EnOm3lMl4qGiof0DugxMwiSvasURxC /UYQoogWBW9Beust1eSI7m4pfjR65o1QHvpDSylzKyNN6cnzGKNnNk7 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR02CA0010.apcprd02.prod.outlook.com (2603:1096:3:17::22) 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_|AS4PR04MB9243:EE_ X-MS-Office365-Filtering-Correlation-Id: c7c41314-1953-4a80-6925-08dc6f0e64b4 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|376005|366007|52116005|7416005|38350700005|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Cr3XJwL+OCUy6o/eMgvXUJQqnU4DM/U?= =?utf-8?q?YqYjZXQiwE2bg4jG7kp9sNF+rW8WLixdR0cngux235eNsKQCUVYfHUlk+mCQucXoM?= =?utf-8?q?w2233JytPMnmse0EoCRZaD78p8rsMgsVZKMolZKjyUv00qNQAyfWUnXjWojBa7j5K?= =?utf-8?q?LLmJc5lFrfaNGKwHxDGFrNXZIhSHDvcENhBgHHUYKyCD7TQnzRVgM2Nx2OFCXuXVu?= =?utf-8?q?EO2r496baDMOiFFiZ6XEvKbeveCOYwqG8tp9oHShL8e1Oy4yufw1Z4en+p8mDhZpw?= =?utf-8?q?5ghhabCeDRQu3xQ/SeLMgjzrCEAv80kN6x5gBN7pFsx2adFp3XelMRiadPQpl6ieq?= =?utf-8?q?UwYMdUcOumi4V9f79vi8ecWoos8zfOzzuLn28I4+Dj9HlpaAtRw+O1wsyKVrz/OWX?= =?utf-8?q?zHiXmoKVoYrjN//l5qZkLMgQe1faolaNbp6g1wLocoQE7VgSJ9bQijeQSq9tgkD73?= =?utf-8?q?UkNycS79dfndc9Af8IEbSCZZnffzJ3TwwsvZNO4d2S5ziag5GT4VAAoBShijcqcy4?= =?utf-8?q?k0Wz0PxxC6Jx7pabS8o+8du55B2IIN2iIFZ1vt54HiZkz+EpSgFUaKRylQddaWU3p?= =?utf-8?q?yqVZynvYRwxFKpFsZ7yEuIqypKlSUqy3VZ/XTRKTwo9q6V/+8TJOHDXtWobbZofur?= =?utf-8?q?Z+XGtDAbxZRRhgKPaXnvRtdzmCGPGm1Y4giI+fAH3ENCwZtlna2sgMoslLj530XjR?= =?utf-8?q?VL9c8TYbnbBk4R81umvxxVeK3uBi3rT6Z+4glQw9B5MESfLc3dVyQCGr4rhG2RAnX?= =?utf-8?q?j8lCwFk7RDt2RJWCVh1Vb6hpDNXFlUDc2S6D7ZlEGMAxldDPaBR1isNmhcJif43ky?= =?utf-8?q?d6WLmhbVDLbjCUR3DiEPIYfpB0lHol2XbY+dSgo+l9cN4rwW2f8ApBx/dv9Epvn2T?= =?utf-8?q?YI0IBsLqdCl0/OwongUWpXKbImC3sl6lG5yjg844oD67h7yyQryENXi6LQtg7OXAk?= =?utf-8?q?/roMM8rdvppsd6Tu7wLOLqtpiQTTvSol/eigZf5aiwSkSyxY09J073vvHnTHtCtKf?= =?utf-8?q?l9wGCTtKK9ArjcRZDRFfGLB+CXUM2gJGTdOfelJ1NtmwhTJsQurIvLpu9e/sTPN5B?= =?utf-8?q?2UAYObFu8DEEGzfLiiRbqztN2a07BuzOoJlgdwiIcNm90jqkXev6l6UKGhUu8S/av?= =?utf-8?q?ITAq1eLK2pbGWKvSyH6cm5GC8nFKfHa9F43c55cfSKVTjLp5QIuZZrzdbXgwbOLHc?= =?utf-8?q?sSunqGAGJwnGTFAYmjJBcBn8jnMw3RJuzSvTUXWwXIIxz41GWiew9K6iR3ttEXjqe?= =?utf-8?q?RZ7LyDk+LFLQA?= 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)(376005)(366007)(52116005)(7416005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?2T83zoag/rhQjtKSFH4c3L8Bjwrq?= =?utf-8?q?Hb/luk2GyMfdpxUhQN/3Ik0qRoSEaBnw2pGGKNa849NtVyAVoDtTO3znnEqLKB2vO?= =?utf-8?q?xKhHNW/sT+pNcTWVNCwZJkY2/smoEZyIrpdGy9FmMOYC7NukT9kR8UP+Qh6kBSjNL?= =?utf-8?q?ViecjX2l71pDSOgPSrb5JiC47G4p6xnU1aAmLMleQnKVHG1wFyh9T28UvJzvF13WV?= =?utf-8?q?A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utf-8?q?dtntQKQQyW0wz14lH5e7Dzd9GAmvklUv5zSRwtbJ6ciUos2+ipow+1NPOLLVbyGbq?= =?utf-8?q?M2ba5eSp1aNGL8JiH0AL0fobjUpR47PL/avWJnR8cEBOJTVC1cocK3aN+7EnoVaGW?= =?utf-8?q?yYo3m0yHESsRmCoCM5XP3hMmKWHyDl3voqpIlS/Ca3bPBz9wS5Ef00RFlz3JYztIJ?= =?utf-8?q?JlnNyRH0Heuwku8161wjeUtgBstBxz8HG/8+bYadonie7WfEKFQl2xjGbJFIAYauw?= =?utf-8?q?rGZ9QT0t4tU5LQy2+kQlrh+GBFSRsVwwWRo3EnfIHAshrYfZbpoh5ldWzcwd+TUNB?= =?utf-8?q?41Isv5JQEkcukDEu7K4+Stxm+gkh7GsJ5sYUn7P52+mk321UbqPoLlCH0MwZZnBKB?= =?utf-8?q?F6xMrW2ljGaoXdMVgQ/PY0FvTL657MbFxp4ZGG4UmBGuBYyVRoHhtq+PiTUvVQj0e?= =?utf-8?q?iEIhiW8Y8UMP?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7c41314-1953-4a80-6925-08dc6f0e64b4 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2024 03:24:39.0413 (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: mWqVSGEMXwDk3x68aDRVaFjJS2VjroJz7o16EDH1b0Kg1LDG7T8IuGlMv1iDY+6W0aswrpaVx/cLf5qB50QI8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9243 From: Peng Fan i.MX95 Pinctrl is managed by System Control Management Interface(SCMI) firmware using OEM extensions. No functions, no groups are provided by the firmware. To reuse generic properties, add the binding to enable pinmux, slew-rate, bias-pull-up and etc, under a subnode of '-pins'. Reviewed-by: Rob Herring Signed-off-by: Peng Fan --- .../devicetree/bindings/firmware/arm,scmi.yaml | 9 +++-- .../bindings/firmware/nxp,imx95-scmi-pinctrl.yaml | 41 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 7de2c29606e5..bd4dfd7a85cd 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -262,9 +262,12 @@ properties: patternProperties: '-pins$': type: object - allOf: - - $ref: /schemas/pinctrl/pincfg-node.yaml# - - $ref: /schemas/pinctrl/pinmux-node.yaml# + anyOf: + - $ref: /schemas/firmware/nxp,imx95-scmi-pinctrl.yaml + - allOf: + - $ref: /schemas/pinctrl/pincfg-node.yaml# + - $ref: /schemas/pinctrl/pinmux-node.yaml# + unevaluatedProperties: false description: diff --git a/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi-pinctrl.yaml b/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi-pinctrl.yaml new file mode 100644 index 000000000000..3ca2b0cc484e --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi-pinctrl.yaml @@ -0,0 +1,41 @@ +# 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-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX System Control and Management Interface (SCMI) Pinctrl Protocol + +maintainers: + - Peng Fan + +patternProperties: + 'grp[0-9a-f]$': + type: object + unevaluatedProperties: false + + properties: + pinmux: + description: | + An integer array for representing pinmux configurations of + a device. Each integer has the format, + pinid[31:21] + mux[20:16] + daisy_value[15:12] + daisy_valid[11:11] + daisy_id[10:0] + $ref: /schemas/types.yaml#/definitions/uint32-array + + drive-strength: + enum: [ 0, 1, 3, 7, 15, 31, 63 ] + + slew-rate: + enum: [2, 3] + + input-schmitt-enable: true + drive-open-drain: true + bias-pull-up: true + bias-pull-down: true + +additionalProperties: true