Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1689300lqp; Sat, 23 Mar 2024 05:08:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLlvWMugQxuo/4vQ5JefyzYQvgcJfc2P6E5xHFv+RX6SA2IUCnZUgVSfVKd1LdQjhT7KSeaiP+n9aBXBFHO2lLdf+Lci5KzJzByrBpEg== X-Google-Smtp-Source: AGHT+IEkO6MXk1CjOW07wziSNwU6UoUCgbo7Hd8dUNY87ejRw8iWcItEkdtApkAGKNe/zNi7rCjD X-Received: by 2002:a17:906:d0d4:b0:a46:eaa6:ce88 with SMTP id bq20-20020a170906d0d400b00a46eaa6ce88mr1548122ejb.55.1711195691673; Sat, 23 Mar 2024 05:08:11 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h19-20020a170906261300b00a46e8c027f4si779413ejc.179.2024.03.23.05.08.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 05:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112320-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=AWSgKFFn; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-112320-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112320-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1A3361F21D46 for ; Sat, 23 Mar 2024 12:08:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6479C39AF1; Sat, 23 Mar 2024 12:07:39 +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="AWSgKFFn" Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2063.outbound.protection.outlook.com [40.107.22.63]) (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 0B3001B7F3; Sat, 23 Mar 2024 12:07:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.63 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711195658; cv=fail; b=H1DbdmvaAafpYjn75ka1DjY9FMZkHOQWjZm351KwJWoMyRchRc3Gw/VC7vYyvkIOuGBKHDJ5vYreFeoZeI2YinQOrfCgIoifs25sxjcPURy3nydQV/xos36NCjbRAPfykwDgALMj+g4oyqX37N6fbpSUCG5yh3as+BqDo50yVFM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711195658; c=relaxed/simple; bh=VyUgp1uqg2sd9efaIWkIGYr2e4EYKfjV9z7DdHViSYo=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=X+Dze/QGgDtasyWYRQHsZVu+AKzj5ZCRKA+05fzRrWx/1eS89ozR3eExABGpyA9yYusjzFe8NNqL2mGiqTzdY7aN6PeTNrhhUwpAawPVYN6+tL/pUYoniUddHu/kzg3JUwlBNlZlVORMpxNMpaPoWg/qxI7YbBg1dCAPLxd9MuY= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=AWSgKFFn; arc=fail smtp.client-ip=40.107.22.63 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=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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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) 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_|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?B?cDB2clFYVTBtYy9IL3JwYURDTjlPSUpkT2ovallrc2xTT3BUM2NuUk0xOE5t?= =?utf-8?B?VlRlejlDSTNiSHFENGI4RnNXUVVUREt2M0pzU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FSjZkaGY5bENZd3N4SmJNV0l6T0pka2d6VzNjNU14ZmYyTlFF?= =?utf-8?B?VnAxdXoyUmRYSk9xYUNNVEkzM2U5TUZxTnphQmR0ZEIySWpYNFg1RFFZa01q?= =?utf-8?B?Zi9nMGF2aTlPcVZNU1p5c2VnTWtvUzdyU1pBWXI2N1dtTEQ1dnI4ZWpvQUsz?= =?utf-8?B?Z3E3T1Q3b3laeW5YNFJ0T0x5Q3RSOEVPdGMzVjFOYWtWN1ZQUS9ESmpZdVBQ?= =?utf-8?Q?pz2QeTxTrbaFQkmI1O6v+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 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; + }; + }; }; }; -- 2.37.1