devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] of: populate of_root node if not set
@ 2022-06-23 10:50 Clément Léger
  2022-06-23 10:50 ` [PATCH v1 1/2] of: base: " Clément Léger
  2022-06-23 10:50 ` [PATCH v1 2/2] of: unittest: remove check for of_root Clément Léger
  0 siblings, 2 replies; 7+ messages in thread
From: Clément Léger @ 2022-06-23 10:50 UTC (permalink / raw)
  To: Rob Herring, Frank Rowand
  Cc: Clément Léger, linux-kernel, devicetree, Lizhi Hou,
	Allan Nielsen, Horatiu Vultur, Steen Hegelund, Thomas Petazzoni

In order to apply overlays or create new nodes under the root node, the
kernel expects of_root to be set. On some system were a device-tree us
not provided by firmware (x86 for instance) if CONFIG_OF is enabled,
then we will end up with a null of_root. This series add support to
create this root node using a builtin dtb and remove the manual
creation of the root node done in unittests.c.

Clément Léger (2):
  of: base: populate of_root node if not set
  of: unittest: remove check for of_root

 drivers/of/Makefile       |  2 +-
 drivers/of/base.c         | 18 ++++++++++++++++--
 drivers/of/empty_root.dts |  6 ++++++
 drivers/of/unittest.c     | 10 ----------
 4 files changed, 23 insertions(+), 13 deletions(-)
 create mode 100644 drivers/of/empty_root.dts

-- 
2.36.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-24 12:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-23 10:50 [PATCH v1 0/2] of: populate of_root node if not set Clément Léger
2022-06-23 10:50 ` [PATCH v1 1/2] of: base: " Clément Léger
2022-06-23 23:15   ` Frank Rowand
2022-06-24  1:01     ` Frank Rowand
2022-06-24  3:52       ` Frank Rowand
2022-06-24 12:04     ` Clément Léger
2022-06-23 10:50 ` [PATCH v1 2/2] of: unittest: remove check for of_root Clément Léger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).