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: 13654173 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 253E3C10F1A for ; Sun, 5 May 2024 03:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id: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=dxOYgx7++msGWfbsOKMPW+OVDFn1A7zVd+0euCVdtMU=; b=Gfb8LhO4jeHMbGQyeu1gccTx1l RTV9YXXsI78I4Nb9nfxlo2itDaVYvesUcTbq2wR6wxVAlwPo0duBO0E868sW5j3G+tWJvJLyoFteX cjmysvkm7P0D/ou65iL51KrDGkBhQNDySPjeRNT1AOIWjV9XREmo+PCxNo1GkPJsJpWxa2ext022R zVMn8hEQDSTMUig9UsuB60OqSCxWsoB5sABJd/zh+NDFvhXry66C6Dm4efq8GPjruNBVA5DCXmbiN Vyf+km+kI0AgmZcxCrxjhyb/jRm06NyZ0iHwLoVRdG4Wbcy6UXIbqd8laBmttNMTLHsL7BZw5HVmH aocK0MWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3Siz-00000003U09-13si; Sun, 05 May 2024 03:39:41 +0000 Received: from mail-db3eur04on061d.outbound.protection.outlook.com ([2a01:111:f400:fe0c::61d] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3Siv-00000003TyI-40jU for linux-arm-kernel@lists.infradead.org; Sun, 05 May 2024 03:39:39 +0000 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) 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: =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zaYaliKlYGmWfYHsu9Mjd?= =?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?vdjkD3PvN3wY1baHz3T34VxMaCVapoiZc9fZv4dA+aTlwcsolbMsFS/UErNT1uqrR?= =?utf-8?q?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pm6wAefcWxmkL4uD4+/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240504_203938_044552_F2739E93 X-CRM114-Status: GOOD ( 11.63 ) 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 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