Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1802829lqz; Mon, 1 Apr 2024 19:15:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0uG9p6PWNnKIimKP14hf3aYefyLL4+EJzQgb+E9Pk+k2GIkoBtYLcOG6TNL1QOFp4H+L20eKVF+n7AaWGsrDMjQfVKIaYnxHXZgeeUA== X-Google-Smtp-Source: AGHT+IGbWmL6nIBB21uhbhoM0ldMudbh0JS3WAPcmlph1kPcMQ0Ym4/BZtyDgtdaq7VzFjxZ0nW4 X-Received: by 2002:a9d:7753:0:b0:6e6:7561:c16 with SMTP id t19-20020a9d7753000000b006e675610c16mr11586005otl.0.1712024152235; Mon, 01 Apr 2024 19:15:52 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m124-20020a633f82000000b005e438e94d35si10241994pga.2.2024.04.01.19.15.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 19:15:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127283-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=kVkKN8+Q; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-127283-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127283-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DB33E286253 for ; Tue, 2 Apr 2024 02:15:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C7A214AA7; Tue, 2 Apr 2024 02:14:35 +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="kVkKN8+Q" 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 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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-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_|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?B?a0Zwems3Ukc1WkpFemdEM05qUytIT3JsanZyK3NzekhPODAxV0gyOXdMS081?= =?utf-8?B?OWVHTHMvRDljL2dNSlBVVGViOXB1WHludm16TnJZUGwyM3JPM25oaFBpNkdi?= =?utf-8?B?US9hTGhmcUR6aTBxZXJ5WGtzZC9Fbm9JQi9pbDhuQmIrM05Fb0tSNHcvckVt?= =?utf-8?B?WEVWL0w5NnFJclJxYlJu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XRIYzNuekJYL0tiUlo5Vy9DMnhmKzVERlpoeU41VGlYTmwxLzBtS1h4QmUy?= =?utf-8?B?bVFyYjk0b3pwVy9FQ1BwYjAvbnFiVlAyYUc2Ulljbi9TcGpsSGRFUGl6OGVF?= =?utf-8?Q?7+M1apOkxGOUK5L5h6TZJEAqy?= 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; + }; + }; }; }; -- 2.37.1