From patchwork Thu Mar 14 13:35:19 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: 13592448 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 9A618C54E60 for ; Thu, 14 Mar 2024 13:27:40 +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=hQVNg/TqQumEAKTg6f5MnNyRyK9ponM0s/X/GaS0qMo=; b=pQ14NrfFdclQH1IVwLMpj1lkNE nEJ1jkChRPj8NNB9bBaTzcJZm/ycPKf2RzkoAm24STbscUlAch0St7q5yfgZlH1YFMJVojUgZLXBH hU2Q+M+PwC8f8GZAR61MetrKNsTMI8GevSOfnjFJNUv5UCwLNKLqBfIzwoxyHfyCkl3hPgwchfEdw 1w/sCJjBpwvaYB5o1NHm+Urj7mwKXmjXl36dUtxOmVRKAaaLb3tCFPEmn7ySbWe7hwgb9nu2IgmHV uUn42ASkL0bSqc7BBGV8Qyo8aQcz/ze1JQLBJ7mM1B4KlxamBPH3a1X4m4/3bwUepiq5NRV4PLDBQ 4QcwsMCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkl7G-0000000EQBk-2RmE; Thu, 14 Mar 2024 13:27:26 +0000 Received: from mail-vi1eur04on20600.outbound.protection.outlook.com ([2a01:111:f403:2611::600] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkl7C-0000000EQ9h-2Ofc for linux-arm-kernel@lists.infradead.org; Thu, 14 Mar 2024 13:27:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eAKD4grpspoj7J5gHC+MzGYTrNmDEzFzNNnkD2wHs62IB7N9+UVtSuNIz2y6CVzBgjnnMHr/SnRZC2Ldi3+GvjkioeSi23jBs09gK21qmZbZZ7ZztL86cjRTJoDoclqo2+ksj1IAs9q7bfqZJGvGo9f7ZHgjtYLa6g8cjj2o2i489c1ex6RTgZL8/XcyHHoJ3tl/AxfMzi5GyUm3m4KdCf+PJyvDp3rZ0ZqF3iNahp2bXZRmUhLzbjCmC9kwBX4YYtQofsrtz+eeViymQT6eJKPCzLQKOh8iwplF9VuQgC9nPZ4+s7JyfMlg6ulAyYaBb9P1a4PAyHzaz73KKxl2+w== 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=jQmOgq15KqTro5dgNBFbE6fRWivw0EMchUXspHRUUpw=; b=j7v+PwdeXN+tVZBfF9jlsi28Pk10CR0GRTZxos7pDOrPF+mFFDZq9F4qmvHnuZZj+WaL5JU0V16lWp/lhT9muG/HiROo/df1uksPWFSiRVQH4vLvDBc/0G4aFF7tB2wuy5U1Fl6S/+cGK8OoyvWy9MxKfRF6Lh0xjErHJVIL6ZE7ur+ncwrgutWUa7qOW0jTwfKGW7Fu6VOsjBlXXUqH4zLAMZmbt2bQyxbED8Plp75pEJ2MEN4T8BKzkAXmNCcB+wOYRVnd4F9U6b4CfteqLWmbpo+oSI+mt5ucBdFkaRcfRKN7dPJQcf7GDv97fvIE2BMgiUOrvSzRkAy9h12zrQ== 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=jQmOgq15KqTro5dgNBFbE6fRWivw0EMchUXspHRUUpw=; b=hhBSmvM4/tTRD9MBw+9EgNZhmqQ4+N1zAwMlZ/cKJcuuZW/y9j8bzTkC3cy9NcUkAOw2jyAg+OHMNqkjYGhSGG6ibRc4D6Ua0/B1m0Rh7AYl8+qMSN3Ff8zIy1NVkfOfq1BEJPbcaOYRWaq4E/Te91X2ph3i7tO4NeNlX3JHL5s= 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 PAWPR04MB9861.eurprd04.prod.outlook.com (2603:10a6:102:381::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Thu, 14 Mar 2024 13:27:19 +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.7386.017; Thu, 14 Mar 2024 13:27:19 +0000 From: "Peng Fan (OSS)" Date: Thu, 14 Mar 2024 21:35:19 +0800 Subject: [PATCH v5 2/4] dt-bindings: firmware: arm,scmi: support pinctrl protocol Message-Id: <20240314-pinctrl-scmi-v5-2-b19576e557f2@nxp.com> References: <20240314-pinctrl-scmi-v5-0-b19576e557f2@nxp.com> In-Reply-To: <20240314-pinctrl-scmi-v5-0-b19576e557f2@nxp.com> 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 , Rob Herring X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710423327; l=2375; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=xWNejZclzOUqKROUnFYHgVlFI6BqdpjzWE8+IpqHKp8=; b=317nGOwnn1TiMFVscUa4xs9xpYTG+IsZ3UdOHV3mWSBSPM0cAYedarba1fh/a23ZeoMIfBvx+ t3NSj+vfz8TAoHt98WX99DWTDHX/afcb4DAfgArQU8oUPkW+22RzR5L X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR06CA0188.apcprd06.prod.outlook.com (2603:1096:4:1::20) 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_|PAWPR04MB9861:EE_ X-MS-Office365-Filtering-Correlation-Id: 45fcbd0a-12b1-4975-93f4-08dc442a797d 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: U97MrxKMY5B+dHDlv/+GIeKn2ViEhvJQO3elMrFtD7ay7HKUClOQVaVhpBNFMOpeTj6VbB1ZVCutIS9h5OP4lDXR6yGJbqtxtqcB4wVBdiyn3GMAAJoDuI8o2NQMutWcB2d2Dk8mEE9qlWDYyr0y56sPHfRGkq/44yEkFRm8CHv+JmaW9PpKDewbgRcUEq4PQkJgV03atICWSm5zoSyQq/3n09jMuDmHYoJYnEkN9Vro/LjnWIZHjRcq66TIvuIzvBdnCTzE3G3XALo2WDyIbXYfAtIEZjGaVh5qYHoHUn0zpA0nYgPwP+QOXzTuikj2yGicFnf8JuP8x8UMQc6ZcGftPmM5jFHpkMvKvwBXJkNpLnwgXqBr4OG3f8Bed/JR6xlThisGgg5IhejqSEDZFBrbqRcY1vjDbU0HnIZff7dimWpykutq5E9HT0j4qlZzy+IfwK6d6nH4ictrq6ImTKWUXJHwNYr9gaiIMb2S+hnnmFNwxOnOiL1OeSV5TTjbej+bM5S4qRpzlPCZelENDZp3RLJANYlebx/7sXvoHmSpSvoP9CWXuAfRiIkHefc9g/Xfg3JNoCqv2LAx01KmWXIoTQ47amk6+xxVxKU3thxPP0hYsPtrkUuI3yOAEltn7uPNtYjl+I4C2FTGGoDSB0XWSqbfrb8fFfP/8wre8aPF3pqDrge2rcMvpp6DqZBJpujYanS2V+XOd/fkPrP+I6gREKo1bMfOkLxxEPTnzDg= 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)(376005)(52116005)(7416005)(1800799015)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?X5vTtbish4ZjEykFq8c3rL4Pvg7B?= =?utf-8?q?dyMIFR/bTDUAOgbkpTLY/UthzHckrzhevG4M4wRz6jOfi2cUZJNbyhOj422z9szee?= =?utf-8?q?boXI4rq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NwtCb8CmmMR2n58NVcrfBMOgHJFul2LUzWMkqPdXtaQ?= =?utf-8?q?1mlfDUHuXd+3UZwg5Ikk+dFXdj/TVDBDEFfPZScCQ7dFhdrD6aMFLYeu7JA9defps?= =?utf-8?q?6EFfnI64rkVvFJo4avKuyXKhot0UWim1iJX1JRbQgW1pwd5g0ty3k71EIwlIC1mf/?= =?utf-8?q?Fiz2ecutAqsw2bBvdkz6rh6hwQtjs2M+OOM1YzGI7dxrrjQvGosdE4Nfe7GfAaiKP?= =?utf-8?q?qtQkxGg6gw4PtRoVxAy9PIhPCQRrRQxiNs0K5OVgKj70qfVggLTfuC207vabuqCjO?= =?utf-8?q?rkPA8mAlpUnQPgyjSEtkO+olo3hlyHokM36CmnL+J9tV3HY6brueyxUDpWZdDWcnn?= =?utf-8?q?JbMp3L4tdZEFJSMDNHVMDibNC+WR1JM1k1a/ykHIVPABMgMhTfefEjIrVCUi4litd?= =?utf-8?q?i1kHgmF1vmdjVD5Bt0X+SeSk8yxeuN6HGTwl/21fSydY5bQvfeDud+eK2ZPU86XPS?= =?utf-8?q?Dpi6V06kuuOMaQwBvi+Jw5heZT+/9tsMr7mC7deHtglrF3vSFEueXchIfu9+LNMMw?= =?utf-8?q?vmOxsg+2bOiE?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45fcbd0a-12b1-4975-93f4-08dc442a797d X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2024 13:27:19.8345 (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: wyNqA3iCfLowopmS4Mf/+GMrj9sNHR6lgaVUY/+8f615iKLSt3W46U/oKvIimN56ODQKyUdzkZdDycQYT+6zvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9861 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240314_062722_728213_B3F957FA X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. 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 Add SCMI v3.2 pinctrl protocol bindings and example. Reviewed-by: Rob Herring Reviewed-by: Linus Walleij Signed-off-by: Peng Fan --- .../devicetree/bindings/firmware/arm,scmi.yaml | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 4591523b51a0..bba4a37de6b4 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -247,6 +247,37 @@ properties: reg: const: 0x18 + protocol@19: + type: object + allOf: + - $ref: '#/$defs/protocol-node' + - $ref: /schemas/pinctrl/pinctrl.yaml + + unevaluatedProperties: false + + properties: + reg: + const: 0x19 + + patternProperties: + '-pins$': + type: object + allOf: + - $ref: /schemas/pinctrl/pincfg-node.yaml# + - $ref: /schemas/pinctrl/pinmux-node.yaml# + unevaluatedProperties: false + + description: + A pin multiplexing sub-node describe how to configure a + set of pins is some desired function. + A single sub-node may define several pin configurations. + This sub-node is using default pinctrl bindings to configure + pin multiplexing and using SCMI protocol to apply specified + configuration using SCMI protocol. + + required: + - reg + additionalProperties: false $defs: @@ -401,6 +432,25 @@ examples: scmi_powercap: protocol@18 { reg = <0x18>; }; + + scmi_pinctrl: protocol@19 { + reg = <0x19>; + + i2c2-pins { + groups = "g_i2c2_a", "g_i2c2_b"; + function = "f_i2c2"; + }; + + mdio-pins { + groups = "g_avb_mdio"; + drive-strength = <24>; + }; + + keys_pins: keys-pins { + pins = "gpio_5_17", "gpio_5_20", "gpio_5_22", "gpio_2_1"; + bias-pull-up; + }; + }; }; };