linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 Create empty OF root 0/1] XRT Alveo driver infrastructure overview
@ 2022-02-16  5:00 Lizhi Hou
  2022-02-16  5:00 ` [PATCH V2 Create empty OF root 1/1] of: create empty of root Lizhi Hou
  0 siblings, 1 reply; 4+ messages in thread
From: Lizhi Hou @ 2022-02-16  5:00 UTC (permalink / raw)
  To: devicetree, robh
  Cc: Lizhi Hou, linux-kernel, yilun.xu, maxz, sonal.santan, yliu,
	michal.simek, stefanos, trix, mdf, dwmw2

Hello,

This patch is to create an empty device tree if there is not one. For the use
case that hardware like Xilinx Alveo PCIe accelerator uses flattened device
tree to describe apertures in its PCIe BARs, a base tree with nodes for the
device needs to be created if there is not one. Then the flattened device tree
overlay from the device can be applied to the base tree. Please refer the
previous discussions with device tree maintainer:
    https://lore.kernel.org/lkml/CAL_JsqJfyRymB=VxLuQqLpep+Q1Eie48dobv9sC5OizDz0d2DQ@mail.gmail.com/

This patch is the first step creates empty OF root node if the arch does not
have device tree created. I will post a follow on patch series to add PCIe
interface for the creation of device tree node for a PCIe device. This will
enable a PCIe device driver to apply an overlay under a PCIe device tree node.
Please refer previous discussions with FPGA maintainer:
    https://lore.kernel.org/lkml/20220105225013.1567871-1-lizhi.hou@xilinx.com/

We would like to use this infrastructure to describe and bind platform drivers
for HW IPs in Alveo PCIe accelerator device.

Lizhi Hou (1):
  of: create empty of root

 drivers/of/Kconfig         |  5 ++++
 drivers/of/Makefile        |  1 +
 drivers/of/of_empty_root.c | 51 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 57 insertions(+)
 create mode 100644 drivers/of/of_empty_root.c

-- 
2.27.0


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

end of thread, other threads:[~2022-05-18  5:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-16  5:00 [PATCH V2 Create empty OF root 0/1] XRT Alveo driver infrastructure overview Lizhi Hou
2022-02-16  5:00 ` [PATCH V2 Create empty OF root 1/1] of: create empty of root Lizhi Hou
2022-05-17  3:22   ` Frank Rowand
2022-05-18  5:02     ` Lizhi Hou

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).