You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support to scripts/dts/gen_defines.py to generate device tree node label based defines. These should be of the form DT_NODELABEL_<node-label>_<FOO>
NOTE: We should only generate labels for node's at this time. So the label flash0_reg on a property should NOT generate a define. In the future if we need this we should call it DT_PROP_LABEL_...
The text was updated successfully, but these errors were encountered:
node labels should ideally get used rarely in the code, should be for true cases that DT_INST defines can't be used because you need to know the actual SoC/HW instance
If a label is used for SoC identification it should match the SoC Vendor documentation for that device.
I would strongly prefer DT_NODELABEL_ as the prefix rather than introduce what appear to be syntactic subelements within the namespace identifier.
galak
changed the title
Add support to device tree generation support for DT_NODE_LABEL_<node-label>_<FOO> generation
Add support to device tree generation support for DT_NODELABEL_<node-label>_<FOO> generation
Feb 13, 2020
Add support to scripts/dts/gen_defines.py to generate device tree node label based defines. These should be of the form
DT_NODELABEL_<node-label>_<FOO>
So for something like:
NOTE: We should only generate labels for node's at this time. So the label
flash0_reg
on a property should NOT generate a define. In the future if we need this we should call itDT_PROP_LABEL_...
The text was updated successfully, but these errors were encountered: