From patchwork Sun Jan 21 10:21:51 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: 764532 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2089.outbound.protection.outlook.com [40.107.247.89]) (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 03827364C4; Sun, 21 Jan 2024 10:18:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705832287; cv=fail; b=Uy/xAeQue9ON31/yh2INggttOygM4GIwR6jD5X1vz/RgBjhmoaK//UQmQ5Nvxuas5q2Hh4V2vgzwhSlwJQJRLpkTJu7zzMa/HQ/n5wdgl+IHCCHWKyuZerBrQAia5zZUOwgQN6E5buV/Qq11FJj/EwSn/GwbtBauIojHbWi5f3o= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705832287; 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=BHcHHf628IyoS4a73fMNtO2qJmvoFJhE0l87zT/NAH6vDL5cLsN9P5+pI9skBGdpgNUbTr61TWkw4hsaAlpA/ojea5y0bwM7HXnvmr8BUhvM0ZnVukZSkeMvueH6YLGY+42A2Wx3dkn4oB0fPCcZ/hMRnT/4ZThzwI5JT9szX3E= 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=h6qHrT0+; arc=fail smtp.client-ip=40.107.247.89 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="h6qHrT0+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hsHGb6uLFpc17qM9WmHYbtoPWQLujBcONhUwsw3M6VcW9ppUiJLoLuWryqGF96MeRSUQ17+I+0/WFec7BsNSPcl1QKqc1KNgnBDpKxV2cJS2yXcLJfz+v74dnox5HcueY8rjGHVotiIFbaHmV/LWTfM2rEFsc2+nRMViC1US6ycJUIV6hAHhQHgqp5eZdw070o+jOl0NnWWtvXmy2M8KHt6zxPQ/qWmHwk+Rf94ORqEUyf6cpaH4y80R6aIHGADjVuLF9AKCS1XbL2nG5EImqdUbn0R4Z3tq3BQ4VNxB76O5PkvO3vvsL2FioUIfu4YJRj+uvXJjPAx3c6LyXJgmjw== 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=lDgPLS9V90k/K57lmm+jlkYFosRy6kgbXd7ROdXsQ5mM6g76JYL+pbyyLV7AxGUzaPzY19Kzkp5O2Fbv+BNXBacyhOFlzPyBC8jKT2UP52XoOawuEte83ysHlS1/dk8cnUEiHzAKQA1V4TLv/QqCrJLdOk923u07RRZE81q644UBUlJzos9RxWvlv0HXWVMUXUf5yopGtUn0SFimkgkvs2K5tgBvGV2hZslMzNcpsNN4Kk8yT7kGHsX7p3JIR1f2k9RDqudFYDV33p/wcgZrrzWhuFeLK+6p7O7sy7RFIqfJMrauVzsXvkyDlt9jQk0g1eYR4r0vMwm9/HVRQDLr2g== 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=h6qHrT0+AjituARmD5Owk36AXzEWLHvuQ9OvqG6xFUCEikdO7NEQ8/+qoe7h6X4m+rsO+W8GEWpYnwUN1nl3MFYpAZCBm6fYaNU4s1T5qbW1/+il/DAcLjGIqprxN9bNzQQ+4g0XebGwIMeOENwbUmWRbNcRbWYu5A7G/9vIq4s= 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 PAXPR04MB9203.eurprd04.prod.outlook.com (2603:10a6:102:222::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.30; Sun, 21 Jan 2024 10:18:02 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c499:8cef:9bb1:ced6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c499:8cef:9bb1:ced6%3]) with mapi id 15.20.7202.028; Sun, 21 Jan 2024 10:18:02 +0000 From: "Peng Fan (OSS)" Date: Sun, 21 Jan 2024 18:21:51 +0800 Subject: [PATCH v3 2/6] dt-bindings: firmware: arm,scmi: support pinctrl protocol Message-Id: <20240121-pinctrl-scmi-v3-2-8d94ba79dca8@nxp.com> References: <20240121-pinctrl-scmi-v3-0-8d94ba79dca8@nxp.com> In-Reply-To: <20240121-pinctrl-scmi-v3-0-8d94ba79dca8@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=1705832540; l=2375; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=xWNejZclzOUqKROUnFYHgVlFI6BqdpjzWE8+IpqHKp8=; b=LEO/Nb+DKYJ63eO1b4m4NCZZEg1U0e4TaNmGtWBMa/B+YNZPFphXela7t+//WeCRjVT9UZ6P2 Ae9EAmRAwjND6NoaHAf9VEDfMhWdqUJzRVb4POxUYI28EKUTYhA7ZY/ X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR06CA0192.apcprd06.prod.outlook.com (2603:1096:4:1::24) 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_|PAXPR04MB9203:EE_ X-MS-Office365-Filtering-Correlation-Id: e8229707-ddbc-40e5-33b5-08dc1a6a403f 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: iZ8E3lY7FCwS8NJmF9gO+LmBedJhHeuBCCfXApnU9chzAR0Y/PEA3JUxPx2qNY9Kk0ANDgO52iZSv2GGaFywjr7HVCuAi4gorQ+lJ4E2skijgR6l/JKMS0apsPQfbevtreMFEMRorxjCocZM4W/snubiGiL7ec0SacrA5zG3zIa1ZNOURcrj5P8sOQN5MSY7SAZ7/5FW/l6yWkj1cx2XRDCRJNs5XPxH7TSENo0+5YcEjrCUyKGd08G97PjAzcKpJJZYmrI5uBtOT25DgNn9Vz9ZlqnjwRjF7Qa+XBeYA9xBJk7QAOKYPqm2s745/rFYZc4ILfupQZ6JvtTSONEO5Hu944rdA1WgfV21REKQO1k5uXpI+BmqnqmXm6mEwKFWnyViTDMjmJxIL0BOswtU7ZnMnig7ElBWxn4LMgTR44kHACF/E1YFEgHBM0DMfZcZZgLF7/bgDCoI7eEA+aWJ+pvsbLLPGkZ0fYi+EtVuAib98PKHpWpomVjolwKthqOdzBkQu+KHDySHXt3rY7slpMAMxhNWndrBCxVzBKpF0Qypgv8T3PrdP3djN5sa5wYgEVL5lja50gxNZIa2Yrn+4m9YKhedjDldPymK86jUNkLeQNGeNsVQYxylJbjutg6r51iNzWkYFAaWin3wkOFc9g== 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)(366004)(346002)(376002)(396003)(136003)(39860400002)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(38100700002)(26005)(4326008)(8676002)(8936002)(2906002)(41300700001)(5660300002)(7416002)(478600001)(52116002)(6486002)(6512007)(6666004)(9686003)(66556008)(6506007)(54906003)(66946007)(316002)(66476007)(110136005)(921011)(38350700005)(36756003)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?A2WyqXzb0K+n7xFizElTFF7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-8?q?3elqFuEqAkP3UBZ6XnDUOcX5v1SMekToTbJlCsRCNd5chl6wvMG5+pdjuyFmCskAl?= =?utf-8?q?9fpLwN+GbW4m6dcOAeQ4Z5SBHFVabe7Qil0fFn7YvwD+Gfx2+AmzxwC5gn/9YBnSK?= =?utf-8?q?8oKM5kXqG8l8Ow+S3bTAM4PZ+ge9ZUHAqgXMCPanTbM5cQ3bN91rdwiLZLALtc7J8?= =?utf-8?q?Wcd0eNvsalNDbyQUqxYSJOd7gLb/wCpiKhepn0aPQCz0/70fKAbZhPGVbBhL5tg+2?= =?utf-8?q?kyaYDF3HIuY8VqzxVwv3MuX5yXHNvQIF+CpP7our9JDW3bkP/UHtHdFabSH7TNI5D?= =?utf-8?q?qdeYP7wdgnmUhmJiAFe6GQsvWbodWNSGrSspK1rGNqDVQuzDfVRdNG7dcgTl1ymCb?= =?utf-8?q?R8uguwBA2fj/T/6PQIvJPkN/glDMJe7Asl/1jzFeo19Yy4zY/hc9WO/Zi8EFDBjZM?= =?utf-8?q?Q/asn2PX5gCZuTcg8WfxUfY0xAHUq+YZwBmjB6dHG3aZxYLXc7YTwpAZiHVo7MsWw?= =?utf-8?q?vYtTB33Bd4Zh0wUHt64/NbRcA93iq/7bDyITRr/2oZb3DT/AiJ4gK/XZRHV5tvaQe?= =?utf-8?q?ybn9rMWisDYehd3HS1REZsYioOE3wHpl5RKNjhO6pM1HXaES7N0nmUithoO5yjn9f?= =?utf-8?q?LsUSRixYE+ew?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e8229707-ddbc-40e5-33b5-08dc1a6a403f X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2024 10:18:02.7609 (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: s96m4umiT0W2+Ppb/+UeBH3xWfaqz1r6dbMcLu+Oa8NwfdUzP6Ds0rvAW2+YF3AR3U2Vi1JJX8r8P/mvS+jnmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9203 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; + }; + }; }; };