From patchwork Wed Sep 22 10:54:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12510253 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 240FBC433EF for ; Wed, 22 Sep 2021 11:03:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D990361050 for ; Wed, 22 Sep 2021 11:03:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D990361050 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kHUtNbcd9oHky8JuLWm9HPKeOQBxNvN1TiUudu+gPqc=; b=G+0rv4Jcrltf63 S7izmac5MCTmoUOQv7kRtj+HL+ynY0ap5KuKAyYC9CeMd/Gn+gAAi4GLwvXN0LCEZH5qu/6Rjdh4h T6zZ2zZKP4IZ7PmsQ8fuyXpZfWyOyyL+VfvlNEAPHsLpgjjGFP83HSxKkDTuBYoiv1D+6braDxBJj m79WNRK6ZCwq3zsXSXBwFpuRlj9mQYGhYoPFUaSAiDtvYFbo6iGVX5rMDVv7gpG/Nk83RJ7UnHoh2 6/wsbV+p2PaRU7pC33L1xhEN3hECbpofB4pF7K+QIJl6v/8DWCL8azioulkCGVWAmo6ipAYUWFjr6 Juz+ff82Mw0jREdjXb6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mT00Y-008Bsl-6G; Wed, 22 Sep 2021 11:01:47 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSzvW-0089sd-Vy for linux-arm-kernel@lists.infradead.org; Wed, 22 Sep 2021 10:56:38 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8A3CA60ED7; Wed, 22 Sep 2021 10:56:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632308193; bh=AU3eAVQ3E4tohBMshWxiOAyUqFg6wmmF2TEuQwxk1K4=; h=From:To:Cc:Subject:Date:From; b=uWaFnuBdoPKXKXfJE6p9k4asTcMuvae5MoYmInpwI5sELfZf0ouMwAJyXZ5c/cUr1 ztE9MezqTEsMJQHIyorJLO/OaEkyJacWUZgOjbK6mM2NGoW46/+ZE48//2aCkOtXdi 43OJEe/UrXcFIU23mgKcBW5TqVNlLUQOwcTKjegWwKdfIa3cs5ka5YzBBpcNzNuazK i+KxODgWFB0ePNaPOYrTmk7vzStZJLjKjx3XMqqgaXFK+K2jPjXNiBgoxD0Hp/YxJ2 yhIsKYMhSvFG4kRhOWHuVDVD0YHSYaUfmvyaXMvdlpi16gg6601S+2t3ORX+sXKg7+ OXPK/8V7j2x2Q== Received: by pali.im (Postfix) id 0F95E79F; Wed, 22 Sep 2021 12:56:31 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Michael Turquette , Stephen Boyd , Rob Herring , Greg Kroah-Hartman Cc: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Vladimir Vid , =?utf-8?q?Marek_Beh=C3=BAn?= , linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v5 0/6] serial: mvebu-uart: Support for higher baudrates Date: Wed, 22 Sep 2021 12:54:27 +0200 Message-Id: <20210922105433.11744-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210922_035635_112404_5CF04C41 X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Per Greg's request I'm resending this patch series, please review it: https://lore.kernel.org/linux-serial/YUmMli6LA%2F7Ew3hD@kroah.com/ This patch series add support for baudrates higher than 230400 on Marvell Armada 37xx boards. Pali Rohár (6): math64: New DIV_U64_ROUND_CLOSEST helper serial: mvebu-uart: implement UART clock driver for configuring UART base clock dt-bindings: mvebu-uart: document DT bindings for marvell,armada-3700-uart-clock dt-bindings: mvebu-uart: update information about UART clock arm64: dts: marvell: armada-37xx: add device node for UART clock and use it serial: mvebu-uart: implement support for baudrates higher than 230400 .../bindings/clock/armada3700-uart-clock.yaml | 57 ++ .../devicetree/bindings/serial/mvebu-uart.txt | 9 +- .../arm64/boot/dts/marvell/armada-3720-db.dts | 4 + .../dts/marvell/armada-3720-espressobin.dtsi | 4 + .../dts/marvell/armada-3720-turris-mox.dts | 4 + .../boot/dts/marvell/armada-3720-uDPU.dts | 4 + arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 15 +- drivers/tty/serial/Kconfig | 1 + drivers/tty/serial/mvebu-uart.c | 592 +++++++++++++++++- include/linux/math64.h | 13 + 10 files changed, 682 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/armada3700-uart-clock.yaml