From patchwork Sat Feb 19 15:28:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 12752318 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 75BA9C433EF for ; Sat, 19 Feb 2022 15:29:43 +0000 (UTC) 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=qTKcBVRAyXIjcPLREDTkVusOdbhod3vqQGuBFmS6VII=; b=cNpqZZqGjhNbOS st4dScy5XwQtUGRQSudnSRSlf/59YIG8dJoNJZF8TKtjXUtA/eiC/C+Bf4rm1KUJLwSC82MSZXIoL PVc8Qm4eFPbceSUPoXG/LxiMosBOxjdJdFwSReajgqk7E7tsACTRv3OVEJmXnMcb/uOXY+tG9+Qjm YeqW32leK64VImoJojBJD+LExnVRONRCUABlNxd7vEUnQ15vd20W9ARNPfpRYzytm/sfsAN+4aMMl c/JStq7ZhTgrwDrue/q9HLs9suVPBRnJuBbVXnObz3xhAo/QylTPfFl8xd3U7g85ENWvm/I1Z3RWM hswu2tTtAw4VFKUnUaEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLRew-00HA4b-H1; Sat, 19 Feb 2022 15:28:30 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLRes-00HA3N-MW for linux-arm-kernel@lists.infradead.org; Sat, 19 Feb 2022 15:28:28 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C293CB8006F; Sat, 19 Feb 2022 15:28:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3CB4C004E1; Sat, 19 Feb 2022 15:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645284503; bh=Zp99ZALL2GLR+KoST1rSrJJL3Bn7AKOzAhGX3czeT7c=; h=From:To:Cc:Subject:Date:From; b=fkPVJSh+nU3kVkf7wDGr1M6JV9aX+bpsLtx7KibilB8P2BvEs0WwcsuvoVrYCGIha xc8ipPf3f96nMCdIb2idOqG2Iv4wMql+DomJNxT70VvKS6u8cmLk5UUpovbz0yPmST 6vP2u32yYX2xZff7KCpAdgsLjkejWMwuscCljThdaE8GtsaqvmkTP9ypTIzSO4x5VW bZnvrMot57eqTTO8jFzilW+DOayNg/N67zNexYZdbrmfBjKxfQctESVrJAf0o8uubW Oxq6Si7Tepf8MCtf2NGbXl5S1TRXINDy2Lky2Ckbd3+UzjTPG1590OV6cwV2HSwJ9q XOvKTp273idxQ== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Greg Kroah-Hartman , Stephen Boyd Cc: Gregory Clement , =?utf-8?q?Pali_Roh=C3=A1r?= , linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH v9 0/6] serial: mvebu-uart: Support for higher baudrates Date: Sat, 19 Feb 2022 16:28:12 +0100 Message-Id: <20220219152818.4319-1-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220219_072826_922716_BA5F8675 X-CRM114-Status: GOOD ( 14.47 ) 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 Hello Greg, this is v9 of series adding support for higher baudrates on A37xx UART. I've fixed the two things discovered in v8 (commit message typo and order of last two patches). Marek Changes since v8: * fixed typo in commit message of patch 3 * switched patches 5 and 6 as requested by Gregory Clement Changes since v7: * fixed lint errors in yaml binding file * added Reviewed-by tags * changed commit messages and comments a little * fixed indentation at some places * swapped patch 2 and 3 (dt-binding defining new binding should go before the driver adding usage of that new binding) Changes in v6: * fixed yaml binding file and dts files Changes in v5: * fixed yaml binding file Changes in v4: * converted armada3700-uart-clock documentation to YAML * split documentation changes into two commits: - first which adds clock documentation - second which updates UART documentation Changes in v3: v3 is rebased on top of Linus master branch and all already applied patches were dropped. There are no changes in patches itself since v2. Pali Rohár (6): math64: New DIV_U64_ROUND_CLOSEST helper dt-bindings: mvebu-uart: document DT bindings for marvell,armada-3700-uart-clock serial: mvebu-uart: implement UART clock driver for configuring UART base clock dt-bindings: mvebu-uart: update information about UART clock serial: mvebu-uart: implement support for baudrates higher than 230400 Bd arm64: dts: marvell: armada-37xx: add device node for UART clock and use it .../clock/marvell,armada-3700-uart-clock.yaml | 59 ++ .../devicetree/bindings/serial/mvebu-uart.txt | 9 +- arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 14 +- drivers/tty/serial/Kconfig | 1 + drivers/tty/serial/mvebu-uart.c | 596 +++++++++++++++++- include/linux/math64.h | 13 + 6 files changed, 671 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/marvell,armada-3700-uart-clock.yaml