"README.md" did not exist on "d01711fdf9866e6c2cf658b7412501fe63866cb2"
- Sep 15, 2017
-
-
Tien Fong Chee authored
Report Coverity log: The code uses a variable that has not been initialized, leading to unpredictable or unintended results. Reported-by: Coverity (CID: 60519) Signed-off-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
Simon Glass authored
Add upstream changes to U-Boot: - new pylibfdt functions - fdt_setprop_placeholder() Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 12, 2017
-
-
Simon Glass authored
Adjust this code so that it can work with Python 2 and 3. Fixes: d73fcb12 (moveconfig: Support building a simple config database) Reported-by:
Chris Packham <judge.packham@gmail.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jul 10, 2017
-
-
Simon Glass authored
This error code has not been upstreamed and is not really needed since it is unlikely to be triggered. Drop it to maintain compatability with upstream. Reported-by:
Peter Robinson <pbrobinson@gmail.com> Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Peter Robinson <pbrobinson@gmail.com>
-
- Jun 02, 2017
-
-
Simon Glass authored
This is no-longer needed, so stop building it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Now that this module has been accepted upstream we should stop using the local U-Boot one. In preparation for this, rename it to indicate it is for legacy use. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
U-Boot needs to provide some swig include directories. Add this feature. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These header files are actually part of libfdt. Move them there to make it easier to build pylibfdt and easier to merge changes from upstream. Update the license header to use SPDX at the same time. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
An early version of this is available upstream. Bring it in as a starting point. This is from dtc upstream commit e56f2b0. Future work will plumb it into dtoc and remove the now-unnecessary local libraries. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Apr 13, 2017
-
-
Simon Glass authored
With skeleton.dtsi being dropped it is more likely that the /aliases node will be last in the device tree. Update fdtgrep to handle this. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
- Apr 10, 2017
-
-
Stefan Agner authored
For some reason Python 3 seems to think it does not need to build the library. Using the --force parameter makes sure that the library gets built always. This is especially important since we move the library in the next step of the Makefile, hence forcing a rebuild every time the higher level Makefile triggers a rebuild is required to make sure the library is always there. Signed-off-by:
Stefan Agner <stefan.agner@toradex.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This a few minor changes down from upstream since the last sync. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jan 14, 2017
-
-
David Gibson authored
The fdt_overlay_apply() function purports to support the edge cases where an overlay has no fixups to be applied, or a base tree which has no symbols (the latter can only work if the former is also true). However it gets it wrong in a couple of small ways: * In the no fixups case, it doesn't fail immediately, but will attempt fdt_for_each_property_offset() giving -FDT_ERR_NOTFOUND as the node offset, which will fail. Instead it should succeed immediately, since there's nothing to do. * In the case of no symbols, it again doesn't fail immediately. However if there is an actual fixup it will fail with an unexpected error, because -FDT_ERR_NOTFOUND is passed to fdt_getprop() when attempting to look up the symbols. We should instead return -FDT_ERR_NOTFOUND directly. Both of these errors lead to the code returning misleading error codes in failing cases. [ DTC commit: 7d8ef6e1db9794f72805a0855f4f7f12fadd03d3 ] Signed-off-by:
David Gibson <david@gibson.dropbear.id.au> Signed-off-by:
Stefan Agner <stefan.agner@toradex.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Oct 24, 2016
-
-
Masahiro Yamada authored
If fdt_getprop() fails, negative error code should be returned. [ DTC commit: daa75e8fa5942caa8e97931aed3a1ee0b7edd74b ] Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by:
David Gibson <david@gibson.dropbear.id.au>
-
Masahiro Yamada authored
If fdt_getprop() fails, negative error code should be returned. [ DTC commit: e28eff5b787adb3f461d1653598818b2f1f25a73 ] Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by:
David Gibson <david@gibson.dropbear.id.au>
-
- Oct 23, 2016
-
-
Maxime Ripard authored
Now that the overlay code has been merge upstream, update our copy to what's been merged, since a significant number of issues have been fixed during the merge process. Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Oct 13, 2016
-
-
Simon Glass authored
The fdt_path_offset() function is not inlined in upstream libfdt. Adjust U-Boot's version to match. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The signature for this macro has changed. Bring in the upstream version and adjust U-Boot's usages to suit. Signed-off-by:
Simon Glass <sjg@chromium.org> Update to drivers/power/pmic/palmas.c: Signed-off-by:
Keerthy <j-keerthy@ti.com> Change-Id: I6cc9021339bfe686f9df21d61a1095ca2b3776e8
-
Simon Glass authored
These have now landed upstream. The naming is different and in one case the function signature has changed. Update the code to match. This applies the following upstream commits by Thierry Reding <treding@nvidia.com> : 604e61e fdt: Add functions to retrieve strings 8702bd1 fdt: Add a function to get the index of a string 2218387 fdt: Add a function to count strings Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This includes small changes to the following functions, from upstream commit 6d1832c: - fdt_get_max_phandle() (upstream commit 84e0e134) - fdt_node_check_compatible (upstream commit 53bf130b) - fdt_setprop_inplace_namelen_partial() to remove useless brackets and use idx instead of index - _fdt_resize_property() to use idx instead of index - _fdt_splice() (upstream commit d4c7c25c) It also includes various typo fixes in libfdt.h Signed-off-by:
Simon Glass <sjg@chromium.org>
-
David Gibson authored
Using pointer arithmetic to generate a pointer outside a known object is, technically, undefined behaviour in C. Unfortunately, we were using that in fdt_offset_ptr() to detect overflows. To fix this we need to do our bounds / overflow checking on the offsets before constructing pointers from them. Reported-by:
David Binderman <dcb314@hotmail.com> Signed-off-by:
David Gibson <david@gibson.dropbear.id.au> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 23, 2016
-
-
Masahiro Yamada authored
The variable "err" is unneeded. [ Device Tree Compiler commit: 36fd7331fb11276c09a6affc0d8cd4977f2fe100 ] Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by:
David Gibson <david@gibson.dropbear.id.au> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Sep 19, 2016
-
-
Simon Glass authored
Add a way to find the byte offset of a property within the device tree. This is only supported with the normal libfdt implementation since fdtget does not provide this information. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
After any node/property deletion the device tree can be packed to remove spare space. Add a way to perform this operation. Note that for fdt_fallback, fdtput automatically packs the device tree after deletion, so no action is required here. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add support for deleting a device tree property. With the fallback implementation this uses fdtput. With libfdt it uses the API call and updates the offsets afterwards. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Since we want to be able to change the in-memory device tree using libfdt, use a bytearray instead of a string. This makes interfacing from Python easier. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Aug 20, 2016
-
-
Maxime Ripard authored
This adds a bunch of unit tests for the "fdt apply" command. They've all been run successfully in the sandbox. However, as you still require an out-of-tree dtc with overlay support, this is disabled by default. Acked-by:
Simon Glass <sjg@chromium.org> Acked-by:
Pantelis Antoniou <pantelis.antoniou@konsulko.com> Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com>
-
Maxime Ripard authored
The device tree overlays are a good way to deal with user-modifyable boards or boards with some kind of an expansion mechanism where we can easily plug new board in (like the BBB or the raspberry pi). However, so far, the usual mechanism to deal with it was to have in Linux some driver detecting the expansion boards plugged in and then request these overlays using the firmware interface. That works in most cases, but in some cases, you might want to have the overlays applied before the userspace comes in. Either because the new board requires some kind of an early initialization, or because your root filesystem is accessed through that expansion board. The easiest solution in such a case is to simply have the component before Linux applying that overlay, removing all these drawbacks. Reviewed-by:
Stefan Agner <stefan@agner.ch> Acked-by:
Pantelis Antoniou <pantelis.antoniou@konsulko.com> Acked-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com>
-
Maxime Ripard authored
The device tree overlays are a good way to deal with user-modifyable boards or boards with some kind of an expansion mechanism where we can easily plug new board in (like the BBB, the Raspberry Pi or the CHIP). Add a new function to merge overlays with a base device tree. Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com>
-
Maxime Ripard authored
Add a function to modify inplace only a portion of a property.. This is especially useful when the property is an array of values, and you want to update one of them without changing the DT size. Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Maxime Ripard authored
Add a namelen variant of fdt_path_offset to retrieve the node offset using only a fixed number of characters. Reviewed-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com>
-
Maxime Ripard authored
The function fdt_path_next_seperator had an obvious mispell. Fix it. Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com>
-
Maxime Ripard authored
Add a function to retrieve the highest phandle in a given device tree. Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by:
Stefan Agner <stefan@agner.ch> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Jul 15, 2016
-
-
Simon Glass authored
Add a Python version of the libfdt library which contains enough features to support the dtoc tool. This is only a very bare-bones implementation. It requires the 'swig' to build. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jun 19, 2016
-
-
Robert P. J. Day authored
A number of style fixes across the files in this directory, including: * Correct invalid kernel-doc content. * Tidy up massive comment in fdt_region.c. * Use correct spelling of "U-Boot". * Replace tests of "! <var>" with "!<var>". * Replace "libfdt_env.h" with <libfdt_env.h>. Signed-off-by:
Robert P. J. Day <rpjday@crashcourse.ca> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Mar 14, 2016
-
-
Simon Glass authored
The existing function to add a new property to a tree being built requires that the entire contents of the new property be passed in. For some applications it is more convenient to be able to add the property contents later, perhaps by reading from a file. This avoids double-buffering of the contents. Add a new function to support this and adust the existing fdt_property() to use it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Nov 04, 2015
-
-
Simon Glass authored
At present the last four bytes of the alias region are dropped in the case where the last alias is included. This results in a corrupted device tree. Fix this. Signed-off-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Jul 21, 2015
-
-
Simon Glass authored
These have been sent upstream but not accepted to libfdt. For now, bring these into U-Boot to enable fdtgrep to operate. We will use fdtgrep to cut device tree files down for SPL. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Property names are stored in a string table. When a node property is removed, the string table is not updated since other nodes may have a property with the same name. Thus it is possible for the string table to build up a number of unused strings. Add a function to remove these. This works by building a new device tree from the old one, adding strings one by one as needed. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jul 20, 2015
-
-
Masahiro Yamada authored
Currently, this function returns a positive value on error, so we never know whether this function has succeeded or failed. For example, if the given property is not found, fdt_getprop() returns -FDT_ERR_NOTFOUND, and then this function inverts it, i.e., returns FDT_ERR_NOTFOUND (=1). Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Fixes: bc4147ab ("fdt: Add a function to count strings") Acked-by:
Simon Glass <sjg@chromium.org>
-