pydevicetree
pydevicetree copied to clipboard
Python Library for Parsing Devicetree Source v1
A few updates that allow this file to typecheck with mypy and the latest pyparsing: * Don't type check enable_packrat, since it has incorrect type annotations, which disallow None as...
Hi, Does it make sense to implement the "merge" method in the Node class based on the union of properties instead of concatenation of lists? This is the implementation that...
I used `ovmerge` from RPI to generate sorted dts, but **pyparser** throw exception on `#include` ``` Traceback (most recent call last): /// REMOVED /// dtsBaseObj = Devicetree.parseFile(baseFile, followIncludes=True) File "/home/USER/.local/lib/python3.9/site-packages/pydevicetree/ast/node.py",...
I got some problems parsing DTs of the current linux kernel. It turns out, they use the undocumented keywords. E.g `/omit-if-no-ref/`,`/bits/`. At least some of them are documented here: https://elinux.org/Device_Tree_Source_Undocumented...
Hi, how can I create a devicetree file (dts) programmaticaly? like ``` tree = Devicetree(()) tree.append(Node() ``` etc?? Thanks
I encountered multiple parsing errors because the `unit_address` is considered being a hex value. This will fail on e.g. the following type of nodes. node with a hex value but...