Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4518054pxb; Sat, 12 Feb 2022 07:51:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgenXMmhQpolEP3CyLSHDCGiiSwus5ue+HDAHz1tpzcsxN4jXcPisHOvWlj5r2WB3XC4pj X-Received: by 2002:a17:906:4b03:: with SMTP id y3mr5090299eju.305.1644681104641; Sat, 12 Feb 2022 07:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644681104; cv=none; d=google.com; s=arc-20160816; b=G9blzdij3OIj+seMj90n3Cyvja0T1M4837uojPsgxo7gTCeJGOfTxAuJ17tLtT0z3n dhuaxNi4sKeO3GjMvq+x4/Lga/+z/jmGlfWBssSkJ75M2i+LSH7Wa+2CXjZzDhIQchWh n9blh9PeHTx9UA0nAfXFfDnoO9bXPrnhbbMB+3A201Un+mycXG5q9VDvMDCuxct5vNrz D2McZ4hB/IrsZEAVEKcbQ0IftGZk2EUXJsaRsMm6F6g6RohYnVtCyjlkAYnwrk46LGe8 XeHkidj6+pziI2GxOOki6btXjHewfy569pmE/uw4upexM98Ft2vJHey3U3iHD9KFlMC6 StEQ== 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=pJitUBYBkL+x8+ZnnMRp0NvIQS8X8ducDg1MaOaucDI=; b=WI83uqT/OHyFxjRoC6tifQihzZpZk2MTiY85s9NHNWaz03UoncnYbc/lpmfHPFLqim 4bMSjlIKr1rvBW8lrRnrci16gwDUbNHzgS9my6DpsXRm62v/TsxtUudopxeZe75wRi5U FB8zLBQHiP1rzM1aSSRc9kLhek4MCjncP8AJ1oehMxiXmqHNldefO5us5B2hIRgYbEnc +RXaXozCWfR9+9PIqGpdIk5hfUcPgLyGtv1Cq5qwmv2HVH/7Fv0BgzgsEyq0fL6o38Nd 8Cy91ZrWZcEJ0AzSgQvRY1ir7T1gMdkolI+yYpOQbTa7zVyDyDzNmFSI66gn/UgupR/0 Lwug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jBzHpQ5p; 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 t3si7628691ejy.14.2022.02.12.07.50.51; Sat, 12 Feb 2022 07:51:44 -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=jBzHpQ5p; 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 S1352759AbiBKTNG (ORCPT + 93 others); Fri, 11 Feb 2022 14:13:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349908AbiBKTM5 (ORCPT ); Fri, 11 Feb 2022 14:12:57 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92DD9CED; Fri, 11 Feb 2022 11:12:56 -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 2AC3461F3C; Fri, 11 Feb 2022 19:12:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EC34C340F1; Fri, 11 Feb 2022 19:12:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644606775; bh=icDAxhIilkMcIBD/iE5/3SiYgSSWiOTuHCkrhxzg/7M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jBzHpQ5pdB0MztPObMedFoQYSkox1wWNSoNrPLoB0nNDR35MVSlsgv+pOSyFpp/IK oM3CSNSjYuenhrlMbUdGwfWp1QC1kkJNnrJdPmUsk8oOPAy+mjMW4pSW3ks6q0sKit NUpq4DZKVxjHKmZdHeqYObqM4XAKvUlUAIYndC1YkKlHgWKzfqtWFSclQWTQXjLLvn oq/DpY3BEyv8vF9lK6ovNagwkYk6rvkT6y9Bbe4if0Bv6PajxQklOvutFvXUUkMw94 J65CVQxFaghRpTsGsgsWH2GoiMyNj6juzzFLTWSl6t34AXFPHItlRiTfL/XWfz2pQr K5QmJmhAycRNQ== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Stephen Boyd , Michael Turquette , Greg Kroah-Hartman , Gregory Clement Cc: =?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 v8 5/6] arm64: dts: marvell: armada-37xx: add device node for UART clock and use it Date: Fri, 11 Feb 2022 20:12:37 +0100 Message-Id: <20220211191238.2142-6-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220211191238.2142-1-kabel@kernel.org> References: <20220211191238.2142-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.1 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 Signed-off-by: Marek Behún --- Changes since v7: - changed commit message ("This change defines" -> "Define") - added Marek's Reviewed-by tag --- 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..4cf6c8aa0ac2 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