From patchwork Thu Apr 18 01:32:29 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: 13634050 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 C5FDBC4345F for ; Thu, 18 Apr 2024 01:25:08 +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=Nd5kC4D913kqr7g7Uf8kXbgSeosLb/cAK9+ndLg3M48=; b=DTtYgnascu/ydZ1QA2Mr3hQun9 OWHhEBjfSjEtw+DWHnDNp+kVYnTOcXFT3z6adyDlfdqgskh6GzNWb2QbrXqLEvYkZ1qjljIi4Yrnr x62kTkjeC9Pk8VvNjnF8auEceCQK7pHbmud0i1YBr/ubYbg7WG6EBjF+/SZxUp6obds4E4A4BJPhl q+U/5ZK6WaOw0KFpkuHrfxPNT3nGYppvvIKyOHaYjp2yGtI1FXFmLmO9i8bG4Kh/PCnihkWgGGSzo PH9tNaE5gYJVjF8YAAc9WnQX69EfUUyOCF+N0M4I51c86M8/pj8h1CYoUAE5603k/VVzQwMowF+Ke 9JY4qbcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxGWI-00000000YaQ-2su8; Thu, 18 Apr 2024 01:24:58 +0000 Received: from mail-db8eur05on2062e.outbound.protection.outlook.com ([2a01:111:f400:7e1a::62e] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxGWA-00000000YTd-2TBh for linux-arm-kernel@lists.infradead.org; Thu, 18 Apr 2024 01:24:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bmx4M6DmYthWkAZTlgkqwiXBzig/AKPzSaxvzt+ItPRoXBr+nBGquQ3LmlddTVKON/4/B18jbg/ZkOsNxPUbi0sumOrN1POe+BEnEEWcYtaYKNaMDUjAUNBuancibyIeWu4heYcCqWeis1NJ01uta3yGiCdl5KJshGa0k9tqMycwUnPD0lEL+gegdgKNerJMC0x5Rf0rv2BVvCicB92TEAKHJFEol0rRJUWjCsCBBjxXOXMxbAEXhU+0QqQiAOt+MevGpkG3cisKcFrheu1QaWhfPXa8xMytxxm+52oKE4/ugiaiAtt6vInfGpqb7uSL+Yqu9nSN4S+U0NX2GKrmCg== 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=SEk/KyCGYEIR0nJYohvLG9OMHTkixQzPWb3gCR+cLZs=; b=dE6qJoElMWNLsazEnC5CTq2Leqa+lQC8TRiHiDfDg9BF4THRhW8/qx/SXFAM5cg9oTFDNh1XWaR/hQX4IMU3oGpY1rSAtfUsiNnIkr3Ultw6TEE2oJTb2VN/BMaQcQyjU5C+lqwqMDxrDPWdT+SlmjO+D/3fMHRtbX21MgCSXH2BXSyhmHdCWjb4KoIdamgqkzgPWtho0L1xkgpF/hVcpIuwxtaS5/koi7KTDzGw90HL/IUMEucwzRBq8Pp2PAfq6ePSpOYglgGF4TpXv01Cgse/4qJuhpPpP5fVEDVvdNVs8X3xs8P4TEv8eUiCCYXLy99/gAMEUw0SKRXTK3Su3w== 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=SEk/KyCGYEIR0nJYohvLG9OMHTkixQzPWb3gCR+cLZs=; b=kjwTSg5VxcNBkuY36fN5P4WfPaRW0UsTILdt9Qv2zUMU2Cg+AU2fPtB8xy/xSssOUAh5gCCl+QVoSYr7DYQkFAKtpv2ID2pTfHABRkWG48bKRjN3Qee7jQ9IjPLQJgslbXm7ixgxTJIs13Z3bttol018ySbSYTnyfK4J0eQEWp8= 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 AS1PR04MB9264.eurprd04.prod.outlook.com (2603:10a6:20b:4c4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Thu, 18 Apr 2024 01:24:41 +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.7452.049; Thu, 18 Apr 2024 01:24:40 +0000 From: "Peng Fan (OSS)" Date: Thu, 18 Apr 2024 09:32:29 +0800 Subject: [PATCH v11 2/4] dt-bindings: firmware: arm,scmi: support pinctrl protocol Message-Id: <20240418-pinctrl-scmi-v11-2-499dca9864a7@nxp.com> References: <20240418-pinctrl-scmi-v11-0-499dca9864a7@nxp.com> In-Reply-To: <20240418-pinctrl-scmi-v11-0-499dca9864a7@nxp.com> To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Dan Carpenter Cc: Dhruva Gole , Andy Shevchenko , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713403963; l=2404; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=VDmWstcwBhpk6d9BmY1+Svq0j29w4hdHyHMqV4zPF24=; b=AEFUHmUtjgaFBXU1c1XH+FePDq7n6ISgIkzc1WwUltmtdeZNhCpeNJ/whfAiuuNxdZI+SGXWv R8PyapOu6d1CK4vd6UzCpcVKAXMNc0+lwLF+u95R3efsw/rvp7BlzAC X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR03CA0116.apcprd03.prod.outlook.com (2603:1096:4:91::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_|AS1PR04MB9264:EE_ X-MS-Office365-Filtering-Correlation-Id: 174c9a6d-00df-4393-907d-08dc5f4651cc 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: xGKZ4KM9RevLsFhaXgEoA3OjexNonP7J7fVUasU5EouuimIra4ZpSxkvWKfnvgotHbIBcIMg3+RZs+x0C+IhV+KRqUlu6Q/StXFuyCxbqsxpD9IsK10AGr+wATxYFTQ0+AdrnLFsZX0Af7fKv50mOuz5rz2JnjDjGOw48KBbJaPykQ6NSAhcgqehPKm2S0Pxr0qDcrepNy2Vx6pmVA/bQ0sbrsEt0n3gI0EW0IDTjDfnNBwBdJAHL7G5imWs4i3XolTrowB8v0r0eTvJ5qR45DR0rftUyOti7vFJBO104TN2uZvoBEYFhSZe/ewf7wOlAdlRVrGpZrO3E6qe5Wva2huJTynCD/gXErATKBegmEAzyLtF1AsOvSuAva+hUPRsjEpaUiTmLRxlqoJBL/W388oZg2nyUFHacO9Lq9XGdPmPv7ShPFdePJz+EiNpX+yqDVlT/9lG737EL2DHUzUDzPjEKToixn8BdHk9+fRuErE6esvRqfVu/MOKw1fEV7AvH8O015ORmppnOYT/1v5k6lFVUdRyoFXGZeCt31ATyVVxZw1w/erBcxDywE+FbqpjFz0ITUy/FQJclvtvYRLAbtI1F8LHyiCTAXce+G3jUPmCiHKhR9SaPido7DDBwfUel982Od9HK6lvtxBG6HcRFUOTTnbLRpjOMgDlcq2b0msFkPfNIKJut5G0ritoSi56YzE/CWyCq1WwrzNQznxsBaFtcjoMleHauxvsWSzdct4= 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)(52116005)(366007)(1800799015)(376005)(7416005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?WJ/JcADyGZA3VdCkEu+MkftoBF6E?= =?utf-8?q?LQLZiLUhBRE0dLFmPW18Lcq83JzLcN76kcvJHAIOBPKtsIZokcchGPALPw2B6rvzD?= =?utf-8?q?9ayb+hb0TXTUicTgVCITdVpjN4/hOrRz7tHOx2Eu7bhbbtCrLgUmiRv6Lq4D8tfTl?= =?utf-8?q?bkyXFh/YL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zmyLNBqOuO7CKjXyadVK7axxzz9m2exdYBlph00tMLeD?= =?utf-8?q?y5S+b9oFexHcu8lAKn7zOVg6592uzkx3skP3aKA58huHOR2tVytrUzSvC8SEHw2OF?= =?utf-8?q?FTpmm5tWWrdHNZK4+e/8zpvtCvhGFZl9DouGTThFIFD4q5+L8oBC8/Fr9fn/cVrQ+?= =?utf-8?q?OS4zKSmNHI783xFwihjMuCX4p/ITKlOODIYywj4jFFOc5MtBtcRyrTdasJo4UJ9QV?= =?utf-8?q?nUgy2lEMah2z9XjCJnFjISRXzQyYGD15e2Eyd20tGYhjDxrmF2eEdznYrhexRUqbB?= =?utf-8?q?Bk4I01ldEuUfshXXBM7wPIDD8ildV5lTfc3DzbnWTIMNTtX8M7RrDmJThUfjbgym7?= =?utf-8?q?e5ZKGz38YVSg1pV+NW6H6F9bUfIwcd85F9UvVv7GDta5fX9sctNEcvbyabu9wc1ad?= =?utf-8?q?VkiRuqXut2foL0nJw7RZAwtYos/eKHILVyPQv5kZeGz2088VdKZ1lNg4No8aLPYBT?= =?utf-8?q?zU+POrMgYFCV?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 174c9a6d-00df-4393-907d-08dc5f4651cc X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2024 01:24:40.5292 (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: 9HyyocxzqcSUBMmwP6qyQ/YMXKWX4mUj2gGFua1wyfnJNcwOR45aMmhJrvFQZa+51CRMScXRCDgvWtmaeMugBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9264 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240417_182450_712841_61BE4DCD X-CRM114-Status: UNSURE ( 9.47 ) 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 Reviewed-by: Dhruva Gole 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 93fb7d05f849..7de2c29606e5 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 describes how to configure a + set of pins in some desired function. + A single sub-node may define several pin configurations. + This sub-node is using the default pinctrl bindings to configure + pin multiplexing and using SCMI protocol to apply a specified + configuration. + + 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; + }; + }; }; };