From patchwork Thu Dec 30 10:21:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Tu X-Patchwork-Id: 529461 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19FD5C433EF for ; Thu, 30 Dec 2021 10:21:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234946AbhL3KVk (ORCPT ); Thu, 30 Dec 2021 05:21:40 -0500 Received: from mail-sh.amlogic.com ([58.32.228.43]:34421 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231364AbhL3KVk (ORCPT ); Thu, 30 Dec 2021 05:21:40 -0500 Received: from droid06.amlogic.com (10.18.11.248) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2176.14; Thu, 30 Dec 2021 18:21:38 +0800 From: Yu Tu To: , , , CC: Greg Kroah-Hartman , Jiri Slaby , Neil Armstrong , Vyacheslav , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Yu Tu Subject: [PATCH V3 0/6] the UART driver compatible with the Amlogic Meson Date: Thu, 30 Dec 2021 18:21:04 +0800 Message-ID: <20211230102110.3861-1-yu.tu@amlogic.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Originating-IP: [10.18.11.248] Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org 1.Using the common Clock code to describe the UART baud rate clock makes it easier for the UART driver to be compatible with the baud rate requirements of the UART IP on different meson chips. Add Meson S4 SoC compatible. 2.Fix some omissions 3.An interrupt error occurs when the user opens (/dev/ttyAML0) twice in a row Yu Tu (6): tty: serial: meson: Drop the legacy compatible strings and clock code tty: serial: meson: Request the register region in meson_uart_probe() dt-bindings: serial: meson: Support S4 SoC uart. Also Drop compatible = amlogic,meson-gx-uart. tty: serial: meson: The UART baud rate calculation is described using the common clock code. Also added S4 chip uart Compatible. tty: serial: meson: meson_uart_shutdown omit clear AML_UART_TX_EN bit tty: serial: meson: Change request_irq to devm_request_irq and move devm_request_irq to meson_uart_probe() V1 -> V2: Use CCF to describe the UART baud rate clock.Make some changes as discussed in the email V2 -> V3: add compatible = "amlogic,meson-gx-uart". Because it must change the DTS before it can be deleted Link:https://lore.kernel.org/linux-amlogic/20211221071634.25980-2-yu.tu@amlogic.com/ .../bindings/serial/amlogic,meson-uart.yaml | 10 +- drivers/tty/serial/Kconfig | 1 + drivers/tty/serial/meson_uart.c | 367 +++++++++++++----- 3 files changed, 273 insertions(+), 105 deletions(-)