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=-15.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 3D1D9C433EF for ; Sun, 19 Sep 2021 21:51:26 +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 7C43E61041 for ; Sun, 19 Sep 2021 21:51:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7C43E61041 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org 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 7CD8983267; Sun, 19 Sep 2021 23:51:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="jDkdj6SR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 54D4A8324B; Sun, 19 Sep 2021 23:51:21 +0200 (CEST) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 3F61783276 for ; Sun, 19 Sep 2021 23:51:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd29.google.com with SMTP id j18so19432431ioj.8 for ; Sun, 19 Sep 2021 14:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=t/LNd+jC9SoUYx+M05uMK9fzUIUhSPWtPuuFB5u1RsI=; b=jDkdj6SRqTTH5wD99lwrk0Q5zXvKNCXeyM/R/OiFjblIRr6vCMgJ8fk9aU7CHXfLDb FRpxSlQ/xpgVdfCDE0wFKtrnGfpEwkfxVG0Nj9FWna40SO/c3W8u2ytflQ4OPelo9jHJ uwyEAbtn3iGVEoscAPrL/0CKwPFuTGkEfHFj4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=t/LNd+jC9SoUYx+M05uMK9fzUIUhSPWtPuuFB5u1RsI=; b=UzHB1WAiMBTNW3AznzKM628JYnigBBphaWqFLMtuMQb8vfQwbJBUlZF8UflY5ubicI BC3yWTSBkQOEdOxD8/E5birvG1SuP6595QT8xkNuZlqlKqRvaEGCvTSwzRwmMc9yXxeV TOjspxCcqQyeatVbeeIBCf2HdxFPzcIblHEn6Kye8XAPqdTN5QwrKjDtC1u/eo023uog ws5FZbZqH7lwTPbhmHBRdZzqtBZQUgl8kdj2mRYu3tHNINrbQ7XvO/xRrwghyLR8EUsj ZfFyBwu/IOrY/+FcEmE5masIedAFfojClS+0p6jsqiV2IgQ4JodZgOOXE8WL1DE259ND F4ZQ== X-Gm-Message-State: AOAM533rXMBCOpS+iZD+Dqb8y0zWdmgKKYXjqytYj5xF1OP+ueMsmtkb Fup/tExipDJvYoWsehBAm7BSYXVCY6rOdw== X-Google-Smtp-Source: ABdhPJxoVbYdq8Tbqxfdj9SsrZ+nz7dSKFyyEsViHyC0amPoaKi6vIf84wgp26yMXLrnN5Q04d5elA== X-Received: by 2002:a5d:8b17:: with SMTP id k23mr16535982ion.17.1632088275141; Sun, 19 Sep 2021 14:51:15 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id o5sm8017581ilk.88.2021.09.19.14.51.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 14:51:14 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Sean Anderson , Ilias Apalodimas , Tom Rini , Mark Kettenis , Simon Glass Subject: [PATCH v4 0/2] doc: Clarify how U-Boot makes use of devicetree Date: Sun, 19 Sep 2021 15:51:09 -0600 Message-Id: <20210919215111.3830278-1-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.464.g1972c5931b-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 This series includes a documentation update to clarify how U-Boot makes use of devicetree and its requirements when working with other firmware projects. Once agreed it should provide more clarity in this area, which seems to have devolved into a confusing mire recently. My goal here is to sort out this area one and for all, clearly documenting the use cases and implications of them. I hope that the end result of this (substantial) effort will be a shared understanding of how to move forward in U-Boot and hopefully some ideas for firmware in general. It also cleans up the config binding since this has got a bit out-of-date. Changes in v4: - Add a patch to refer to the /config binding from docs Changes in v3: - Clarify the 'bug' refered to at the top - Reword 'This means that there' paragraph to explain U-Boot-specific things - Move to doc/develop/devicetree now that OF_CONTROL is in the docs Changes in v2: - Fix typos per Sean (thank you!) and a few others - Add a 'Use of U-Boot /config node' section - Drop mention of dm-verity since that actually uses the kernel cmdline - Explain that OF_BOARD will still work after these changes (in 'Once this bug is fixed...' paragraph) - Expand a bit on the reason why the 'Current situation' is bad - Clarify in a second place that Linux and U-Boot use the same devicetree in 'To be clear, while U-Boot...' - Expand on why we should have rules for other projects in 'Devicetree in another project' - Add a comment as to why devicetree in U-Boot is not 'bad design' - Reword 'in-tree U-Boot devicetree' to 'devicetree source in U-Boot' - Rewrite 'Devicetree generated on-the-fly in another project' to cover points raised on v1 - Add 'Why does U-Boot have its nodes and properties?' - Add 'Why not have two devicetrees?' Simon Glass (2): doc: Add mention of the /config binding doc: Add documentation about devicetree usage doc/develop/config_binding.rst | 10 + doc/develop/devicetree/dt_update.rst | 569 +++++++++++++++++++++++++++ doc/develop/devicetree/index.rst | 1 + doc/develop/index.rst | 1 + 4 files changed, 581 insertions(+) create mode 100644 doc/develop/config_binding.rst create mode 100644 doc/develop/devicetree/dt_update.rst -- 2.33.0.464.g1972c5931b-goog