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: 1534230 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=uJqGIJiW; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4HK8Wy15brz9ssD for ; Wed, 29 Sep 2021 18:23:10 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244719AbhI2IYe (ORCPT ); Wed, 29 Sep 2021 04:24:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:33332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240284AbhI2IYd (ORCPT ); Wed, 29 Sep 2021 04:24:33 -0400 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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