From patchwork Thu Nov 7 11:46:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13866241 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2074.outbound.protection.outlook.com [40.107.22.74]) (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 CFE041E1048 for ; Thu, 7 Nov 2024 11:46:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.74 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730979982; cv=fail; b=cEP2Zurwx4qc64QGp3GQah9ir7bwFM/4OcrRaPddGXViQ44RTx+CElW9xdg4cNsgBa/+ROWOeUk+sT4rfDBFNCpMlG8CPADpIUK1bopvsyji0B2LnHR6IHAuYzcjJxqUfftLCV9iGG+9OFkfFuzxajUCuOSgXm32VPfbePHP+gI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730979982; c=relaxed/simple; bh=PtLkWFwqmMKP6+XNTjkkWgxrmF0QOiasGgzDX/h6OnM=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=nI4i9lX5akR01hIKLpsF+E8S6f3M65jpYfniwp/iPup8qiJjy4DU9+t3iATEcFnJ7jVhwrS1T4WvBiPEKWemM2YLiyWI5zF1dEOTnHp7dxqXU/cxE1sB6q5IXmViC8J/RWAQgD36BlmJkkowiB/LHIxJ7FLTPHhazoAGjhwuI3w= 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=Y7eBBivd; arc=fail smtp.client-ip=40.107.22.74 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="Y7eBBivd" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=moyxr9Hx9N2USDmy2tifi84dtgqoNCDXajkwJSaePJdcF6e9ceCCVkaZz5cKAJByMbxiMTthoOst+bz7ANJHmxR/ow320o8kwcMwrou7P8+XZl87VkZ3EOOHAd+ZwkDjydjdvDtydUQwB5wW5xyJW+xKvxRhufD3/lMu7CN0V3Hhh6o8Tbc0wCNICoRi6QCQPQweHMtJe+R0J+73zj9TyqarZs4cxcDbBrH02V0pET110TNuoSPf22QcW5XgL1wgZCsjc48mVcKfOcOasnv2yW+2KYUbEnN/tHBVp9txzUzDWCjRifTQLf2SPuG1X1O8RtOxj5oKPYly94Dt3Z7dGQ== 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=qyNWW2hzWfN3mghtzxjEl0om7rFkLqTn7bOJHqAL7yU=; b=NIc9KNjwRpZVOaK2sVIHjkF96cWGJPDDKG5Im0p02EcwhWjc2S3iWO1ETIOvffxHf6sOUjPXDYcWy75sF2/Mv6izWdjnC2m6A0QC0lDVOOXjAZ91fooSNkWHatkIpFNzC/4puCzQa/c+QvnvfWrlXsr4TGZBPrWBhHJ9M4DKmurCEEKgCu7J/H/LZTcB/mBplE8YDLAXH49rh4d0NduCaw1YE+qjbKMgD2+HNkYieBRveOOpSEJfMoiPZSCRGaA0delhCxacdc5HKCoKN4CIMF7OeMF4wS46H6M3JFW/FOSyXTTFCf18fN87KFo29nzlIjL6lTmrRrkE8Hv6aBVhYg== 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=qyNWW2hzWfN3mghtzxjEl0om7rFkLqTn7bOJHqAL7yU=; b=Y7eBBivd/f9F4EcunvaBq9v6jceqe+1O8SBdrlkx3Pdu1FxD0BhpudyYOI58I+T0VBGpyeeBihzNVFKnrG54UFDMrBY7sUGynC+KRGp4JTe88ud5ZgDPNL599S3Z8RVgketYI4aHG7vjJG+OqZtKkWHrmtGOtF5Lm06/rL1gBs/pRWMeGqNSWhHY8WU4DbPElEzw2Y9vMZ1gcNM9DHLxwTlKyusTb4k9mBWrIL3EtyhfMsCoAlbTzvhL6rkO14UPoaAx7jfzVlkstm/FOAb1ZIVZDqzwjXtQ7OtP81MFgK6Ga/auht9LUyhQROjA/AyCckumfwX6aMe1wzS1KNYtxw== 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 AM9PR04MB8762.eurprd04.prod.outlook.com (2603:10a6:20b:409::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Thu, 7 Nov 2024 11:46:16 +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; Thu, 7 Nov 2024 11:46:16 +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, NXP S32 Linux Team , imx@lists.linux.dev, Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v3 0/2] add NXP LINFlexD UART clock support for S32G2/S32G3 Date: Thu, 7 Nov 2024 13:46:09 +0200 Message-ID: <20241107114611.758433-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 X-ClientProxiedBy: AM0PR04CA0120.eurprd04.prod.outlook.com (2603:10a6:208:55::25) 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_|AM9PR04MB8762:EE_ X-MS-Office365-Filtering-Correlation-Id: 7926d866-68f9-4372-8107-08dcff21c968 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|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?6zh0+7wgEf1YTw4c2n7pmxwo3qP9wDc?= =?utf-8?q?J619GDocRhaRyNBUc5MZbjZPQ58T1YkH68FqULwxozmn6B5KrvTRNlQotOM/z3fqr?= =?utf-8?q?tSsKb+GKayhiW0U87kozm2F4IOA1dBFKhBWW+tS7uX+92/EExb8yxedtZP2umDsFD?= =?utf-8?q?7wnRxdTcTAc8hkzv3whJHjLJwpwnESsFnRwhUJ1WZpOPhe8mXIzx93vAJJNRxRYr3?= =?utf-8?q?krVznMFXNtjPTlf5weO6IWy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R/K6+lT6mZrfnNLSSHA1wOIcWKJmVy5oaduExbuu7woWJhAMvx9?= =?utf-8?q?ph183333AjYjS9jdCUxe6Xx9x2VC0DpqveIIi5L1LdBZXn12kYieuzwj7CN8wJJst?= =?utf-8?q?8G+F4rV1A0TtC5ocUfX7DsgPW8JjNMGh2R6/xHRHqDC9e4N9VemZB/n3Wd95P78W/?= =?utf-8?q?2Kz4yKk7uF3xs?= 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)(7416014)(1800799024)(366016)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?p15SDRVCBmUD1fSeAFVY50Lk4J1z?= =?utf-8?q?zXT+StsmWYe8z9Svxp3gEVXIHH4kXkQk0YroM8jtVg73+C0hSWUU4ZyJ45Y1s1T68?= =?utf-8?q?vOnpDmXfpl0yQEGTFe8EWry4QD6ZpI/tYFB6EG6nwJsk9NcWUt+2DRMrGXs3etc+c?= =?utf-8?q?Am641lS/TDHzi+9QpI4WTwU8gz3YYX/1OW5td+UfhkQmjuYoTkZzxGYcht1LWPrl7?= =?utf-8?q?2JHwC5c+Qr+H3aVy6v58FAWQGC+iwL0s4m4Mk3jHe8UU9z08S9qQINbKoGlgZrsoC?= =?utf-8?q?JlKQ25lUIqGE6An54iGtNdynQijlSet2v9CpFHxdy+ZBx/Fc1S7uruq2x78DhlRDW?= =?utf-8?q?Z2VlL0eurgN8xpMVJFR/wWLh3X1IldxkAmmn97HiDp3C/UySkSGLlCerLdso2NC81?= =?utf-8?q?BxvgJFfN8TtuNYXfEhoFXsF0yLd32UU8MRrGNGiJ0DSCUU88CFy9SW1GMriMDXonO?= =?utf-8?q?OPj1S1SavFqKNk4J2rYzOTKkFbDX2Ynis4iykBXvEWbt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5QaY5sBB6X75kBjGz5sHNx0?= =?utf-8?q?wY3sVosGKnvXZtwXhgcQcmG/rK23lzUe5c5gUWb5BiHej+Y0NDsKsOxavKZ6/oKNa?= =?utf-8?q?xMfcPVd4B9cyOksOP17ho4/+HNPu+8LH3cbF+LuOxi4wpMhWnMl3RAxh4ojU4NFRU?= =?utf-8?q?MPwPF2D+htTk0BYhjbvs+YFl0MSLlLUBEg=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7926d866-68f9-4372-8107-08dcff21c968 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 11:46:15.9985 (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: l1a86mEAg6GGnML1XZwuWADBi5V90AbVxrk8jf05Y7EC/2QFra+B+OvDZZ+2rrMONI1pWA0+2WfRfDfeQ4o0hpuX7mG5hDrGdnGgBsxGlnU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8762 From: Ciprian Marian Costea LINFlexD UART driver is used by S32 SoC family. Add clocking support as optional in order to not break existing support for S32V234 SoC. A separate patch adding clock definitions to the S32G2/S32G3 based boards devicetree will be sent for review. 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: linflexuart: add clock definitions serial: fsl_linflexuart: add clock support .../bindings/serial/fsl,s32-linflexuart.yaml | 29 ++++++++ drivers/tty/serial/fsl_linflexuart.c | 67 ++++++++++++++----- 2 files changed, 80 insertions(+), 16 deletions(-)