Hi David, On 4 March 2017 at 16:52, Simon Glass <sjg@xxxxxxxxxxxx> wrote: > > At present libfdt consists of only a C implementation. Many scripts are > written using Python so it useful to have Python bindings for libfdt. > Apparently this has never been attempted before, or if so I cannot find a > reference. > > This series starts the process of adding this support, with just a > bare-bones set of methods. > > The v8 series provides binding that can be used like this: > > fdt = libfdt.Fdt(open(fname).read()) > node = fdt.path_offset('/subnode@1') > print fdt.get_prop(node, 'compatible') > subnode = fdt.first_subnode(node, quiet=[libfdt.NOTFOUND]) > while subnode > 0: > print fdt.get_name(subnode) > subnode = fdt.next_subnode(subnode, quiet=[libfdt.NOTFOUND]) Just checking in to see how this looks now? I sent one v10 patch but the rest is as is. Let me know if you'd like me to send the whole thing again. Regards, Simon -- 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