Content-Length: 10332 | pFad | http://lwn.net/Articles/998599/

add NXP LINFlexD UART clock support for S32G2/S32G3 [LWN.net]
|
|
Subscribe / Log in / New account

add NXP LINFlexD UART clock support for S32G2/S32G3

From:  Ciprian Costea <ciprianmarian.costea-AT-oss.nxp.com>
To:  Greg Kroah-Hartman <gregkh-AT-linuxfoundation.org>, Jiri Slaby <jirislaby-AT-kernel.org>, Rob Herring <robh-AT-kernel.org>, Krzysztof Kozlowski <krzk+dt-AT-kernel.org>, Conor Dooley <conor+dt-AT-kernel.org>, Chester Lin <chester62515-AT-gmail.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>
Cc:  linux-kernel-AT-vger.kernel.org, linux-serial-AT-vger.kernel.org, devicetree-AT-vger.kernel.org, imx-AT-lists.linux.dev, NXP S32 Linux <s32-AT-nxp.com>, Christophe Lizzi <clizzi-AT-redhat.com>, Alberto Ruiz <aruizrui-AT-redhat.com>, Enric Balletbo <eballetb-AT-redhat.com>, Ciprian Marian Costea <ciprianmarian.costea-AT-oss.nxp.com>
Archive-link:  Article

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(-)

-- 
2.45.2




Copyright © 2024, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://lwn.net/Articles/998599/

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy