Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 11D45C433F5 for ; Fri, 29 Apr 2022 15:26:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2125D83989; Fri, 29 Apr 2022 17:26:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id CAC6383A9F; Fri, 29 Apr 2022 17:25:58 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 9873E8393F for ; Fri, 29 Apr 2022 17:25:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andre.przywara@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EC5DB1063; Fri, 29 Apr 2022 08:25:54 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1CE8A3F774; Fri, 29 Apr 2022 08:25:54 -0700 (PDT) Date: Fri, 29 Apr 2022 16:25:51 +0100 From: Andre Przywara To: Tom Rini Cc: Samuel Holland , u-boot@lists.denx.de, Jagan Teki , Simon Glass Subject: Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1 Message-ID: <20220429162551.044166f7@donnerap.cambridge.arm.com> In-Reply-To: <20220429145710.GU1182808@bill-the-cat> References: <20220427203132.47271-1-samuel@sholland.org> <20220429155159.07799199@donnerap.cambridge.arm.com> <20220429145710.GU1182808@bill-the-cat> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Fri, 29 Apr 2022 10:57:10 -0400 Tom Rini wrote: Hi, > On Fri, Apr 29, 2022 at 03:51:59PM +0100, Andre Przywara wrote: > > On Wed, 27 Apr 2022 15:31:19 -0500 > > Samuel Holland wrote: > > > > Hi Samuel, Tom, > > > > > This series brings all of our devicetrees up to date with Linux. > > > > > > Older SoCs (before A83T) have not been synchronized in over 3 years. > > > And I don't have any of this hardware to test. But there are not major > > > changes to those devicetrees either. > > > > > > The big motivation for including older SoCs in this update is converting > > > the USB PHY driver to get its VBUS detection GPIO/regulator from the > > > devicetree instead of from a pin name in Kconfig. Many older boards had > > > those properties added or fixed since the last devicetree sync. This PHY > > > driver change is necessary to complete the DM_GPIO migration. > > > > > > A couple of breaking changes were made to several SoCs' devicetrees in > > > Linux relating to the "r_intc" interrupt controller. New kernels support > > > old devicetrees, but not the other way around. So to be most compatible > > > and avoid regressions, those changes are skipped here. > > > > Many thanks for considering this! I just skimmed over the A64 and H6 > > patches, and this is indeed the only difference. > > > > But while I love this pragmatic approach, and would be happy to take this, > > this goes against our own rules, and more importantly against Tom's one's: > > to take only direct DT file copies from the kernel tree. > > > > Tom, can you give your opinion here? As Samuel mentioned above, the > > current mainline DTs wouldn't boot on older kernels (the changes affect > > critical devices), so this spoils stable distro and installer kernels, > > when using $fdtcontroladdr, for instance when booting via UEFI. > > > > As a side effect of always defining SYS_SOC to "sunxi", we cannot easily > > use per-SoC DT overrides using sun50i-a64-u-boot.dtsi, for instance. > > > > For context, those changed properties were in the mainline kernel tree at > > some point, but have been amended since. So it's not some random change. > > So, this is I guess a bit annoying. But, we aren't at the point where > the common use case is the downstream OS using the DTB we've loaded and > are using, are we? I mean, we can't be, as ours are so far out of date, > so this will only be an option when we use a recent DT ourself. So we > should be able to sync in the changes and update our code, as they can't > be using $fdtcontroladdr in this case, right? Or am I missing the use > case that's in the wild atm? Thanks! While it sounds like the DTs are wildly out of date, this mostly affects secondary functionality. The mainline updates for the 64-bit SoCs are: - H6: adding the VP9 video h/w codec and an additional wakeup timer - A64: adding GPU DVFS, adding DRAM DVFS, add support for secondary digital audio interfaces, plus the wakeup timer Also there are cosmetic changes, like changing node names to make them binding compliant. So those DT updates are really only important for mobile devices like the Pinephone, which probably don't use UEFI booting. At the moment I boot distro grubs and installers just fine, and without losing any real functionality (minus suspend/resume, maybe). The out-of-the-box default boot works now, and would break when pulling in the pure mainline DTs. Plus FreeBSD (which relies more heavily on UEFI, IIUC), can only deal with the older DTs (#interrupt-cells for r_intc must be 2). Cheers, Andre