From patchwork Tue Aug 27 02:10:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Leonard X-Patchwork-Id: 13778719 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 1100EC5472D for ; Tue, 27 Aug 2024 02:12:37 +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=Et/TtYtSIRTd5m0+2fDxXyIfC54HNHWqrhTxyXJPmS0=; b=U8+tvXIVeIBCfUgscGK1Ofacbt fh0FhvqGNHdOVI0Faw8K786F4TOd9d665+fRmZNlKNilQoRH/8NS1BPGDluQzMeJ5B6Nr3+Jn2WlT W/4dRSCknc9e5CHeIzooW+j4Z/n0rovT9qTsANvt2pva6pGWv/teeEsi9E/o+MusLztRRO1eIT0Vd QOwbC9ZXDY+KgraKQMpQm2p29vMW0EEsH3GF6JKnvr3zUW2EnmdT94pmZFSKd09JXMVZGh6VycC1I z8n8GLth2BhTHuKRxHLDkgn5cxjYrCwLVzdZBrIMSTlM7fhpyWlO5jex4khMvZs9kiAoYO0YkY5Q0 IBj6JrcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1silh2-00000009Pw6-37Bg; Tue, 27 Aug 2024 02:12:24 +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 1silfu-00000009Pk2-43Wi for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 02:11:16 +0000 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2046.outbound.protection.outlook.com [104.47.51.46]) 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:10:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ouUa/Ha7W1TVf0ixc5tM1CcyW5kUiQo351SCcxwPCqGDmIfaQSz/WTDGovI4fKHcmEgLKCkNelYgV86K4TX1DNtkqwBYCaSeC0o/KeZGrHgky/8IKGbC8PZtNAoNzf1XrkAVvLVt6eRlNM7xDjhvRfqqOE/izFs4m0s/d59R/OpgfAu+4EP0Dg3ioRFHsx6mHP/kZ4C5kDO36FA4Rs97OAVEiaum8/8E5FjhRRnoHxrQjYgRHugivFbSJrdGmJs6tw5C72sWWODQS5wdBAAiTiw5Q/Lg5ZGL5wMkmdmWaZTTFQqalnBEA0PRjMzoeevjgfJiUjdLAo9++SmO34kXCg== 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=Et/TtYtSIRTd5m0+2fDxXyIfC54HNHWqrhTxyXJPmS0=; b=FYe6LummUNqqmIf1dNRO3K+zG00J4pSferFnhDn0jP/8+8WKthtfpH2tCo+H/93tc6j3ujlmiiON2ITLR74YOaK1Mx+s8AMr9jEUpi7ChRjK04Luz53Zy1GADXP4AYULsx5MAqWYBHgV9f6xABeDHkN+NbKgzpdOU61WmxkQXukeEGeXrkvDuUW8l3hGKGPNCuFe5s1yBTRHDa4tgW9vHGUa8tpQSjffk6Vaqqc6Q5/npPNHHABbqNwrpFoulNqjFS4XWwg6ipkQwqDmrCplZCPZqZRM81DhJZWHOV2RtPyCVdC9v7sdFP2ZFeQUeFK5cntUUoyrmDZMCJTpnt6mgg== 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=Et/TtYtSIRTd5m0+2fDxXyIfC54HNHWqrhTxyXJPmS0=; b=qHRa+6dSXGd24WCCjz3VCfYBjZlH6CTtadXHI6hgT1UQKVUhGpEaM9E/FEZP1Jq7cQzf9dODigvy41Z8L/ZQ+Jj6A+yu7URlDp6rsht71lsDWqUVyXL8PWDSa005SQyJLN8iNGWPDvlskf44xyziOR5fX4CbZDF0XbrKs1ZoXVWeu0PS4auLu1UB6kAye3Z/EZPyP1Nk7nq0g30ByF0yvSuQjOrlftibwqE9Zmbw1hjttHynOh4/ENYbyf6IAVSa8CWjB/qY6IdbRL7YmVq4aIxgV1p+ZWCvthjwlZQ1DJSZuyEDXSHyN9QvqrDAF8gkQkDC/IPFwGVDM/p6UjKKbw== 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:10:52 +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:10:52 +0000 Date: Tue, 27 Aug 2024 12:10:44 +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 , David.Leonard@digi.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] dt-bindings: pinctrl: Add fsl,ls1012a-pinctrl yaml file Message-ID: Organization: Opengear Digi X-ClientProxiedBy: SY5P300CA0001.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:1fb::13) 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: c29354a2-ae4f-40dc-c9dc-08dcc63d7a1f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|366016; X-Microsoft-Antispam-Message-Info: UCF+Zk8oNdqUem4QxBkBf+SzuzrCsyVKVPCwqUGdlJBJg5LrNFkHksfj7balJqJwgDJiS+CiSqR+wYISgwx8v3sYG3FkMEMG8WiCY3jMnfH5+Clu7OKk3OicvNxdljOCfXP7hgPy8OaTKVJ5wG3BVrwLT2OPLtWmUVjPhbZWGgXseUxOqiiLnABu7KAY3kZiAxPfUgUhovulwuHc0LJTKFYDQxDSUVd1XZ6HeiOQKgn1EeIG7/C0PRSmWxgrVWChOhL3TU/FDOj4rlA08Rujb497b/aKfQiN2zrwiPtUwg20ieAjotMQvcn02K1HyGjTvksteiv6qmW/Wqx8p9NQh7k6RNEWXArIUSrN2VbTAqsM9SLbf7oxUqVrXnBoRjeMwzH934pZnCT9IB4R0T9nG1vgMQGVM4kn9a/4Fzt7GfvGp4bzR+AsWD48nrxvI/U3Mgemuty9+dSO7a5BN6mffp4nPS20WWgFHYvMVo5P2ifH1tUyclH3dnw1Cexl3yrPJuFPqNn2LY7ZLwcuq2weBATMZtT+wagfFZ7FRaZzOIGJNfSuOcMEWgA40kr9j07vLiWTJONTt6JM1bVX7mjc1VUlvmeVppoTb68f4sf41OhB545qBjBpwz53Ht4VtLwRLA3u46JkaBp7cJm7eP3xJDXOXb//kQ3oNowV5BlolJLEyWzFvIJYszA0LOWXUVMaJaVOJiUeFnGLVv81oFeWSuWVj2yg9cF7ciJteJnJZQDaXK69r3VBBP97UWUyn3YLydzn/g6bPpdnpKblvalSJedwabNpVlsBZIa1Dv/Cs7/33tCess4d+/5muLdtSd746iOh30iVAJJk0AF+1LbiWPfaoxHrFJ3cBf/mGqdbqrIF+q/VR/bQaZqn96QGrby2pexQ8CfGjACu0zAjR4umjPZIzcdSM3GqHy10eBTUVAXTeCG32O86r7alIH1DbIG+G4Xjqj7wgxQzr0nHa9Mq8VwFc9bMh526oKWU72J9+79gzJgR9+2BNV9TYYti+TfKzcykXA74bcs8mH3p67YFl1WKORTlaA/zWzDx6buuQdpKy3OQ631OLUB6zI9rrOCnLMbKTqu4+3zHi0Hmbty7wlArJRgIYr7jTlJTdGExpL4a39g2p4fMIFr96zk+biMYShfd48hG80MpKUGjl2lwLdZRjSSAej9FlHEzB1RdDNGyD7bncyRYGMK5MpeJGISaJ1dH22wRygqAPLbhEWes0ML7giKudKDckBPCOeuwWj5p6wvLz8H1HBDvabjKta34Fu2DxcxxyzkYgZqNaxNVfAWdG62bpVHoHlWAG9vcH4k= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR10MB6918.namprd10.prod.out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Gass0jtpzWkhE8Y85Uw4TgGPt3XfuWPxV7bcz3j5NjzNKvzLQ/iDZ4KIgZe7lpRUmii1G26lonT2w9TOQ9xPZFJ549gJgewNujucKpt04EqvWsOAVMKGCbXqYdwnEnnq3QT/OhXvD1Z8Y+mMM19YqGPJHDSP2jsh6wP/8WilXRsY4AYUU4gAv/YnGGYxVyj6xWxQrkR+t30fs2g99lDVnx4xwzyJrilGB9MAF9cygINygvm2YH0AIsrreFR2q7Z1C5WrDzinibx8sUIcmlVlWOKeI14NVwYbHyjTro9ma0GDly6h8tb8SaVM9A5W1KYiVVMPIKGUtBf7XjuPGZ3iyY3mY17e5xz7NHIU/OBwfp/3dbLZrsyDpDmBbEGCo1XZ7KRBwYlHoBDU5AySoKZmaXYaYltxt3qwIhfPfj/yFHJufBZDUQUH6emIRo7FJLI1ACxEF+cwbWyE4Ohtf42CxuVHFX01VzTzpml9oY8dxvf39HAiSKRluJd3DMAjJVaytfM9BdRMmGt8CsKyry7ElIVQUhmHozcadEVMYrpIVplA+QEY4sdy1fE1vDNReUIjlYRqSq00tTvrYWZDVuu+C1U/132Zuhwoh6WSXMplgPdE4gnu6VN0vuy1U83OOV2ecdsvL3sryAc7AlCvgHYm4XYG0AxVnPH7dRuTzytpAjDtwDRtPDC+MA3rAAvdDeA7Vg+Tpy6I48f/cV+obIb X-OriginatorOrg: digi.com X-MS-Exchange-CrossTenant-Network-Message-Id: c29354a2-ae4f-40dc-c9dc-08dcc63d7a1f 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:10:52.4828 (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: adTmz9E04fHOQ2FkIwEEeyoYmUZuhWMhXe4ehwHznvhMJcA325fDUz6Dw5ySurNf4jSsDyNaAD64/O/rzfawuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB7432 X-BESS-ID: 1724724654-104895-12625-21148-1 X-BESS-VER: 2019.1_20240823.2008 X-BESS-Apparent-Source-IP: 104.47.51.46 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVkZmFsZAVgZQMNEwydLAzDQtzd Ay2cjYIDkp2STJMjUxNTHZ0MLE2NJMqTYWAOMtX2NBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.258621 [from cloudscan11-197.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_191115_226700_AD2A846D X-CRM114-Status: GOOD ( 14.76 ) 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 LS1012A's pinctrl function. Signed-off-by: David Leonard --- .../bindings/pinctrl/fsl,ls1012a-pinctrl.yaml | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,ls1012a-pinctrl.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,ls1012a-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,ls1012a-pinctrl.yaml new file mode 100644 index 000000000000..599df49b44d4 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/fsl,ls1012a-pinctrl.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/fsl,ls1012a-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP QorIQ LS1012A pin multiplexing + +maintainers: + - David.Leonard@digi.com + +description: > + Bindings for LS1012A pinmux control. + +properties: + compatible: + const: fsl,ls1012a-pinctrl + + reg: + description: Specifies the base address of the PMUXCR0 register. + maxItems: 2 + + big-endian: + description: If present, the PMUXCR0 register is implemented in big-endian. + type: boolean + + dcfg-regmap: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle of the syscon node for the DCFG registers. + +patternProperties: + '^pinctrl-': + type: object + $ref: pinmux-node.yaml# + unevaluatedProperties: false + + properties: + function: + enum: [ i2c, spi, gpio, gpio_reset ] + + groups: + items: + enum: [ qspi_1_grp, qspi_2_grp, qspi_3_grp ] + +allOf: + - $ref: pinctrl.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pinctrl: pinctrl@1570430 { + compatible = "fsl,ls1012a-pinctrl"; + reg = <0x0 0x1570430 0x0 0x4>; + big-endian; + dcfg-regmap = <&dcfg>; + pinctrl_qspi_1: pinctrl-qspi-1 { + groups = "qspi_1_grp"; + function = "spi"; + }; + pinctrl_qspi_2: pinctrl-qspi-2 { + groups = "qspi_1_grp", "qspi_2_grp"; + function = "spi"; + }; + pinctrl_qspi_4: pinctrl-qspi-4 { + groups = "qspi_1_grp", "qspi_2_grp", "qspi_3_grp"; + function = "spi"; + }; + }; + - | + qspi: quadspi@1550000 { + compatible = "fsl,ls1021a-qspi"; + reg = <0 0x1550000 0 0x10000>; + /* QSPI pins for buswidth 2 */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qspi_2>; + status = "okay"; + };