From patchwork Sun May 5 03:47: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: 794846 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2050.outbound.protection.outlook.com [40.107.6.50]) (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 C456D5227; Sun, 5 May 2024 03:39:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714880376; cv=fail; b=k9EW6PfURQNbg9vE77O2iu05RtI9jv21CUSfnv0spA7/oijjEVnF/TnhiUZ9gn9A0GnhBYDb9RXE1GIhj2mFQQY+Qo7QQVb2ofFrSne6OKISzCbA/wRt4Q44Eu3DajOCnIcfEtBhIF9PHLJt8VTnko3T4QDOl/SZUTaPmXN7fik= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714880376; c=relaxed/simple; bh=WTZ7YwNm/8WPxZlzkPznE0QEoAFR6b1n1hH0qOGF9Rg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=GD2ffmjPfad6R20aZGraqfiDpuWwYTBGygnQKwUjnknsXgEfXf74uRC+I9vXKNUbHfK3hB4dsOmJi2VROrXJKy6mpHTR94TNfpJENoqs/PcfK6vkK1wfXcgavtLy7E7f1vwmcE4EM5ENKtWk+91s0s5/wWnGrgmr8gF5g6WPKgA= 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=juXZNnmB; arc=fail smtp.client-ip=40.107.6.50 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="juXZNnmB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JZOFVrBaTFkJH8NbkT9LCu8zCzUWqq7GgqibgxjoaneOh5FhT+k6iUKd1ZPqt40Suc20Yg54Q4dCajBD6WMOX9gXpFFRV8VosOnagLTpMUsSJkO8yGo/ymt37V5Ipkdmt7QEb17m8joe3bYb9OORpMXPa7w5gMdZnDAXLhLksriEosTzp49Rl91ySd5pJX/vSGx4IQXOUDjOLJzkG/CkPe32GjioBNz3Zt4ZoWOjlvS9qBjofFFTaloUxk+B2TrR20Gbe52csWyZ45LcHFAZhrXn3jxdIBS/mXvcZWfCOlRPRE9Cas9x6gLJ3Ek/HK4+sjNYbBLNX24H6sRs6F+pig== 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=12DFYM63ULaEgVDZPXt8ffcWw3R7pE947r7KT9S2Pyk=; b=bWLNhJb/MpZKcgRAYdfwptF+eOtwEyjdG2OPJoJGjSKhhwrrE1UHpxRjNQTRDK07ZKNu9mgUE7Iag8BhCC8eDafwQvtfPuqi6Kiuh6uB6j6ULQfC3WfZBvXivsKw1ERcuE49HuuTPZCDqPxnK8tzoBpZ/8MVjiaRLHThLYkPBjauH7TSnJfcccZf+HUxDFPm/n9ZC7g90eNWG5ThI8s5fVDvd12k3hsDLUkA7pv9Ll07g0CP1dn6UFDg3Pdhl07Fihp9CJHLRR2Wirn14W8tUYKitiqmAppVg5aGMk8GaC6wxBK/6QeHDIE2eOdQhhFcZfzKLYRBVOic3oVgFUBq9g== 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=12DFYM63ULaEgVDZPXt8ffcWw3R7pE947r7KT9S2Pyk=; b=juXZNnmBgqrL5j4tmdrJ/4AEUkVJ7YAi7AzGy6DnxyIVhGXq6CMjO+1+Tt5EhnvJsAYZWu8uqkyWnaoUAXfhHeRuFTVKH41CcxaHmd/Masfb7NFLXbf1ecvB8pJ/jppa+BOkMJ9AflAneRbcCogHah6vhnnHNfD2YyXzp5RKj8A= 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 PA4PR04MB7599.eurprd04.prod.outlook.com (2603:10a6:102:ea::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.39; Sun, 5 May 2024 03:39:27 +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.036; Sun, 5 May 2024 03:39:27 +0000 From: "Peng Fan (OSS)" Date: Sun, 05 May 2024 11:47:17 +0800 Subject: [PATCH v4 1/3] dt-bindings: firmware: arm,scmi: Add properties for i.MX95 Pinctrl OEM extensions Message-Id: <20240505-pinctrl-scmi-oem-v3-v4-1-7c99f989e9ba@nxp.com> References: <20240505-pinctrl-scmi-oem-v3-v4-0-7c99f989e9ba@nxp.com> In-Reply-To: <20240505-pinctrl-scmi-oem-v3-v4-0-7c99f989e9ba@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=1714880847; l=2762; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=07Om+tiXUr57qz8djpSP7JUajKxdHALgoEKb63kMR5U=; b=4tiUBb7aTdODcvb4F7pK/qnoPD+xZud/vdVr6roRFf/Mln1WG4nZiAZ+tX9vjNQgozw/1vurR OpyO+hteN7SAVOsa0aQNbh4LBJ28y7Lzfe5s6mqhnBAYygbPWgjKPqR X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR01CA0022.apcprd01.prod.exchangelabs.com (2603:1096:4:192::14) 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_|PA4PR04MB7599:EE_ X-MS-Office365-Filtering-Correlation-Id: 12f5e19b-8ccf-49d8-6a36-08dc6cb4f677 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|7416005|1800799015|52116005|376005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hVvgiWa2W9PP2oMpfrnis+IqDnY0o/u?= =?utf-8?q?2KNAKQudJIE+lp+XrDJp4W1Y7Gspy8VaxZzgLy0WtUByxZd7KRlZW5DLZKmqO0gKA?= =?utf-8?q?/+iec6iFkbYosxPykbVj8Ghdtl6RwzYRxAiVAXAwdM10FZVjEUW8T+ONcQpfiBdII?= =?utf-8?q?iQNWXwF1dSrOsWUcpIf5k+nmTWqQWkfvsjIoSm0TFaOA/mtENmcSia580c99lou2Q?= =?utf-8?q?jl35kWb1zbugqHb0CVebaa3bOOurQvJm6pVB5jNvA4N47TuiP5tq8qtBzjLEHtKeJ?= =?utf-8?q?lThqWzI9HMj26DPMczmdB8R9s8FDO6E4Se2Os2caX+/jjzXnhoVXlHJtz0nH/E7+Y?= =?utf-8?q?822VL3wC6E3+RaKXIAP0CuWbqyXt89MvQ2BDwGhhaeLij8FMNls4cww96wGQmM3dK?= =?utf-8?q?jeVxjSk4AU1TENCz1uJxJf10F998QR0GJsAxHqJgO79ImZPmcjbEr6cxmnmDVBqkv?= =?utf-8?q?3XwsDP7Je+KYNjNHJJ4G1XOev5NXjxFNFabidV0KCswPYEdnf0pGaILaoIF38olR4?= =?utf-8?q?53JDiq3IriPLTmCitihxWciijOzkwKaJlnLkJlMJqCSutRJpqrQL7wFbzriPt6Z14?= =?utf-8?q?Glrp/nhXJ9y9/Y53nvNIkG4/cetWNRy+aR9xaCUoz7qZMTkkdpLx139wMneYd7A/o?= =?utf-8?q?MV3jo9l6we/9t9elJGBfhAcTDF5YxeBP4kuSnHBXv5Iiz3yLiBMXCk9wSrKPvqfxO?= =?utf-8?q?dLGnb9qukzA8k/FAui7AUEP+4R9f2ncDttcGGBt99AtzJHc2J/3Khx1Je6mUurPP1?= =?utf-8?q?j80k9oNyUfyiF1hkUB8rocGJu8Ld/kltVBlVu7fMYYfhIO2Se/V1uinoF46A6ixUv?= =?utf-8?q?tJZRG4HYREK/fpFZVwIqR7nGH2Qoq8tz2XVkdddWquhjzaYaliKlYGmWfYHsu9Mjd?= =?utf-8?q?8Hbj34sF1i8ph5+Zzvae0jTtzmIDBdsEhnf5XqcLLkHmONQeEG5nksUkEH99YrWdp?= =?utf-8?q?O1TIdEcZLDYcjL7Yn9Dpa82F97cC7SupkqzoCE1rMPVZK0y9SZZsrcXM3WmLNyhU9?= =?utf-8?q?HgqnleJScnYjz6emoVM5SJ4Q9AViiDTgj9iObPSawSi/jiW6Mp1jqiinUtqdRQ6jS?= =?utf-8?q?jFL0EJ1sK1CesB6hqNubR4HmidYnQ21tXUsF0Piz8OI0PkaTKRV4eV3bhbr9TUaZw?= =?utf-8?q?PKBnQoSfxsNaxjS1pilKVp4lGduj/M2amPeGUejZ16FC/ngr0y7iQ8dysHs1XROZ+?= =?utf-8?q?11nSzHoGVOzPRUEmYYHC9vq1Vq2CIo5BsYQwYZPaZ0hYat1pFdMkObNaE=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)(7416005)(1800799015)(52116005)(376005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?eu/3qdC0Cb/RcRe4kRPKrxzh8iQ+?= =?utf-8?q?IgOExIAm1zdMwOs8BYmtiIM9I3W7fU1pP4cSTReGawwvgHtukIRz7PmS0BY0LwhFd?= =?utf-8?q?0ztKDLRsRd3XwPueSkZ5wslKCR4JK81Kq6r3kZzBfsV4h9bePRkbj/+Y8ZQhq34YA?= =?utf-8?q?Kaq/PDpOryRmGMPVxC3Z/OoMsHqs+Sz4LaeEVOSzy22qUMAHVm7im+qka3eENuKtl?= =?utf-8?q?vdjkD3PvN3wY1baH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tm9j40SEhAJ14gY88d+8lAlQg+Dsywaprf913afsNYWDBa?= =?utf-8?q?+Mzwpm6wAefcWxmkL4uD4+/9D1r/8iMlOOmgx9vpFJkMGmK+HmkDt5uABwCeAkWm0?= =?utf-8?q?e9YY3bJIAdOrbDDlwI0HhTIuoGhwdTKs6uevThpi7sqv7OxSM/h2Ff6lbUytQv6Hv?= =?utf-8?q?PqhsS8X2vODxIan5+vkBEJr1Jc3aXfOJB3PMK33YW8xaU4JDNpxFWXeZc/LGF+r4R?= =?utf-8?q?KT/WOVWaO6ht2WIDk5zhm1BgYyhiyG8oHkNcPvK1aUbUzV54kFiuATKmxBWEIOF1G?= =?utf-8?q?i+sW6m0wdmnvnw3pUxdNPO6jp9mtu+PiFl6Vn+EUVK69xyfkAZgEMF0sOPKlzRmJ8?= =?utf-8?q?kM1xsoKo9KPhrs0nveRNCFHhMRCV0GNWd2MZKP1Rt2/Lswf5SmprP3SjIIVf2xPCC?= =?utf-8?q?LZrqULabN6hL?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12f5e19b-8ccf-49d8-6a36-08dc6cb4f677 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2024 03:39:27.0732 (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: LyECtTvrM4PaGpuQwj9fNhqRtw7+dR19Yp2foJEOLVRnL41WG9/lPZvZJp1JYTfAkAFBtdht6pNi4RxytCzZyQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7599 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'. Signed-off-by: Peng Fan Reviewed-by: Rob Herring --- .../devicetree/bindings/firmware/arm,scmi.yaml | 9 ++++-- .../bindings/firmware/nxp,imx95-scmi-pinctrl.yaml | 37 ++++++++++++++++++++++ 2 files changed, 43 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..1a694881f193 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi-pinctrl.yaml @@ -0,0 +1,37 @@ +# 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