From patchwork Mon Nov 18 15:44:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 844654 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2089.outbound.protection.outlook.com [40.107.20.89]) (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 6F9511AA1E5; Mon, 18 Nov 2024 15:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731944701; cv=fail; b=H/EHz8dUCImz1dLhGkmyZKAzD7Evn2PVtmareE45TQnLqozoLEQam2ZlCqxvUuP8xGR8zbHLsErnVEDwZcFUqdq6EHgah+jG/WlbRo9S2HLmmsC7mVtsoHOvpUapZ+KH2FljasS6P2SeTsD+yJo5YFDR84TbJQ0LUJTCHDylvX8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731944701; c=relaxed/simple; bh=gbSVMLexNNjr7WSJ01xKZ/fRYag/IlfQKqG5llfTlYc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=YQOuoOMjE6WdqUHzxGZ3jX9q5pJ25OIT4BM1fAVlt0ocqLuy0b63YaR0+2VW2qpEB2DqvSMM2yfCfLutdeik3hVsEp0GTIUDn2l9F3vmGNIV/umX446yVrXct420Rt7CSElfnwzVGtZ0iGHGnO4N5JX7c2hLh+Co77J1faC4qzY= 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=b1NRxHMv; arc=fail smtp.client-ip=40.107.20.89 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="b1NRxHMv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nSy76EExxdBUAdPaak9jyHY0cnHibwHbQtR5lGWmWuxzrkBVPUTPd6MF7lyQkZxeFLctl2l6UrsuMjxGVe1Hv1N1gVlpKwaoDfKlu6R9dmTGIqGPBijBnvZh+uPGbkobZ3x2IsImzxHB0DwMB0Q0uKx1DRSRfnzA5oJxHBmxtVgkNMkKrURML8vax/XCZkqaJzLYh6zE0cNNLR3WaEF4lHZ1XGtTYWdzH0t+VIAIusfO+PNdU/xq0qWhCFgAn+cUulT3mLOsy5/If3CBHySKlc0XHDktS3jL23fHaCkBTiX9CYwwS+g7mwdnzhgQfvt6KAobLftrJiCdNP3IG/pDOw== 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=qFQWVCfq8bh6QP6irQZGnkCZquVGjURVDxs60ESnDzY=; b=kzqIMnCFTpU1RLc/6n4KIgxYWgyCVAWx4aMdcbFJ097AH25Xj62vOiJ4ulzjs+GBy4QltW76lMFKCwREdui5ccJlwoeh5taOhKu0iQawG3KpivRYUufyPfg72g5lHQgXpZNmrtyxPvWKuH9Z/l9WTAkLyVgG0GSPIy6YnBmOLGsenCopm4HkLkMVXJuAan2xFWrDeGd4tN89WfpDwPAWxs2X7Qj7bI8oWujHfVYBUU88eb+zIMUq3GMx0UnatInWhrxcaqGi3ZYZHXAGTOBOz8FuYOYmDE7y0IXUv+cgV1R8QAW1+cjadDBi8gdsTy84pikBhqSdN0D/jXdYTr5l2w== 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=qFQWVCfq8bh6QP6irQZGnkCZquVGjURVDxs60ESnDzY=; b=b1NRxHMvpoX84mynUc/0Co8Z/HYi98zKpMVLUtoDbviOL+oL/uNl0XKZbDwpylxedFGgsddk4Hrr7k0nqqne9tkPFHcl757BDbyYHSc8eAW3ySrJucjXc0LQZncB048lG/ZMKlW6VvRnr3Il+PY3ldUrs4d1owhPPh0HoSctmSHOXYySwVxjb17MBvlcXi1Gr9YWm4xJL3C7sg3x/LHhH+3Nj4coZwIhjLtQpAFs0XDiofzVeiCG/6la5LBmubJytsn/S2RxlotFHnRMfki4mQ4Ga4bEbheEjdtO7rWnMukBRss+Dxbe4EvVbbyU91MXDEeEKy9+/qxQ2UBdYaPwgg== 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:55 +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:55 +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 , Conor Dooley Subject: [PATCH v5 1/2] dt-bindings: serial: fsl-linflexuart: add clock definitions Date: Mon, 18 Nov 2024 17:44:47 +0200 Message-ID: <20241118154449.3895692-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241118154449.3895692-1-ciprianmarian.costea@oss.nxp.com> References: <20241118154449.3895692-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AS4P190CA0001.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5de::7) 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_|AM7PR04MB7175:EE_ X-MS-Office365-Filtering-Correlation-Id: 622ba5ca-9991-4615-42f4-08dd07e7f2e7 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?MCt+JFbbAOaVSCZ+8Kg2xVDFeF/5dLk?= =?utf-8?q?kVf/xBiNjxfw16FfQI0MWqun3jXmTcKiFYBfbtdC2fKpvoZhBWgpGmkX7U24MvA7r?= =?utf-8?q?ibteJwMZyxILMiyEjceVWBPez9g1fqXKyCPF5APu1PNprqn8JuJHV7kcmq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= =?utf-8?q?25IWuW1pbeucr9I3Z/Cm67czLJnIXPjY0uo7+IDPfKDexktofcPdeqY43LR574bMi?= =?utf-8?q?vox6yMJW+R/JEp9Ox3x3VNab9Dw6H5ZJnyLPbEUfpWHs0RXhBXWc76cES04AdbeNh?= =?utf-8?q?BkshIeYfgUUT2mvnsVQdeT+FntLpAyeD1oxWPyUwAlR6B0i0mrLGc1ioUhWRafDXS?= =?utf-8?q?/3qCzcaLQuxYas2aC/L5jj1Gv5Huhe/ScXfQ=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?lhaaNz4ae50v5lHd981CYlGJS1sN?= =?utf-8?q?nh0zctWoMVdJjMBcyVZw1I8Vvmh8P4oAtPiU728nO7aJOpFEdevJ4d1A81A9YWt6d?= =?utf-8?q?y3UJXCG6yuf55/CLZcXvt912KPd2O9oC2YQsH2rA/FXJ/z/Z/VYWjVBa4OnRuUPg9?= =?utf-8?q?VQMlmcI3ZX7krX6AUqWhIkvM/rsLHyTxU2uyGtLUe6oyUsokmVcGHsnmuIS32elKf?= =?utf-8?q?15hiPYcM2jjt57qIvHyoITAVa1FtF54ABRiGnTPDIiJo7rVLOacYy1aEBcEYnTnTE?= =?utf-8?q?Doy3mocQS9jn1ElCENLBliGdVD5J5l4+gjDmmtwYyrYyYP5Xe15pPPR/TkEU9qyV4?= =?utf-8?q?3fk6hBDUx8Fhj7NnEVvhBa2ku5MUbI7tl/cicYSLP4mQErDb8m3toOA794G4dHRo+?= =?utf-8?q?nBYv1mmtauqMlsvxqusDQKchbAQ/m07ovjeunSwOg/zhUlFvZblpEzcYIbVwfdrbm?= =?ut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-8?q?vQ1SOw498mWqizhVMKKPkBsIzBSE8iwiQhBSNcKSYLacCZXire8BNE7H4RWzGy78r?= =?utf-8?q?l0TAowHQE5F9k3Ds/QNvecZPtkHIsaP4+s4mU34Lk/W+t4FkI0rtt64wdzx4rpb0w?= =?utf-8?q?EnNPZUMvMJY/SZgzHi2r4/+92U3lWTGjsuBaycbBXgO3eyJ3FINK21l5K+BdmeXrG?= =?utf-8?q?G+FZmQB8ospK3Ljb1KLNEAynL0hjB6B84g=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 622ba5ca-9991-4615-42f4-08dd07e7f2e7 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:55.2338 (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: yRZzb5h0PiG+8iI6LCkw26qGc/TuTDeCVtidcvyCcrc1YO3xTAezA8TkO1PobsRUOKH8ErzFaIJlCNAYk6D7tIDpYOBcqCroyUyqxqo83Pc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7175 From: Ciprian Marian Costea Add clock definitions for NXP LINFlexD UART bindings. The LINFlexD driver was working because the LINFlexD clocks were configured and kept enabled by the downstream bootloader (TF-A [1] and U-Boot [2]). This is not ideal since LINFlexD Linux driver 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 Signed-off-by: Ciprian Marian Costea Acked-by: Conor Dooley --- .../bindings/serial/fsl,s32-linflexuart.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml index 4171f524a928..ca3146d9b872 100644 --- a/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml +++ b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml @@ -34,10 +34,24 @@ properties: interrupts: maxItems: 1 + clocks: + items: + - description: + ipg clock drives the access to the LINFlexD + iomapped registers + - description: lin is the frequency of the baud clock + + clock-names: + items: + - const: ipg + - const: lin + required: - compatible - reg - interrupts + - clocks + - clock-names unevaluatedProperties: false @@ -47,4 +61,6 @@ examples: compatible = "fsl,s32v234-linflexuart"; reg = <0x40053000 0x1000>; interrupts = <0 59 4>; + clocks = <&clks 132>, <&clks 131>; + clock-names = "ipg", "lin"; };