From patchwork Wed Jul 24 13:24:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Stefanescu X-Patchwork-Id: 13740957 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 B49FEC3DA61 for ; Wed, 24 Jul 2024 13:25:40 +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-Transfer-Encoding:Content-Type:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=sO/U7fWduLRshbpwerqO5uzduPDDHvvJmy3zgcsOBBw=; b=Z47LIb9gAIZ5ZIOykKxZGpPoDe cFVoMO2OLhHmLs/DlsMLY4QXqZ5bF3Zgwt6v2PmQz7sfxDXZM1JPReEZZufimTkd8C9ykm8TKpQJo deDJZNc3Zux64edbgZDMDZAQ6nKgy1OWcsTdtiw4Tk9/zhUk5iz2dTxa8GEzwZCkbhFjoWqpZq6nT 6ELmYN6WjNYRLvY9eipwgsiVWEuuP8bM5zfsUkoGPULpZ+bfe7JJYEphbwutfzr4pKxiMiKBAe/UL GF6tQtjw9ULYUmyapxl7vIDJGpq9IMgXsZkXQXnSlXQB31i8GM18Lm98Nxijt9RI7W2da6zftCXPd yPgK5VlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWbzj-0000000FR4Q-115J; Wed, 24 Jul 2024 13:25:27 +0000 Received: from mail-am6eur05on20618.outbound.protection.outlook.com ([2a01:111:f403:2612::618] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWbzJ-0000000FQwZ-0YE9 for linux-arm-kernel@lists.infradead.org; Wed, 24 Jul 2024 13:25:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UxIabgsZIi00qpkQ2wz8LvhA/7JVjWT8mvloKAH7I7mnao98ndk1evBpv10J9af4afr0909IO6kHgDEe1bne2g21GvYQZ6Rns5f+r5pb0dSwJ8UUB8OQPoE0Gw7FOP89JaBMrChqYcHkXR0gxZVMR1J0zUnG+Ujr/Dq1MA30Ux+ekkIHugj0pyn0Q9U92T2mRDoLmMu/KuyyLchMN4F7tV23s4Q0mTbG4tNS+1TAK3dri9PKN0+IWaV77rtZEpp5fI1D7kDW+oX5vA0AwnJIFVhNmiHuTxODNDvH9iZ6G3OYCXDWPGoQbjHRkMEqJORIdENfTOI6efVOzZqDOih9oQ== 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=sO/U7fWduLRshbpwerqO5uzduPDDHvvJmy3zgcsOBBw=; b=BiO/5HgtszvjvKZpPwqKH4HrzkBh+i+gRaKxwdqQA5oI3TMuZvETMT0NUh9agM8T0PuNHIzyp+lZva9wlckCx6mjUyoage4kHjwuGTeIJwFQugTuWkKMV19onezq+R9RrVRADSZzisUXL1RbxvGkSrR40fjPRk5Rg3j87FlFmn8VjzXti816g11922K8M/paqKByo57xOnidVwpfTfvB5LAssiqTOF72SlkIaLYIrx6DeVR9POHy3fmT3phSjAb3anpy4r1+rkw76vPPNbACD0CJM7W4Y2E+8vZecc+grHUzaaDM6zIMXAKaJvvNRRqOfWs0hdFrJr/mdixpT47UDQ== 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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sO/U7fWduLRshbpwerqO5uzduPDDHvvJmy3zgcsOBBw=; b=CZD7J24Sm1ZVKNUoY48XKzvruNoVTuS2m8yq6mDzv6mz9e1ahj0oTpYpkYOyNN0j3onOZgtXNqV25V+YvR4FNW9tYqjUAWdteBjawXnSBQY7M7ngdh1ULwm9e5WdIKS//oIMQpA3vwkcdROMDWeM7+v1r4yD97ewbbdGGzfjox57S0PFJw0y+QD2l0NcXr6+RkwaPPnWLjqKFeCVv7f+/upG9fyR5dBGwOciX/VU49U/SWze7O3yLgUSQpGVYNI5szQC7JrCXeQVa7p6TnwVyyKNrtkdY1hcmvO78anGIo4wvk/K3qSdQs3HJM6VwaTWwQd+AkmfEXhesSdDWRX+Rw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM9PR04MB8487.eurprd04.prod.outlook.com (2603:10a6:20b:41a::6) by PA4PR04MB7998.eurprd04.prod.outlook.com (2603:10a6:102:c5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16; Wed, 24 Jul 2024 13:24:49 +0000 Received: from AM9PR04MB8487.eurprd04.prod.outlook.com ([fe80::6d7a:8d2:f020:455]) by AM9PR04MB8487.eurprd04.prod.outlook.com ([fe80::6d7a:8d2:f020:455%5]) with mapi id 15.20.7784.013; Wed, 24 Jul 2024 13:24:49 +0000 From: Andrei Stefanescu To: Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, NXP S32 Linux Team , Andrei Stefanescu Subject: [PATCH v2] arm64: dts: s32g: add the pinctrl node Date: Wed, 24 Jul 2024 16:24:15 +0300 Message-ID: <20240724132415.1700386-1-andrei.stefanescu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 X-ClientProxiedBy: AS4P190CA0027.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d0::16) To AM9PR04MB8487.eurprd04.prod.outlook.com (2603:10a6:20b:41a::6) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8487:EE_|PA4PR04MB7998:EE_ X-MS-Office365-Filtering-Correlation-Id: 83b473be-853c-4ecb-affd-08dcabe3fe65 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|52116014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?c+bxcV1kHcpx/icL5uoDde6ekj4hPi7?= =?utf-8?q?S0g5LGMl8JEY8h1EGffvtkpavZp/PJ7R+O3o55ohVYYmDhktC2JJIT5kghezivwOR?= =?utf-8?q?BXJL3hNARbFSFD7aADzMzWXaYgz/AL6grKUsBi5FUXaS3cjCFUhdoKCOfzqdB1aVU?= =?utf-8?q?o9BGsLf7uXLbolVDnHOPNG5hWQBFkUOxLeOOVMPofYikOiUTLfR9Jl2K0FH872lHV?= =?utf-8?q?W2Vx5JUg7Jqfp9W62trZayVpJ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8801o22Tz7WZf4qL2wPJW0rxx1gJW2jC4EVz9?= =?utf-8?q?7dY87ydeXr+SjznJr0Wj9xY8Flo5TM1f3Xjy6fQKhh1YTcn8MhayTafONGyqyWy+J?= =?utf-8?q?UGSmVdAcwb+yb8cz+K4lTMZ1npDdY2i+KQS4qdpuQZrVntMGDG85eHrj8LB1T6RlP?= =?utf-8?q?IR4OLrc2JCsGgEJQWIuTcA3fN5GFWXtUcQ0EXzQg2/2sJlJRh/SksI1YRL5kubSik?= =?utf-8?q?epUoPkZcEz1cTOZ2a5RTmfEcY00WJuAL4q8SRkLM9lySDWSJnmLbIik=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8487.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(52116014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?61usYXGGJGU5Qc7r5NbtIxHksq0f?= =?utf-8?q?JhyQ4aMShUHkxhzo4kslCd9BPelEUccm5/gIgI103kOeLLMlLq8T2x3w34o0iKvUQ?= =?utf-8?q?BfX53fRzTNtU6ZcLvjZnmL7Z6Pt42SpVRDA3gYmY+heWeEky5rjtZcjAi0PKySgYW?= =?utf-8?q?WqZakJTBwMY4+VHCH3M8gGOKOB4REfeE33TX7lAc1/iyV6Gk0EhRXYnHHQmMRdA8p?= =?utf-8?q?o9AtjNLADuZUMRRceBLl4oOb0lvC4AbYvVeYr5vGHsS8Pl/dzcTMzfJ8YrLXDfItb?= =?utf-8?q?0TCTTEE2dNW0whM9qXI45DMkp9wOjs7KUICbAn80e3wH9VwTP6soqCvgEnFXijnCO?= =?utf-8?q?nhAbAAz5yu+/STaLrj6H0LWyFSDOwljI6HiwNbckvqzsrfvlvSlI/oACria8bB9gw?= =?utf-8?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D+C+JtDFuayIL9E8Dsyv3xn7Mm5DyFE+IeEVtKOAIBhNHwhQNle38ysKj?= =?utf-8?q?l3nLURmrT3vgl6+hAtnQHGUzM0sp1FOC7sNg6sGN3HRXRlHg3XfCbkHoEvvlfxYzK?= =?utf-8?q?3nbL9yeasttD4uMR0gSNLjo9PxhLOjGkEidlLxCUQard9I8TB7hVY+79jwdrudGBA?= =?utf-8?q?Ude1VndS1SOXfWDjWgwJHY+mpwVLxSvxXO6+gw3EU6IPLW4ggUnfIwWsihv6qyruu?= =?utf-8?q?IXMzx/9rlworjfcCop273jkrhkuE9EuqkQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 83b473be-853c-4ecb-affd-08dcabe3fe65 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8487.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 13:24:49.5755 (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: zSNh+qWOmrHSKJOLQ8NsHksu/jUbaRmr5nNL9MVkmtg4+ZKcDiavAtD0x1UWRTp85tnAaoAok3+XOM6R2kAQwjRMj6hjj88uekuy8J4TT64= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7998 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240724_062501_204038_56801C97 X-CRM114-Status: GOOD ( 12.14 ) 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 the pinctrl node in the device tree in order to enable the S32G2/S32G3 pinctrl driver to probe. Signed-off-by: Andrei Stefanescu Reviewed-by: Matthias Brugger --- V2 -> V1: moved the pinctrl node before the uart1 one to sort based on the reg value, removed the status property, renamed the jtag_pins node and jtag_grp* subnodes arch/arm64/boot/dts/freescale/s32g2.dtsi | 50 +++++++++++++++++++++++ arch/arm64/boot/dts/freescale/s32g3.dtsi | 52 +++++++++++++++++++++++- 2 files changed, 101 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index fc19ae2e8d3b..fa054bfe7d5c 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -114,6 +114,56 @@ soc@0 { #size-cells = <1>; ranges = <0 0 0 0x80000000>; + pinctrl: pinctrl@4009c240 { + compatible = "nxp,s32g2-siul2-pinctrl"; + /* MSCR0-MSCR101 registers on siul2_0 */ + reg = <0x4009c240 0x198>, + /* MSCR112-MSCR122 registers on siul2_1 */ + <0x44010400 0x2c>, + /* MSCR144-MSCR190 registers on siul2_1 */ + <0x44010480 0xbc>, + /* IMCR0-IMCR83 registers on siul2_0 */ + <0x4009ca40 0x150>, + /* IMCR119-IMCR397 registers on siul2_1 */ + <0x44010c1c 0x45c>, + /* IMCR430-IMCR495 registers on siul2_1 */ + <0x440110f8 0x108>; + + jtag_pins: jtag-pins { + jtag-grp0 { + pinmux = <0x0>; + input-enable; + bias-pull-up; + slew-rate = <166>; + }; + + jtag-grp1 { + pinmux = <0x11>; + slew-rate = <166>; + }; + + jtag-grp2 { + pinmux = <0x40>; + input-enable; + bias-pull-down; + slew-rate = <166>; + }; + + jtag-grp3 { + pinmux = <0x23c0>, + <0x23d0>, + <0x2320>; + }; + + jtag-grp4 { + pinmux = <0x51>; + input-enable; + bias-pull-up; + slew-rate = <166>; + }; + }; + }; + uart0: serial@401c8000 { compatible = "nxp,s32g2-linflexuart", "fsl,s32v234-linflexuart"; diff --git a/arch/arm64/boot/dts/freescale/s32g3.dtsi b/arch/arm64/boot/dts/freescale/s32g3.dtsi index c1b08992754b..b4226a9143c8 100644 --- a/arch/arm64/boot/dts/freescale/s32g3.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g3.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* - * Copyright 2021-2023 NXP + * Copyright 2021-2024 NXP * * Authors: Ghennadi Procopciuc * Ciprian Costea @@ -171,6 +171,56 @@ soc@0 { #size-cells = <1>; ranges = <0 0 0 0x80000000>; + pinctrl: pinctrl@4009c240 { + compatible = "nxp,s32g2-siul2-pinctrl"; + /* MSCR0-MSCR101 registers on siul2_0 */ + reg = <0x4009c240 0x198>, + /* MSCR112-MSCR122 registers on siul2_1 */ + <0x44010400 0x2c>, + /* MSCR144-MSCR190 registers on siul2_1 */ + <0x44010480 0xbc>, + /* IMCR0-IMCR83 registers on siul2_0 */ + <0x4009ca40 0x150>, + /* IMCR119-IMCR397 registers on siul2_1 */ + <0x44010c1c 0x45c>, + /* IMCR430-IMCR495 registers on siul2_1 */ + <0x440110f8 0x108>; + + jtag_pins: jtag-pins { + jtag-grp0 { + pinmux = <0x0>; + input-enable; + bias-pull-up; + slew-rate = <166>; + }; + + jtag-grp1 { + pinmux = <0x11>; + slew-rate = <166>; + }; + + jtag-grp2 { + pinmux = <0x40>; + input-enable; + bias-pull-down; + slew-rate = <166>; + }; + + jtag-grp3 { + pinmux = <0x23c0>, + <0x23d0>, + <0x2320>; + }; + + jtag-grp4 { + pinmux = <0x51>; + input-enable; + bias-pull-up; + slew-rate = <166>; + }; + }; + }; + uart0: serial@401c8000 { compatible = "nxp,s32g3-linflexuart", "fsl,s32v234-linflexuart";