Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1737226pxb; Sat, 15 Jan 2022 22:45:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGUvxbdHt/tyCUCrhS+CXe0SJrgGmI5ZtoIngmZ8C3YUgQ+17egmTSMkmjkrbkmhLqZcut X-Received: by 2002:a63:350c:: with SMTP id c12mr14345468pga.568.1642315520458; Sat, 15 Jan 2022 22:45:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642315520; cv=none; d=google.com; s=arc-20160816; b=lLzHujxvSzE8Bs+QHpZnFcEA8d4cwONlosGuiULqbUZHJTlx7PIYVXiw0WumVFCG7O 5uZMx7yf5bN2Xn3oKt/6f0Xcs2qKMTSDAbDNL665e8hcZwgNvRpX4hNN3LBJbIWVBs+j AeIWGaSJSHis5KIoOgouuJ3sph/R7byUFTPfjLgRvEynHNw0PXjQHnDX4Dp0qGZ2WdQz qQAS4sLYFn0bwIRBBgk3j7cWjnL1SqPwniW0FlEI1OgG0oAb0haI5xf+0f+AVmP1TMzl zJOtri7AKuumlEGAGJbSGFhBSjwMOELc/tFfdTAGO1p0J0p1NKlFVLeM5x3Edjf3j8gM nl2w== 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=YlYttGOHBvZtg6U2uPkuKU3YOsgVTNhHiH5C9HPSUqo=; b=dPXBoKilx5jtf97u5einueHlzQdIoxkaI3n4NW2j3gL3zIU5Kt3MjmzH4ut58aeax9 +ywEghpBaEiHFSff9QU2pWbPN977SjjWpeZ7VNTEsMaA/KNWvRDVDsFUZJAEcNAEM/bx DkojPqyRtar7ECVPXJNEjIIRI2EsnM+3Y8fS4wwsVlI4Clro1k3tyR2Er8SxneIWL+CM km1iTmTtQvmoEzhCfabVlbEJd4qExGkhRxElKWJEBpxHZYRYkjjo8vhE4wjKHxaQxE/l lDB437jWuFPtwZfw4POWcApLdiqVXSR9qJ46wRqr4plK9eOKPF4qOd4xZJhkWcvKPBr0 a64w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oHy6IDmt; 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 i10si11187937plr.275.2022.01.15.22.45.07; Sat, 15 Jan 2022 22:45:20 -0800 (PST) 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=oHy6IDmt; 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 S230412AbiAOM0Z (ORCPT + 99 others); Sat, 15 Jan 2022 07:26:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiAOM0Y (ORCPT ); Sat, 15 Jan 2022 07:26:24 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDFA6C061574; Sat, 15 Jan 2022 04:26:23 -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 ams.source.kernel.org (Postfix) with ESMTPS id B0036B801C1; Sat, 15 Jan 2022 12:26:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C935C36AE3; Sat, 15 Jan 2022 12:26:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642249581; bh=kIRhRIhmHyuVtgrFBJFVRrB2x5jOVI1sMyRQaoKjuHw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oHy6IDmtSBRLvfge/vX9jilP//1kEu+ZdhBSP01xtYy42Yk7lNr3bj13r5ua3Sfe9 vOCmFkfoB2z/qmZH0Pj3lf77sBOblIzSBaFIAag/A+XTYKLp+jwdT/QC3Xz3aV7rTy 75NLTwEf79Wzt7g/l3L1dcgC/ulGPjj3jDZVqBGRMFkzkGDo2XYrZixaJSOHwFYdXU AEuqH2J6bNZhHpsVu1kBKJpfqNVpBX6H6g0r5Y5sk4P4WsM3uTsgivye3POwKTnxge 2K7CeyJGwToomw9BUhxeHZJ6hsOV8dsmBJ5ZSxTgCyhZh7O2koBvjaivFGRI7xzKiz QDgSDTkj2Vxpg== Received: by pali.im (Postfix) id 85C1486D; Sat, 15 Jan 2022 13:26:18 +0100 (CET) Date: Sat, 15 Jan 2022 13:26:18 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Marek =?utf-8?B?QmVow7pu?= Cc: Stephen Boyd , Greg Kroah-Hartman , Michael Turquette , Rob Herring , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Vladimir Vid , 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: <20220115122618.plhiqnjh2755bv5h@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> <20211015093701.pfvkighxsndj4ujg@pali> <163433494758.1688384.5994009027317282677@swboyd.mtv.corp.google.com> <20211016064210.7ahqfqcvf66wtt66@pali> <20220115080213.0CCAFC36AE3@smtp.kernel.org> <20220115115018.he4hnnhlvrb6kann@pali> <20220115130509.4a240730@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220115130509.4a240730@thinkpad> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 15 January 2022 13:05:09 Marek Behún wrote: > On Sat, 15 Jan 2022 12:50:18 +0100 > Pali Rohár wrote: > > > On Saturday 15 January 2022 00:02:11 Stephen Boyd wrote: > > > Quoting Pali Rohár (2021-10-15 23:42:10) > > > > > > > > If I was designing this driver and DTS bindings I would have choose > > > > something like this: > > > > > > > > uart@0x12000 { > > > > > > Drop the 0x > > > > > > > reg = <0x12000 0x18>, <0x12200 0x30>; > > > > clock-controller { > > > > ... > > > > }; > > > > > > Drop this node and put whatever properties are inside into the parent > > > node. > > > > > > > serial1 { > > > > ... > > > > status = "disabled"; > > > > }; > > > > serial2 { > > > > ... > > > > status = "disabled"; > > > > }; > > > > }; > > > > > > > > Meaning that 0x12000 node would be 3 subnodes and all registers would be > > > > defined in top level nodes and would be handled by one driver. > > > > > > > > This is really how hardware block looks like. But it is not backward > > > > compatible... > > > > > > Sounds good to me. I presume we need the serial child nodes so we can > > > reference them from the stdout-path? > > > > Yes, exactly, separate nodes for serial1 and serial2 are still required. > > > > But dropping clock controller is not possible as for higher baudrates we > > need to use and configure uart clock controller. Without it we just get > > comparable feature support which is already present in driver. > > What Stephen means is making clock controller out of the uart node > directly. No need to add separate subnode just for clock controller. This is already implemented in v7 patch series. Clock controller is already outside of uart nodes.