From patchwork Tue Aug 27 02:15:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Leonard X-Patchwork-Id: 13778725 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 36589C5472D for ; Tue, 27 Aug 2024 02:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Message-ID:Subject:cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=IqhynpYRRE7X2CET7lJCGsJUE9ItoKxdurxCcIj66m4=; b=Qnnxsc6BCVswToEjunaBXZfRk/ 75pG0SVFJgtVjiU3MckNsCpdJbBSfvW2PfrQTJ7u8Nb+hsT5tVpZp6SNb0njUTxnILtJhBtTnJMQs NjuU8TavVqnK0Qy1/CAoWGzu+q4SaXxCHhojEzbTK/63Zs0ENaf/hG+yKyWD6p9R5F9fBLOWztoDC RD9khaIPRr5rMYgTC0PTVVam8SCkoCgpvY53V2zTdBAc5t4iu+Iapk02Piox9Ed/yBE4vyQu7tVVk XAvJldYB5OdvXpHXqRmSEEq/O5Nd803MknXqAYsUt0ihhdojqASeDRCW5dleZUGmYeHCw8PIn05Bg w6CwfvQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1silkm-00000009Qbz-2xcp; Tue, 27 Aug 2024 02:16:16 +0000 Received: from outbound-ip8b.ess.barracuda.com ([209.222.82.190]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siljz-00000009QVh-1ZfX for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 02:15:29 +0000 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11lp2172.outbound.protection.outlook.com [104.47.56.172]) by mx-outbound19-31.us-east-2b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 27 Aug 2024 02:15:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=egAzxOel6FT5YUpRWgSa52Ne5Aunn+HyxN3NUcvKkNAUd0rcvz5JJwmqaZ2q2o5ubGgTruJVWyIAhZ/yaWNte9YNX/kdZSxEXPW7PYLTG/cOn43qXX09n0Rb8yzPcPQjskJ+GZuVx0wXfsWKu0xfleKS6Ad2G6nVEF8ddYQoOWUjLEYquGy64TwcHORf0jj68vjjokyRpnfY7KXFBIKnZiEGpzo7hnvSxjl0r6PZSdDpJJh9/tcHPZLFN/jTg3Muf/A3RiaD3IlUSnej8oOw2efjXv/IDX4a4b+QjT7ZbV1cfEnYg74BymcId0lBa/R39bk8pB3RiDeCSkdbuH/6WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=IqhynpYRRE7X2CET7lJCGsJUE9ItoKxdurxCcIj66m4=; b=uiyrXipZeVxY6qWv3ozsUv/evqdvNSsc3lEmFgZ7PsOPMJoMh3qBG6VtVQyDEeLocMh4DM2SIwqOubeLhYcE7AqshyIWFhTVqhJ0bZ98g3W9Dfzqmf6s0TjKuR1DbBli1wmsm55a9gVL1Xy1NNO4OhwQYu4jtQ4Mm3qBB16LH+/rlSUczLs5o1CGMRIVPXVQpUjva/WeJUbYIhcHFxUhWpV+kqHg0vM11ApBXmNxLZ42Lnz/E35PgJxjcyt4hxpeQeHeu4Yhg46KCEpYO6Ln0MGwgM2jxrCzKTSiyN1abRXS1NM/yeZEblQ828QkzStYeMwvXcxaNLUHR3Pn9fQ0EA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=digi.com; dmarc=pass action=none header.from=digi.com; dkim=pass header.d=digi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digi.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IqhynpYRRE7X2CET7lJCGsJUE9ItoKxdurxCcIj66m4=; b=R3B+Ozve9Ewqnb1gzbIklBvXhoanjWjRIAh37hraK6i6UfauFQ3rSfhf+2xQ9abuQhEX5T3BOl70tsKD9l9E/PnBFo/YldtblprV7bTQrvIKRSW8//BsWSq2LI4/17uwrNv5qXHXYSme7Uno/CUWuQB1Dl+Y2N+kES1DpJt0jPApmUmr/pFIQE9KGdId11ZItH9Tin6EUP7sCupmvnqA4KU3JbS5ib74kpqpLdy5uaL/PxGfbH7fDER9HNdnPk7NIHYKX3loZMX2NVu0Ovjahbkxo0mazNjxJ6JBuKKXz1z3d6bhQmNrETDAhiEue5PrIHR3W7GMLNwtVRe7o8HDRg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=digi.com; Received: from DS0PR10MB6918.namprd10.prod.outlook.com (2603:10b6:8:136::8) by DS0PR10MB7432.namprd10.prod.outlook.com (2603:10b6:8:155::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.14; Tue, 27 Aug 2024 02:15:15 +0000 Received: from DS0PR10MB6918.namprd10.prod.outlook.com ([fe80::3697:c0ef:caee:24ae]) by DS0PR10MB6918.namprd10.prod.outlook.com ([fe80::3697:c0ef:caee:24ae%5]) with mapi id 15.20.7918.006; Tue, 27 Aug 2024 02:15:15 +0000 Date: Tue, 27 Aug 2024 12:15:08 +1000 (AEST) From: David Leonard To: linux-arm-kernel@lists.infradead.org cc: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] dt-bindings: pinctrl: Add fsl,ls1046a-pinctrl yaml file Message-ID: Organization: Opengear Digi X-ClientProxiedBy: SY5PR01CA0033.ausprd01.prod.outlook.com (2603:10c6:10:1f8::10) To DS0PR10MB6918.namprd10.prod.outlook.com (2603:10b6:8:136::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6918:EE_|DS0PR10MB7432:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c46372e-ed22-454f-dc30-08dcc63e170a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014; X-Microsoft-Antispam-Message-Info: dXn9oCNJou5j9E1oEoMGwDuwAQpPTEQFbb9HD/Xkbs+SZZ/vzHyco9fGWaVqsCcTSMAiuTjjxmNKp0x+3YIGlsR1WEE2l7he0G7HFKn+Grnk1pGiC9ppO4PnBp/afv6PWOSyxzeE7+x6MujyC6BHlkoub20ymtRFHATTyc8sCadE0zBTJ18B3kZjgmvHzWtN6MzokjU2CeScmnHfmhnHu8zppEBv2NxvjBlYV0Z6iVTjc4aiGeMG2vEu7HAyP8zYl2o075wqed+ZDG9fZbUIX67Ler12xByZlELrKqYGzGsj1YpAdEYBaXJF0zlAyB1Z1poI3Ew1SGj+l0LiTMx2vwZC806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ONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QLQSmktRHl+VXls7ApzILvIUNnSruT9jeDIOWpzQGpJSgFgAaY7Ifoe2XfGz7bQMmmNwPyeIDIhGglW6h6d5aEjYCRqahoISpZl7PUdFtBhk+svoTCj3MMNoeF6LRA5f6E52NBrg4OaVq4v+v2ovTDRfiwN6V8a1QvK+FbZJ29LlhKFMJN98VTSNNhSeUFGmuBePoVphwwAq2hgoeltNvXSErDECHlDnmeau7RkVnantm5mlknJRZnJuPATI/IUSYGKO6A+7odSRLviKmlqoOnqAycBnUiopcHTFPYzO9vovLHtkp7EX/x/XNO0miPnv2Ij2B9hun3mXIT32s6PuL3dZPBB/zubvrbS5DuJuPr1/6Khmj2cXxcvqSJSLBE5wuMFQ3cbRAgrYlZhiySfDVI3GfvJbmywxaAGMGmt//gIoFpzhrJxzpWnwuj6pJak8O5iTPNApnX+b3d9fQrgUgz0x3zWK/+yxBiTBoJuqFlFcvqkecX7KoFm22j1T+3mZjgXwIuIeCh5fV4+mHFClxwNZ98EhVcfA3rbe9bzOSLhOrs93FMYcXW9Zyaw+2JjBGzKDMlx9YCErTuD9wrkQwo7atVodXq5APiaLcT+dUabRxhjZsHcijgEBUAFZxgMRk/zfXrAJibAN1edfePHO4Y7xbZ6ApLhJP2YIP6wmnyCfrqhB0sywQR2ksoS2JUBcTdW3BVA9Hy8AtbVOFiCZ8UafZa2iCfFCyPp+T8AdVog0ElJxcBJy4plgNLzUOfV/LVXnW30rOA8kJ04KQfunom+dB5DbCBcfvc+U34Qd2dzdkFArcAvI1nXruRb6i+PwLr3fAQsDVnZT9oBcArm7r3bvwVcqAse2iWstxdvpwtWMx1vNFrkDAC/JWtR0gvcpISffT7nLPoXjfORxTit48Zb0klv470oADg/+GgUCakDk7PW9RAldvCKHu6drn6RFkcqEFKc7MvylpG6sczD8N9ALDT7yD1Fe9vqYQHX269wjLTLp7EAsTj9cPxBPTer5P+n9biGo7F5F2WvsHp+7BWR6h+Bz1MUGusJlvZDs8HtcZFItL2fmO3xVxwshdbUl6EfmFbZ5xNPEwrJJ1EEQWpxl2/xwCUUzsIiL6yAt431XXpzOSR5b9dHAJLxyt5CPlihESNatCC5rFzAuubfTqwMWYkCKpQQlR2JFzjSzseXPJdpjB8+mQyAUmMa7Rc3qQmnCSppbAbMmNCP+3y3zLvKl4eek1oBszQFRkV0ynzGXCCpJABVrPnQgihAJTEHSdYQJBRXA7XuFvcesMjHuxJH7pVivl7JOI/mRjOBCTwlT2Xeg/I1VMIOuPgcsfcGHX3v4UARCc6WDrTmCucqjGmlHIX8j4brqwNt4cq6jzwus9IMRfukl9bbKxE2NwTpRzT1ZTX/8pBNKApnCWjhmue35nGFvzbuyLfUeAr1+wNaHCsDyIPUcVLrM9WPsoL5r9TvHdsZubO25OAZRkhuHn+Q0AoRnysOVkfzRYj7118BfNM5tNEwmUifsjBadpijPMKY5CPmKF/3aYXGuHIisfKkoqGtD4vwTy+jK/yZ9M0lVZnfpsZm5HBBt2XqDqqj8FJWe+4zBeKXbehzdcDDqfC/VQ2PlfpbAnkE5eCGOllZCwhCXTDeb5QqJmvDaZV6Q X-OriginatorOrg: digi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c46372e-ed22-454f-dc30-08dcc63e170a X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6918.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2024 02:15:15.7520 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: abb4cdb7-1b7e-483e-a143-7ebfd1184b9e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vuWVDiLrfnjO/vbzzALPdPFLgRImapE8fr91590mzD+n9fg73sxIAlCjoHthOK/ujFVbbmAfYIsFf2kJAVuDjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB7432 X-BESS-ID: 1724724917-104895-12632-22242-1 X-BESS-VER: 2019.1_20240823.2008 X-BESS-Apparent-Source-IP: 104.47.56.172 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVkZGxmZAVgZQMNkkzdwkxdLE2N jC3NIgOSnR0jTFKC3R2NLQ0NjI0jBZqTYWAIH8GeFBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.258621 [from cloudscan9-54.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS112744 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_191527_581995_33A4CCDA X-CRM114-Status: GOOD ( 14.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a binding schema and examples for the LS1046A's pinctrl function. Signed-off-by: David Leonard --- .../bindings/pinctrl/fsl,ls1046a-pinctrl.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,ls1046a-pinctrl.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,ls1046a-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,ls1046a-pinctrl.yaml new file mode 100644 index 000000000000..3d49e42d33e8 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/fsl,ls1046a-pinctrl.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/fsl,ls1046a-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP QorIQ LS1046A pin multiplexing + +maintainers: + - David.Leonard@digi.com + +description: > + Bindings for LS1046A pinmux control. + +properties: + compatible: + const: fsl,ls1046a-pinctrl + + reg: + description: > + Specifies the base address of SCFG_RCWPMUXCR0 + maxItems: 2 + + big-endian: + description: > + If present, the register is implemented in big endian mode. + type: boolean + +patternProperties: + '^pinctrl-': + type: object + $ref: pinmux-node.yaml# + unevaluatedProperties: false + + properties: + function: + enum: [ i2c, gpio, evt, usb, ftm ] + + groups: + items: + enum: [ L4, M4, M3, N3 ] + +allOf: + - $ref: pinctrl.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pinmux: pinmux@157040c { + compatible = "fsl,ls1046a-pinctrl"; + reg = <0 0x157040c 0 4>; + big-endian; + pinctrl_i2c2: pinctrl-i2c2 { + groups = "L4", "M4"; + function = "i2c"; + }; + pinctrl_i2c2_gpio: pinctrl-i2c2-gpio3 { + groups = "L4", "M4"; + function = "gpio"; + }; + pinctrl_i2c3: pinctrl-i2c3 { + groups = "M3", "N3"; + function = "i2c"; + }; + pinctrl_i2c3_gpio: pinctrl-i2c3-gpio { + groups = "M3", "N3"; + function = "gpio"; + }; + };