Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp557010pxb; Fri, 15 Oct 2021 10:57:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzszwPYHlwZAXYKlDj69TL2MTjzCs8j6JtDzPac1cZH34aoZ4C0eCL3hH44mdTHu6DpGy34 X-Received: by 2002:a17:907:2dac:: with SMTP id gt44mr8713800ejc.265.1634320646255; Fri, 15 Oct 2021 10:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634320646; cv=none; d=google.com; s=arc-20160816; b=JGMPJ3OrlgD+RWY5wU/MDnsTh9ZBY8HKnXs0IE4S+A1Y+MpyAM5f9/86Dq8XA4CQeo JhtD8Oy1eVrvQo0SqX2Y39i7FLjycQnqVRukeqZ0qBnrLXbL3d9AH7TuTozHwF7v1vuF PTv4E/HDdby6xf/D2KxJypj4O3I43gGOHqq8zoLfVYJ13sSJfey82vzV84vziJsFfQym IOsDtI1LgWEAASsLhKveYU9CBfVQ6yw6qA+jwnrUirG6sgMh/odi7el/jUMAyHlUn9fx eyQPm0x1rC5GfQA75WL9fNTTVZ/HA9340xHukUX+1dc/GYdcIp4uggs5xTf6IGJzvGuh a13w== 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=eGq6h929hxffCUzXkbmx55chN8bMhdwpvbvm+ptmI28=; b=JhQxPKwH/1l78em8HCfb1b+JqyBTy183I/scTgfU8A9bpYtgcS5yg3SrwRfw7NLsfK CxHEt1wFH1KNokU2kKHTaht9Pu6PEq0/Ecw0Y4xrRMe08fjCMY3Z5Cc1XEIt/2ploFqG K8kNb8RhxY6uZYbdYxeV3NknOoGwziHsGO1gdYWZTk/pdhctoeD9LXOvr9/nUkAgBvkH npd5q1f8sZkhNTzn/a71DjS5vk1dD+pdfdOvmigqKia1DBrz2/YStXLhel036ptkeDnK gA+oldHwyYXTiqRRIkut7J220Lj5PKFW2eHYaTjYHFvPe0b/sNVfRd3WbBioAfd/KoL8 A4eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GsWMApXX; 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 f10si8951319edy.549.2021.10.15.10.56.33; Fri, 15 Oct 2021 10:57:26 -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=GsWMApXX; 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 S237506AbhJOJjQ (ORCPT + 99 others); Fri, 15 Oct 2021 05:39:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:55488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237498AbhJOJjK (ORCPT ); Fri, 15 Oct 2021 05:39:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C0D9861151; Fri, 15 Oct 2021 09:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634290623; bh=TzGufAwH2X3L5zaryILAQnVqBzQmD3/o9nz9xeCqBkU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GsWMApXXQLrHwLrvYv0g68Bfy9/jgQrp7Ebbamfpu9C4ERu+l/AHEPAzEeIamPPZW tMKcka14I2NWo+GASsOg/PbqyxjS1TntSBtw6+cBOCb4pIt40SxPqfNqqMq2OEqGRR JF8lRcjoCz8RI/muUc+fcTCwc7uncVe9YVCzrVYJpasxzZ39ozrslCrDVHUMG8g17t uaqZ/tQitbJOuzfSupuCZZCp6+0mGp5X6eRUH2s3SmLmpjWAQEMktACYTVEoNky6UK TDAYbgutjMMFpGdQmDrxRj5vIgrvYQXgYIu8xy70rRnztWr9ErCE/BxVbWeH1xd46H efBFHvQsuekiQ== Received: by pali.im (Postfix) id 4788A80A; Fri, 15 Oct 2021 11:37:01 +0200 (CEST) Date: Fri, 15 Oct 2021 11:37:01 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Stephen Boyd Cc: Greg Kroah-Hartman , Michael Turquette , Rob Herring , Andrew Lunn , Gregory Clement , 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 3/6] dt-bindings: mvebu-uart: document DT bindings for marvell,armada-3700-uart-clock Message-ID: <20211015093701.pfvkighxsndj4ujg@pali> References: <20210930095838.28145-1-pali@kernel.org> <20210930095838.28145-4-pali@kernel.org> <163425678347.1688384.10695189000353676651@swboyd.mtv.corp.google.com> <20211015090937.gnt66hgugrhwnkei@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211015090937.gnt66hgugrhwnkei@pali> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 15 October 2021 11:09:37 Pali Rohár wrote: > On Thursday 14 October 2021 17:13:03 Stephen Boyd wrote: > > Quoting Pali Rohár (2021-09-30 02:58:35) > > > diff --git a/Documentation/devicetree/bindings/clock/marvell,armada-3700-uart-clock.yaml b/Documentation/devicetree/bindings/clock/marvell,armada-3700-uart-clock.yaml > > > new file mode 100644 > > > index 000000000000..175f5c8f2bc5 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/clock/marvell,armada-3700-uart-clock.yaml > > > @@ -0,0 +1,59 @@ > > [..] > > > + '#clock-cells': > > > + const: 1 > > > + > > > +required: > > > + - compatible > > > + - reg > > > + - clocks > > > + - clock-names > > > + - '#clock-cells' > > > + > > > +additionalProperties: false > > > + > > > +examples: > > > + - | > > > + uartclk: clock-controller@12010 { > > > > The uart device is at 0x12000 and the clock-controller is at 0x12010? > > This looks like a node is being put into DT to represent a clk driver. > > Why can't we register a clk from the uart device driver itself? I think > > we talked about this a month or two ago but it still isn't clear to me. > > We have already talked about it and I have already wrote reasons. UART > clk is shared for both UART1 and UART2. And UART clk regs are in both > address spaces of UART1 and UART2. UART1 or UART2 can be independently > disabled on particular board (as pins are MPP which may be configured to > different function). So you have a board only with UART2, you have to > disable UART1 node, but at the same time you have to access UART clk to > drive UART2. And UART clk bits are in UART1 address space. It is explained also in commit message of patch 2/6. > > > + 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>; > > > + }; > > > -- > > > 2.20.1 > > >