From patchwork Mon Nov 11 11:29:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13870645 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2068.outbound.protection.outlook.com [40.107.21.68]) (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 8835618A6A6 for ; Mon, 11 Nov 2024 11:29:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731324575; cv=fail; b=dZOFmZ1IUja8M39dYzjiKPnxaomO3hRRqr4g/dB55Wfi41x3qH2hyCAwTCmRAR1DuDFfjBpWp3a2gXmkO590cA00zL8YvyIx6VN8I3sEYwjdIqqGSYmJTgTpI5B4yCPVZ0Qe2icQmBQSRmbLHeAUzAKQHZg7pfTer+dLvFOVSko= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731324575; c=relaxed/simple; bh=bh+cvJVgVfmlDFP8ZHq4gdBT4rSgzlIn3Mj4ZyrBxKI=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=TRR9ysEmUYdVsHKdlT/p8X8H+iqX9P+6ycML574bAZ+6NNHNg6s7kuCo6MApiLMjA7K23Wsvg5qXjBFjodB34Mir4nddgayzp7fCiFN4CTevqSPNs1Vp/ZQ3SMJaoH+d9ab2tTildqh7okRcMBQfFZhilJeTkRESowrf1dfQeP8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=RkMXZzRY; arc=fail smtp.client-ip=40.107.21.68 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="RkMXZzRY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CQxYJWl/J+FNz3fBTd238XUfJiZjBQeBkSL7rRKGnXFvZNe8KPWU934i+WLuEIAAkvYxIz1x8nzTVX3O96rWkuV2h3DiqpQb2SkFAFfSpjc5TZT8+FJiWZySgYow4Vjncu9ecJe+Q9g54Bz1lIxLJknot4w4VtJcU6SZiNotxCKwrQ0kX2KSI0FfKCpHayEygMfYBdPbsrTRVPWPmElczdJY92nrI4rfKiXwEYoQS+HW/cJVJOPwNUyhLVrXNkwgeUNAaG/AHJ8Im3eFEWsvm/vRkf2/s432RCU55JRfrlfcNMUQqpLKEOLHU48FVlT4YIbrHqDDPWbVjYNG1gwR/g== 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=WdRC2spHFIotK7CFpVqjiSfl3jzqoTYsGjePdE4Ao+U=; b=C4IZFHphc08Iki+yVU23rqQRz+MxHZN9Y+eD5KC/bdfMST23pdzXBQQ1YIEPbObI6wzNaM/XM7kdNkKKfk67QT/lvwFX4tcSJuDLjQ6IED/iATZXG7WEB+N1opH6OkZcCwuV5R3blmsyFFPN44ZduwG5iqP2ulM/5zCCFe147LP5F1nC9R/Mc2jqArBJ6p2Fl8M9cRvZ1lh/66AGaR/WyWEiSxf52p8V+CmDKg3SCuSJStbNsycOzXrD+qLn/OMhUPs4G3Pex7wrDt/TSaR5KaCT1YYiCXLndHu43TCiYNWp9R4t0YKgXHoJZet+kSLEZX+b4K1o5g2Ylm7lHbyegA== 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=WdRC2spHFIotK7CFpVqjiSfl3jzqoTYsGjePdE4Ao+U=; b=RkMXZzRYAhiLwAhXOJA8dFTwL9gI7CWLck9Z+z/0Wj3xM6xK2M4gSmNLjknyehno05uM1p71ov7ijClaQ3yXZwDFpYmMkPdzl2NZw+f3T2ptRW6q1fwv+P0e6ZYZ1TgSwjlP7wcF4PFn8apXPcNmyiUAnMivgUt2VDRQ9RF9Bs3wpPohuhnSHzN3uWivNlRho5q+LO5SrJtDnrwOWG0VKrWGfHQd3ARCuhCMmpp6QGM4z55tmDxIBkm1K2E3iePJTqueMIOZu5d+BKgofgCWKR9Pa2SKeC5/JSI4B4bEgSFjgUIrLKdsIW9ORS5xYGuDKxs0ycxpBtwBjgwuVXQk5g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by DB9PR04MB9428.eurprd04.prod.outlook.com (2603:10a6:10:368::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27; Mon, 11 Nov 2024 11:29:26 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%6]) with mapi id 15.20.8137.018; Mon, 11 Nov 2024 11:29:26 +0000 From: Ciprian Costea To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chester Lin Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, NXP S32 Linux , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v4 0/2] add NXP LINFlexD UART clock support for S32G2/S32G3 Date: Mon, 11 Nov 2024 13:29:19 +0200 Message-ID: <20241111112921.2411242-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 X-ClientProxiedBy: AS4P190CA0007.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5de::6) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|DB9PR04MB9428:EE_ X-MS-Office365-Filtering-Correlation-Id: 910577dd-192c-4cc0-2465-08dd0244198b 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|1800799024|366016|376014|7416014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?jCJOd+8YeDjjAr08jYSBqxLAP4qrO2c?= =?utf-8?q?xEB6y8jlGtJVWjB45Vjt4LrZSe6GTeJlPZjtOSehhGcYzO8INvw/nJmrOjZ0trNEP?= =?utf-8?q?0XfekWdyW1BtovUWtI0fR5gBrPmyq1MDfhHgPJIohn+sbNR3TXH9WM4mYlRkNkScI?= =?utf-8?q?5DZVfnjhQ0eTGjUrnc1f5TdeiKQt8NoLrXK/faSzVANahWL36GpdSYDkv8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eFz5?= =?utf-8?q?sgoJPxxofdCi8ujgY/coyQ+TyffTTjMFg6bM1WLrNWspV1ACS9OHRovuLBer8usMz?= =?utf-8?q?PRTzV/cCXAgHydk/XJSCZ9Ur99Dh9+xNX6Dz0LN4x5YX9jTRaXg6BaqtbagcMl70B?= =?utf-8?q?ceStlGgF4FUDD/9pB+BdYrB83xhg3gR2ThD0HZ0JnhVAAv8OfmClT9ZPd0tuptgYD?= =?utf-8?q?DhIlHj04vFSdb?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(7416014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?o4FaS0hdObMhrT3rEN/B9YGsd9t2?= =?utf-8?q?otzQnN6dnj7/uHwvgtGicQWZ4jDCQDvZQnj+DaNmTRGabQqs0iTRIkVKMDBjiRIfz?= =?utf-8?q?KeqbyZDXwTTMrECLItnAJ8MD4xBUBWDksBwiE+4TLkYUdjI3jpGXKmFsHF6V0jcK7?= =?utf-8?q?AWzbTRyRk8Iqk3Jp4IWUa8qPktugk9SG+hqT17Oj7UNecRC3Y0RDA7wZHyNTYysp6?= =?utf-8?q?caXr0FJdE9+CfpL7TGyAjENEnU74D5zlxU1/dAqmYX/fPL79mY4n6EhvrKZpNw7m0?= =?utf-8?q?aqpmZyLKgCp7DLopnNcdIToCe0jEbGJibepIW8pgVNHt8qkRsa2PBwBVAo9zdUJ7R?= =?utf-8?q?Odeq1FI41K1bahojwPpHcj3aRKvOKZonxYXUwpIpMZYzFchnNBN08cI8IdkkDZwki?= =?utf-8?q?1VH/ZsYZU61P+g48qAMKJN4zKhp+a4vuDaehf7Pld3Lm9Wd1r+6CHlLe6bInz1Dlk?= =?utf-8?q?sYeLTwnW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?q?qWme1ZGEFyAbW4cGTmEDrLm4Qmu6S1kf1nJ8EgJ6VgKnZT8hgJA/fKsSQ9RTiylbM?= =?utf-8?q?lVYIoLqOxnueErtGBiZ1K9J9+v3es4CxXMc1I+cDC/HQ5IRA883P9aeZvL35RCxi7?= =?utf-8?q?w18u27StYcrp5m+fb+fafHBHPuZzJkaG5j8EGA192kWx8fXau2GtaJnfRzZxY9+kI?= =?utf-8?q?LFHamV2Jv/yKZIgFGe4NmdUiQVdHzCaTDg=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 910577dd-192c-4cc0-2465-08dd0244198b X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 11:29:26.7980 (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: qw3K80pam0ceq8h7oW4kqjTpGc3Sa9t8cdpoc5vu+41gY8UbbibxvpfLlclkF5UcG1mp02LNsb3T6stOop8eKq0aoz3khLfua86nb0W7KbI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9428 From: Ciprian Marian Costea LINFlexD driver was working on S32 based boards without clock management because the downstream bootloaders (TF-A [1] and U-Boot [2]) were performing the LINFlexD clock management. LINFlexD driver from Linux Kernel should manage its clocks independently and not rely on a previous bootloader configuration. [1] https://github.com/nxp-auto-linux/arm-trusted-firmware [2] https://github.com/nxp-auto-linux/u-boot Changes in V4: - Switched clock management to 'clk bulk' API usage - Added more context for this patchset Changes in V3: - Fixed an error reported by 'dt_bindings_check' Changes in V2: - Updated bindings by adding more information related to required LINFlexD clocks Ciprian Marian Costea (2): dt-bindings: serial: fsl-linflexuart: add clock definitions serial: fsl_linflexuart: add clock management .../bindings/serial/fsl,s32-linflexuart.yaml | 16 ++++ drivers/tty/serial/fsl_linflexuart.c | 82 +++++++++++++++---- 2 files changed, 84 insertions(+), 14 deletions(-)