From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E6B6C10F0E for ; Tue, 9 Apr 2019 11:48:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 055D720883 for ; Tue, 9 Apr 2019 11:48:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hMIibAU5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 055D720883 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Cc:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Eo7XHRedIeQtc9iBygK94i3c+KHoaXSxmIcYVQEvhHk=; b=hMIibAU5Xiffgio++c7MCvkUh GW1DMam1zBFYzIK1SUW6yaKcygr2h/wfMs/+0HQ6TvQpJfgT6SRyZFM8wTRqrzjHVovcB6TQnkALE ev5D+yIYnQ09Jv4pyg+71IlS/f0aEr8PrK3yq10Jot/9Qe3JMCOF4TK1ZYqy0YAdzItsDchHjVUdq Rr+6jnKKXEOJKXRFtbuNp58xo5TgFsAQK2CRkdGfA4FSXqBZUR8X0xpivtslOtq2QQf2GpPaglZXy OFLTO7G9e367PCc3uv6ICdsKiTwoMjm1DaxcE68xftSlgnAJ0wDqVFgu6XWm3Fto9gwDMl1bbM9sA KE2oX7vyg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDpEc-00070p-BK; Tue, 09 Apr 2019 11:48:14 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDpEY-00070V-Jc for linux-arm-kernel@lists.infradead.org; Tue, 09 Apr 2019 11:48:12 +0000 X-Originating-IP: 90.88.30.125 Received: from localhost (aaubervilliers-681-1-89-125.w90-88.abo.wanadoo.fr [90.88.30.125]) (Authenticated sender: maxime.ripard@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id DF06560006; Tue, 9 Apr 2019 11:47:56 +0000 (UTC) Date: Tue, 9 Apr 2019 13:47:56 +0200 From: Maxime Ripard To: Jagan Teki , linux-sunxi , Chen-Yu Tsai , Rob Herring , Linus Walleij , David Airlie , Daniel Vetter , Mark Rutland , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Maxime Coquelin , Arend van Spriel , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , Kalle Valo , Naveen Gupta , dri-devel , devicetree , linux-arm-kernel , linux-kernel , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, linux-gpio@vger.kernel.org Subject: Re: [linux-sunxi] [PATCH v2 02/13] arm64: dts: allwinner: h6: Add Orange Pi 3 DTS Message-ID: <20190409114756.v6v33nsdtiitglee@flea> References: <20190409002452.14551-1-megous@megous.com> <20190409002452.14551-3-megous@megous.com> <20190409113157.e4vrzesbgmyslomb@core.my.home> MIME-Version: 1.0 In-Reply-To: <20190409113157.e4vrzesbgmyslomb@core.my.home> User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190409_044810_947976_5638C0E0 X-CRM114-Status: GOOD ( 25.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============9011553515925349315==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============9011553515925349315== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aa6vze47q2e2azio" Content-Disposition: inline --aa6vze47q2e2azio Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 09, 2019 at 01:31:57PM +0200, Ond=C5=99ej Jirman wrote: > Hi Jagan, > > On Tue, Apr 09, 2019 at 02:08:18PM +0530, Jagan Teki wrote: > > Based on the conversation about using common dtsi from this thread[1], > > I'm commenting here to make show the diff directly on the nodes, > > giving comments on each node so-that we can see the diff globally. > > Thanks for the suggestions below. It mostly repeats the differences and > commonalities I already stated in the previous discussion. > > I don't have much to add to what I already said previously, though, becau= se you > didn't address my concerns there. But I can restate and expand on those > concerns. > > Previously I already agreed it's possible to base orangepi-3.dts on > orangepi.dtsi, and proposed a maintainable way forward, and why to follow= it (to > quote myself): > > Schematics allow for high amount of variability in the power tree (see = all the > NC (not connected) / 0R resistors) in the schematic around AXP805. Ever= y board > based on this Xunlong design can be subtly different. > > I already suggested a maintainable solution, below. Where base dtsi has= empty > config for regulators and every board based on that just defines it com= pletely > for itself. > > A few regulators (for CPU/GPU) will most probably have the same meaning= on > every derived board, so these can probably be kept in dtsi without caus= ing too > much annoyance. > > It's unpleasant to have wrong regulator setup defined in an underlying = dtsi, > and then trying to override it by removing/adding random properties in = the > board dts for the new boards based on that, so that it fits. > > The rest of the current HW descriptions in the sun50i-h6-orangepi.dtsi = can be > shared (as of now). > > My suggestion was this: > > So to base Orange Pi 3 dts on top of existing sun50i-h6-orangepi.dtsi I= 'd have > to first move some things out of the base dtsi to the OrangePi Lite2 an= d One > Plus board dts files, in order to have sun50i-h6-orangepi.dtsi only des= cribe > HW that is *really* shared by these 2 boards and Orange Pi 3. > > If I do that, I'd undefine all the axp805 regulator nodes and move the > configurations to each of the 3 board files. That will probably end up = being > the least confusing and most maintainable. See axp81x.dtsi lines 86-144= for > what I mean. > > You seem to be suggesting a solution where every time we add an OrangePi = H6 > based board, the person adding it will have to go through the base dtsi a= nd all > the other boards based on it, status disable or otherwise change regulato= rs in > the base dtsi, patch all the other boards to re-enable it. > > It would be already unpleasant just adding a third board based on this ap= proach. > And when the fourth board is added, with another small differences in the > regulator use/meanings, the person will be looking at patching 4 dts files > + adding one for his own board. For what benefit, to save some bytes righ= t now? > > I think maintainability, ease of adding new boards is more important, than > having a dtsi that tries to maximally cover all the commonalities between= the > existing boards right now, without regards for the future. That's why > I suggested an approach like in axp81x.dtsi lines 86-144. I agree. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --aa6vze47q2e2azio Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXKyGbAAKCRDj7w1vZxhR xZTAAQCOzqr6NWU8ZLOC72DWyNDWvVDoMHEH5977Yq/x03pA3wEAwsPhQ1kQG3mb mRjfuU5xD+jCyn066cuvMBk6bRHgQgA= =ef/T -----END PGP SIGNATURE----- --aa6vze47q2e2azio-- --===============9011553515925349315== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============9011553515925349315==--