Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp142292pxb; Thu, 30 Sep 2021 03:00:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCcf0tJ4RMi9ADnnWOWkBqMTI9a7nPzwTC3jPVDmRssVM0YGZyyklxGeGtFo39xBVIJd+r X-Received: by 2002:a05:6a00:140c:b0:44b:e251:fe13 with SMTP id l12-20020a056a00140c00b0044be251fe13mr3467073pfu.10.1632996053387; Thu, 30 Sep 2021 03:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632996053; cv=none; d=google.com; s=arc-20160816; b=ggri+xSzvBToBxdyQ7iVcbrO48GAMO4Bn7CpaP/OZgyzbH8gAnjnSGG83d1r8wJcEN woNgL81vrmJCu9cet6T3oYjmNxijPRZO+RdWn2ogppgkk+XJMK/iviQCHIAMi6W8boUu bUkIiFtBFLsdKhZVU2ydew5HooPX5uVD/ZznofVo9qDraCAOHEjR5/rQd6wcOVPCzKmS A5I4ejA+V7f7/Mg0ebieKbBJN45DVyExqZT5DUPFGu7fE3Z7bPQNQBPS0E7HZhfMqCH2 gaSDnD+B+TQSOdR+G4Y+eSS5/+2e//2YSKSNWH0ATAXs9w1YgeM032rslIwhYljkih4C k0bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Yf2+zSHsmf5mdbXVzk9WxIZ9SmDHy2YPD2HVeWB3NxY=; b=EwQh1EhO20fghfZlcFAZX5SZ9Ba8eEEEDVE085sF4bjVOoBZyeEPQEhyWy8KYe2Xy3 RCqEOolF0xdqX9q8HHynTaNdgBfuoiwzgiSTNN2FFB1JAhZUNMsYAo+rInXMsA3Fu7rG vE1Xv5tqiOaNkav7BBVx1O+jTLqCCAhUMHnlYGHEjcLCEw2xpNgXaXCEbaqswvHOtoJG W945gHcRucVEOlas84/2+bkJPU1NV9mMxcpmjwFYATKHjiH4Gvh+t/eYjFkiTDlm9lLF pR5miy9ITh5M60lR4dshKzFoq+U/lldi5V+iEHdkQ9UHxbLTMW5SjVCjzpzB17gi+FTr yE0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SW7pjdwR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si2892748pjc.153.2021.09.30.03.00.10; Thu, 30 Sep 2021 03:00:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SW7pjdwR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349641AbhI3KAt (ORCPT + 99 others); Thu, 30 Sep 2021 06:00:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:60486 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349504AbhI3KAq (ORCPT ); Thu, 30 Sep 2021 06:00:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 09D03615E2; Thu, 30 Sep 2021 09:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632995944; bh=EcQMCqZ6hJ0OCg9NAUge8n9Pch6KHPccpjuPzxh7O0A=; h=From:To:Cc:Subject:Date:From; b=SW7pjdwR9AIi4zwIetE5qF0As3jiBUbMhywYs+ISjVoaMwW5u2qEM36GWKTFZuxO0 45LSAAF6/fNCvcESjyvOvSH6gltuHGUhaA4HdSdklT6gek+d1gotahqzqyWtPKERcH yeb3qu2HlMwVzdHEk4J4jcBhmupA0JnHjYDnKuJZtHozQetqYtTqqDZY/1hV8KNnRO W/JXtNUUaydCaDHxZfxH+lj6qw1uA2JSnUCFnEHVaiSKoma04V4RO1eoDm6x2h0fjI HsaJ7pU5XAKc+sqKPnYhfDjYaIboDxtym8SA2gFIXC6DMo+ImvYHYV6d6vCyGdAIVq kDnFmn9TpIZ3g== Received: by pali.im (Postfix) id 8EBD7E79; Thu, 30 Sep 2021 11:59:01 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=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=20Beh=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 v7 0/6] serial: mvebu-uart: Support for higher baudrates Date: Thu, 30 Sep 2021 11:58:32 +0200 Message-Id: <20210930095838.28145-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series add support for baudrates higher than 230400 on Marvell Armada 37xx boards. Changes in v7: * fixed lint errors in yaml binding file 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 .../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 | 592 +++++++++++++++++- include/linux/math64.h | 13 + 6 files changed, 667 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/marvell,armada-3700-uart-clock.yaml -- 2.20.1