From patchwork Sat Mar 23 12:15:15 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: 13600602 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 0F64CCD11BF for ; Sat, 23 Mar 2024 12:08: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=3uVMD2uWMLWGzrxF7ffD5s+x32h+1pK32sZCWgZEigc=; b=mUixE+Tet3CDR1gtTUmU4IqRm6 Hx5P0OtE5LFgEmKPl58dYaMWFEOUkU+EwVY+FJlG1yDkn8pHrJlJVypaghBXNyeBjurkfBf2BtNNx iE/I06haU11aSih5T/JELZ+odo+sbIvVR81cgk0GQy175L/0rjTZp/2Hr4NsGXYyEo1ax+9yuNMgw ZIz4JNfvelzffNcKDSbNRZqi/d/WyFBnpHvgC1E4c9A1FPkw9rm/ZCXu7gu5pWBKhMq3RJXKSIDGS sGo6B/j2RZMLlcGyEWPcvEoPWK0mIE2bGNGWN940fWgCbO16NN/lLdOwMd+tVONzrpXNPCFiEcC2P w4Fk+vhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ro0AC-0000000AJUN-1LHl; Sat, 23 Mar 2024 12:07:52 +0000 Received: from mail-db3eur04on062a.outbound.protection.outlook.com ([2a01:111:f400:fe0c::62a] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ro0A5-0000000AJPj-0zhg for linux-arm-kernel@lists.infradead.org; Sat, 23 Mar 2024 12:07:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OZrXoPV1Ox9YoUNPV725caJnTOGcm0bOjIXNPejxkEluYEq+0ZNLRXVZIlTSnoAU/1tnZLJXOOgNUsx029Y1v/7xtDyQt7XjS4SRz6P4fu92gCrv1kr7XkIwM/JsllnZdrpGZMNYmXf7glGcslV3MpJkfpY42QnpGHPBJZ0Wrx4MzJ6Wx/K8yOtcgJpb0wCc8XOkRF32slmKTB6DjV8e2lJMzlwlbpBtFUzrAHpXI4EShMYZSHxsSdicrqB5Ao2plqacNTBZoxVdAiAmX1pDn7TFh9SbXQbSYyHlBxZRuikHCaW/g4z3aUVDAKazPdlActTDP2pHCl6CRhdq41v16w== 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=s/BzLovi5aKNOiOuw8s4YMGfV7RBPkidh8VfX3S2pYQ=; b=RT8nJ9OjroTHzLo2WWiFNUtZxE8os0XutrbQkVPdFxwAfzSSLNXQ8sK3/e9e0YsR3EDYD11mBz6cZGMy4aFZR3u7subR1O2NGIeME00LvM5biCXyuuTAVIPhXpjlvwDYa160q6r6xTnEM2UschvzRcce7Xx5W8IIlmWqKtWOlMiQLQ5w1Ve62GBQCIoUuZ89E2xrqJi+aK4tJNLJi0+dZu8KGT26VDoZ1TiALIk9e7gaf1qlHIyQNL2xL8Ma2LNwgv9cw9nkKyA0uM27wyIJYMrg7ch4T9FAVSuVcvXEJA6docW4bgUuGjMCy0MZpczS7BW35IxXFy9R9RlUGZ08hw== 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=s/BzLovi5aKNOiOuw8s4YMGfV7RBPkidh8VfX3S2pYQ=; b=AWSgKFFnY7wAIwtFl8pq6kLxVbiYAbmXRJKKKjRGFu9LndmmpWa10axMFJzk8YVqjm8f5873GeZJQ/6yCTK0WNNPVOAIb7JaTkQxhAzg7yqq1hgoyH7yrbsX2ZRSFaeLKM/KFajJCfUh6EqHRPjJcQzm6BGesP37To6DgVsmfpw= 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 DU0PR04MB9585.eurprd04.prod.outlook.com (2603:10a6:10:316::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.26; Sat, 23 Mar 2024 12:07:34 +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; Sat, 23 Mar 2024 12:07:34 +0000 From: "Peng Fan (OSS)" Date: Sat, 23 Mar 2024 20:15:15 +0800 Subject: [PATCH v6 2/4] dt-bindings: firmware: arm,scmi: support pinctrl protocol Message-Id: <20240323-pinctrl-scmi-v6-2-a895243257c0@nxp.com> References: <20240323-pinctrl-scmi-v6-0-a895243257c0@nxp.com> In-Reply-To: <20240323-pinctrl-scmi-v6-0-a895243257c0@nxp.com> To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Dan Carpenter Cc: 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=1711196144; l=2362; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=1H2rME0+2KWUaw0j7tYsXFokSaYx/bEPhCjn1uDoVYo=; b=yXDqUmMho1q94CJjUWs/Y4/Ta6joF+KXkrSg9P6VrL7fy/5buXTzXtrHYb9IXsx7mpsvaJqLs IjtBKb32BO9DH3eS7YvmO+lBHr7TajyVxhAL5h5s1Ys5b+1CPFBANt9 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR06CA0016.apcprd06.prod.outlook.com (2603:1096:4:186::22) 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_|DU0PR04MB9585:EE_ X-MS-Office365-Filtering-Correlation-Id: 19f366a0-a17e-4275-119e-08dc4b31d2e2 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: peanjtGePulBqxLzrCc44P9/HoOJ0WD16nGAf9FrMsdt4AA4Hgk8w2F5RHlg9+KqKKgvMMVxYc52t+w/kME/P+ch9GH7IvKn/a3dm7UDAPINymLJDn6GR9JGdoTjOReWhJcZ8qmy6RaScfvRn25emu+iu/ZBgGY3atpJUBU/C/VZiHCCFLNv26AoLCVC5CWx/1GERkNatQ3wEtFRdbwiYBZhM72Up+Or4FbTcl55Kv+YyhPUI9S/EBl7JC0/zhvO3BlPLnp0XMSHkpLYB0VbSNGZ3h8LRioNk6Bzo+Dd5dxoduKHqMowFxXtjHwDtcQ3iHN9xxdirX4muWFyVEfPiN1ofbtl9UzmbXUWhlFj/vtAzHhk9xAPF2mcHV0R2pdCS82D0XPcd+p8fp6ot8YnavBtZ6ZniIns3RZK6Qd7EQZfEtFAEVtf1ljJb/KC+tYBFbIDjEv5vflNQ3nShZE1ujoT70e/PBRlAVMWIsIhYIKYt6jX3Owk77WBjH2f+/vtMBs54wfjeBle3kH98MZRAUUpQYGXc0pKoF/9MALvMKgVojgr1HNjAktCCa6Bs4TzMS+aKotIrQqyFqu5/OMpTL6Oq1N67IcG13LcJkyCEKeOP91/O3V2YItMLLf3Yb/XEMEhkenl+hnsGLeuWk8zA7vyl5cHfIqDvq2BTGoK1jUFKqbx5Z3PHbtfrvb9FoS5lkLc49ll30PGAkQvGt9aDG2L4gtlDsI7n0/dp00bMiw= 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)(52116005)(7416005)(1800799015)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?p0vrQXU0mc/H/rpaDCN9OIJdOj/j?= =?utf-8?q?YkslSOpT3cnRM18NmVTez9CI3bHqD4b8FsWQUTDKv3JsPusSueSHJihXGqFfxcKIv?= =?utf-8?q?YbzuuT2YXgxd6Pi5j5p4WxHKjBaaOQkR739SlZe6H1B5gXnvXjTXdMufOM8bZsRu0?= =?utf-8?q?I7hv9LNw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O+WPWGqZ+gpvvFOwHv+cRKIsdrig38JaanzJSjs34kNU2gdqqwe9?= =?utf-8?q?dYUGRKws2rk2y9jd8Hcyj/jA3SSOlPR5frlxpT0VRiP6O2+6Rgl5RMw8fZofMCfRO?= =?utf-8?q?r9CEaC5PasNgT0D+cBZgrHsdxnRe8SLwJjUNW5VwZyMtt61vmWNjMvjMjoAGqnVA8?= =?utf-8?q?AyiYkAEgfjRDYeDpv84tmXrG29p2PPdqAouW1r4T9Y5erShGRptLQAfb8aOg399V1?= =?utf-8?q?kabNCb87bmOiiuT6d1AHwamtBMB3QZZ9uaPLB3WxYSzvOfK/XmFy4fO5kbA0hwLyj?= =?utf-8?q?IvHnre6axVEJ6dhf9lCYwsxJbMWIzOJdkgzW3c5Mxff2NQEVp1uz2RdXJOqaCMTI3?= =?utf-8?q?3e9MFqNzaBdtdB2IjX4X5DQYkMjf/g0avi9OqVMSZysegMkoS7rSZAYr67WmLD5vr?= =?utf-8?q?8ejoAK3gq7OT7oyZynX4RtOLyCtR8EOtc3V1NakV7VPQ/DJjYuPPpz2QeTxTrbaFQ?= =?utf-8?q?kmI1O6v+V4vu?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 19f366a0-a17e-4275-119e-08dc4b31d2e2 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2024 12:07:34.4095 (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: 6GrA2U0ozlBnF0LQ6brQRQgSBryX8T/khWWcJm4Vjwx30FCQPSZKUDEnjna25+S65UW57mJstrd3w3D3PsjADg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9585 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240323_050745_334000_AF33B5BB X-CRM114-Status: UNSURE ( 9.57 ) 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..e9d3f043c4ed 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; + }; + }; }; };