From patchwork Tue Aug 27 02:07:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Leonard X-Patchwork-Id: 13778718 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 3F824C5321D for ; Tue, 27 Aug 2024 02:09:01 +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=p15iNT2jIN0JR4e7Fvu4faxG9g0C9L3GM6KhxggCAHw=; b=v1K1VW+0WiOF9/pccqDF1eqtX4 uaLukiQiWc8kykouoTNtyZ+qK+sSla7PjUR/HEoOf5GSuQZ7vKxiG+NFslrjFdeGKEq/2my51Wbd9 EXzMUuIAztdKcs9LGSBcsHSo6EAmsu4etAvy5Zygz6auPPLYjkMbcY12EN6u5KwdngLQ8le55bQyA bgV5cjIZQl/Zm5BL6BSD1Z8ut7wYGGVNL0N2fIdwqidXF/t21E4kLAJvXJVUJRWYstucZpSTRb6as xhgMZKrFw45z59nle5dUGb1vadeujXzZ2IQBtZ84Yo0eXCiUWGEsW51iaasDW7SoByzf7jtB7lhRy Fas4Ym0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sildZ-00000009PMr-0Q3Z; Tue, 27 Aug 2024 02:08:49 +0000 Received: from outbound-ip24b.ess.barracuda.com ([209.222.82.221]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1silcl-00000009PCB-1nKN for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 02:08:00 +0000 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2049.outbound.protection.outlook.com [104.47.70.49]) by mx-outbound16-121.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:07:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sfLWvXb2wFFKIfP0VmHAaLKHOEBTEZEe77VldNveZHzPWFTvTv39goP4wpQaDc2PK7D0KP1WsoKQ1xy9+gTmNb/vls6+9+NiAwo+7J68laqq0Z9zNlG93jWLVAQeZv3muAA71XKkA+cq3wqGoejjNgR6SMEG2/H5Sk3s6lW9Bd/T+ecjMqakH0SZHm/Ji177fIqZ8FRN4nu+UWxFksgrbOAVvjymfdtJBy2i0iWty8cZ+/JIuNOxac0+Qh9F6+AYJ0OgDWqaHhqvMuo4PATHlMrJd5nYJFMPD6ueXBPxov7cXxxIUTtDxXE5T1B0OY8c7e0vw2/3QKuhCu67ESIlbQ== 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=p15iNT2jIN0JR4e7Fvu4faxG9g0C9L3GM6KhxggCAHw=; b=lrh4F0cZJP0LnXUlXxzI0I/uEV6y2K0jxkZ49zEkSiMuVjjoT9gZnaeNx8W/ueT/7SoDUMLVqXMDilFwIAmG5sQZunfP797sa0bd3xHt2HX9poCeSU8+2Hw2iIGCNeBXNMlUNnLULuHDqYHus0LwTWIJtm7ljzLwimeGTlxVc/1AdVUGHqRWny1MVYFP07IK2AJhyZY1uc/Pk/6bvrMeivhX5W3bEHfqQm7L3b5ke24cW6TggnwNaL8FoEZRr08yWjdCgoOLvFWjLLWZJYYlhieQQlyPHgtIoMOGZiHNiZxa7mzW6Q0kkVOCdT1hUUo1AY/WjwtJA+/WhfZh20nNZg== 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=p15iNT2jIN0JR4e7Fvu4faxG9g0C9L3GM6KhxggCAHw=; b=PWsH8E/OJdPdiXEzrxpg3NJNSurbB1jthpk5UsMrAOyqDbRAXGlEtb8oFb2ivaNhAvyTGhhf7tzQX7IT/t5l8rOhg8P1K72Bb4fMRA35Mcwjt53j76z4F5E/mbn/qgxjA+5u82hSSRSI4PagPq/1TWBKXsOe5psZbwT3KAWeBXVpqdX0oZqH1rjQT2NHV/X9cEviPbx+XlDxMdP06A1leofTYKibQJCS7JBMVP01dwFYniTteiuJS4rBFQkP6hLN3qJAQN4+fEcGOMnllplEoX4XqXOY1AVAyMNPWHfVTECJdbZm0vpWJaa2P4t/K4O+UwZtQ1GfN15iga9x4o6J2Q== 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:07:39 +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:07:39 +0000 Date: Tue, 27 Aug 2024 12:07:34 +1000 (AEST) From: David Leonard To: linux-arm-kernel@lists.infradead.org cc: Shawn Guo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] arm64: dts: ls1012a: add pinctrl node Message-ID: Organization: Opengear Digi X-ClientProxiedBy: SY5P282CA0143.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:205::15) 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: df8677b7-e145-4c38-bc29-08dcc63d06fc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: SNcPLz3iyY6wT7h1xiblFaFUVn9E8vSngR08G/eR97jlnYFKEy7o+ZtFnIFL241+WoNLWohxzu+nzOB1qWn72VeWchytX3ZJuS5DV8SYblZJYLpn5cm7IvuyCTXZU1RGA1+NKRl+r7dAL5rR//Vx/AG7eBdFp8Ad3QHbGOF84jrISokqvR6WwE068CyxXiRWosts+zI8QlNzfDhyoyAh6c3R0StZt6fsLIRqK1D0tdZabhAViCHpF3ljamLWiwtgJk0SJ87q+615q0YtNuJClirz8U7W1bSy9ds0Gw0xCoeFVq9CKQaQZDX+6tHlJDOdnLV9RLz6Jj8bccDe8eb4bwze3fVe6UuwyKcBhq+Y870BASN0Mc0AZCCVDloZ9GUC6O7/UoKI4qtNEFReVvVIl2JTgqnxhShWwtx4SSzEe/9u6VAUxnA4JABzndkDPzzDp5/VX8LhwO5mL7z3w1OiqozSjuybffGmPR59or1Cx7eqZkVHrvc/MB9k3RLICm8PDTgMCOKDtNnf08GkVN21XAiaFpPCjau+Y3g4GCDxiD03HC9sRbNhKZv7QJAjTmGJBxKCFyuM9VtBFmH1nVtRer2oFWe/UwFU/3jqKstTbE5KO1K6/W+mbFGFMXJFrejv7jNQYZbrR4rIRMkLUGci0ne9o8JQhfYHMa0SSTtxDMwfepCC5XalyfC11RV3QEzpNVVWIjt4u+F8IcFSZH0dvVSMrQwUncYs8rkNcri07YiyGVyoy8QIQLuL3p3rwLbQLG7PlFb5NxL33lIkir+5110yWz0s8nLFBQeraj9JJ6Bm98bDYrMhYp6Xlhvh1foLKmkh5JtTdFoWMl7rQvlH88v9QSHG6w8XAK6+q54gFON1wDmSq6UeW/H3+Ib8PxHjDFmrXU0NwhUSRRHBeG4XAwkN0noRrPQSW3QJ63Khd87g67fIlDkiTwPxVCPjUwTfDA7eYwoNP603+xQl1fLiLysGb0rIm5r2jW+8WLIV5BMDdCIYysKtA3EcLZsxNWw8zbzLpju9b0ehWz/A929AP72VharvxUkcbqKeCtRbfCKLmLMVoF32NEO9OplgPNc5UljhuTzorrtQLY5063zVFOC1AYaY8Q8I5XHsy5RI0cnPFdDysSHU/3B+ePjjYpp95YeAbGtAnLkU5hxdthejT3RyruyEUz8jyjvJV+9riyPe1CmPL4Ajq9IWOshGrmTleb2WY4GXCxA0907y/h6Dq8yuxD+Mpsh727f0VW3XTJ+jsVWSYq+0aR3Moqe6QC98gMmGF1aj3StKskxbP5FoW3/DfgUhYJKbn9a/Bds6rnDNcY2MbXdbgxFifVCg+Pu+DWVeC8myJQM3xJ5lRFMIDw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR10MB6918.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024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Juo5KBeGUDC7XD2FdM8OApd2ViCZYP3FcWUCauPAgz21Ldv9zdtoNdB4Xaw1EfaGHZz3EU76RsWzbvnFxYMJv27xd8h2Cir+uGVbYPhAzEQj+Q54SXD0ZYazyHmG76RIs6yaBWbCZKmLa8Y+jy+hpSVrT1NWFd8Uu+BqVDAt8UW+W1BLohkvFh3iQW8CTtwlQeGAgNLCuBw8gWzf4KWNL20Y7zBLuZtX27o2Y2NG9+7n+/FwqWBltnlTwnlrVa4zZEps4N0Gu+RUNw1PoDgWZssLK+f9BzTd8EgNGjIA7mtj5aevBLDoFvDNCJkxIz87laJ1mfzOBQc4YuOmIL/eHDQOWisT42L9ZpVZ+CUrElNuo0vHFxclzMDi0RbucwMgJmczMR1vTvGnzvbZodLwjYirEePvVoKc2cYTa63HpfQbWyQnGLzptylkEL/nAgEMfjEoOfIcMUIzUMTwdLhtwYhUkipFZz9RqUN55rRy0LZnh3qkaSGaU8EodlESiMZh9TlTNAibArmbRRqGhwOVHQqF/7Oc85ru23RZjbAzi7FRVDGFF5ldpb3ZXVZnG3sMNGb66jFsME3ymxBueck9ZCtUxozPitwPGxag+nlxYgpgbrhLzhO95LHQFZ3aGyMHPJ0pCyLEruABqxNec+wekjrDJKW7sP X-OriginatorOrg: digi.com X-MS-Exchange-CrossTenant-Network-Message-Id: df8677b7-e145-4c38-bc29-08dcc63d06fc 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:07:39.3142 (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: Esa5DLsWAsvZVYm3HhVtFIso9UZZ8MqsBa7f71SbKLFRm5VURFeW3jPHtzrBp0+V96mNr8cEt9VBXyezlQqoSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB7432 X-BESS-ID: 1724724462-104217-12803-28676-1 X-BESS-VER: 2019.1_20240823.2008 X-BESS-Apparent-Source-IP: 104.47.70.49 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVkbGhkZAVgZQ0CI1OSUl2dDAOM 0wLdnC2Mw4zdLEKCkpxSjRwtQs0dJUqTYWAPBjqllBAAAA X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.258621 [from cloudscan23-19.us-east-2b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.50 BSF_RULE7568M META: Custom Rule 7568M 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.50 using account:ESS112744 scores of KILL_LEVEL=7.0 tests=BSF_RULE7568M, 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_190759_609876_FE1888FA X-CRM114-Status: GOOD ( 10.37 ) 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 node for the LS1012A's pinmux controller along with related pinctrl properties for the nodes using related GPIO and I2C functions. Signed-off-by: David Leonard --- .../arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi index e61ea7e0737e..d28416849b0f 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi @@ -175,6 +175,44 @@ scfg: scfg@1570000 { big-endian; }; + pinctrl: pinctrl@1570430 { + compatible = "fsl,ls1012a-pinctrl"; + reg = <0x0 0x1570430 0x0 0x4>; /* SCFG PMUXCR0 */ + 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"; + }; + + pinctrl_gpio4_5_11: pinctrl-gpio4_5_11 { + groups = "qspi_1_grp"; + function = "gpio"; + }; + pinctrl_gpio12: pinctrl-gpio12 { + groups = "qspi_2_grp"; + function = "gpio"; + }; + pinctrl_gpio1314: pinctrl-gpio1314 { + groups = "qspi_3_grp"; + function = "gpio"; + }; + pinctrl_i2c1: pinctrl-i2c1 { + groups = "qspi_3_grp"; + function = "i2c"; + }; + }; + esdhc1: mmc@1580000 { compatible = "fsl,ls1012a-esdhc", "fsl,esdhc"; reg = <0x0 0x1580000 0x0 0x10000>; @@ -371,6 +409,10 @@ i2c1: i2c@2190000 { clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(4)>; scl-gpios = <&gpio0 13 0>; + sda-gpios = <&gpio0 14 0>; + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&pinctrl_i2c1>; + pinctrl-1 = <&pinctrl_gpio1314>; status = "disabled"; }; @@ -414,6 +456,12 @@ gpio0: gpio@2300000 { #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; + gpio-ranges = <&pinctrl 4 62 1>, + <&pinctrl 5 124 1>, + <&pinctrl 11 123 1>, + <&pinctrl 12 61 1>, + <&pinctrl 13 122 1>, + <&pinctrl 14 60 1>; }; gpio1: gpio@2310000 {