Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3506312pxb; Wed, 13 Oct 2021 07:23:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVSD3EoOvE5UqAmOhlFqphxnPOFFd8XScUPOtoxrNn6FsSHt8ak+qdJjDYe+U/w3ueip2T X-Received: by 2002:aa7:d9c1:: with SMTP id v1mr10087742eds.175.1634134997640; Wed, 13 Oct 2021 07:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634134997; cv=none; d=google.com; s=arc-20160816; b=SZKYm9KjJIYUIMgEZeK8ZDTokie3k0qD7uj9Bfpvb/H9mxGfIY2T8QIx15RSwOUmWB vrWo3VEM92wzkBKMLOdQDptOy02TEizaj8iNDchJKlnsoBmXushHhDN2i8Womof91eeh kAKm8PmKyfdOzOez4j8w7SvW8sGFG72CW64gsqUSeIuOtFZanHopbKMyIsoFEBegK9Hz CKDS5CiUDpGtTKYmhNknLbZQjexDqmITr0nqDBROmv0Wbo1MHxbl065OCHgGT2Jr6CmI gruyF7N0cZHVzLdRsY3JL8Dcbc0gkD73E0baNW0is66I40qYnoT1cEBlotD+52soENbL MqCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=b0HbS8dIpQExcmR1uH6SwKokAl/hbSy7jHSMKf7tf3k=; b=Ty734b2KSPv8EeZQHsy1KP+fLlYBvtjXummWJCHzhNXmlNnfrngqJFm1bF6XEvngdk lkkGFETrMDG0ygZ+7DlRRpNgYRPeZmY4uijOsPwtbWRbsmYmkwvPcXUlmn7DlcO7X7fj uFN8a7tgOnI4OUkV1+MQ+1lbQsctR2mGG5QCdJsZFPmhUqFtKbLnMStPon29ycAmkz6u 5TDvW9m9YQVdgMtzDkMIg+/RYmaxH1cyHfQCdZHVEbdiXyUiUeZMylvD0T/ynCYXzHtp Rs4bImdNvYAhLvrKibbwa7yd7ZfVdWagXL2Xwu8/4voBoyuQDyhulJt325YjgrqDhX8g y3OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YZE09hVk; 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 y4si19828123edl.305.2021.10.13.07.22.52; Wed, 13 Oct 2021 07:23:17 -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=YZE09hVk; 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 S235854AbhJMOWB (ORCPT + 99 others); Wed, 13 Oct 2021 10:22:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:38774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbhJMOWA (ORCPT ); Wed, 13 Oct 2021 10:22:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F18D1610A2; Wed, 13 Oct 2021 14:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634134797; bh=RgljqDQdPTL+CF9pUvoROzzd39ppgepx5tkwdX4IFlo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YZE09hVk9RTlI4WPH4BsfFNydLErWjVQ1ilSgAcDrcxX+PB7fyz63xSv55wINJIB7 y8xpt6IHPkOIm8jYgsEQw617skRpGK+uuLabbXSWuc5jws20Szxlb3e/eoNFdPGO6N Nqxp6/XnZjzy3YOp+BaredaL9dNXS2Zy0CUMftWAZ9nh2h9fBCpJG27vzHdmQBsN0l ipG3Q9tM86KNImZeNK7FYj/Dk0O+z6WqhY8Cwk4ZGNo+c1tKJDdXAsuexdTbUZFvzL FhA/JQQ4WmRlrHrZiFBFFywmW9ydMnUDzaePGLyNrGl2E3iyIH5wtXUPWB2HbgRzgc wr9hC52im7ZAA== Received: by pali.im (Postfix) id B36B87FF; Wed, 13 Oct 2021 16:19:54 +0200 (CEST) Date: Wed, 13 Oct 2021 16:19:54 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Gregory CLEMENT Cc: Michael Turquette , Stephen Boyd , Rob Herring , Greg Kroah-Hartman , Andrew Lunn , Sebastian Hesselbarth , Vladimir Vid , Marek =?utf-8?B?QmVow7pu?= , 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: Re: [PATCH v7 5/6] arm64: dts: marvell: armada-37xx: add device node for UART clock and use it Message-ID: <20211013141954.cg7reu5nnj5tdsrp@pali> References: <20210930095838.28145-1-pali@kernel.org> <20210930095838.28145-6-pali@kernel.org> <87r1cpdncz.fsf@BL-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87r1cpdncz.fsf@BL-laptop> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 13 October 2021 16:13:16 Gregory CLEMENT wrote: > Hello Pali, > > > 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>; > > What happens if we have a new kernel using on old device tree ? Hello! There would be no change. New kernel would work as old kernel. Into clocks property you can still set xtatclk as before and it would still works. > Gregory > > > interrupts = > > , > > , > > @@ -147,7 +157,7 @@ > > uart1: serial@12200 { > > compatible = "marvell,armada-3700-uart-ext"; > > reg = <0x12200 0x30>; > > - clocks = <&xtalclk>; > > + clocks = <&uartclk 1>; > > interrupts = > > , > > ; > > -- > > 2.20.1 > > > > -- > Gregory Clement, Bootlin > Embedded Linux and Kernel engineering > http://bootlin.com