zephyr/scripts/dts/test-bindings
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
..
bar-bus.yaml scripts: dts: Change 'child/parent: bus: ...' to 'child/parent-bus:' 2019-09-17 14:37:43 -05:00
child-binding.yaml scripts: dts: Replace 'sub-node:' with more general 'child-binding:' 2019-09-19 08:39:22 -05:00
child.yaml scripts: edtlib: Add backwards compatibility for 'category:' 2019-09-07 10:25:02 -05:00
defaults.yaml dts: edtlib: Support giving missing properties a default value 2019-09-09 08:47:49 -05:00
deprecated-include.yaml scripts: edtlib: Add backwards compatibility for 'category:' 2019-09-07 10:25:02 -05:00
deprecated.yaml scripts: dts: Generalize '#cells' to allow multiple sources 2019-10-02 11:49:58 -07:00
device-on-bar-bus.yaml scripts: dts: Change 'child/parent: bus: ...' to 'child/parent-bus:' 2019-09-17 14:37:43 -05:00
device-on-foo-bus.yaml scripts: dts: Change 'child/parent: bus: ...' to 'child/parent-bus:' 2019-09-17 14:37:43 -05:00
false-positive.yaml scripts: dts: Generalize handling of phandle-array types 2019-09-26 15:30:23 -07:00
foo-bus.yaml scripts: dts: Change 'child/parent: bus: ...' to 'child/parent-bus:' 2019-09-17 14:37:43 -05:00
foo-optional.yaml scripts: edtlib: Make order irrelevant when including multiple files 2019-09-11 07:50:30 -05:00
foo-required.yaml scripts: edtlib: Make order irrelevant when including multiple files 2019-09-11 07:50:30 -05:00
gpio-dst.yaml scripts: dts: Generalize '#cells' to allow multiple sources 2019-10-02 11:49:58 -07:00
gpio-src.yaml scripts: dts: Generalize handling of phandle-array types 2019-09-26 15:30:23 -07:00
grandchild-1.yaml scripts: dts: Improve syntax and code for including binding files 2019-09-07 10:25:02 -05:00
grandchild-2.yaml scripts: dts: Improve syntax and code for including binding files 2019-09-07 10:25:02 -05:00
grandchild-3.yaml scripts: dts: Change 'child/parent: bus: ...' to 'child/parent-bus:' 2019-09-17 14:37:43 -05:00
interrupt-1-cell.yaml scripts: dts: Generalize '#cells' to allow multiple sources 2019-10-02 11:49:58 -07:00
interrupt-2-cell.yaml scripts: dts: Generalize '#cells' to allow multiple sources 2019-10-02 11:49:58 -07:00
interrupt-3-cell.yaml scripts: dts: Generalize '#cells' to allow multiple sources 2019-10-02 11:49:58 -07:00
multidir.yaml scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
order-1.yaml scripts: edtlib: Make order irrelevant when including multiple files 2019-09-11 07:50:30 -05:00
order-2.yaml scripts: edtlib: Make order irrelevant when including multiple files 2019-09-11 07:50:30 -05:00
parent.yaml scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
phandle-array-controller-1.yaml scripts: dts: Generalize '#cells' to allow multiple sources 2019-10-02 11:49:58 -07:00
phandle-array-controller-2.yaml scripts: dts: Generalize '#cells' to allow multiple sources 2019-10-02 11:49:58 -07:00
props.yaml scripts: dts: Generalize handling of phandle-array types 2019-09-26 15:30:23 -07:00