Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1297439lqp; Mon, 15 Apr 2024 01:56:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2JOcCgMiNm3DsV828X1n6/vNhqNd6t4m1bX28CDZGhg92qVJv0NGJ6piOjj3Fvy7eBIj7Qvk8P6jC2sra+S6g/HIGW29yqvYShAT1xg== X-Google-Smtp-Source: AGHT+IEXWNRsdmVohMQhpQotZQfOUO2u/2Y9OsYjAV8+x76EOuBdRz1Igek6Gx2cV9gTBLn4P0Dx X-Received: by 2002:a05:6a20:c886:b0:1a9:f9d5:3bb3 with SMTP id hb6-20020a056a20c88600b001a9f9d53bb3mr4759997pzb.61.1713171392342; Mon, 15 Apr 2024 01:56:32 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i38-20020a632226000000b005d64d951c89si7569749pgi.143.2024.04.15.01.56.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 01:56:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=TAOZOWk3; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-144782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144782-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3D97EB2433D for ; Mon, 15 Apr 2024 08:44:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16D573D969; Mon, 15 Apr 2024 08:43:05 +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="TAOZOWk3" Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2081.outbound.protection.outlook.com [40.107.247.81]) (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 D8EB243AD4; Mon, 15 Apr 2024 08:43:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.81 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713170583; cv=fail; b=uCx0lvov+kke9XQjTCzCs4fp2dPw8E2Qj9bXbDEeneYc60DwydXrh8xcRvWU+9q3vYLC6sywVxTkZIxTPcEuiHzVfPupnaz+r2E3Hr2rCdKA6o0ExV7awu8qbd4kW4PUNNaXY0W7l9/pgMD2g7jprPVEsqxSULlP+eMFFXPDfO0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713170583; c=relaxed/simple; bh=1zPbtoCNbOl7ALpohlegcy1tsXoTHb4w9RVFmhetJ9Y=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=CrTH6jO34V+WN/M83p8HzPfdxl+zHLgvfAM/KS4flo7DWMxQp70YgqQ4Ai2w0z+nlVXNrgrGXKTwsjmbNigLPDId8PAmhnI9f2ITBSeK9C4tNK3eerhOknI6qJR5CbidZeSMGtQgbPR+ZZvG0QTVhda+RZJqxiqjJUoqyjVIKFY= 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=TAOZOWk3; arc=fail smtp.client-ip=40.107.247.81 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=N7W0fLDeDkVoG5AYGCpt/VSPEqsvHx4WB5dEOqAq6YemoysDoGmS1KH4cmh7fAC/5za3NtfVzaek8GGJC0kHQfqRwEJJTH5yXfo89xfvHg/A2gMdG8qlMkWZ3Zvb7M9/8iMkIJGiSdzn9LVyBanXC++xOOzkKPNJjSXyaI6lEsB4J6XXEEH721qaqprSVj1U289VJK+4mtvE/tkkgROixf+W6gfdeKuhC2udPRoyvGPXvOXUV+6bAZLQP6O2UA2yX6jnnNpbVQZACFJHhDHG9Wy+Zh2ujJJ96LAAGOTKZHcekrh6AxCj1YRzV3ob7imt2gSpPhN57sMjaJE1e39XMw== 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=jNbVLkiyXvpp8ZHdlE/Ywp8VMDEyGmQnA3fD3GfdBK1O4NQq0OLrd/VQJ2kpA2R6QwqcSPrHkDytueE381xf9dVYtd4TyzqfVpHu/gYaVyNcV2ElLB6BVu/FvaNQcNgq0MTo5r1cu39MC+lf5L+/xcxf83NAODNr+qJIoSfcki1JSachlTruzsRXNQrpEzpY3czYfZUKFJ/e95nRuFDxF+ojXfxauFXJfOEs9BG+u7fp1nJ4dsvagmjHpSHErvTGIC9bjojh9kXq5+92FaF/Q7qodC44VyaUMz7R1pbPHIh1zDB5fCxczMIP6Plf2im2QkAU82kCAx4VUE63FHpJjA== 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=TAOZOWk3AD/GtxQWpX/g2THBdzCnjAfNOjVpv3NyWDXX33NMpfs2nHYPXudzk7GGCWQaYjdnCljdDHCiz2Bd9ZG4tYREYnLJPLBAXIDVlugoR7iIOgEb0k1v0LzEZcIDrkWVdmMmu18aKS6ZqfkrW3ToOY72Oyzglvm2AjhiXGo= 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 AM9PR04MB7506.eurprd04.prod.outlook.com (2603:10a6:20b:281::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Mon, 15 Apr 2024 08:42:58 +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.041; Mon, 15 Apr 2024 08:42:58 +0000 From: "Peng Fan (OSS)" Date: Mon, 15 Apr 2024 16:50:50 +0800 Subject: [PATCH v10 2/4] dt-bindings: firmware: arm,scmi: support pinctrl protocol Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240415-pinctrl-scmi-v10-2-59c6e7a586ee@nxp.com> References: <20240415-pinctrl-scmi-v10-0-59c6e7a586ee@nxp.com> In-Reply-To: <20240415-pinctrl-scmi-v10-0-59c6e7a586ee@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=1713171061; l=2404; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=VDmWstcwBhpk6d9BmY1+Svq0j29w4hdHyHMqV4zPF24=; b=FgQIu1M+b/SSNUdgszCS0d9jFG/pgLRZo05l9WUzDohdJlFc2ssIZFgi+IChVuqj3L2f6fACV TdpBkQ7XcB+DXklVpNsi/myah3KnmYgzvUj9uRFta1mxad1McfTHnYx X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR02CA0011.apcprd02.prod.outlook.com (2603:1096:3:17::23) 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_|AM9PR04MB7506:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f0336a2-e374-49be-9eb8-08dc5d280d53 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: a1PcyRBVsm9bf7cwF9XlE7NDeGEnLdzPhqn1Nm3L1fznQxACz6NZBHI2BN4l+/5ZxZbZ+LrNcx9uVeVOh2z+F3GgZ2xKwrgwF/NNspGboqtC9dKSaap1Mm6b2M+/XR/F1Ac6oi+4Yz2TZydrZI77qbf8gHJwDTFdB11cecQ790Z5IF33ebHsYJzZYZ4vYpS3852TKE9mmGvqZb8iwBRp9JFUU3NlKfXOr4PLwCwQlW+pxghiqzMoHJ+sPzr81q8rhkUV67s/kbh5hjA59JomS7kXeJBYPgIgf57OnXuH9rfbwzQVEJVeG2tM7WkvRQM3xzIkOw6AhlRUkQY3Ncu5fs6C0Lr6nMn91/XzoL22036UcLyHwZwMzQmQxnhG5+kc9eYub/DZZSe8oPJooQMSeQMd3wep3wWqh82s9TAlDgCFnokL70bXadg+fRlWCcPFrQFO1SMvDhCmxxC1F1ukb+kh7RTXrbp1xQv3aqBn+Cfl9I9O537eG2rp3csymn0E89RvZUm5yjuBrNoi1wkzNusZ4bYegyLEswa+tJ+3umI6d38+KBKpEjJqCQFos0s4pcrW9ZvmcEVAZNvsa2GyYQC0Xb4j1fRZWY03isXNBUl+hYFYkIJ2f3sJGaXYywEWoCQTEdwyt6+AqRYdWmnAzUHeDnF87nNKoN7wHYxC9tlEihAGHaiaJy0VlGsAMIPrA6Ly6RpTqFPJk9ORfUAUEaDkAu9TQqGt8IeudlAbBNw= 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)(1800799015)(7416005)(52116005)(376005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cURxM0JPd05BQmJhZEY5STlPaWMrQXJqZW5Hbmc3eEs1NUt6R2lNVnNNZzZG?= =?utf-8?B?U09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?SkJGY1M2WjJlZzNmeTZvbjF0TDVLTXdRakVvaHRQbm9RTGhscFQrOTk0OEoz?= =?utf-8?B?eWZTSFRqWldLTFRwYVJQMytZOHFjYkdWTFJkWkRDWVg1Qlk1cGpiVW13eGkr?= =?utf-8?B?cC91cUhnU2VWZ2RaWkhBTkZDUFZJQ0ZiNmJ5ak9jbFg1d1Qva0wwRXg0VzdJ?= =?utf-8?B?NDQ0djcxbFh6eE1wQnVyVlJkYTRXUHN1amlFOUdqRWJlelVpSFQ3eHN1TjJY?= =?utf-8?Q?kaBLIUX/aogkfWwXTG1AjabpV?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f0336a2-e374-49be-9eb8-08dc5d280d53 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2024 08:42:58.4645 (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: jVqB7+J8AkENFPqSV6fnutvtFm8BRzb5aPK1vWxKF8kzOh7IuqoEIm9FXLkFJw6QQdJeukt83iytvGSQgvY/cQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7506 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; + }; + }; }; }; -- 2.37.1