Message ID | 20220907022733.66423-14-sjg@chromium.org |
---|---|
State | Accepted |
Commit | 5ecba3ba40cebd5e4340f6fd422683bde773689c |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=beyetfs9; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MMmRw3qWBz1yj1 for <incoming@patchwork.ozlabs.org>; Wed, 7 Sep 2022 12:29:48 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 828DB84AC8; Wed, 7 Sep 2022 04:28:34 +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="beyetfs9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 596BD84AB2; Wed, 7 Sep 2022 04:28:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) (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 59BD984A7A for <u-boot@lists.denx.de>; Wed, 7 Sep 2022 04:28:11 +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-oa1-x36.google.com with SMTP id 586e51a60fabf-11eab59db71so32702314fac.11 for <u-boot@lists.denx.de>; Tue, 06 Sep 2022 19:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=+1msqKq/bOHYHceRvSPUlCym7TH2txcxUQp9ZlUejIg=; b=beyetfs9GRTT+yEf2rCAViGGez+wgqKhEXyn4uAJQT3kBSPBEFz/FkycEFlrl7lkp3 itE1V+Y7ungWBwb6T/jHo4N8Ma9MesRiHRKK5FXjKIAqMA8tZJ9ijNfZqyp/MWF8t72C MWFTv3KNPRDQvnJjoCN4LWEGDCCfEq+ZSkHCk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=+1msqKq/bOHYHceRvSPUlCym7TH2txcxUQp9ZlUejIg=; b=cyB4rNDvy2duVIhGSCC7nkLQlkiJ8bsWsZZ8k/L2dkv0RsWb0e8l++nWft7C3ya8Ku aVrQqHTyWuGvA52oqfKeGRqrBbCD0c/21xQYmP0hnxG9k+nCOR6WYGC2Y66l1AFGJUkz VQOxtWPQ8/Sv12lvjK335STwRurAEGg2VoiwbCalxptXYWvkFvoTicxPk1LIyoODMxnr Qc7EbUaCBpt2dbhHwfDBo3x1je+CKEWrgb9kwmHFU/+lhN8AGT7XFuSjVmirWYhVfzoF OAEvGk5pGGsTin1fPASs9u5mdRujfvIUoO+QGMyoxLoBsMtg6B47W+jINBdDK3AqYumw a3NA== X-Gm-Message-State: ACgBeo3ie57fgMG7GVdjjo6r0G+Sp7ynXNHXBsFf/Mu8L3clBHWQdpz7 DPhblCeJY1KFq8Ekzuktc1dDC0VkD6hb+A== X-Google-Smtp-Source: AA6agR6lIaKxxT1SrJAWulRirYCJ/gQQyocbxXDi83eI9DcoMNaiqLBdPYB71Eajr8iyZWeXOEagfg== X-Received: by 2002:a05:6871:98:b0:113:8f14:8f82 with SMTP id u24-20020a056871009800b001138f148f82mr694083oaa.54.1662517690617; Tue, 06 Sep 2022 19:28:10 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id b10-20020a05687051ca00b0011e73536301sm7605046oaj.52.2022.09.06.19.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 19:28:10 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Kishon Vijay Abraham I <kishon@ti.com>, Michal Simek <michal.simek@amd.com>, =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org>, Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>, Marek Vasut <marex@denx.de>, Pavel Herrmann <morpheus.ibis@gmail.com> Subject: [PATCH v2 13/45] dm: core: Document the livetree structures properly Date: Tue, 6 Sep 2022 20:27:01 -0600 Message-Id: <20220907022733.66423-14-sjg@chromium.org> X-Mailer: git-send-email 2.37.2.789.g6183377224-goog In-Reply-To: <20220907022733.66423-1-sjg@chromium.org> References: <20220907022733.66423-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: core: Support multiple device trees in ofnode
|
expand
|
diff --git a/include/dm/of.h b/include/dm/of.h index 9c9065b7932..fce7cef0ff6 100644 --- a/include/dm/of.h +++ b/include/dm/of.h @@ -31,10 +31,21 @@ struct property { /** * struct device_node: Device tree node * - * @name: Node name + * The top of this tree is typically gd->of_root which points to the root node. + * + * The head of the list of children for the root node (and any other node) is + * in @child, with @sibling providing a link to the next child. + * + * Each child has a pointer to its parent in @parent. + * + * A node may have properties in which case the head of the list of properties + * @properties pointers to the first one, with struct property->@next pointing + * to the next one. + * + * @name: Node name, "" for the root node * @type: Node type (value of device_type property) or "<NULL>" if none * @phandle: Phandle value of this none, or 0 if none - * @full_name: Full path to node, e.g. "/bus@1/spi@1100" + * @full_name: Full path to node, e.g. "/bus@1/spi@1100" ("/" for the root node) * @properties: Pointer to head of list of properties, or NULL if none * @parent: Pointer to parent node, or NULL if this is the root node * @child: Pointer to head of child node list, or NULL if no children
Clarify the data structure so it is easier for people to understand, particularly the corner cases. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) include/dm/of.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)