mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 13:12:55 +00:00
Add binding support for a 'path' property type, for properties that are assigned node paths. Usually, paths are assigned with path references like 'foo = &label' (common in /chosen), but plain strings are accepted as well as long as they're valid paths. The 'path' type is mostly for completeness at this point, but might be useful for https://github.com/zephyrproject-rtos/zephyr/issues/21623. The support is there already in dtlib. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
48 lines
793 B
YAML
48 lines
793 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
description: Device.props test
|
|
|
|
compatible: "props"
|
|
|
|
properties:
|
|
nonexistent-boolean:
|
|
type: boolean
|
|
|
|
existent-boolean:
|
|
type: boolean
|
|
|
|
int:
|
|
type: int
|
|
const: 1
|
|
|
|
array:
|
|
type: array
|
|
|
|
uint8-array:
|
|
type: uint8-array
|
|
|
|
string:
|
|
type: string
|
|
const: "foo"
|
|
|
|
string-array:
|
|
type: string-array
|
|
|
|
phandle-ref:
|
|
type: phandle
|
|
|
|
phandle-refs:
|
|
type: phandles
|
|
|
|
phandle-array-foos:
|
|
type: phandle-array
|
|
|
|
# There's some slight special-casing for GPIOs in that 'foo-gpios = ...'
|
|
# gets resolved to #gpio-cells rather than #foo-gpio-cells, so test that
|
|
# too
|
|
foo-gpios:
|
|
type: phandle-array
|
|
|
|
path:
|
|
type: path
|