From patchwork Wed Sep 29 08:20:28 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: 12524877 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 D7F2DC433F5 for ; Wed, 29 Sep 2021 08:24:58 +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 9EE32613A5 for ; Wed, 29 Sep 2021 08:24:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9EE32613A5 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=9+V+N3mDtdWFtyWag/WbyaEJ+bF/jAgCuPlrSKWt+0c=; b=UlzP1mnrx0BsCF GYuKPu2n9YEllN3jKSvneHBz9o+iP0cfxGRtHDXpVIJlEp2Er4Wgweqf0L0T6vImx88Gp69nidiwv Q59N8rxyaDNJxjKtQRMurO9vjKmDLPq8nbhqkH6CcgXA7F34GQqH2b+LAXgLrUDiETCjcAdwqeIga McFFbL/kIaV8UnOtIRvVQOVCWIfnu8gFeEch8P4HalzSPPzd0XjQ5Dncyu6JSKp9GMhpDAecb6H3b 0isvdKbfYTVlM8QynTEOvdZi2jmHQsUb/QCuiMpolC5hz6R5MTjoMkS/Ne71xWZWmvsU+D+BDdPQS Z2XghCCC2k9LS2bJdx9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVUri-00ANxR-C5; Wed, 29 Sep 2021 08:22:58 +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 1mVUrd-00ANue-KT for linux-arm-kernel@lists.infradead.org; Wed, 29 Sep 2021 08:22:54 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1CF9E613A6; Wed, 29 Sep 2021 08:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632903773; bh=CaZv5D6dBea9V73DW6In0hGNMqG2tpf4Jer/zjX4Zto=; h=From:To:Cc:Subject:Date:From; b=uJqGIJiWMZH9pKkJMRU08OKxG3jxLoX7g3bp/nMbKemRyLh7tH+Wp0kKosDPvgg5x hIay9JRi6DG2DJqayM5seWElEItChISfMhCT4Rcxc6Rs8LjU89u4lpMJ4sNNVakkaC ejOaxW2T0b2RgPyF7Mwl3l8lu9iCnXTVmBQs5FQ+D9ZkpizRNV2IixeUJipIBnqRwA USUAJzWleYOQmgYu8rwCzqfL0mEb3t7TnYDhBI2ogCFWFmQoAR8jZz8gbLUVCQSwQq QluSUmg0c6aEOKXpwW6MItasTqcBUr4jGn/wytuLR7EvLOW//wqMp58IWtQo8pKufz m1YymgvpKDckA== Received: by pali.im (Postfix) id B552C76E; Wed, 29 Sep 2021 10:22:50 +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 v6 0/6] serial: mvebu-uart: Support for higher baudrates Date: Wed, 29 Sep 2021 10:20:28 +0200 Message-Id: <20210929082034.15098-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-20210929_012253_735111_43C536E7 X-CRM114-Status: GOOD ( 11.96 ) 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 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 .../bindings/clock/armada3700-uart-clock.yaml | 56 ++ .../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, 664 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/armada3700-uart-clock.yaml