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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED118C433F5 for ; Mon, 11 Oct 2021 20:35:34 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 52B8B60273 for ; Mon, 11 Oct 2021 20:35:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 52B8B60273 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 894A5832CF; Mon, 11 Oct 2021 22:35:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="btbEYoyW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8D52783318; Mon, 11 Oct 2021 22:30:58 +0200 (CEST) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (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 D4B7883318 for ; Mon, 11 Oct 2021 22:30:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x735.google.com with SMTP id 77so16344100qkh.6 for ; Mon, 11 Oct 2021 13:30:52 -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=pXWyMa1v0VSk5ABrf2tviXUX0u8mwA6gVMiCSBytsDY=; b=btbEYoyWN2XwLl7RAQQe9Hws1Xkv77tnBeT7qV/drvhXTy5B0hvIQfWDayUrpa7JMb vYOtvC1ApBI+Ke/UmTDOv76Yc0nmi23ax/dCUL4SglzQLnQyGpqvcyPVFfjpakDT1+Ap xdqvskOX8HsvIl6zlMFgp4SXHrLpqrcdA21pU= 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=pXWyMa1v0VSk5ABrf2tviXUX0u8mwA6gVMiCSBytsDY=; b=K1Tu+D4D1ojHVwqUUnhxSWL9RTuhUrOISMzSXltgCwFuCck5/mAoiaatBtL1k2EtJG eWwE9xduA+AUTmwI0HPtVunOmiJYXTro22Mva5N9ghALMYDZNwM+1yuCzJzBhq6VR6iy WsjBqAmlKz9+8JEM9vKz4bOs42OXspZScg56O6Vf6OqFDyfXUVIaRG56kg5zHyddHIsG RNrAe0FEQbLPt+qdazIXWtddx06ofDETyTdsulEhoOaLBEkoGLwU9Vcs3a57LT6M7RlW qM2sWHEoFttbxYcetDBNNhkRPKEyWzYBh2SttkC7SQbkMJ1j6KVywFsNa9Wco/x4fG2s 07Qg== X-Gm-Message-State: AOAM532zVZm2q68PonCnbhjltEi0+RPTtYiYCfzBDvbcxcXONME8pdfi iinKLejTHeos3sLqhNoVzSDeuA== X-Google-Smtp-Source: ABdhPJzM/SVGwKrTTH2D8JhAw/ofPwZC2wSoGnqqDOIWzgeOwzgvCKtlBjNwjsbZRqQb7e6lC7gvhA== X-Received: by 2002:a37:b142:: with SMTP id a63mr16274436qkf.393.1633984251503; Mon, 11 Oct 2021 13:30:51 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-2c86-b4b1-e1e0-936c.res6.spectrum.com. [2603:6081:7b01:cbda:2c86:b4b1:e1e0:936c]) by smtp.gmail.com with ESMTPSA id m6sm5227276qti.38.2021.10.11.13.30.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 13:30:50 -0700 (PDT) Date: Mon, 11 Oct 2021 16:30:47 -0400 From: Tom Rini To: Simon Glass Cc: Rob Herring , Mark Kettenis , Mark Kettenis , U-Boot Mailing List , Bharat Gooty , Rayagonda Kokatanur , Andre Przywara , Jagan Teki , Fabio Estevam , Kever Yang , Priyanka Jain , Peter Robinson , Tim Harvey , Kostya Porotchkin , Heiko Schocher , Lokesh Vutla , Dario Binacchi , Bin Meng , Neil Armstrong , Han Nandor , Sean Anderson , Heinrich Schuchardt , Claudiu Manoil , Jean-Jacques Hiblot , Michael Walle , Patrick Delaunay , Joe Hershberger , "AKASHI, Takahiro" , =?iso-8859-1?Q?Fr=E9d=E9ric?= Danis , Wasim Khan , Alexandru Gagniuc , Pratyush Yadav , Steffen Jaeckel , Matthias Brugger , Nicolas Saenz Julienne , Asherah Connor , Oliver Graute , Anup Patel , Stephan Gerhold , Padmarao Begari , Kishon Vijay Abraham I , Tianrui Wei , Kunihiko Hayashi , Philippe Reynes , Ye Li , Stefan Roese , Weijie Gao , Michal Simek , Vabhav Sharma , Andy Shevchenko Subject: Re: [PATCH v2 6/7] arm: dts: apple: Add preliminary device trees Message-ID: <20211011203047.GP7964@bill-the-cat> References: <20211003183050.67925-1-kettenis@openbsd.org> <20211003183050.67925-7-kettenis@openbsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="F25dJIO4n7LGqrNz" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-Mailman-Approved-At: Mon, 11 Oct 2021 22:35:30 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --F25dJIO4n7LGqrNz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 11, 2021 at 02:00:56PM -0600, Simon Glass wrote: > Hi Rob, >=20 > On Mon, 11 Oct 2021 at 13:49, Rob Herring wrote: > > > > On Mon, Oct 11, 2021 at 2:00 PM Mark Kettenis = wrote: > > > > > > > From: Rob Herring > > > > Date: Mon, 11 Oct 2021 13:36:29 -0500 > > > > > > Hi Rob, > > > > > > > On Sun, Oct 3, 2021 at 1:35 PM Mark Kettenis = wrote: > > > > > > > > > > Add preliminary device trees for the Apple M1 mini (2020) and > > > > > Apple M1 Macbook Pro 13" (2020). Device tree bindings for > > > > > the Apple M1 SoC are still being formalized and these device > > > > > trees will be synchronized with the Linux kernel as needed. > > > > > > > > So not synchronized currently? If it is sync'ed, you should specify > > > > which version you got. > > > > > > Not synched at the moment. It is based on what was in 5.13 or 5.14, > > > but with lots of stuff added so specifying a version would be > > > misleading. It should be mostly aligned with the bindings that are > > > making their way into 5.15 or 5.16 though. > > > > This and what's added or preliminary would be good to have in the commi= t msg. > > > > > Hopefully now that the power domains are getting addressed we'll have > > > something that can be synchronized soon. I was explicitly encouraged > > > to start upstreaming the U-Boot code even though not all the DT > > > bindings had been sorted out. > > > > In general, sounds like a recipe for getting out of sync and bindings > > never getting documented properly without any checks in place. The > > good news is checking that is at least possible now. > > > > > > > These device trees are provided as a reference only as U-Boot > > > > > uses the device tree passed by the m1n1 bootloader. > > > > > > > > If reference only, why do they need to be checked in here? We're > > > > trying to get to fewer copies both of dtbs at runtime and dts files= in > > > > source trees. > > > > > > The U-Boot maintainers insist there is a DT for each supported system > > > in the U-Boot tree. > > > > Ok, fair enough. > > > > > > I mainly bring it up here because this is a platform with multiple = OS > > > > targets, following the model that DT comes from the firmware, and > > > > should be free of schema validation warnings. In other words, it's a > > > > good candidate to define best practices. > > > > > > You're preaching to the choir ;). > > > > Good. > > > > > Must admit that it is somewhat convenient for me to have a somewhat > > > complete DT for these devices at the moment. But in the long run I > > > think it will just confuse people. That said, I plan to be aggressive > > > in keeping the U-Boot tree synchronized with Linux. > > > > What I'd like to see here is some sort of automatic synchronization. > > The idea I have here is just a list of boards to sync from the kernel > > tree to wherever. The requirement to get on the list would be passing > > schema validation and would be a declaration of stability (there's > > been numerous discussions over the years of how to declare a DT stable > > or unstable). It would perhaps also include passing validation on an > > older schema. I'm not sure how well that would catch compatibility > > issues, but that's the only idea I've come up with besides just > > testing of mixed versions. I'm happy to do the tooling to support that > > if we have a board/device to put in the list and u-boot folks agree to > > use it. I suppose even if just m1n1 used it to start with, I'd be > > willing to do the tooling. >=20 > That sounds great to me. Yes m1n1 is a good first target since it is > new, but I'm pretty sure there are quite a few other SoCs that could > move over right away. >=20 > Ideally we would add it to U-Boot CI too, so that pull requests warn > or fail if something wrong is added. Of course it is probably a no-no > to make U-Boot CI due to comparisons with another tree over which we > have no control, but perhaps we can head in that direction. >=20 > +Tom Rini too as he has been looking at this. I guess the first priority is that so long as _everything_ is in sync, it doesn't super matter if we have an otherwise redundant copy of files in-tree. And we need to get our DTS files back in sync with upstream, which is the case for some platforms, and not others. But once we get that sorted out, we need to do more regular resyncs, and hopefully once DTS files have settled down, because they all pass validation and for example incorrect names get fixed, it will be less of an issue to more automatically resync DTS files, that are fully validated at least. --=20 Tom --F25dJIO4n7LGqrNz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFknvEACgkQFHw5/5Y0 tywwoAwAmqwR1/IOXDAqGU/Ei0ZidZf82YYar4L/lPfueeELRG/l/dobETiprVNF oFHCqq1SVkSiU2IWwKxvkZwDRbh3NVmalIvmCHUGieMjfTKLk5l7ZbLjCtZjHHls 61uV7q583W00LRPgwlUZoq4i7NpwGj8nk8QQeMNnmRZConTyww2IC08vXNcRw/q9 g6oAm2F6FMYbwFpcGlQx6Y7MTFqUa/gAZvNgr5h10Nj8aEId/18nko6VaBEs/0VJ siAv+S9m1Dr9WeqksTCVErC1HOeUCgJSy8eaJTG2/ULsLan1rQi9bVCcDg3WAvxo AeQo9a9e1I/2GUxSq1n7YlCmJVUBWONc3bnvF0dNbjKNws/h5/mF46dqe2pjOgoM XPYQ+nI09v01NMriv2pc/MM/d61AHtyUUp4pO9biNXw3M3eAsmeSE29kmrFB51q+ 4WGvgwS13zjA+/hk19tTzGF7hf+ZQnu5BzEdC8mLZACEHo5QUACKW9cVXQWmozgc 83+zRDzf =Covl -----END PGP SIGNATURE----- --F25dJIO4n7LGqrNz--