From patchwork Mon Aug 9 14:53:23 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: 12426745 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=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 8FE73C4320A for ; Mon, 9 Aug 2021 14:57:06 +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 329D66101D for ; Mon, 9 Aug 2021 14:57:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 329D66101D 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:References:In-Reply-To: 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: List-Owner; bh=xseSM8vGu2ELFp9Rswu8ZzwdgymJIYzPT+cF6JjbsKQ=; b=pitRjzj5k+uMUb /yXjZ9uFpmLkHj/W3Itr+7Z7uil8kjiBpeyLB+eTFA+NqFohBf05cWEERwYLEbgjEnsluiixCdQ2y UNQ46ZCQ3nz4sbN7LdDd/ek4zo/4vdV2pJ3tVi7jEurNpZSTKqmfyb5MxTp3nlDotpIBNyA86IFAP eUyPEyPAcLjalxPmw27zHyuXgfW4ZvCftzMkQ7VNU4BHqH5alrAOyd8X9Cx7ezdnXD3ZprGnbcbty 5oQdNLa5q5MyQqFjc8FD8Mk7euftHvi4EyVzzAmPZ7c5y2yemQSvg74lWWjzwDhCqcx7tGh+I2Esx k5WaHx6Yr4Qs+COJ+Aew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mD6gd-000zSz-Qb; Mon, 09 Aug 2021 14:55:31 +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 1mD6g3-000zGc-R5 for linux-arm-kernel@lists.infradead.org; Mon, 09 Aug 2021 14:54:59 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3646960C41; Mon, 9 Aug 2021 14:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628520895; bh=Bju+leec27BJ4QYvQY3PA8U9CmRnt/W8mNw7VpNHRP4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f4BdBuCnR4jKeXbFWTt0b3h27ezCQSF4GiwDiSASn8dkWMHFf6dv7xETJOGUa3pxp BviDC48Ua/ElZsPcZZXYYQV8i+QrU5KMrobngDKwzPuyUaBh/yxPlmPcjZsC6TM+GC SbpfKSnIVzMPOvmvsVyfvdhloa+m9CXPL4SqPI3ctagtL23QwpL2B7J06PAarElrs9 K2sxQbkbvwuo2VMJO9Zvi61b350z/fnkGw2Wki0djWhtqLMKTPlnP1l+iWbp8EcFPG YvkqzgSOBW1+51wpakMqbyXPm3m5RehzWn/90utfv8VI7hMv3ti/tJVdIDtJ6ZjYp3 gkUbIGwpOf8cA== Received: by pali.im (Postfix) id 77F17C7C; Mon, 9 Aug 2021 16:54:52 +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: [PATCH v5 0/6] serial: mvebu-uart: Support for higher baudrates Date: Mon, 9 Aug 2021 16:53:23 +0200 Message-Id: <20210809145329.24177-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210624224909.6350-1-pali@kernel.org> References: <20210624224909.6350-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210809_075456_003378_AEC6AEE5 X-CRM114-Status: GOOD ( 12.15 ) 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. Please review these patches as they touch both Device Tree bindings and mvebu-uart.c driver. 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 | 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