From patchwork Thu Sep 30 09:58:32 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: 12527831 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D410C433EF for ; Thu, 30 Sep 2021 10:02:24 +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 2AA0B61368 for ; Thu, 30 Sep 2021 10:02:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2AA0B61368 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=rFWrbA3Yd+4UZqJvto4dralYdbnrdY0ExDG6UnpP3BQ=; b=DBWRroAw13T4bB LHccjkMJV7ePQWob1QfjLGsBTp7rP5e0R8N/euR1w54rE7CARGZFpCUVABmsXFDLxA1iPTYFNn5vM IoJ3KO+k89dlWIXp+NqauYCerqT14zyRg3/hOkAQ02lqOTWmciZbnR63iWBmjg06+uxyF7zS7fvxE SH3sbTd2+sgRawv+ruDcsYRHoOQ/oZguD4As7ZFGio1xvotO7d8VlY7fXoq99PvnyA9o3e4Q2zrpV vebfTM9GP3q1J1zpygmd+Fsg5fhncjSLVj9P/FTFvvbhwlXiSGUtNwot1qzWxOBeWI0aTveXNTwZP Ouz4CyLgcFca3IUblhHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVsqO-00DgKS-UC; Thu, 30 Sep 2021 09:59:13 +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 1mVsqG-00DgHx-SQ for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 09:59:06 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 09D03615E2; Thu, 30 Sep 2021 09:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632995944; bh=EcQMCqZ6hJ0OCg9NAUge8n9Pch6KHPccpjuPzxh7O0A=; h=From:To:Cc:Subject:Date:From; b=SW7pjdwR9AIi4zwIetE5qF0As3jiBUbMhywYs+ISjVoaMwW5u2qEM36GWKTFZuxO0 45LSAAF6/fNCvcESjyvOvSH6gltuHGUhaA4HdSdklT6gek+d1gotahqzqyWtPKERcH yeb3qu2HlMwVzdHEk4J4jcBhmupA0JnHjYDnKuJZtHozQetqYtTqqDZY/1hV8KNnRO W/JXtNUUaydCaDHxZfxH+lj6qw1uA2JSnUCFnEHVaiSKoma04V4RO1eoDm6x2h0fjI HsaJ7pU5XAKc+sqKPnYhfDjYaIboDxtym8SA2gFIXC6DMo+ImvYHYV6d6vCyGdAIVq kDnFmn9TpIZ3g== Received: by pali.im (Postfix) id 8EBD7E79; Thu, 30 Sep 2021 11:59:01 +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, devicetree@vger.kernel.org Subject: [PATCH v7 0/6] serial: mvebu-uart: Support for higher baudrates Date: Thu, 30 Sep 2021 11:58:32 +0200 Message-Id: <20210930095838.28145-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-20210930_025904_980614_9D6179B3 X-CRM114-Status: GOOD ( 11.74 ) 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 This patch series add support for baudrates higher than 230400 on Marvell Armada 37xx boards. Changes in v7: * fixed lint errors in yaml binding file 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 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 .../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 | 592 +++++++++++++++++- include/linux/math64.h | 13 + 6 files changed, 667 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/marvell,armada-3700-uart-clock.yaml