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: 544256 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 CD5A7C433FE for ; Sat, 19 Feb 2022 15:28:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238730AbiBSP2o (ORCPT ); Sat, 19 Feb 2022 10:28:44 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232679AbiBSP2n (ORCPT ); Sat, 19 Feb 2022 10:28:43 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C2325D1B4; Sat, 19 Feb 2022 07:28:24 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 2C9B760B49; 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 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.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 Reviewed-by: Stephen Boyd