From patchwork Fri Feb 11 19:12:32 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: 12743773 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 099E8C433EF for ; Fri, 11 Feb 2022 19:14:04 +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=PQPmuvTnEKT1tckKU4tCIMx+SVHRPWg1ziEqKEZYaRE=; b=mjynHCAC2Ms8Ls fOsi2lLfZco+KmiIIitJVkTX2P6xo43QLtUbeNDsfcewmOSxtDQfvbCkUosn3ULD7WWAVSNRW1O9E YR1WAyOsEW7KpKBgecFg/eEQvZvWjuoVP2r54Kh76tkeWr3LOVGjefZlIyWlL6ejRz7s6OoqpTEzz gS268d/sY/Y6oyLBEuW0BSY2EBpR2j/9eY+LWEiiMh8pMD5mUqFvPzjYQXKsO2M8wq7Tgov0l9EKQ Fvl0Y3KciTjNgaBZ6A4hJr/rNSuRcMAN/dSzGUQnolqRvtskqW2KJeCdhOehUYjeWMRKqTUXK6+cs hTM3dyQvGG357Cs6QYqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIbLb-008Wdf-US; Fri, 11 Feb 2022 19:12:48 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIbLY-008Wcw-EI for linux-arm-kernel@lists.infradead.org; Fri, 11 Feb 2022 19:12:45 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 63F8F61F32; Fri, 11 Feb 2022 19:12:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1A4DC340ED; Fri, 11 Feb 2022 19:12:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644606762; bh=8mkUbS5/eb9njDiC5YQ9RiPIC0sVkH1EcbyzWZEu/ZE=; h=From:To:Cc:Subject:Date:From; b=QYADHZXg4w6ohZhB8o6Lvw2BwpqQwVh49m/1thAzio/0ZqZpwpEHz5s5hsLmTK9dP 3V93ktgFkOnRbbqmTDO0vGgBVYQJyhVqJVdwGP/HLF0/zuriA3nnP3A2ybGTE7NoRr HLyzw7BuRzc4xNwWQUYKZ/2iSv6xuj1oUJihwjfaOH8kYAC1qktFV/pR9MkRlUmmud +uV4VvEK8E0xDyYnaEm4xpwVQ3iAOb6K+kcoh12NsOuWJGg+Pw6DpwvFRp9C3ANMlf 1l1czLsTgbwda4Nx2PgxeDwFLEuimc7HmCK62TQBAoBSWPk6/aWe7Qy/VSIlmbNFZH RgSCpUYDDlmqQ== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Stephen Boyd , Michael Turquette , Greg Kroah-Hartman , Gregory Clement Cc: =?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 v8 0/6] serial: mvebu-uart: Support for higher baudrates Date: Fri, 11 Feb 2022 20:12:32 +0100 Message-Id: <20220211191238.2142-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-20220211_111244_539157_C9896A40 X-CRM114-Status: GOOD ( 13.80 ) 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, Stephen, Gregory, at Pali's request I have reviewed, updated and tested his series adding support for higher baudrates on Marvell Armada A37xx boards. I have updated commit messages, some comments and indentation at some places. As per Stephen Boyd's request, commit message of patch 3 now contains more information about why we need to have UART clock-controller binding defined in such a way (due to backwards compatibility). Marek Changes in 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 arm64: dts: marvell: armada-37xx: add device node for UART clock and use it serial: mvebu-uart: implement support for baudrates higher than 230400 Bd .../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