From patchwork Thu Sep 30 09:58:37 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: 12527837 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E443EC433F5 for ; Thu, 30 Sep 2021 10:03:10 +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 ABD89615E2 for ; Thu, 30 Sep 2021 10:03:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org ABD89615E2 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=LBkgjCDxgdLv05TFPg8p/S1M8GV28ozgkyE+AKQqTxw=; b=A6v+goNMKihiOY JqVZchSGM123anPuWTRQqAQzDM/7u5ZeOaoJ+lKZ54e3isGHTDF31NVzQ7Q5xE2zVNgJOtYoBUVDh cw+SOY7eyicm6foTDzQL68epS+rBIDxAcg+E70jKFKhdt8dsSAPu1yiYVJnRwtzVt/s0CAC+r4Cgh H3qliJ5NfANJilO5kNmYc0H7ikldPtuS+LINMksan386tqtzlLieEF8mZLLpbaaotbf/BnWfKgniQ Catx1M8DhAmkeU1XaiEZPBJxEFlo3YPL/OiLJanZyA8o8jwPFxuaFnuGmPDQZoCK38QjryvZZyFA1 TYIxPeQ4TWzIPOSwp6DQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVsrI-00DgY5-La; Thu, 30 Sep 2021 10:00:08 +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 1mVsqJ-00DgJU-PJ for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 09:59:11 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 47401619E2; Thu, 30 Sep 2021 09:59:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632995947; bh=QLuW6v3Lic+9u3xvdpn5U7PciiFoV7G+AE18M57+JTY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a7aFa6+yKObecr7WrVQFqTSyFOeK8n4xt1DvaAt6FnPIaukQW5Yo7VxDXmdhq5InL 8D9Lyp56CdLbRyIQ4FUAzaDIiJj/qWAZgOaWBK7lvHbEQGjBd4VUzILOFSDWQW8rfN JLLgm2nTUbUCiZ6s4XwU8AbmUeKGyQusbXenS4+0k/kLCOYChL29aRZ16glQ3HR9vN S4PeJz5i5gAAPPHBElQNMMO0nu0LchTfgtU6UDpkIScUZ2oOvWBjdZEJPv5NUPC1Ms pjwecehT73wsvykJ/Aym7Pmoyk6k8+AwYVyvxc3OLBxITTG1o4NPABHMkaXXnBTHKA qMp/h6Pq0DVIQ== Received: by pali.im (Postfix) id 089E0E79; Thu, 30 Sep 2021 11:59:07 +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 v7 5/6] arm64: dts: marvell: armada-37xx: add device node for UART clock and use it Date: Thu, 30 Sep 2021 11:58:37 +0200 Message-Id: <20210930095838.28145-6-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210930095838.28145-1-pali@kernel.org> References: <20210930095838.28145-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210930_025907_906984_0A6CC267 X-CRM114-Status: GOOD ( 10.62 ) 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 change defines DT node for UART clock "marvell,armada-3700-uart-clock" and use this UART clock as a base clock for all UART devices. Signed-off-by: Pali Rohár --- Changes in v6: * Do not disable uartclk by default * Rename node to clock-controller@12010 --- arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index 9acc5d2b5a00..f9bfe73d8ec2 100644 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi @@ -132,10 +132,20 @@ reg = <0x11500 0x40>; }; + uartclk: clock-controller@12010 { + compatible = "marvell,armada-3700-uart-clock"; + reg = <0x12010 0x4>, <0x12210 0x4>; + clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>, + <&tbg 3>, <&xtalclk>; + clock-names = "TBG-A-P", "TBG-B-P", "TBG-A-S", + "TBG-B-S", "xtal"; + #clock-cells = <1>; + }; + uart0: serial@12000 { compatible = "marvell,armada-3700-uart"; reg = <0x12000 0x18>; - clocks = <&xtalclk>; + clocks = <&uartclk 0>; interrupts = , , @@ -147,7 +157,7 @@ uart1: serial@12200 { compatible = "marvell,armada-3700-uart-ext"; reg = <0x12200 0x30>; - clocks = <&xtalclk>; + clocks = <&uartclk 1>; interrupts = , ;