Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4911132pxb; Wed, 19 Jan 2022 07:23:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYQQ6yZTCJDNcunKS3waM5txucr2gbez3ABJrsCYJvpxPbi/7ntSa7LxbiFbPSTRog9n2F X-Received: by 2002:a17:90b:3892:: with SMTP id mu18mr4905012pjb.51.1642605826931; Wed, 19 Jan 2022 07:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642605826; cv=none; d=google.com; s=arc-20160816; b=CunOQsEzIM6fS/O0Z9gBUZW20fJG/j7vEXoZQPTyXtOoWjaXHn0wIggLFp4512d5KR JpE626QzxCZfg+GiS03NH9IjFC8M5gE0jISuazHfCwzRJm35ybXuG74n9y4MXPWs99hM xUlUEpyiPgVeZ97tu2ubucQciW/0M/V7uKTVyUVaULLylcs8kzqRg7V4yR7ZYGsI7obV bsHxPCARWYuSx207mVzxRVVXUneIc6TAozW6cfQ3EcHqtuKQ0ek5UI04N2WZh8Cm+Wnc hZphNWrkcZbiFlPuLnSm528Ud5YQBuMMT1C0HLYlBcc1YtLDemayu2a/3VAwMlDZtJDH Qeww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Z45qMXVOlgATYHK84lWsB+x/+S6oBKhxnrM9o+nStQI=; b=I3XSgfurOrid15En8pNgCs8EnHRQ7Gd9O1lJykkvCV8esTDBZHwDPP4BzOHxnUDw/+ juNz7bYUh0hc04A2HbfmTHH6XdaZ9YRlWZOOlMuanSALZnIi6nsW1RcQo5EFezRM/L3w ulbKkbm/ncqldrErI3lJV1YA8d+tvAsIraMALuG2fCl0nlNoCvrqkAQY7cr7l0Zg4Y5s J8oh0gmvnNotWxcawwQQxxsiYiTaRKvJ20vkp7R9UOH1OVxe+NJ0qIeBp/Q42dba2YvA caC/H2tHLoI0HTLmzNgxq4etMQrbKuveYEMIGdTun1/wRYWN+cyjmZlFC/os20+/qqQD hE5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e11si165872pgt.359.2022.01.19.07.23.34; Wed, 19 Jan 2022 07:23:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350848AbiARDZv (ORCPT + 99 others); Mon, 17 Jan 2022 22:25:51 -0500 Received: from mail-sh.amlogic.com ([58.32.228.43]:14899 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353759AbiARDJ6 (ORCPT ); Mon, 17 Jan 2022 22:09:58 -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; Tue, 18 Jan 2022 11:09:52 +0800 From: Yu Tu To: , , , CC: Greg Kroah-Hartman , Jiri Slaby , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Yu Tu Subject: [PATCH V6 0/5] Use CCF to describe the UART baud rate clock Date: Tue, 18 Jan 2022 11:09:06 +0800 Message-ID: <20220118030911.12815-1-yu.tu@amlogic.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.18.11.248] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Yu Tu (5): tty: serial: meson: Move request the register region to probe tty: serial: meson: Use devm_ioremap_resource to get register mapped memory tty: serial: meson: Describes the calculation of the UART baud rate clock using a clock frame tty: serial: meson: Make some bit of the REG5 register writable tty: serial: meson: Added S4 SOC compatibility V5 -> V6: Change error format as discussed in the email. V4 -> V5: Change error format. V3 -> V4: Change CCF to describe the UART baud rate clock as discussed in the email. V2 -> V3: add compatible = "amlogic,meson-gx-uart". Because it must change the DTS before it can be deleted V1 -> V2: Use CCF to describe the UART baud rate clock.Make some changes as discussed in the email Link:https://lore.kernel.org/linux-amlogic/20220110104214.25321-4-yu.tu@amlogic.com/ drivers/tty/serial/meson_uart.c | 217 ++++++++++++++++++++++---------- 1 file changed, 149 insertions(+), 68 deletions(-) base-commit: 4d66020dcef83314092f2c8c89152a8d122627e2 -- 2.33.1