From patchwork Mon May 13 11:45:24 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: 796790 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2045.outbound.protection.outlook.com [40.107.22.45]) (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 7660D14D2A7; Mon, 13 May 2024 11:37:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715600260; cv=fail; b=nzI1rjvXChnflt//ucmKTipmgI7cDdE1l2f9mI2qd1zZgoYCWuvbY377+qR15Zv2L2UJJMNnfDSQVK7IOGipDwoVB7ePMYB11phsmJbCeVcVK8rKOX/s/q4tUv8aVKbSWBd18h2TpE4tSA11vGlk3WuEac9VdE8Sd+MkobAZKFY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715600260; c=relaxed/simple; bh=3CqWMhvFpASbqlazBVq2IMTIRAb/f4zX/5EjBGg5KI4=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=M4UoOggacTSbDs/DN6IzIc3AxMnBRw5wmxP1kxH1tiqkAqLCNkNAu+nec8a+cndx7swGPxEBmONSUlDi5O+t76Rk8WiVY+FbaYnOq3LdyJWyVz1rma0VTxiTtvbo3xzhPAAgepJjpHDVbyc3tNmBhp4mIs0e6PE9/3hyB2iMlQ4= 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=K+Tljxw8; arc=fail smtp.client-ip=40.107.22.45 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="K+Tljxw8" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WncK/5Ub+NAvyZc8bZkzOXRO1+6thHigxtZNv2l3xIjhU5HKx6+uCjFJhS3tT2JU0QgQ17ygSmNtuUTivFYHfHtpZhuKoC8OhHa2qF4DVk9dcdtQ6nx1ztnYWpCr2auEuKsp08Gfjcpmv2YVkbxRH9Hjozw/XtYGxaepZxBvfFXngLz+AKnV0ZdLfSYGfVJ5XVwAKSUVUnBg5k01tzs3WZ4u9+KMHfP7HTqnCQiGAI7hLUTaBZ7O3qm3JtZi07pACpfuPt6+oNvhpp2+cSzNNozQetoRt00ibuepM9wD0qu0r+BiVU5c+T0avJ3/RaU+AyrceDbxO2RJutldYdGVrw== 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=hcEAK086tIoDh1vFnKG3SEjQO39rm/rnNyBx5/R6IYOnZwa1TYg4spsnstrdcZ/2suZLBAeiipyn5Wvb8V3aAXv7v7kgU1qbPA79hXuj8jfsToADjVTbpwJudwJ5At9MLhVOYzXxakfKvrXScHxc3Ct6X1LIP3iSegb/FD49sZG+4m8W9A9gcOu45B6oZG2eqIz5fSUoWDcVEqzwIZUOyd1+fV7qZhUQDid0QrPKR/JO45O28t7Gyhrz0jpn6CCSOYYgvMja5i3XwTKzClxr7vtRp6B62Dn6G/G4oZya0p5rJgON4Nl3aXlIqCu6NjNgGkWAwiw5ji6Qh2w8+v4yZw== 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=K+Tljxw8GlJpWTJbSELvdFBuhTvEwdn0garioJDthgYe6ElXOJy9ncCg1gp2O6QZnqLLPu7b/Zn4MiKd3NS6pgPer43ZQ9sclF6Gm+HCXWTmSmrqq+rGead+GQhl4Y1LN8er0ARI0C2wCLyBaBAdK/kLR2BqBy92uDd4yG3Co+0= 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 PR3PR04MB7386.eurprd04.prod.outlook.com (2603:10a6:102:85::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Mon, 13 May 2024 11:37:35 +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.052; Mon, 13 May 2024 11:37:35 +0000 From: "Peng Fan (OSS)" Date: Mon, 13 May 2024 19:45:24 +0800 Subject: [PATCH v6 1/3] dt-bindings: firmware: arm,scmi: Add properties for i.MX95 Pinctrl OEM extensions Message-Id: <20240513-pinctrl-scmi-oem-v3-v6-1-904975c99cc4@nxp.com> References: <20240513-pinctrl-scmi-oem-v3-v6-0-904975c99cc4@nxp.com> In-Reply-To: <20240513-pinctrl-scmi-oem-v3-v6-0-904975c99cc4@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=1715600734; l=2848; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=epIDuWzCH6J3807f/r6dNqln7UX230N7xRikk4P3jFk=; b=ldsJ0UPA65Kr7UDkmBU9d3YrS7DlWBIg0hTqd+Qk96NMtF05LFTG52p0TyFaxWJI3uORJETiN 4bT+6yU3KffCiNgmgBmXnr/HXR6WuWJ++6YDB3zZYrOcz2S9JGdPBqg X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR03CA0089.apcprd03.prod.outlook.com (2603:1096:4:7c::17) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: linux-gpio@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: DU0PR04MB9417:EE_|PR3PR04MB7386:EE_ X-MS-Office365-Filtering-Correlation-Id: eeb47028-418c-4760-a4bf-08dc73411585 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|366007|376005|7416005|52116005|1800799015|38350700005|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?qmAN57VQJ2UFPeFwudHEvKBmvTeer3h?= =?utf-8?q?1D6bJGcaQlgBXM+OQs7vfz3k73jeTOspXTsGjim1XugqQfDKbtD+9OapWGlCLZYEh?= =?utf-8?q?KHO3pjlKR5iOtOIpCx0NcvFH+0Yt8SMWGe9Qyb3jvxBIhW3QiZjJZ01w9M80Da8QV?= =?utf-8?q?wGItOS/IxF1uq4OzpDte4LnMU+z5VAnIXkZouUL7K2qK7CjQeSjgrWi3333Q3Hb7f?= =?utf-8?q?h6DDvio2ZRWwmjWFCEYnNZNFPht3s60GbdhoMnt6byntAl1h9ri0t1M0+R1CcMYgt?= =?utf-8?q?F30CtItZ1/8AFbknYrbWh2UT4gdSrObsBqG0qa2zqUvFzyZZXref1CSMXSOskDBYw?= =?utf-8?q?D6BanlLp1JQtcXBgUHP1ouo7KxahCmcB/QddB7RsTOxENGg/uFi9CUg60iPDJclcL?= =?utf-8?q?G7iVLnRuZvQMZy0JV8vk85M/olirTltwkMcEJ3ZorJBiUVhBgsg0f+k3gyRpyTJOZ?= =?utf-8?q?Ll+EmOmKd6VPjHoJm+2Kp6OZyyTl+immklShvOWYiVvNZjEEL/9lRn+rmBIVeZlMT?= =?utf-8?q?qmEHD5FtAlTMUT4uxeh75tiocvuuI1gpMCEYrIG8sWCq/So3QClN6fWnoYll5r6sg?= =?utf-8?q?7N8yD4cjs3ya0X94qPfzLytqKgPBUbBLaI+hZh3ZyHhuDM7Uo9grn9xFAJs/XKTou?= =?utf-8?q?3m+bQoiI+20i5AZmBY1iC7zlYcB2dW5Pru1SRBcdrc3gi/D4Hwk+ENMXlpIGr22Z9?= =?utf-8?q?XW8FwFukcIEWl5flvCXBnxId0wdohQirqa8iA1o0KmQuHimPgL+NphLW3OBla7+Qw?= =?utf-8?q?F8NOO2/VNjDIYhhm8vZLDH4r2QFsWdtEKh9rMFrKNxDd8Iun3lLYQBKl1muYmj3e1?= =?utf-8?q?nUJwvEq32C9k2X+1ItL2QmMO4LcmjwQSU+OFkDTsiSpMXPmr9qkXBlgPA/yBor/qE?= =?utf-8?q?daRvtR8syX1CuDOxVh2wsynxdj3V/tJz3l5hH0SZlX9O4fxsbdG1VyBXBSHz/yuLU?= =?utf-8?q?IPnOz2CUm+T2WUTpHSoN9MzmEqS6TGKmEpscG9PR5JiyLZDReEA+9RYcTSjSWI39H?= =?utf-8?q?uPalbS9DJAIeuLMg1RszMHQdWr8uy7nSYqqk4pEt9Hn5a0SrIsuVKU4z0vQ3CIxn+?= =?utf-8?q?dazLnGStKvTblSBn+NR0PJ9s83ymL30t6o44SYBVzKiLenc8ygshnO3to0/EAYXD6?= =?utf-8?q?hlYQyQdQ0P2Ng5BK4yCfClNJ1H6xg9ZbUq5F/9q4+x7qsQ2LHUJS61XBOh7pMfe5z?= =?utf-8?q?LpSBc4WtbUTqj1I9Lju0TluMKIFYj/NakQvbuR8vAP7fjd9bexvqfSTQg=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)(366007)(376005)(7416005)(52116005)(1800799015)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dwXknI8VGhmdnPjzafqRcywJOQN2?= =?utf-8?q?qA2chkcr046rUEYHgIz6hO6V2srSf+pKdZtKmS++WaAmO5fk6ZLP++uzYBA8iDfC9?= =?utf-8?q?QzkqmfnkQ4ZNWaweBcVqfic+V60ocjVaO876iOE+ghZFoIbY7+ba2V6QkJX0BvZJe?= =?utf-8?q?eryf2UgFSGapVXT8PRKvMzxnQW5xu5vrxocLvlAP/Z9KdBKcsAFOxedDMvP2TR+G9?= =?utf-8?q?KJpAFJpkq1swKpS8u8RSVS6u2SH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xuCeOMcklTaFqbfPOJAdfdaqAIAaqDP01hqUo?= =?utf-8?q?b7cMVH4UA5sBNM/ATV1hTVmQJYdLPMp+NTtOfPUxEQ3mmOCGWIHLFFckNz9O5nBWz?= =?utf-8?q?Hwht/6usfygaPgLaRexXbRzm6dVTVOUBPmMX1zN/2sGRH+yN57B2Hd0lSso71iW5H?= =?utf-8?q?ThbH9pKDWF2rvNIaw7FCnEJbb0dlIXiXiprmvS1HX6ShHOQ+K5KezZ/qC6gdBBIpt?= =?utf-8?q?vymjE6QFxtOkBLkZxYI4C/n30OFPQ5PZo+RISzQV4M+k+BaJS/Z0b+WtkFky2Wk9o?= =?utf-8?q?jMx7f4HM82U9k18T1WvPX8NIC8DlQp8ZtJb9idADbaUuGd6v+a2TlkwhOKlAqbxhU?= =?utf-8?q?uKP+OjEmJ6ZLh4zAFb1YDd4EMeEGi8HHZ+IBCxClHg+iba1I4xU4I7vkSnvNN/LaQ?= =?utf-8?q?2zGLYyUakBAO?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eeb47028-418c-4760-a4bf-08dc73411585 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2024 11:37:35.2798 (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: g0cCwezElGnKF7dkN9Iv3tU3ngRVPeweWqGgwEpEuKoWoi1xlxy5/ffTASMqchSoQslrF0cdU1Pi6LMbk2ueAQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7386 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