From patchwork Fri Feb 23 01:16:39 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: 775353 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2048.outbound.protection.outlook.com [40.107.21.48]) (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 5CB3DBE4E; Fri, 23 Feb 2024 01:08:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708650535; cv=fail; b=ETwtqlz3qL4EvvbMRtSEvrLs7pmJPv2WMM8ndDchTU1TFM9Erfg45g2AtSbyLLKvPWH3mCMDObC+2eUoGiv+3tUUwa+ZC9QlMWkV4haMLfoDWdfyBYenf7uB8fEdkzI5z9S3Znvq2dIH7EU3/KhW3GvCtNpFbz2/oBNXxwhhi94= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708650535; c=relaxed/simple; bh=Lp5urJcXxMhFvLEjMl/gU+u8bqJReXBFK776pK6/zCE=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=nu4tlgOZzhlvmEM1R/oUV/qwQgkx6vr4Qo8UkQGFCENvQU8v0caa6SjYpMrOQON68lgmxwuUW9UOw66rXZ3iTDgYExT11IPVlLCf8sDvERTaQAAC3QQYTUC5YS/ZvQoGNgpSCJBhYfJQmi1YzUqLlUPpSk6CuZtYEQSpNK8/orw= 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=arQqzowK; arc=fail smtp.client-ip=40.107.21.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="arQqzowK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WKnQVsjuZPwmN+EcYeOyI5ZATNtd4DaTGSytUPNN/fK3eKDGPZh7W5Y/dkpg+lxBFVZ8fYqwiTyfZVUbfJEelJr4czPaY5avteRUeSDPiOjpudY55g88gGS45KQTZ/E0yAuN+6oym+T6jiK+4sXfddS3H1blWm1sN0LsvauHuSc4F3SjzTiLcwcGS7cAMd8EvnYZp4V8NbqxKd+Wv+MGdrTFsTCWE+heFjnzYeAMpwt7Gy1td6lRcZNRlqpOp6EcwctcX8VzkaNPqV/evKBf7rdioODdqCDibGrYDafWGFMpPF8h+m2vOyNhvjGvjzrHHBek7j4FEBzskrC0Z4yQUA== 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=OW90zeQeHd5s/hFRCNco3swJ2Ls5P4uSBkJ2jQn7IECgxcWF8i8jZN0aRSSX6vQOnbFRQLHIroWRjZv7GGLFdPKAzAxYoPqHfDwuMJljPsgk/+1rjG3aQhoSlkwDVJSf7uawSAJXyeVFypbFybaUOxaXSsTIwEj/rqGFtKtk6wwU+ryKgitb5nDQoQGZq0mBLoDovWFnBE7HInBXDTTWSIKfSCOCiPf7XptHMfNWKD/Yj6Qy+dUE+LnxHiDYEJmrEcL8PZALoooZfE9j6KQyJCZWv/IkUYl1L+KibsyAeb/WW6G4NnGkYk/6RSLzQP3CRx85rXVFHBEKfJt/fesJVA== 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=arQqzowKDbl/Xn8KNAlZeqUP4I/tgcj2Quadl6oVnvpLlHIEVv0BnQGa6e+XuxTcSjYhrfnsWWDIqmhsbavJaNCTIvrg9aPBfn9ELL1jgIIkidv6zQiKgQtXBlKKEcaEkjxNZ4GV8yMios7xRtvNm4WpTVfxU6q2bbJnjdz19w8= 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 AS8PR04MB8418.eurprd04.prod.outlook.com (2603:10a6:20b:3fa::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.24; Fri, 23 Feb 2024 01:08:50 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1%4]) with mapi id 15.20.7292.036; Fri, 23 Feb 2024 01:08:50 +0000 From: "Peng Fan (OSS)" Date: Fri, 23 Feb 2024 09:16:39 +0800 Subject: [PATCH v4 2/4] dt-bindings: firmware: arm,scmi: support pinctrl protocol Message-Id: <20240223-pinctrl-scmi-v4-2-10eb5a379274@nxp.com> References: <20240223-pinctrl-scmi-v4-0-10eb5a379274@nxp.com> In-Reply-To: <20240223-pinctrl-scmi-v4-0-10eb5a379274@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=1708651021; l=2375; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=xWNejZclzOUqKROUnFYHgVlFI6BqdpjzWE8+IpqHKp8=; b=MMWisZO0cIMNuCFhs4TThTvnZCbROjAupBO38AJhC9yOfNJECPOnjA4QuAQghVQUx1JuAlZpw I42xmfpmfEnAD0hgZlOqpKv7JBW4307RDQmBseoLNI5srapjBb/Zm7f X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR04CA0009.apcprd04.prod.outlook.com (2603:1096:4:197::8) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: linux-gpio@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_|AS8PR04MB8418:EE_ X-MS-Office365-Filtering-Correlation-Id: e9647205-5c80-4dba-4ae3-08dc340bfe85 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: bJ4JFuWq+ts2ws4VMt47v31HqZ7MWLhs0sl/Frb1gZ0hXF5bbZJIyj5E8tNEtzkfRqzggpIy5MbMbL4YwtsxH+mTj9Gq/91tRol8WNgQlafGUoGu6E1owDjN48eZu6GVeBzTAjsXyfe7gMpATatKC7LjGyTtbJLBdFERoYBQ9UZHrgzmclsa9/tNzklsjN0l/wKTT6fsuGGQ28wrxRX9RaKXk8yQFMzDVHBbuz+FsfP7zNozVoX+CiGuu/krTMRpTFmJobnLPba7+SNTLB0MOe051ibyO+MI8T8g7EIdlFulZ/U0N+iJ6kRHe0l4JgRMz1Pc0SBdTF+OTCaw5Nkj9L3KsO2B3DQaZPFmp0O38NSrTC5JlbTxvdSpSd958I+/bQixNSbqTc5c7xXZPPSn4Yb0eArEFXdaDpu1c157zzrDjzWi7NLQCa1po6Mp8cPWsY1D52IbyfgsYcwFzcNoCKirDfQuAAYTjsg+QphcJeK1elI5otStYm3gA0Ch7A7N/82msUdgCJYA0Sv6lwAyeYVZ3+PkGfLygxzh/1DW5uPYzq+dmGpgPb2SZsO6xDENCnb6Z2arFn2GePjw1ELtqnbkuFYhPi4ZTKXoTWYWTt9ngTp2j0MQS/wu4C6gnoURUZAu1zmXj+yj0JSjajjamQ== 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)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Rm5YWgjkqdKjcY1sjM78h/y/+fZ8?= =?utf-8?q?lNOhS6Olb2H6q12g34WtAZie1QtQQapHhfuhne1HOhUMlol9b0hu2eftdghhmETVf?= =?utf-8?q?mY0otyG1MXeTYhDV7P+zJv/5erqAZAL0nlJ9V1i/REtPaFt+fAB+b04SUZeo/vZC6?= =?utf-8?q?2VgJagxL8RD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FyActd7gVPaVe123rTufK2CCTe0nuSRSlfJBFqQ6J6?= =?utf-8?q?gIK8OLLpfXZnyyE9wTrTgKePuoTJTAWASGcLUTHtjsvkJ6Sd0vtx1F8G/GrhzJC+j?= =?utf-8?q?Z7zhT2/oZNnzmY55FlRWgwSuPHqO4sd89xegGI+sQf6/3PEqPuENsCKybyXwmDkrz?= =?utf-8?q?c+HlSfGorGfVeQ+42mNX2lsrutyJlIcpjXVCJ1UgKuAKqj7npOQo05rNao9LVSRbn?= =?utf-8?q?BzNxte5pUyfGWsAFBDAdNnOlCVf54lsTqL7gw/uTY02mKs7kXJ+oKg0puo7pUi7H4?= =?utf-8?q?Iwe2ChyXdvIG0NFb84+t2WVZLLO4yIOxjoT8V9k3I7B8BXa4D5EomgqUYsFviMc/g?= =?utf-8?q?wN2L5f1wQrwTSAMUK1K9qfPHJvP3DztD3J4i1aKRqDGKsRUmIk1pOxhSnWYr5nW7g?= =?utf-8?q?/lTOE1gH5SlS5pK43Hv7ZLuwfOKI4ejqj7vS8NR31v5B8hihkaqhNzkxoXyfnUwu8?= =?utf-8?q?Ucp6nScIMGdi?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9647205-5c80-4dba-4ae3-08dc340bfe85 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2024 01:08:50.0097 (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: WBH104hGHyC2oWozvoq6hK4l0XNi3xzRjMJlkUe0fKK1GeiA7JePvnKasNwGF4EzyHjm8qlz4lmeUFskQEiU+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8418 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; + }; + }; }; };