From patchwork Fri Dec 15 11:56:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 754501 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2058.outbound.protection.outlook.com [40.107.104.58]) (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 7D93F2DB6A; Fri, 15 Dec 2023 11:52:36 +0000 (UTC) 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="DrUbT47e" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D4mev5+OvCSyds1KUaedJpyk9j2op9DjfdsEVspuoUIrsiPRRryOgnFCGPEvL32T4HMTbubWSJvv0NCP4xRiedBhQ29CcBj8k6GIHA405smfLVnxiN4OPsmhYucBCZRqtW2+lWTzZINDWu3FvlzPRRFn+JCEWS5uWy9O6jkOdRdGvK00Xql01ijaSIqG0YlVNZWxFSCNAW026JCSQLmSfiaflfJ9MfW0eIcjMgovjpM3FQYyFFsnTse1RPdZEHvAo/xtxiM7HXkzFrPQJTtcD0hpJaW5cmAbTUtaQnxvwMurnSc02yqqJSimXZvHS+akQzjdXQMxetz7knBdgDyEkg== 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=mayGoMU32z5Lhprj4vCaChRqNSIqBj4ti03V5M89934=; b=R+5s076OTPo3AwvwJeB9TyyUvI1r+8fhdUF1P4Um0xCs/s/eDie0/TGtQMoi6MM2yWt0CWfK5WEHLbo49LYyYF98Al5Ky39pokiDnZ7nsEx4dUPWHIB0q2s+uiApVsulNkeve31V0d7NVop/FOFuN0738IkLkYbHo9+xVFMNzJMM9UNBNsSToFex2JjcymqZ20lfojHDMLM66jDeGzDEY9rAHKBdEsSb3hi/eFNQvud3nZZDgvKMR9hqDoQj567Na+TntZBfulWRSsILJQ0nDl7ubuvD7gOJbSwHcgdYbBVkgnJjAum4ci8b45hAQH7d9lKokKUb3K6Eqw0fpMFETg== 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=mayGoMU32z5Lhprj4vCaChRqNSIqBj4ti03V5M89934=; b=DrUbT47eSacAzFC9gl8WoELb+aSm+dtehCfcSLM3cEXO4krolRfOOhElfYnMP8J5pZzKERf46EMCp+Db3cMlUOnj18yi4Sv1YVFvZyPoBZZWPSEZ9mryBTMg//l0I4kvws7zNB/oJBE4TiH/j6dSrUP6zCrfx40PT3TPbdoz5WE= 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 PR3PR04MB7435.eurprd04.prod.outlook.com (2603:10a6:102:88::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.31; Fri, 15 Dec 2023 11:52:32 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::ff06:bbb2:c068:5fb3]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::ff06:bbb2:c068:5fb3%7]) with mapi id 15.20.7046.015; Fri, 15 Dec 2023 11:52:32 +0000 From: "Peng Fan (OSS)" Date: Fri, 15 Dec 2023 19:56:32 +0800 Subject: [PATCH 4/7] dt-bindings: firmware: arm,scmi: support pinctrl protocol Message-Id: <20231215-pinctrl-scmi-v1-4-0fe35e4611f7@nxp.com> References: <20231215-pinctrl-scmi-v1-0-0fe35e4611f7@nxp.com> In-Reply-To: <20231215-pinctrl-scmi-v1-0-0fe35e4611f7@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, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1702641405; l=4331; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=aERjN+xM/kvXQQHZcTB8hrgs9oheX/AnqRYQ4guJAU0=; b=9lkchBROWbyDnD0gXjdJANzCarK8MuZe3dZza5Z2eVzVwD0tGcBf7rFhYppeLfYDGcpoiYqHz 9qggAYGoR/bCN6r6GbRnnGiontxTgxz+ZRKXul968gIiNS1dEbo9biu X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR02CA0138.apcprd02.prod.outlook.com (2603:1096:4:188::12) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: devicetree@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_|PR3PR04MB7435:EE_ X-MS-Office365-Filtering-Correlation-Id: e0d04d9d-d674-4c7c-51d8-08dbfd645220 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: pyHIA+XuLQqmaODk/+HR8djV1Xgknvw9S+r7yfc9wk+47R1wnY7bnEYhFNJZ95ZMT5L325bOTpiyVtg/7STqdKOUO7YFnpdxyGNljRHPyfYZ7etmQmyrOduE7bBJg65jQqo9HN8A4saEy1tpKEyz2dK14kbSuvpfV3qL9Hrc01N/VdWcQ+J18lSDu18CAlXMwuZtfvs284jBWFAaFznpHfdbxr/uMReWxtmHKRegd/TmFbk9gB9+eXxZ0exMJcs3wF2xuOF/vbvXVZgMiqQE4JMefeQAKXvgSA/uNjRhyZfLCfD/VynShHxMXX9OPJZYFEy7jIyQu1PrC0ZMAcNoHaiETL/qA3s552dFPeXmNuXG3M0uaWlMf4T77NgZreif1LPS4/N8DEoWNt+GHw5E3skz7mUoOW/fyCODGkq17AirxXi83rw+y20zOyxYhpMCIlKahItrrn0YnShoS+zNAOxlwvGzzzkbobTdYZV9f4Fv3o2ss1IWIGrJW1ovCNYOR2Jzv6khl4wB0aCFmpK7uUlxJnR5AGiD5LULKz2e2mxynPARMHzQcB/6Kvcem9TPhrB46RFBNfYL5HPbdJCo0n632wsz4aSt+0o0VchgVpN6FqeNXI9Zhvfd54dXN8P8tPlipIqknaPACMsiVg1Xkw== 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)(346002)(376002)(39860400002)(366004)(396003)(136003)(230922051799003)(451199024)(186009)(64100799003)(1800799012)(2906002)(86362001)(4326008)(8676002)(8936002)(5660300002)(7416002)(921008)(38350700005)(41300700001)(36756003)(478600001)(6486002)(26005)(6512007)(9686003)(52116002)(6506007)(110136005)(66946007)(38100700002)(66556008)(66476007)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ZxJGmb8TBMTsRBBmATqM3z1O/7xg?= =?utf-8?q?J097sElgyH4HuGml1niyKiINQFEtaaa3wdZVxYNntVdMqgjqCcjTYgOaiGsOVlCdB?= =?utf-8?q?Ar0Z4Onwlaq1QSHM6l3O1R6koV4uKBK+4Z79uEZjry2wHe+tZGPizUwmZB3QsZGUH?= =?utf-8?q?nTvO09o+yPj3GcW5tomQFV2IIl8NVBHWJ6M6Y+xHFYLJFbcAaEThK0MFzByDDpB+M?= =?utf-8?q?LpptwR+BIDf7fDpgAt/d4q9R7ybYOonLq+0JwS8KL6F7K1mx1l3sXNeGlX7uvByFp?= =?utf-8?q?Xqg644lhZualVDUBerJ0BKiOc0vrEVMLg1rxJZnzhLFcp/lH8+FDcwFko/ZmnVAas?= =?utf-8?q?uxVwXavBvisqkeKGugoCu3YSiqqmB22X6ZX/fNZ8Lbez1teaRVGkQhBWjtE6cgVF2?= =?utf-8?q?+yX/uPOd/K213zrqm6nohvWF/0fqwJROOH55h10x7BeH6xOm4hN4xAunRLm/J1ll0?= =?utf-8?q?tddudyVkJ1rUqpatLnxdGhLBKXZeIDuuIiVAJu9yQwyRNNC0Ilo4MV7ZGSAWCFEyd?= =?utf-8?q?4aN7DAVmVc+aJrQRrpeFNQLtZT2FZSb6CMvcNHEWg2bjcrRif21K0bSNwpBNiglO3?= =?utf-8?q?7qz0NMLI6Wo5BBoT6QFH7yu8Z9zw2uBxoBNggKNhJe8iHOx2h87Bk5m+bqR6BsTOv?= =?utf-8?q?FMtgwu8dC+K4yAEI56CfC3YqYl0e1iik7UC/l7MEhWNTJxZ9J5QYM4a7GUysWWkCP?= =?utf-8?q?Eb/R0gTCTOBi4jZGdntRYldwNRnyW63bCyF38jV8ANPggJ3vw7BL9P3EFI15wFyBZ?= =?utf-8?q?iVydGePBlCggMFPH/x8pFPcAayq+9+YE3TEEpNd3CMF/HsoQPYYap+0apwZmAA+0N?= =?utf-8?q?yM/nDeNXv+AjDOix1RsKRjbrEJtTKr67T7Cv6+0lRUx8Z/DeYm7ePsIWYulH91GnC?= =?utf-8?q?RtOiBerzcPcMRFkDZYNk0ZCodwNsBGPC+a5gT9EdSI41OiEFnKU75jkSTF8l4WpvL?= =?utf-8?q?cj2N4BIqV6XlBHDsuEE0ljyxIS/BHG/bF1mf/bt10K8oPSRCACw3LXglkcbfeYI1/?= =?utf-8?q?BoUaFy/ceGJKKFV9E75550FskdUwuAuGlBBNIKs+Py2B/P4YJHnOQOye1LQ+a+WQC?= =?utf-8?q?GE5VOIFjrYREsqxTCFDZiW3FqU+dNtJaUCxC3y43TK2Jy5dfnG4+jeQjn43o29cZE?= =?utf-8?q?VCF4GxKsC6yQyYe60iZiqMqLRCNkUFthr3Q2qDFRzqo6KdgxYyoBL7gZU59WCko7C?= =?utf-8?q?Gw1dVXS4Nghh9JApd6zJEEXyhFL8a6Kp/6b5bn6MBxPjrgUBR1uXMF84Qyxa1WTPM?= =?utf-8?q?2T4ATGICZIjgaprzYrNpljV410x4956SBVmbvTHLfbwqNpFAr1knKFrAHtPbP8Z+k?= =?utf-8?q?ubBltClTkVIHRj+dluHhK32VOxJjWVnt6N9SXY1kLwa+BM4U0BPkpKgiY+zaSHdT7?= =?utf-8?q?eDped0aZi2hj58Pw6oi/2LUTrec1uQywge7D1p5dHuUnAWXNMYjUNOYee7f5v91KA?= =?utf-8?q?J0Z7cwwMvX0PhBwXxBXptH2WVtxDPURU5KUCNlkl/IINyNGchpHzWg2IoNfRz1fUk?= =?utf-8?q?4Q9GUi8TJjgS?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e0d04d9d-d674-4c7c-51d8-08dbfd645220 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2023 11:52:32.0625 (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: 1NkUEzibDXopGKvkuSYGAyfCpX90ZItCE58ZX/SzMzznG1ZH3gXtqT+6hr0N6b5WoePunpqxJeGrSWOyd2RBdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7435 From: Peng Fan Add SCMI v3.2 pinctrl protocol bindings and example. Signed-off-by: Peng Fan --- .../devicetree/bindings/firmware/arm,scmi.yaml | 99 ++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 4591523b51a0..bfd2b6a89979 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -247,6 +247,85 @@ properties: reg: const: 0x18 + protocol@19: + type: object + allOf: + - $ref: '#/$defs/protocol-node' + - $ref: /schemas/pinctrl/pinctrl.yaml + - if: + properties: + compatible: + const: fsl,imx95-scmi-pinctrl + then: + patternProperties: + "grp$": false + "-pins$": true + else: + patternProperties: + "grp$": false + "-pins$": true + unevaluatedProperties: false + + properties: + reg: + const: 0x19 + + '#pinctrl-cells': + const: 0 + + compatible: + const: fsl,imx95-scmi-pinctrl + + 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. + + 'grp$': + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + + properties: + fsl,pins: + description: + each entry consists of 6 integers and represents the mux and config + setting for one pin. The first 5 integers are specified using a PIN_FUNC_ID macro, which can + be found in . The last + integer CONFIG is the pad setting value like pull-up on this pin. Please + refer to i.MX95 Plus Reference Manual for detailed CONFIG settings. + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - description: | + "mux_reg" indicates the offset of mux register. + - description: | + "conf_reg" indicates the offset of pad configuration register. + - description: | + "input_reg" indicates the offset of select input register. + - description: | + "mux_val" indicates the mux value to be applied. + - description: | + "input_val" indicates the select input value to be applied. + - description: | + "pad_setting" indicates the pad configuration value to be applied. + + required: + - reg + additionalProperties: false $defs: @@ -401,6 +480,26 @@ examples: scmi_powercap: protocol@18 { reg = <0x18>; }; + + scmi_pinctrl: protocol@19 { + reg = <0x19>; + #pinctrl-cells = <0>; + + i2c2-pins { + groups = "i2c2_a", "i2c2_b"; + function = "i2c2"; + }; + + mdio-pins { + groups = "avb_mdio"; + drive-strength = <24>; + }; + + keys_pins: keys-pins { + pins = "GP_5_17", "GP_5_20", "GP_5_22", "GP_2_1"; + bias-pull-up; + }; + }; }; };