zephyr/dts/bindings
Ulf Magnusson c42873fbe7 dts: dtlib/edtlib: Add phandle and phandle+nums array types
Add two new type-checked property types 'phandles' and 'phandle-array'
to edtlib.

'phandles' is for pure lists of phandles, with no other data, like

    foo = < &bar &baz ... >

'phandle-array' is for lists of phandles and (possibly) numbers, like

    foo = < &bar 1 2 &baz 3 4 ... >

dt-schema also has the 'phandle-array' type.

Property.val (in edtlib) is set to an array of Device objects for the
'phandles' type.

For the 'phandle-array' type, no Property object is created. This type
is only used for type checking.

Also refactor how types that do not create a Property object
('phandle-array' and 'compound') are handled. Have _prop_val() return
None for them.

The new types are implemented with two new TYPE_PHANDLES and
TYPE_PHANDLES_AND_NUMS types at the dtlib level. There is also a new
Property.to_nodes() functions for fetching the Nodes for an array of
phandles, with type checking.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-09-07 10:25:02 -05:00
..
arc dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
arm dts/bindings: use const to validate #<FOO>-cells 2019-09-07 10:25:02 -05:00
audio dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
base dts/bindings: add several properties to base.yaml 2019-09-07 10:25:02 -05:00
bluetooth dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
can dts/bindings: add several properties to base.yaml 2019-09-07 10:25:02 -05:00
clock dts/bindings: use const to validate #<FOO>-cells 2019-09-07 10:25:02 -05:00
cpu dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
crypto dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
display dts/bindings: Fix ilitek,ili9340 reset-gpios property being required 2019-08-14 09:49:19 -05:00
espi dts: bindings: Clean up microchip,xec-espi.yaml and espi.yaml 2019-07-26 09:44:35 -04:00
ethernet dts/bindings: Fix build issues with bindings 2019-08-13 07:04:46 -05:00
flash_controller dts: bindings: Remove some YAML document separators 2019-07-23 04:08:16 -04:00
gpio dts/bindings: use const to validate #<FOO>-cells 2019-09-07 10:25:02 -05:00
i2c dts/bindings: add several properties to base.yaml 2019-09-07 10:25:02 -05:00
i2s dts/bindings: add several properties to base.yaml 2019-09-07 10:25:02 -05:00
ieee802154 dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
iio/adc dts/bindings: add '#cells' to nrf-saadc 2019-08-09 13:16:09 -05:00
interrupt-controller dts/bindings: use const to validate #<FOO>-cells 2019-09-07 10:25:02 -05:00
ipm dts/bindings: Cleanup st,stm32-ipm-mailbox binding 2019-07-26 10:37:19 -04:00
led dts/bindings: add several properties to base.yaml 2019-09-07 10:25:02 -05:00
led_strip dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
memory-controllers dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
mhu dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
misc dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
mmc dts: bindings: Remove some YAML document separators 2019-07-23 04:08:16 -04:00
mmu_mpu dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
modem drivers: modem: ublox-sara-r4: Support SARA-U2 modems, sense VINT 2019-08-10 00:03:39 +02:00
mtd dts/bindings: cleanup partition binding 2019-08-09 14:56:20 -05:00
phy dts/bindings: use const to validate #<FOO>-cells 2019-09-07 10:25:02 -05:00
pinctrl dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
power dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
pwm dts/bindings: use const to validate #<FOO>-cells 2019-09-07 10:25:02 -05:00
riscv dts/bindings: use const to validate #<FOO>-cells 2019-09-07 10:25:02 -05:00
rng dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
rtc dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
sensor dts/binding/sensor: Fix ST sensors irq-gpios property being required 2019-09-07 10:25:02 -05:00
serial serial: Add Xilinx ZynqMP PS uart driver 2019-08-09 22:50:50 +02:00
spi dts/bindings: add several properties to base.yaml 2019-09-07 10:25:02 -05:00
sram dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
timer timer: Add Xilinx ZynqMP PS ttc timer 2019-08-09 22:50:50 +02:00
usb dts: dtlib/edtlib: Add a syntax-based type-checking system 2019-08-13 07:41:45 -05:00
watchdog dts/bindings: Add the representation for Microchip's XEC watchdog timer 2019-09-07 09:56:58 -04:00
wifi dts: bindings: Remove unused 'version' field 2019-07-22 09:28:07 -04:00
binding-template.yaml dts: dtlib/edtlib: Add phandle and phandle+nums array types 2019-09-07 10:25:02 -05:00
vendor-prefixes.txt dts: Restructure xtensa dts directory 2019-06-27 07:21:11 -04:00