From patchwork Tue May 21 06:25:57 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: 13668925 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 1BF91C25B75 for ; Tue, 21 May 2024 06:17:32 +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=96aEVLZ8q8U4klImHKLA5nTqgcIqoFlfum9J+MNqva4=; b=KfOY1PUOfwbHB65uKboPFohpsq oCPOQa6cS7Xq+B7smPRPKn/YowmaAogzsqI9nwu7OmhpSRb770UqZLvRr5ZeKH2Vn//molCzt9J+Q hLhlipbjptCykqq2zohuGTsPvS8uWEsBOJkZM/Eki/Q9Xd93ByluON1dWpFqP8zM57NkAvrAGAHnH FtO2R8J6BhxL8abbBYk2QcJkQzSNPYJG3nbDA3Xn9e7sZbFu9iNdZJmJ3Yhah2bsuWG2Y8teloiYb 5OQhilVH8bEUBZUrUEDMI17MORYwMp66zvNZHMnugkTBGw5k3SyQ+x53ftSKso+GnxttbtReOS6k6 +8hOQlfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9IoL-0000000GRui-3sGB; Tue, 21 May 2024 06:17:21 +0000 Received: from mail-am6eur05on20601.outbound.protection.outlook.com ([2a01:111:f403:2612::601] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9IoE-0000000GRoU-0k84 for linux-arm-kernel@lists.infradead.org; Tue, 21 May 2024 06:17:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YP7FG3b3Int0usDXZ+yEm6G6m92ZKsqfDpweiWHwMFAx32vZ85Ux0p6VR+TLfvPLp5xBXlHdCbFNfyQNRGKk8pbRidqwB9if0NALrHpzbTmOy34/kT0bWPWzdF22oWszQoRHo4bHE7lM2suI93IqjBCp1269zokpsGtRBuItbNFFNVmfRYE2bZzJe0GMY4CIgT0bqTapiRrUqyCitdgiEzw4gJwO+h4vC1XqzQU5AqShl84l0iCgTB+UklUUm2C7hUi3RInRw24Xcs3OeV8NWYESj0qNQls2k6NNZlcI7Q45ASQjrLEXfCmAToHirsKyykCFg6GtQ+aiHpE4zbhGEg== 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=MpXBiIgbYCAtKoFhcnbORe050Lv/JcH44XQ+lBbuE8k=; b=U+5WzpMqEeuMYp2NSIKyxsEbZ497MNTEqkSWXYjQXq5Di5ewTHA7ydJsR0q5bO9XFwIT93AyTBPOrfYRWBHQQt7CkkyproddgLBxOFKZUJ2U4BxJ6/x8bwcRK+WthWq/rOopFkOwZMIK6rxMjtSAb30M41zm+x0fMa8O4t1BrbO4pSTguXPGLK1MjxIHkwDakReREZlI350AXat5Yrd3AljgtSUKuDLQpCqne9rJhso8KQBWniTutrA8BabdjJCX9yRBPYZ+4FczGKxkAKYmd4736FL1L6BAoB7Dr6gy+DMoK1Smn/Tun2cad1xLLKTTo41ARu5e4s94e9MTSk2Hwg== 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=MpXBiIgbYCAtKoFhcnbORe050Lv/JcH44XQ+lBbuE8k=; b=ItDc4xARlShgDMALGaMrDWAdQm6XEM9eHmThMH2e03Sc18smlY/ehfpBK+9wNoVulBs+CfUyUHsIpJft1YotqGurms0zLhobvLsBv0/SW4hmoRa9p0J68dFnP/MC/3E9rVovrdERuOG46LXu9RJzuPodHuh8J8TuuqvpdN7K178= 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 GVXPR04MB10705.eurprd04.prod.outlook.com (2603:10a6:150:223::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Tue, 21 May 2024 06:17:08 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::557f:6fcf:a5a7:981c]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::557f:6fcf:a5a7:981c%6]) with mapi id 15.20.7587.035; Tue, 21 May 2024 06:17:08 +0000 From: "Peng Fan (OSS)" Date: Tue, 21 May 2024 14:25:57 +0800 Subject: [PATCH 1/3] dt-bindings: firmware: arm,scmi: Add properties for i.MX95 Pinctrl OEM extensions Message-Id: <20240521-pinctrl-scmi-imx95-v1-1-9a1175d735fd@nxp.com> References: <20240521-pinctrl-scmi-imx95-v1-0-9a1175d735fd@nxp.com> In-Reply-To: <20240521-pinctrl-scmi-imx95-v1-0-9a1175d735fd@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=1716272771; l=3521; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=4NBdBZb+JxQbTSMhFLS6V2WIVMWWZosI0xnylrS5Bzc=; b=GrnP8BNxanU4hAKt8btQRr5rEaMDHu/6804ktSa4QBb0nc5C2UA2BfumGLOMGinmQsE9qvn1L I+uPTui6NN6Da2rl5Wxs6DtjS8lLARBRQPL0DemfesmsCwu5kxEhLKr X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR01CA0157.apcprd01.prod.exchangelabs.com (2603:1096:4:28::13) 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_|GVXPR04MB10705:EE_ X-MS-Office365-Filtering-Correlation-Id: 745f14f9-9f82-44f3-7893-08dc795da4df 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|7416005|1800799015|52116005|376005|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?RK/JWcBY2hlEj/tuo+FxgCpveZS+ffu?= =?utf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ms/?= =?utf-8?q?PXVZyG1g1emoS4P08ugvHo3osStSvS+brIs3KJnguZreu1yJOy1fk9C6ghJNnB/4r?= =?utf-8?q?lIhgx9JAnVgesEnnuX2VpOwJ4ihfXZtniNaLmF8sMuCm3p19NnKymvBw149HNzq3V?= =?utf-8?q?RUdJVt7IGqplp24sa6hdULp16fkJngmcihMrCq/Mxrilm30nheSMa6RjqDgeOUsmg?= =?utf-8?q?a0/FHT+hrT1zokPqs/iyA9u4kWOJLwnN/jbBVbybwylOefwG9X0auMMZLqkWbAMbG?= =?utf-8?q?ODHqMIDKTvSspw/QQd+XnnV3273A3w/Brz0qrEq/CPsT78D+4gxsroL3uByjZGEm1?= =?utf-8?q?8gBK9Q65KMFp0XZJKnkZ6lgHi2GX84T1CeBLxzGhrJdQ1iccNOLODsDpw=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)(7416005)(1800799015)(52116005)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?5QVDQZu8aNw6jdbpMEbHJkutl6V1?= =?utf-8?q?UzN3RtGC+pOpIC0bh2QxtfhcIhjBsgBhbYGgr6UT8oA6dW7pqH2hU8mROVBPLvIwa?= =?utf-8?q?61RCpkxy/5DyHmM4frElJ4aiy59fQuVQXuvPiuKoYrt3TpIPmt2nXyo0v3eb5sqh5?= =?utf-8?q?kg+W3DGSjzQkOy1v9A02KdRB3JtoZG5TIN6YlxH9dT65tOKd46v1IbnKIdDviwRbl?= =?utf-8?q?ipDh6MtW9mi/clw6y2LxZEXlLNcx5aRrfoMCr9mDR/HD/mOnzJzdX25ukw9e/Q7Tq?= =?utf-8?q?n0atQ2cGn4n7yLcJMnEyG4fR6ykhzaItOL0fq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WZdL8HSH2rHbq?= =?utf-8?q?NkO/pXHwI24tu0VNpT7Fk29vD7acvDvE1NXmcJunYcoSNVY6QQU0lqej2aVSQDjkH?= =?utf-8?q?coUczf7gSn+q7nTvTODEhamj08wVOIKuDRtR77u2riFmkgiZoCrJvcFTP4XmbbNb8?= =?utf-8?q?Q+tzYpJVEtjD6YFkapgsooWbyiI+o81/O3AjKJ9JCTBl6J2ArlVAoppUBBIk0dCii?= =?utf-8?q?R6LAS9igzBWmi8Jij4P9AZnAG2f+E37aLepdwLk+9s6XAs85N1pCI9jjvx2X5XdTm?= =?utf-8?q?8ICsioikA6Ljx7bWbNplJEMsE1rtsNzmEXsix4C7JfvrcCjGZ+0ud6RzBGiNX/3zK?= =?utf-8?q?dtIjMV73mHFp?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 745f14f9-9f82-44f3-7893-08dc795da4df X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2024 06:17:08.6297 (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: quMTld/tXhScsPICEJDsNp5SME8hxm5iOezp66f9Yw8+cmCL7SZRwjAWNojccWTHAxyWfCfDyK904duTkV1KCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10705 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240520_231714_302986_50E67111 X-CRM114-Status: GOOD ( 15.72 ) 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. So add i.MX95 specific properties. To keep aligned with current i.MX pinctrl bindings, still use "fsl,pins" for i.MX95. Signed-off-by: Peng Fan Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/firmware/arm,scmi.yaml | 4 +- .../bindings/firmware/nxp,imx95-scmi-pinctrl.yaml | 53 ++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 7de2c29606e5..f7a48b1e9f62 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -251,7 +251,9 @@ properties: type: object allOf: - $ref: '#/$defs/protocol-node' - - $ref: /schemas/pinctrl/pinctrl.yaml + - anyOf: + - $ref: /schemas/pinctrl/pinctrl.yaml + - $ref: /schemas/firmware/nxp,imx95-scmi-pinctrl.yaml unevaluatedProperties: false 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..a96fc6cce502 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi-pinctrl.yaml @@ -0,0 +1,53 @@ +# 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 + +allOf: + - $ref: /schemas/pinctrl/pinctrl.yaml + +patternProperties: + 'grp$': + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + + unevaluatedProperties: false + + properties: + fsl,pins: + description: + each entry consists of 6 integers and represents the mux and config + setting for one pin. The first 5 integers are specified using a PIN_FUNC_ID macro, which can + be found in . The last + integer CONFIG is the pad setting value like pull-up on this pin. + Please refer to i.MX95 Reference Manual for detailed CONFIG settings. + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - description: | + "mux_reg" indicates the offset of mux register. + - description: | + "conf_reg" indicates the offset of pad configuration register. + - description: | + "input_reg" indicates the offset of select input register. + - description: | + "mux_val" indicates the mux value to be applied. + - description: | + "input_val" indicates the select input value to be applied. + - description: | + "pad_setting" indicates the pad configuration value to be applied. + + required: + - fsl,pins + +additionalProperties: true