From patchwork Tue Apr 2 02:22:22 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: 785544 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2109.outbound.protection.outlook.com [40.107.6.109]) (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 550FE125C7; Tue, 2 Apr 2024 02:14:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.109 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712024074; cv=fail; b=QApMBwf8JUbwmvLsiz2wOcNnT4o9j6SIliBcPARGU453IcYW9sJ4qGW7+RqSriW4e90ohbpH1bPPCUR1T6e9zbnxL0/Wi83YbdExEn4YyM+W+89zoECX3qlHtRP4vaPpySBCAxh8K6eyxnw5Lu2kNgvsQKf4m0A8K5JaOe/CS7I= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712024074; c=relaxed/simple; bh=VyUgp1uqg2sd9efaIWkIGYr2e4EYKfjV9z7DdHViSYo=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=OaGXXpqfOLpsLShEyTtEWwWBDAfwo0DUdj9MIsgXIggjvw22bhlRqTE6bd6JL4Y5UvvZ4vWa7Q4jws15b8faJ6zmQyBlusqrQY9/MXjsFFFA2Os+4HGRoIL+u8po+vzjUwDWV0NU6DuqpDegn9n0X0GNtpy0iPXGJUtPNt/d114= 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=kVkKN8+Q; arc=fail smtp.client-ip=40.107.6.109 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="kVkKN8+Q" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RNWz73kvzn+pdbMhZQChM7gnFILcx9OlXcb89CiqrMcRDBOLGfKl028582xgejQYbdACSGCLN1MtWfpN6yIPWi8DjM9BHihnShE2kVRG+TSGYDjDrc+X7MiZiHH/kCzw5HNgy/0uaPDFtm41LVPVIb2XkJ1uRRtJEbZPlmBEOrjWhLkv1SfmxIxlcKR14gBiOzpd9tOTXP8WbqB+cU2sjtMGPyUw3s2dFOwCvd0dkWCZu5yKyO95Dtd7F2+eONx8nwLZCbX6lrEIG6wCcWldxhQTJu0Z8bM1S1ujIht7LjBq0Pti1NdjBEaPdcWLGNB/caiocz+syoaBwGabWJm1Ug== 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=Ffw0wTt91u5Pejb/R09iiuOnfYpdxB8khjROusUVwI/KK5ehBumsb23h8juxL4eGFi5PqQhmD51m4TDYKzDwX8kyWytqYr+aoLatCXLduIbsJ1M/HRQWif47I7o/iG9vGBuuwKs4iGNKfaM4iG0zVO+tIOaSetYQFu0q5o0MQMH7K14lLlefXpmxdeeCr0glLZeDTXB9GdovMHapEhjBZoNQN6BxKpl9Z42kprsgay5RCiphgeS4fDQeG9O+erL6d1jF3dbekVarGGSYc4zyq3SuSp4AfgK77aArEtNZrWKLP8FaYC7eUSphhj5ocl/n9yjLoMukXSzZbv7S6z2vkg== 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=kVkKN8+Qal41bqPveCuRWbcUdY097uBskLeiDhp9uFDNT49OmVE6r5rrK8MU6ZDw0ew4e98TRcud9ZREA/8dro+sAYS09Y6z8W48k42/NqhfZgKGs3Mg0kzLc3jOdi+o4tRCBSacgAYcH0JHbZTIKtuOc9W2OvoziKItn0GqjVA= Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by VI0PR04MB10163.eurprd04.prod.outlook.com (2603:10a6:800:245::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 2 Apr 2024 02:14:30 +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.037; Tue, 2 Apr 2024 02:14:30 +0000 From: "Peng Fan (OSS)" Date: Tue, 02 Apr 2024 10:22:22 +0800 Subject: [PATCH v7 2/4] dt-bindings: firmware: arm,scmi: support pinctrl protocol Message-Id: <20240402-pinctrl-scmi-v7-2-3ea519d12cf7@nxp.com> References: <20240402-pinctrl-scmi-v7-0-3ea519d12cf7@nxp.com> In-Reply-To: <20240402-pinctrl-scmi-v7-0-3ea519d12cf7@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=1712024557; l=2362; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=1H2rME0+2KWUaw0j7tYsXFokSaYx/bEPhCjn1uDoVYo=; b=CnToFQguE8XWssO8wp8RiiXw25ULCoGascUwv6rvQsxgBT0F1zNAgVL+8pxr3RYLCO8xwOeGd GxozKIphA8gCGc/NogPJBPWbeZOH13cc8HNw9IluGUxkMnSBrpeHC4f X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR04CA0015.apcprd04.prod.outlook.com (2603:1096:4:197::21) 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_|VI0PR04MB10163:EE_ 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: pi8sBonqQ0wsBYe+MySU/uAMNb9zE/hhp4BLTqRkJckfXCLVijQE9snQ4Xdww1b/deW+1x1p05fF8DX2AddCiZJ1c1yaFjq+J0fxPrKjjxj1BIWcT0dQajPU3Fs5+r6Q8GWuxknQ0I9yo7hjnBusrArLlJYwDOF4cpCXCc7lpguKv0fsTVzYZhSiQHOA2xHmt/4U1OrHciuADS70wOdiknLj/ajmxcQ+v5xz+dn56ZZSWSRqP7MPXe+ogXK12C3eEhFmdx7Q5XPRh/j5zk0NaVpDr/bpLMYX6EcWTQsnMJODxOCLnVxjv0HHU/eYxtpiOIiOnX8v/lBmWdb3YjfsogOcOWtN8zqLascv+ouUDYgUYxJG7lGhpyaPHttJGPsuOrMTstccgNoe0jXuYP1MZTumZ6TCAr2C5Zglrs6+PxCO+TTLaxxF4isZoKGKcrELl19Kh3HDQyJdIuMPURapN82zoUVsc47lBmLKAidO31IQ8/HFKuCkYEWsVCP1UCW3IX+dW/PBb/L0osBN5FfO6TpXuOT99wKjtLzvU6bHkvFJIfuKRJ0ezqzB2qRccDUEvVHiMbCNrkSn835mP5T0hrT4kot2IZ8FR4QlSXLCL67sHF7jcNxGUPGKUk569HlNxouVLHxo8h2HrKsfQqM6inVXu1sJh5P3YodTDhag6CJ7p3299NG4w4hjiMKYMGO0/xUD4eTigCnnMhM0v6lMVE1S3+2/6T+zuEoT+HEPrZY= 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)(376005)(7416005)(366007)(52116005)(1800799015)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?kFpzk7RG5ZJEzgD3NjS+HOrljvr+?= =?utf-8?q?sszHO801WH29wLKO59eGLs/D9c/gMJPUTeb9puXynvmzNrYPl23rO3nhhPi6GbQ/a?= =?utf-8?q?LhfqDzi0qeryXksd/EnoIB/il8nBb+3NEoKR4w/rEmXEV/L96qIrRqbRnfSMY3T/7?= =?utf-8?q?3X2gEFfy/V7bt/PWFLEz8CIxTWE4Zz9w/umXOEGXFN4mNq8jcnJRO4k7aR9GtifU+?= =?utf-8?q?I3voqaFMzN7Fv6ECJ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o?= =?utf-8?q?5Q2zdyv5Tt9pRvEW0lcSo/w7sLupQvZDCRu89BdN1c8uG3qXV9folPT1bZKq8E3LJ?= =?utf-8?q?+BITPp06ifLh3XZC4qyE++f17En9xeRkIRpbXOWfNZGdkvPstoGErIfKng9Pjmknp?= =?utf-8?q?mOmbrHKOcRrT0LLnMB52u+sNz45NB43QrBVhvOAR8+SpcXd8uMyIKYUt1teYRSjLM?= =?utf-8?q?Q9u4TDBdnkFb3wlwRY24m7ezcP5GilrRzFuVP8EQ6LahbZqmXpdBw6dX7OicLQh9E?= =?utf-8?q?P3Bao+zuh33Xc3HK13KgtFoYGhmVVYNhTPi6bYDaDZWU+swxu1j828/YxhD7lzLIa?= =?utf-8?q?yCCX7kiqye8HSXPWJwoc6lZ6sqOytHc3nzBX/KbRZ9W/C2xf+5DFZhyN5TiXNl1/0?= =?utf-8?q?mKXxBe2mQrb94ozpW/ECPpb0/nqbVP2aG6RYcn/SpjlHdEPiz8eE7+M1apOkxGOUK?= =?utf-8?q?5L5h6TZJEAqy?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f48e070a-faee-44e2-8567-08dc52baa11e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2024 02:14:30.0943 (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: i5YquuwUKCTDzqi5qdMEYjBk8txOR44MKjZMFG7XN2B9jeyFALIJ7o3XwTyLbb5rpKMRuUfG6pNwM+aeXQoVcQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10163 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; + }; + }; }; };