Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7630888rdb; Thu, 4 Jan 2024 02:45:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpTQhKoX26tSEmR1MhdQC8jm4LOfnyaLHogoUKmInAkWTvoaMrRRDPGXnGDEGrS704zYKs X-Received: by 2002:a05:6a20:948d:b0:197:792b:1d6e with SMTP id hs13-20020a056a20948d00b00197792b1d6emr239345pzb.63.1704365116632; Thu, 04 Jan 2024 02:45:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704365116; cv=pass; d=google.com; s=arc-20160816; b=O74HIY3WiWpgTeDflSmi3QAFNCKuXKP5DajbeznANCJdhlcGFTKriHCBv1LRSHvIib a4Kk4uDIF1woA1xp0EFw/Ed5ctOKfQJjw12GK/nOU5rBlQDBx5SZDtbMIU61i2bEvdoJ tcec2YD085SQy2wXo79r+Qt1WcBeI6mUrntThAmbRyV8rbcrP1depnI8ohuWBMOm6zNW 0n9wQaofJnysTtNvTjvzZyZ1KCCUPYc5/2nAEOoQLyVSjm3+AHGnJPmSGas5aTUPEGQn IDiiVhtq3Fb29Gz2QTTDhDjCbnrKmUm95pHu+J4l2UWs8BvYxasCi8lYjHlZvzH/Livv U8Iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence:cc :to:content-transfer-encoding:message-id:date:subject:from :dkim-signature; bh=rlYAlbsEKcZ/9BSvwzzDxt3ItVqOja6LvWtQ7m6NwUc=; fh=jdmvn+rcA8ZBBeUrdwhOtQCbYTD+hMoiX1uDwgIKVmw=; b=OHqj34apY3rW/KCp7h3vlUfq93Uu4sfiieIR5EqyUam0asNwRoqmHth3huREMwLZk1 4GC4w6sEDYJqUkDZ4UvLz3xA+w7Cy6eJK9OtfsxZSPUOMCEmVnRLf15MCeLRqbhOGquw EqF/qf6vUOTewFLhGqp1PHdVTEjcdw/vg2S6plOlIEL3d11x8XYh5cZML8jRje0EGaW8 egvDiLe89/YL8PdcAyJvG/hIFFrxkpI5I4FZOGW/waZWDSSovDvh5o1g8XcbhqKRjk/y YpMUFVAb65LcCwjABL3UiQqPRstujVGwGoP2bLbhzBj68ylYi6AGWfN2hHsDuF/p/qOx QKFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=fp+TancX; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-16524-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y21-20020a17090ad71500b0028bce1c4f8csi2740526pju.187.2024.01.04.02.45.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 02:45:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16524-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=fp+TancX; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-16524-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 98C69287962 for ; Thu, 4 Jan 2024 10:45:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58B7420DE0; Thu, 4 Jan 2024 10:44:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="fp+TancX" X-Original-To: linux-kernel@vger.kernel.org Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2049.outbound.protection.outlook.com [40.107.241.49]) (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 26A8B208B3; Thu, 4 Jan 2024 10:44:49 +0000 (UTC) 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CXaQ/ngrdbxNVasAqhklXnvorx0nrvRkfbU5aJ0C/ymT9auOaZt6n5zFypx1aYz0SIulaD4C3nfevPf4CYhWMtlL3qrHB5JP/HFE7byluy58Lybng5uJvjrq2KnkVCHJjXtDc9tri0kmTXNnjDqsbpaldW0KuNEO1OtKJhLE6NNfEqlbpp7RoqNcp3s6TlckmQhB4s9xXt0aWfkZJm6sMbBcaAXqzlSpqRNKot2gnHMGgOI7ApVbXnqTBuRR5DuLnfsAp81lwY8RKVwXojVWmz1xFFK3um4OF06d1jL6VHuYaGH/UerWkSFSwUfLzUcMezgiJpdNkRUExhidk5B9NA== 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=rlYAlbsEKcZ/9BSvwzzDxt3ItVqOja6LvWtQ7m6NwUc=; b=KIa9BEMs0UCP5Ove2rHCCoIywr9shsgaht+QtvzEzPxmO9WFrW2WtLiqkbqsYjWx74E3reDzAMNMAUhFuBbO3MEsH0dOCwWLzMwzyerWqHgEnNd1lFBBw8jQXBIpT3jjfk/1DqfLFOs+zbVniO93yGiF3cVmH9fPj0j93VRdrI2sLVDk1cRllYspp7KFK9rJ3onxbrGaY4Q3NoHFGyXT5PtmX4mMStqWAigSSmTd/5gvxCfuNo4Z3g2GuSSsDaPEdQMxU0rdDtu6JXtvYGYVB2bcPpFDx/QsbxS11XoEZYNULYUVYkONIqDgoHUQGpVDGuwi65DfMz50c3K4rQ/erg== 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=rlYAlbsEKcZ/9BSvwzzDxt3ItVqOja6LvWtQ7m6NwUc=; b=fp+TancXsxasOT8DZirsaOHlHrP+WC0t2XpHbI76D2Jg9/lDYS8TpZp4srAsiuP1uYpZE0mcnMW2nOTtbEw+0qfLVaApeDPanPjWcAnSs5nRZPdJbuQT8kvY4iv/FbZ3j4Lc3Hk4mE8SJiMQj2EEcGcvrmlkgvqVJ0+oqRvtcgM= 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 PAXPR04MB8847.eurprd04.prod.outlook.com (2603:10a6:102:20e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.25; Thu, 4 Jan 2024 10:44:46 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::ff06:bbb2:c068:5fb3]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::ff06:bbb2:c068:5fb3%7]) with mapi id 15.20.7135.023; Thu, 4 Jan 2024 10:44:46 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v2 0/6] firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support Date: Thu, 04 Jan 2024 18:48:44 +0800 Message-Id: <20240104-pinctrl-scmi-v2-0-a9bd86ab5a84@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAyNlmUC/3XMywrCMBCF4Vcps3Yk1xZc+R7ShcaJHbBJSUqol Ly7sXuX/4Hz7ZApMWW4dDskKpw5hhbq1IGb7uFFyM/WoITSUkmLCwe3pjdmNzMaZx9CD8Yb10O 7LIk8bwd3G1tPnNeYPode5G/9AxWJAoUnbcn0UvrhGrbl7OIMY631C8XgQcSmAAAA To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oleksii Moisieiev , Linus Walleij , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, AKASHI Takahiro , Peng Fan , Oleksii Moisieiev X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1704365357; l=4501; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=Mnug5Jo77HdpS8MygXGGooXxDHfJb5eIasSMZwUTozI=; b=l2Iq+yQfOqm09eaosqhQk7XBR4ysLSb/4pa0Vm/8z1fm+K+O9JxaFk2Lhlue6panASJY4SxrC iVUw8ITjHDXCGC1ym9iUJm6gSNf+FaeBILKkbry3ROOeWD3GXKAbZhs X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG3P274CA0004.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::16) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: linux-kernel@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_|PAXPR04MB8847:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b0a6d86-e427-4950-b422-08dc0d122ac7 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kAZvt+pKnwkLpNpL1YWmZiaHuCOhlAfO4xiHV76DXhXN92gHdUMVLYLcZfvWKKD1+4Ee8AAURqH0dmbt/leOXeBAsNZrWBT1u5VBIOf8eFPpEQy7uMPS1QUKVzzp8aaMLHBFMd/VO0fkrlVrT7tUphJUyshrgRrsIBw/mg8/jVkayMmPJVv2pLXhtR/52P3Z38WOGqRL3GkGAlcNXK9pndePG+mcOSQe8s9VU7DfpQvfcYgg3LUF7T4/sgSnN/Gg762FF5szyzAD0YFj7E5UZi2dyVGnqCASFMPeZ65YpE3VVRG0GqwtqiHzdPPlot3WOfrISnaavvNcfEShSiE+hLwgG55q0uNCFr8TovImIuoqb7y0vUS0XG4d8xrewdEaeuAM4cq7MeHxn3c0uu73YUQiI9o7GKEoeq3mfpSwlersbSf9felM6iVm7s/O2I1/MbMVn6sN9XQ9535JJGFDrqXHFsYtUVuqBfE9QD0Hpd6LNqd/0bXfqtpY27wfh6ajsahSAmc+8I/tEqO8rY9mTB/a3GGMPtHygn6L6ZD/wpZLwDzm+VRL6/jKOa+1dDekxkeZlIgmCtx3xUV7QNqhMwsoH2Pxrxw89Hep8heeMGwDi7rDfS+VKDw+Jq5aF6oz 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)(346002)(366004)(376002)(39860400002)(396003)(136003)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(66476007)(66946007)(66556008)(6486002)(4326008)(8936002)(8676002)(26005)(54906003)(110136005)(316002)(83380400001)(966005)(478600001)(52116002)(5660300002)(41300700001)(2906002)(4001150100001)(7416002)(6506007)(6512007)(9686003)(38350700005)(921011)(36756003)(38100700002)(84970400001)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WkdRKytYNnBkYVBMdW84RVF6RGhVek9PWi9rRHlNWW9VZHNiaFlLeFlhdVdp?= =?utf-8?B?RkZYY0thRlp1WmtRZktrMU51VldvVlBBSit1SnRFdXptK201aytWdEhZVEV5?= =?utf-8?B?a1ZjbisvNnRnYUtLeGVZZDJscDcwdDVuNDkwbDREbHdxMEVGQm1DMFg1N0hy?= =?utf-8?B?QmxqOHgxNnJYSDNsaEN6MnkwaS9EYUJMWjF4bGFtUW9NSmVCVVBib3ZqL1V5?= =?utf-8?B?Zm40RkhFT0JaMk42NUhlTnk4dE1KRHJoNzRvU1ViQll5a0tBVndRVUhPVFBF?= =?utf-8?B?NmFOTGp2UjRIblJGRU1iZExXblRINDBtcTJCRUNMV3NUVXVIb201TjQydVRB?= =?utf-8?B?Z0JOQzhjUmRBaVpzYTJ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Network-Message-Id: 3b0a6d86-e427-4950-b422-08dc0d122ac7 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 10:44:45.9656 (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: nOoEfknGcdw4q/QZEMCNkC448GTfcne2yebVDPDfGgCyJBeBoK9vNa7O5ZI7IVAgT7CZj26W8yqjsB57o15hbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8847 This patchset is a rework from Oleksii's RFC v5 patchset https://lore.kernel.org/all/cover.1698353854.git.oleksii_moisieiev@epam.com/ This patchset introduces some changes based on RFC v5: - introduce helper get_max_msg_size - support compatible string - iterate the id_table - Support multiple configs in one command - Added i.MX support - Patch 5 firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support is almost same as RFCv5 expect multiple configs support. - Patch 4 the dt-bindings includes compatible string to support i.MX - Rebased on 2023-12-15 linux-next/master If any comments from RFC v5 are missed, I am sorry in advance. This PINCTRL Protocol is following Version 3.2 SCMI Spec Beta release. On ARM-based systems, a separate Cortex-M based System Control Processor (SCP) provides control on pins, as well as with power, clocks, reset controllers. So implement the driver to support such cases. The i.MX95 Example as below: Configuration: The scmi-pinctrl driver can be configured using DT bindings. For example: / { sram0: sram@445b1000 { compatible = "mmio-sram"; reg = <0x0 0x445b1000 0x0 0x400>; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x445b1000 0x400>; scmi_buf0: scmi-sram-section@0 { compatible = "arm,scmi-shmem"; reg = <0x0 0x80>; }; scmi_buf1: scmi-sram-section@80 { compatible = "arm,scmi-shmem"; reg = <0x80 0x80>; }; }; firmware { scmi { compatible = "arm,scmi"; mboxes = <&mu2 5 0>, <&mu2 3 0>, <&mu2 3 1>; shmem = <&scmi_buf0>, <&scmi_buf1>; #address-cells = <1>; #size-cells = <0>; scmi_iomuxc: protocol@19 { compatible = "fsl,imx95-scmi-pinctrl"; reg = <0x19>; }; }; }; }; &scmi_iomuxc { pinctrl_tpm3: tpm3grp { fsl,pins = < IMX95_PAD_GPIO_IO12__TPM3_CH2 0x51e >; }; }; This patchset has been tested on i.MX95-19x19-EVK board. Signed-off-by: Peng Fan --- Changes in v2: Added comments, and added R-b for Patch 1 Moved the compatile string and i.MX patch to the end, marked NOT APPLY Patchset based on lore.kernel.org/all/20231221151129.325749-1-cristian.marussi@arm.com/ Addressed the binding doc issue, dropped i.MX content. For the firmware pinctrl scmi driver, addressed the comments from Cristian For the pinctrl scmi driver, addressed comments from Cristian For the i.MX95 OEM stuff, I not have good idea, expect using compatbile string. Maybe the firmware public an protocol attribute to indicate it is VENDOR stuff or NXP use a new protocol id, not 0x19. But I think current pinctrl-scmi.c not able to support OEM config, should we extend it with some method? Anyway if patch 1-4 is good enough, they could be picked up first. Since I am only able to test the patch on i.MX95 which not support geneirc pinconf, only OEM configs are tested in my side. --- Oleksii Moisieiev (1): firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support Peng Fan (5): firmware: arm_scmi: introduce helper get_max_msg_size dt-bindings: firmware: arm,scmi: support pinctrl protocol pinctrl: Implementation of the generic scmi-pinctrl driver [NOT APPLY]firmware: scmi: support compatible string [NOT APPLY] pinctrl: scmi: implement pinctrl_scmi_imx_dt_node_to_map .../devicetree/bindings/firmware/arm,scmi.yaml | 50 ++ MAINTAINERS | 7 + drivers/firmware/arm_scmi/Makefile | 1 + drivers/firmware/arm_scmi/bus.c | 39 +- drivers/firmware/arm_scmi/common.h | 2 +- drivers/firmware/arm_scmi/driver.c | 32 +- drivers/firmware/arm_scmi/pinctrl.c | 930 +++++++++++++++++++++ drivers/firmware/arm_scmi/protocols.h | 3 + drivers/pinctrl/Kconfig | 11 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-scmi-imx.c | 117 +++ drivers/pinctrl/pinctrl-scmi.c | 540 ++++++++++++ drivers/pinctrl/pinctrl-scmi.h | 12 + include/linux/scmi_protocol.h | 75 ++ 14 files changed, 1806 insertions(+), 14 deletions(-) --- base-commit: 8f266a167d1f0ca34668f05cd8c01bd245c8698b change-id: 20231215-pinctrl-scmi-4c5b0374f4c6 Best regards, -- Peng Fan