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: 542051 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 49CE0C433FE for ; Fri, 11 Feb 2022 19:12:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343568AbiBKTMr (ORCPT ); Fri, 11 Feb 2022 14:12:47 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234187AbiBKTMr (ORCPT ); Fri, 11 Feb 2022 14:12:47 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8596938F; Fri, 11 Feb 2022 11:12:45 -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 ams.source.kernel.org (Postfix) with ESMTPS id 40E1CB82C0E; Fri, 11 Feb 2022 19:12:44 +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 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.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