Message ID | 20241118154449.3895692-1-ciprianmarian.costea@oss.nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2059.outbound.protection.outlook.com [40.107.22.59]) (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 6139717758 for <imx@lists.linux.dev>; Mon, 18 Nov 2024 15:44:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731944699; cv=fail; b=sdL6cDBXWN6coFjKL8HuzToCghPlUUg0+RhdBJ3F79+rPrBsLriJZgmvqtY7kIKq+tc3hk1T9BjB+DXuX8lRKTnplOn/AKggiLh8aQymcAOmSRoDQLMpSU4FEX+Fd6GXDzAfJRTC1PrRNhvvt+u9DnkMMPi0+1qwtmMg/wom+Fs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731944699; c=relaxed/simple; bh=+vvmXdxzsWvVeeZihpyhZlT7ZthlGKMM2LLVWMAH28k=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=sLoZArgXjDK/yK9OF67Ut9PW7CzvzQvV2kt1q2og6LTFaWyJ6752O9Vmo5awzZ+xyrEryAo0wYO6rHJnIohV7YKkJvfDA5dvM3QUhvSMhT4OJIDbLQg+7Y6ljiy3+8yozwogC7yEuVL9cl70jV94n/yS63WrMTV9xJmRQ5p3mZE= 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=bjKxG5c7; arc=fail smtp.client-ip=40.107.22.59 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="bjKxG5c7" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vB/D8Hy75aZoIVI9AwAaZ6eCfDnJpx+ogk2oOo7pjLNLNDtXI6VEs8fA9wWbKqvO0h5l9HUs1ERwcg668p7m0jUFAd0hdOxGJNGpvW4q/eNJVJlwM7MdQWNpoUCFaV55bQfCnPUOm0y8q/kjphUpcYZSvFUQcNMn13Vggy64plw+Q21f2hDjPEse/6HhT/bBDSF+ruOJpj73viv055WxG836JdGSi4ZZRPLGat21iFAOVFgFSLZtoGgCrhgLUhRWvbrcjXBXoBqFDRrrlaHGLSDbhrayN5mlOhzB49W6gSOwusHU60Vj3wWxPm/qZ3/JvL5XCOOJVf47ZOJO57GiIg== 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=GxYZ9Wrpf7IkQ6GkQMZBtVZ/QiPrv2+TUTbuukG+XN4=; b=Pd6zSg5oPoEwjtUAH4e81+J1ybQPgu9g37YJVOtBtI4OpbrX+pxidDs4NBrXnmAGdL5IB6eqAw4DbnIZRrTlsWerBMVI66/C6/e0mZ0CL+3IdXwTGfymE4Qm1azbVeF26AxkGrbs6n58GucjdfPahJRduPMhSkKrs3d64IIGT2ClY4+P4NMY1CQwX8pJUGbCwGoQEpx694UZgOkexh4eBavpHinutXMHY6KowkD2KsAAYjXo1EJnum9ZtTVy0BzGASajnS9pZ4MO+vLCaXgOWU1fnS3XpEsfM0GWGNySDA5c5Bl9b6s19Z7eGNhfaRz4xjdTTglfzF6UVSZgHvMrsg== 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=GxYZ9Wrpf7IkQ6GkQMZBtVZ/QiPrv2+TUTbuukG+XN4=; b=bjKxG5c7PaKMvPkHwD2jbuFzUvxewDRFZI5h4fDo2AzrpeLE0fSc6ooVgfrS8yYmPbH7+C181ShylQVXoS0msFvsDCLFzQONSGmhwvQOF7jj7Eow9Hers4NSyOWDjtOABNAs87dP4zSqH5arY7eRsgl3y6837wAVa5OAH3a1e19B324IWP/2qoqZGNhNE8T02As2YAwsQwnDx5Jvl886VWfNvQwCqRh4Sebe3EH/AEFLqRHqO4q1iCQfd0N9c9MYvaZvrvWrERes1yU3vkaUrbGO3iSM9SQ0qsIfKqKq/JMFltjT1st79Ij1Yl3MLXqu9gBweb8buNzehOk1sSY50g== 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 AM7PR04MB7175.eurprd04.prod.outlook.com (2603:10a6:20b:111::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23; Mon, 18 Nov 2024 15:44:52 +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.8158.021; Mon, 18 Nov 2024 15:44:52 +0000 From: Ciprian Costea <ciprianmarian.costea@oss.nxp.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Chester Lin <chester62515@gmail.com> Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, NXP S32 Linux <s32@nxp.com>, Christophe Lizzi <clizzi@redhat.com>, Alberto Ruiz <aruizrui@redhat.com>, Enric Balletbo <eballetb@redhat.com>, Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com> Subject: [PATCH v5 0/2] add NXP LINFlexD UART clock support for S32G2/S32G3 Date: Mon, 18 Nov 2024 17:44:46 +0200 Message-ID: <20241118154449.3895692-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AS4P190CA0002.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5de::11) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|AM7PR04MB7175:EE_ X-MS-Office365-Filtering-Correlation-Id: b8430b2b-c41f-48ce-3b7d-08dd07e7f12c 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|376014|7416014|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?sqmkghGw24j4hZFSQL1kSyPusTkDb4v?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UJoGp?= =?utf-8?q?DYGobmZFkCSuB10vrhy9R8tzRx6NcrhPumBllbnNdFctRCRPAiszRW5/gA7zgosmb?= =?utf-8?q?QPU7DDFVBH3zwQS0238E9ezUD2WpOIUK0pBGeT5df1nSkeUtSXrUz1I44gpUJd7Uj?= =?utf-8?q?dyoC9V4XxfIU9TA5JYuL/LplP7FZVKDkzgz+s3LaEytScBTRBa8YcG2LbjsOrJpdf?= =?utf-8?q?7qS4esvnvI5ZtTvnyppVAtl74dDOxi4sMan1E4Eg8+pamppL7c6MOtoEMV1x1+YsN?= =?utf-8?q?B+lMCjZlxWrhwsfnfoUKSxuj9ayXSx5Nru+oNpkBIR4Jzi8+6AaDDx4Ent5uBwcJ7?= =?utf-8?q?FVx2oVBJ5Be96g1cWMXOHWIg6clwW/piEKBQ=3D=3D?= 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)(376014)(7416014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?byizJegbvNDPzyvekXNc3tUWQ4/R?= =?utf-8?q?wJk3ZgSkUD198i/B08UzSrptZs+zwUB/V44dxbItqxusod6adpaSwr2ey0UWZzdst?= =?utf-8?q?5VBBUIe4P9+2md6vEwmVZRCpNHh9ldaBw2iOUsHKmyGOmyQSvVfNoJ8Ie1QL2T9Qq?= =?utf-8?q?Ee4LRTx+UKxKY3aJWDAQjxWpw/PVRcAx1SQAlHSTNso0hDxtKGIMkinxBqSPGJ88P?= =?utf-8?q?76yG5IJ4zlLb0AAlMNVhzQlFUQDHa4OrND8IX8T3De2vYKLOPNbn2rL6ZBt0NULNV?= =?utf-8?q?SPGtRa5cdM/qIIsSM+tywlq55MetFsKp9EPTXQU/23UvF3IHzhkCOWRU/X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f-8?q?FTFmdUxbZH8KuCEDC/cvmUvQ85lJh9pud6dCYjd11T+1YT/lH0/EDzSXKBRYKEk/Q?= =?utf-8?q?qkT5dsm+h8z4W+feCGk1eYn1uDJti5eRb4kVmIvhyVCTDvTPhHiVZYlljc3wSgNZ7?= =?utf-8?q?P+0tB7e+MSf+LoxrDcweoYbbUfvFZIJqk+xjGLibf9+UGuLpyZy6P0j6PdxBtRTi9?= =?utf-8?q?iIIBOdk4CRG2Z4E+DqHEA0XteF/K+sbsza/UDMqLPdf1qQSq2wejC6n7b4LFDYPLs?= =?utf-8?q?g7BaL9yF5m+Rodke8roj5xC/nKQ1HcYmsGu05g3fJp07D5W5YJke8GavIe7FW8liN?= =?utf-8?q?/L/TlJ6Lj2lMBpUdf4zq4kXEUnvhI4WT3g=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8430b2b-c41f-48ce-3b7d-08dd07e7f12c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2024 15:44:52.3277 (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: 0q5jK4uBFd2PTly0xleyfezo3yoezhEN3L5oOFD90t75HfxabIqZoJidqBl1psCeiYBjqDw431Duy6n4fh7zq8B4+L25ktYlUXMJzdyey6s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7175 |
Series |
add NXP LINFlexD UART clock support for S32G2/S32G3
|
expand
|
From: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com> 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 V5: - Use 'devm_add_action_or_reset' to disable LINFlexD clocks if errors occur on the probe path. 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 | 95 ++++++++++++++++--- 2 files changed, 97 insertions(+), 14 deletions(-)