zephyr/scripts/dts/extract
Ulf Magnusson 567c348167 scripts: dts: Generalize '#cells' to allow multiple sources
Implement a nice generalization suggested by Bobby Noelte.

Instead of having a generic #cells key in bindings, have source-specific
*-cells keys. Some examples:

    interrupt-cells:
        - irq
        - priority
        - flags

    gpio-cells:
        - pin
        - flags

    pwm-cells:
        - channel
        - period

This makes bindings a bit easier to read, and allows a node to be a
controller for many different 'phandle-array' properties.

The prefix before *-cells is derived from the property name, meaning
there's no fixed set of *-cells keys. This is possible because of the
earlier 'phandle-array' generalization.

The older #cells key is supported for backwards compatibility, but
generates a deprecation warning.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-10-02 11:49:58 -07:00
..
__init__.py
clocks.py scripts: dts: Generalize '#cells' to allow multiple sources 2019-10-02 11:49:58 -07:00
compatible.py dts: Make instance defines consistent 2019-07-30 17:10:31 -05:00
default.py scripts: dts: Fix misc. pylint warnings in old scripts 2019-09-07 10:25:02 -05:00
directive.py scripts/dts: Add deprecation comments to old scripts 2019-07-29 16:22:17 -04:00
flash.py scripts: dts: Fix misc. pylint warnings in old scripts 2019-09-07 10:25:02 -05:00
globals.py scripts: dts: Generalize '#cells' to allow multiple sources 2019-10-02 11:49:58 -07:00
interrupts.py scripts: dts: Generalize '#cells' to allow multiple sources 2019-10-02 11:49:58 -07:00
reg.py scripts: dts: Replace bare 'except's in old scripts 2019-09-07 10:25:02 -05:00