From patchwork Mon Oct 14 14:44:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 836106 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2076.outbound.protection.outlook.com [40.107.20.76]) (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 E9D237C6E6; Mon, 14 Oct 2024 14:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.76 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728917112; cv=fail; b=d8hAbu0wwIp3Wuf96a6yNXOWEEgztWtYW542TiL9pQ7LCsxyiJoBy1jRLZxVtlp4sLVfN/gRN4tP1/z81u1FrvcgO8e0g5IqoHWHwCkhDUS8Kd7xaMrSIYyYgfZq1w0IZ6eeLoo5Atiogo65c+xoNMkbmtBFV3N/C4xR5r3Nxaw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728917112; c=relaxed/simple; bh=Hbieep6HOA1BXpqkHWj1Kuqul8JShJPUEsHzo1B9Fts=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=VKrSArtQikhnTHQE4FrOyydRiv8EWXk0rQu+E6tGzDD8CP+tyY/u+MviZBRkMaV2tJVwPzFdWE07I2Ju8JL/GywzobPHaBJroKltOqyBC+x+s1SVS7RIBMXKm9uCQCFLnhaQO3r4ukEEMm0GZNxzeyVeZDX48yeP7GAWGUGgcic= 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=MqamQImQ; arc=fail smtp.client-ip=40.107.20.76 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="MqamQImQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YIP/bnpam62j/EJO/ZD7MuqfzcbUBtjwYQjScwOqgNmOFD6izBde6VwLmukzOdxwinx57wqZMCrnym/wmQ2Vuyjvm9dYL/wN0UkXiu0o7RBV1zgdJ+W43v5YJqEx+V/P7sgoESgyYo6wYunIeiVxAk2r4u/quNIfaYOXDFVXxq788is4OqPNHljT8/YjM+5OMoSxYwt9YFuKykGtElmfutkI5QLopa5PIMKULCFi8OwisYYCSzXPqP+7QHaX+/XMWgxCbK05R71PXkm/dvydQ8euBAb1WU499enRqxqYPEUgw7TL37EdksCjXsBCDYB5Q+eyYY1/7MTn9ssJOPwTBA== 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=CnRoIwI1Wl7Msu+AlgavNm69yp33C0DFCzbbuh606Do=; b=fQgwys3BD1H7CXHJxmcA/BCgYn5LNfYTQU1915BmONqHVhfkeUxlYXhmyIuRIRjzTyg8OoySiVCDU9wlmSZC5k29vH/wzXQKBw0FJEQFZfgz/0ngBhQHQhiTH3VNIcdAzdxKwM6N+hncpQPzuSyYnO+O9qWnrjCKc67EXFjQkU3Qy8Pu09fGkTNKddsQsY0eh9R8nGLaNaMdKEyvrqn2xVxJMx/wcVueUrK6hIdOoBZ6TTx5AHZ2mAhF8CWoDex1MxTcMEr9/D3x3LmltA6VtunoYQU7J940RnsZuJXis4CTT6IU+ntEg+hBSDT7aT//UKYInwxoO36rnJq99Ouxcg== 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=CnRoIwI1Wl7Msu+AlgavNm69yp33C0DFCzbbuh606Do=; b=MqamQImQ2sRb1p/vi8PapdF02ASv2UHso0IZKXkEEW1b70IMku8vedhR4ODYrYQ5MWePHcFlT3PeqJWjxuxDZ3hvl6mYBYuPo6CWMeyS+/NPWW/OJrNCjQxd6RHuD41R/0iLaQBhn98zRNrVctOP1PvyMHYWSR8iX1CO/qYvKsVsI4S0vT+RgnhcWjwtHoot3KaG/REw3I+H8kkHxffV2gQfKZi5OLH+PaM+uwrGYbOt/GNBC0R4gm22/gp9xjV8FfDoVEl6o5/RYkzeUvKBM5pgJWh5KPtxp41qYtrUW0nUTi6NPmMorgBbKnlwdKm3RHy0t9AiQKpKpBPAsxylDw== 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 GV1PR04MB10275.eurprd04.prod.outlook.com (2603:10a6:150:1ad::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Mon, 14 Oct 2024 14:45:06 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.8048.020; Mon, 14 Oct 2024 14:45:05 +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 , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v2 0/2] add NXP LINFlexD UART clock support for S32G2/S32G3 Date: Mon, 14 Oct 2024 17:44:59 +0300 Message-ID: <20241014144501.388050-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 X-ClientProxiedBy: AS4P250CA0011.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:5df::13) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|GV1PR04MB10275:EE_ X-MS-Office365-Filtering-Correlation-Id: d7ea343b-1db2-4a00-d2e0-08dcec5ecad7 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?XdDSUZySAQlKbVAgAp4mRRsfleytXvQ?= =?utf-8?q?xJn4jkZAvwfQHtePki/lKIduZCxtfZMkC7w3s0Okfd7UkV7e7KyQgnPoUNzk6EWdt?= =?utf-8?q?NmS3qOoSug5rimrd/DefXpzQkDPwyB18MoRRdUse6D4PjTnMIvMlEi3Osp8xjb0Z8?= =?utf-8?q?cOYEJMBFA6rcQ3wAh5/tmyO3MxlWtKjacLDlnjpAu61aFSeu8ex3W3mNHapj7ZB18?= =?utf-8?q?z6O6844eJ06uf3DP2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fnyWbiEx7CBaPonOukrycUs4TYNAq+GMMecbba?= =?utf-8?q?12gu4D0WvQKWTvN84ej3+vb08EMvFEh32aNAhG/OgyZ/RHnJb1JdqFoY+rojOklYL?= =?utf-8?q?DNZmKvZk0kTsGAHMZps0kYRtmb7kjlIl7RnQ=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?Euh7l04mivUfUhaje2QOKkktwjFP?= =?utf-8?q?qtzrp4bnRY4Eg3SAwNrO60MQxkpw8InNXkmxYwEJCo8F7VNGQ6O+F3JslKvHa7FJW?= =?utf-8?q?7QFxleBjl3nkXE0bZaCGoh0y3elgx4AaC6fUAj38+wlC5t2vAbHoYlkrN+Elv6gpU?= =?utf-8?q?UD5yK/tbZdSJTIx6g+Fg3Fh7/nEdXRJtjbbZ8vY6L8fg9fP+lf5AHqDaxRI4RDMN7?= =?utf-8?q?r9wNQL7pFzSNmtCPy/ttWS970ule1eeo1cLIK4ADiNv0T8Qg+L6ue8LPFWCDplj8C?= =?utf-8?q?WnzKjeJcqaZGK9cTPsIAVAWI/ff48lszF2rRZ1ZegsGKNZMyYoj6t25Pfznw8js1I?= =?utf-8?q?8hEgiAn/qr28xjyD5dfv+DH7EpD7SnanvS4E91y0kYrqS32UsMMlrRMmBkJN6jsE7?= =?utf-8?q?AH8HtDL93I2QZm7RujI2/eIfpIR7n6UdnHd1fZipP+d57044XiZ9q6oLWFsnMaMly?= =?utf-8?q?KwvilhReMhAIWhc+xS5/1Z6enmMzS6jRuWpO4SIC9Ti11LmJZzLHas8l6ybpQLEHd?= =?utf-8?q?OghMxAUtsuXohWZtgcU6kDFmoVRz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1uJiwlzOKvBsrYifHw+/Yb5HX/LFaSeGzN1ybdjh+c1Jp4l?= =?utf-8?q?pSMVTilIe7upSIpP5gn4NIdaOr5fwS+YlmH3LIVTxfEeTyvberKMZSyY+shhUHAlO?= =?utf-8?q?Gq2xr+vyY9/Zu2AaFweL82eK61eGADWcQw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d7ea343b-1db2-4a00-d2e0-08dcec5ecad7 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2024 14:45:05.6430 (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: 4SlSiFxMV/5VXol/LSbDfa6eqfAzNhzpCw0iLQrLFbOTrHHgXZwaJ3JMRdUjZFhinC6vwendf89j+JGZLrR9gV28wEtQvABL9h6PiIQXJug= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10275 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 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 | 27 ++++++++ drivers/tty/serial/fsl_linflexuart.c | 67 ++++++++++++++----- 2 files changed, 78 insertions(+), 16 deletions(-)