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 58B2BC433F5 for ; Fri, 29 Apr 2022 15:31:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3D5FD83A9F; Fri, 29 Apr 2022 17:31:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="O09EBbZG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4653E83989; Fri, 29 Apr 2022 17:31:08 +0200 (CEST) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 165CE83EF5 for ; Fri, 29 Apr 2022 17:31:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x734.google.com with SMTP id 126so5198138qkm.4 for ; Fri, 29 Apr 2022 08:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=JkZfTqOy42pPkfPO9gtQf30nGctkNpOS+sBmLNYcfnk=; b=O09EBbZGMzRlfcmG+7jW3i+12aK5KRspoBvxShtNHW9YTZYgPYi3qPOX3gr83b94HL ir3JEQ/obJ6TDbJDxGGqKtWW0bKnTrkln0jJxEnGzw08dwBERvDq79hYykA7sFCpPuit 6f8cHc8hHV/y91YBGjyebZgUjRVpgMD4kyYj8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JkZfTqOy42pPkfPO9gtQf30nGctkNpOS+sBmLNYcfnk=; b=gZIA1F5PaP6EmXUukgqn6bQC7TBzOHDF1dwnN5hHIQpPnd5ZTm1HL1u5TSZcMLCaZ6 TpLyz3xOaAd4fx6zMAmxv5+V0Ji37ZbrebXfaBd7M+hCwYRu4p/4khr5YkXsN5lJ78uj yLpxQcv6X0h8+CY6p9NDh1oRwh3s2I2j1Y5JpL0dKxqZyeJczCJu5GinRzIbOTnSEb0v UCTvgUWfd+XQtXvAM/wGdFUivfJvjPmS+y51BoQniEwq21nF/gcHo94YGpyUN6Tcd/xt DS+QTNXwt9pBGrN06o6GiwxdGljjQwYVBvpYKeTYq9uFXFQtjTbf2s3rnCvkNMiDviTd 0u1Q== X-Gm-Message-State: AOAM5329KrRJBDtQavvMPnACuW0OYiD2ATomCrUXwY6CGg/yNdzVNqdm ChSZzwZEiEzE5Tjq02HHR4nnug== X-Google-Smtp-Source: ABdhPJydZbRaIQ8YD9KCoWBZjmBrKKAn9xkuuxVvoZlJRummrxWNmTtNz/udPyF5t+GHHeq6SpwETw== X-Received: by 2002:ae9:e887:0:b0:69f:9a9d:aa04 with SMTP id a129-20020ae9e887000000b0069f9a9daa04mr7597271qkg.31.1651246263796; Fri, 29 Apr 2022 08:31:03 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-4500-a827-6dbc-a8e1-e6af.res6.spectrum.com. [2603:6081:7b01:4500:a827:6dbc:a8e1:e6af]) by smtp.gmail.com with ESMTPSA id n22-20020ac85b56000000b002f1d7a2867dsm1938927qtw.67.2022.04.29.08.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 08:31:02 -0700 (PDT) Date: Fri, 29 Apr 2022 11:31:00 -0400 From: Tom Rini To: Andre Przywara , Rob Herring 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: <20220429153100.GV1182808@bill-the-cat> References: <20220427203132.47271-1-samuel@sholland.org> <20220429155159.07799199@donnerap.cambridge.arm.com> <20220429145710.GU1182808@bill-the-cat> <20220429162551.044166f7@donnerap.cambridge.arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ptMYGWplstB9CqWP" Content-Disposition: inline In-Reply-To: <20220429162551.044166f7@donnerap.cambridge.arm.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --ptMYGWplstB9CqWP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 29, 2022 at 04:25:51PM +0100, Andre Przywara wrote: > On Fri, 29 Apr 2022 10:57:10 -0400 > Tom Rini wrote: >=20 > Hi, >=20 > > 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: > > >=20 > > > Hi Samuel, Tom, > > > =20 > > > > This series brings all of our devicetrees up to date with Linux. > > > >=20 > > > > 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 ma= jor > > > > changes to those devicetrees either. > > > >=20 > > > > The big motivation for including older SoCs in this update is conve= rting > > > > 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. Thi= s PHY > > > > driver change is necessary to complete the DM_GPIO migration. > > > >=20 > > > > A couple of breaking changes were made to several SoCs' devicetrees= in > > > > Linux relating to the "r_intc" interrupt controller. New kernels su= pport > > > > old devicetrees, but not the other way around. So to be most compat= ible > > > > and avoid regressions, those changes are skipped here. =20 > > >=20 > > > Many thanks for considering this! I just skimmed over the A64 and H6 > > > patches, and this is indeed the only difference. > > >=20 > > > 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 o= ne's: > > > to take only direct DT file copies from the kernel tree. > > >=20 > > > Tom, can you give your opinion here? As Samuel mentioned above, the > > > current mainline DTs wouldn't boot on older kernels (the changes affe= ct > > > critical devices), so this spoils stable distro and installer kernels, > > > when using $fdtcontroladdr, for instance when booting via UEFI. > > >=20 > > > As a side effect of always defining SYS_SOC to "sunxi", we cannot eas= ily > > > use per-SoC DT overrides using sun50i-a64-u-boot.dtsi, for instance. > > >=20 > > > For context, those changed properties were in the mainline kernel tre= e at > > > some point, but have been amended since. So it's not some random chan= ge. =20 > >=20 > > 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! >=20 > 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. >=20 > 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). I guess the first point is, yes, we should sync in what we can sync in, to bring things closer to proper alignment. I further guess that given that we have to support both "new Linux" and "not Linux", we have to keep the old style DT information instead as that's how compatibility is supposed to be handled? I'm adding in Rob here since this still reads a bit confusing as to what's supposed to happen, but maybe we also just need to check in with some other-OS folks to see what their plan is? --=20 Tom --ptMYGWplstB9CqWP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJsBKkACgkQFHw5/5Y0 tyw3igwAjSx16cZfVuBWp3zkzzv0CGwX/C/TlJvhbnS4FZf8NG2p9Cj4CKM2+zdj sNqnKuUl0AwO1oDi65+wqR92p9RZgxUS24W3vZ0CkxIF6+q6tvoX2Lir+bZTdQ1o A+3Rkue7nrCbaYMCN0qHllbKtjR+y+hhubRV43tmUyU6QhwxDEEcvk7ars9JDjUj E/MrI/KKBGqGldGtmsmlJgxPSP6q8lDFmH9BaE3MUtSHQifOwacQMjBxpdcTgzdL n+/msn9BVuKwVWTOe94RovMTJZo+4b9KVxK+e4SH9e5XqdlDsmPfylki1tUvv47e aHakOSFzkxlZzBOfwKnIqgmuPDO5Mg7DbkFDS2y2Fshke9sZ3ArzoGupcF/3GPwy BPc2/XmFObVFipRwH4vzkXo9GLTiNIEm0ekNUAHhkX7AEeouv/xPK/BLuSsvEeIX u4YXjLZe2gcSEJt/NgoCYoebtOaAUIc3yFPWpfaPlUpZK7/U6VQuA6i2UmmvePDL RWXFDFAW =n6lO -----END PGP SIGNATURE----- --ptMYGWplstB9CqWP--