Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1204246pxb; Fri, 21 Jan 2022 12:11:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQoQuL/3QkyIgmUfjLLZKNoAMX2XxITqDxDGPQPR8r8KYYtatqmrhz2N6qfTMTC5UNMXB0 X-Received: by 2002:a05:6a00:181a:b0:4c1:3c75:9c54 with SMTP id y26-20020a056a00181a00b004c13c759c54mr5202345pfa.6.1642795867877; Fri, 21 Jan 2022 12:11:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642795867; cv=none; d=google.com; s=arc-20160816; b=jFi9DvaQL5tKijU1c7xp9dfKFFZpENrHhL+eP0iBlF0m56017FQDl+iFeibXv5lFo9 aHD71hBgD8sAnS5wzQqzwQnrDWaMoLdNuAUromBIMn6c4ws6IdZ2W7suw2YgDn4HmwMa jDoZoX1QWqL2Vn9yqBid0LSIzzo/GxxpfxaXseLzHwA1FLgwJjK4302XYOy7ZMTe59Mx V4rJyl438N33+8RI3bdDUHZcvtIbWYqLMMDObL9cl4LEs4ru+rkvvmiamdT9QIRtVNoc A68yF8VQvCOxuYyjrEHtuOB06R07dgdRqchzOTlw5Ov6E29SnaLwDUHoyF/f46N+gP4Z Fv1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=0F32rSDjpkwuw5HBuYbLET1Lsqwjk8O3UtCNNOl+0fQ=; b=woewwHSxgTw3rp+Qs8QDA23eyi+YeRgvoL2pTohFDtCaobocf550uaPjcPQpcfISLa K31Py2JgJN2DOJBf1HowjZjSX6t7WzYhgQHp6mQKIgGRK4M3kYqEIen/SorgIe7kOBdB VTeXpKSndEGnasQo2t4ILvTcPNL4WgQnZgp+pQSfBf6MCHkJwC49fx+0EcrJMLOxjTWO brWKP/tPAJfqKu9q8eTRpXtf7hi7XRYQwrfQ1qcjEuSscc2vPM4b4iy5x5HjuM42UV56 w0o7oMjoLMKwbwK1es4NWaqlxpwGqatd5+onB8YeuBu5fiKFAnFY379thDEjYZgSIUaN mGCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X1gZj0K+; 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 e192si6700710pgc.43.2022.01.21.12.10.55; Fri, 21 Jan 2022 12:11:07 -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=X1gZj0K+; 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 S1344105AbiASXQ6 (ORCPT + 99 others); Wed, 19 Jan 2022 18:16:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240379AbiASXQ5 (ORCPT ); Wed, 19 Jan 2022 18:16:57 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07EF0C061574; Wed, 19 Jan 2022 15:16:57 -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 98A72614DE; Wed, 19 Jan 2022 23:16:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFFF3C004E1; Wed, 19 Jan 2022 23:16:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642634216; bh=4uRWizOBaKdIv4eU9IeBasCKBDNbDWDfxnzAhH/pWmA=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=X1gZj0K+EKHFwCdIhhAp3VDq76WY7t/Bs9cCB+zpi5VjmmifIdDGRqps1pyyx7HkS zVhwkegi8UHZrFp0+Qp+PpAMdJzJrmZFaL9QLUOWnvzKs6xzcYPcPGYDXvnP+Q9KdZ wP8oqelNhZpHZyMVkPKcGcB0uSIVKLnQGeahXW8s9d9Dkq9EOXYEXGnMX9eBqpl1ko idXYWoZebJZnaf7uzEg6bQ9f1rUkKH/RZ8T64xtzqwb+g7ZoSVyTbP8Q4d6dG9JRxK jstQK5Le9qmgf87xFOcK96D7cAw2ucX18ENoKRkIIE0ryvxsQCp1mVRsBknkp0QrG6 5KE/VZssUw4Ag== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220115122618.plhiqnjh2755bv5h@pali> References: <20210930095838.28145-1-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> <20220115122618.plhiqnjh2755bv5h@pali> Subject: Re: [PATCH v7 3/6] dt-bindings: mvebu-uart: document DT bindings for marvell,armada-3700-uart-clock From: Stephen Boyd Cc: 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 To: Marek =?utf-8?q?Beh=C3=BAn?= , Pali =?utf-8?q?Roh=C3=A1r?= Date: Wed, 19 Jan 2022 15:16:54 -0800 User-Agent: alot/0.10 Message-Id: <20220119231655.EFFF3C004E1@smtp.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Pali Roh=C3=A1r (2022-01-15 04:26:18) > On Saturday 15 January 2022 13:05:09 Marek Beh=C3=BAn wrote: > > On Sat, 15 Jan 2022 12:50:18 +0100 > > Pali Roh=C3=A1r wrote: > >=20 > > > On Saturday 15 January 2022 00:02:11 Stephen Boyd wrote: > > > > Quoting Pali Roh=C3=A1r (2021-10-15 23:42:10) =20 > > > > >=20 > > > > > If I was designing this driver and DTS bindings I would have choo= se > > > > > something like this: > > > > >=20 > > > > > uart@0x12000 { =20 > > > >=20 > > > > Drop the 0x > > > > =20 > > > > > reg =3D <0x12000 0x18>, <0x12200 0x30>; > > > > > clock-controller { > > > > > ... > > > > > }; =20 > > > >=20 > > > > Drop this node and put whatever properties are inside into the pare= nt > > > > node. > > > > =20 > > > > > serial1 { > > > > > ... > > > > > status =3D "disabled"; > > > > > }; > > > > > serial2 { > > > > > ... > > > > > status =3D "disabled"; > > > > > }; > > > > > }; > > > > >=20 > > > > > Meaning that 0x12000 node would be 3 subnodes and all registers w= ould be > > > > > defined in top level nodes and would be handled by one driver. > > > > >=20 > > > > > This is really how hardware block looks like. But it is not backw= ard > > > > > compatible... =20 > > > >=20 > > > > Sounds good to me. I presume we need the serial child nodes so we c= an > > > > reference them from the stdout-path? =20 > > >=20 > > > Yes, exactly, separate nodes for serial1 and serial2 are still requir= ed. > > >=20 > > > But dropping clock controller is not possible as for higher baudrates= we > > > need to use and configure uart clock controller. Without it we just g= et > > > comparable feature support which is already present in driver. > >=20 > > What Stephen means is making clock controller out of the uart node > > directly. No need to add separate subnode just for clock controller. >=20 > This is already implemented in v7 patch series. Clock controller is > already outside of uart nodes. I mean to combine the uart node and the clock-controller node together uart-wrapper { reg =3D <0x12000 0x18>, <0x12200 0x30>; #clock-cells ... serial1 { ... }; serial2 { ... }; };