Re: [PATCH] libfdt: fdt_address_cells() and fdt_size_cells()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





On 18/07/18 15:20, Rob Herring wrote:
On Wed, Jul 18, 2018 at 4:50 AM Sebastian Huber
<sebastian.huber@xxxxxxxxxxxxxxxxxx> wrote:
Make the default cells compatible with Linux
(OF_ROOT_NODE_ADDR_CELLS_DEFAULT and OF_ROOT_NODE_SIZE_CELLS_DEFAULT)
which is one cell (except on SPARC, here the default address cells are
two).
The kernel supports a default to avoid breaking old DTs (or perhaps
just OpenFirmware based platforms) which didn't set them. dtc will
throw a warning or error if they are not set. So what platform do we
need to support this on with libfdt?

These two functions had already a default value (2), however, it was different to the default values chosen by the Linux kernel. This makes no sense from my point of view since Linux is probably the largest consumer of device trees.

It is good that the dtc issues warnings and errors in case of malformed device tree sources. However, the libfdt should be able to deal with all sorts of already existing device trees. I would like to use these functions for the real-time operating system RTEMS.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@xxxxxxxxxxxxxxxxxx
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux