Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3385674pxb; Sun, 20 Feb 2022 18:24:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDWL5JbDMQugdirxlBZ9Ho4PeqR9nt2AAXqCYIF7gTS0cYcwnCp0nxTxF13XmRt+KTwXHP X-Received: by 2002:a17:90b:3b88:b0:1b9:31dc:adad with SMTP id pc8-20020a17090b3b8800b001b931dcadadmr23330792pjb.159.1645410273797; Sun, 20 Feb 2022 18:24:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645410273; cv=none; d=google.com; s=arc-20160816; b=C/3ej/AHtaA1kFQCDez+ZS4VV7GSy6HgDd71+whZJxfOMHr43CwAhsdW0V+XsK9/Dv AuvdKTU0tWKtmXqc86sLOfKhhOrJrZnfN7Q+Jn8z9Dc4Egfwfp54gc1B0UmC+w7MPJRO vwmTSSgcpJoerXxDPmav9Gd01z1V7Jx5JVdy+6xNJFNOUqs1L6PING17fPjNPf26cxDo x1WIkBKhKG5Q9NV1SsJj805jJyjAx4EVqLdf1j2/imr4u9oWsgP4c38hO5I6WN+qxSPl AllHxeD7wWka9EbYdWA4si/m8nTC68yvOlsl6FsU/9anVJ//f+C42y5aJiVwPX+kdHbk yhbA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FvPavPtxF7bJ+0og4yUl6qdVFqC6hSXayJNsLwOcVCM=; b=RX614b2mGClG8YSJTixw2GN6RuXBGpklAlJ+cLLm3RI1mRGilj3ZTmRB8LqHVLXgeg clJLI/KMDmBAmvlJLPv/jslVH78bqOMhINX3l+LmfnMYEMZunNmtfDW9eL0ey4F7oQv7 hNYP7YrBO5bmjQSOK+7HRkDkBmKD0ONf47reSXExlGc8nJmSdFxtff+54+EpPf8SwEyo /pO7odRwpDi8is6OYoVmQU0NJJ4OMu82HY4fHKk9VUiGHtgFuStBraoIAW+f8PXMX87x fQnB0JB5hAHAQM1yP0TN2r0oqyjiief5vrVDrOnowBOfjleYuCZdm39kMi5gQ8pZGCEQ WTRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dMOKL2ug; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c21si16471334pgj.291.2022.02.20.18.24.18; Sun, 20 Feb 2022 18:24:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dMOKL2ug; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238728AbiBSP3N (ORCPT + 99 others); Sat, 19 Feb 2022 10:29:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242557AbiBSP3J (ORCPT ); Sat, 19 Feb 2022 10:29:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C594C5D647; Sat, 19 Feb 2022 07:28:38 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 60C4E60B20; Sat, 19 Feb 2022 15:28:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0A50C004E1; Sat, 19 Feb 2022 15:28:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645284517; bh=F6pcZPFpnI6hLMIYVmpuXloWiEvqSEfMam/xjyvdLDs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dMOKL2ugYw+WQBj3ZZQVOq9CBHushdo1zYvAtdjLBBulSXfJCxtB2RB70mxRdh3Uh ZYRcyq4pgoZE0hi21EZUgZLGUBEdHYbpQ7+AqPMYjT8aeaE7RLgMOO/smC1jXlvwjm Q/sdx9DDPtm5A9x8tDuFkGuh39ujbcS2YQQRGELvoICo8W3of08RrEAW+MtNrqSFD3 8GbHqHZbW4letP1dhAsqbX0W5Qffp8DgxfIFidm5jpNEosdiO2Gb4jjxV7PB1KCauD 9owowxo0EQU1Br+wL0r+wc1ipLOZrV/Wp9QP+XmQyyg5mhhEMyi5yteqShfU6+mVXA +rJYplsFU8AQg== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Greg Kroah-Hartman , Stephen Boyd Cc: Gregory Clement , =?UTF-8?q?Pali=20Roh=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=20Beh=C3=BAn?= Subject: [PATCH v9 6/6] arm64: dts: marvell: armada-37xx: add device node for UART clock and use it Date: Sat, 19 Feb 2022 16:28:18 +0100 Message-Id: <20220219152818.4319-7-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220219152818.4319-1-kabel@kernel.org> References: <20220219152818.4319-1-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pali Rohár Define 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 Reviewed-by: Marek Behún Acked-by: Gregory CLEMENT Signed-off-by: Marek Behún --- 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 673f4906eef9..da2f6b5c4b20 100644 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi @@ -132,10 +132,20 @@ avs: avs@11500 { 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 @@ uart0: serial@12000 { uart1: serial@12200 { compatible = "marvell,armada-3700-uart-ext"; reg = <0x12200 0x30>; - clocks = <&xtalclk>; + clocks = <&uartclk 1>; interrupts = , ; -- 2.34.1