mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-04 12:16:12 +00:00
Most bindings look something like this: title: Foo description: This binding provides a base representation of Foo That kind of description doesn't add any useful information, as it's just the title along with some copy-pasted text. I'm not sure what "base representation" was supposed to mean originally either. Many bindings also put something that's closer to a description in the title, because it's not clear what's expected or how the title is used. In reality, the title isn't used anywhere. 'description:' on the other hand shows up as a comment in the generated header. Deprecate 'title:' and generate a long informative warning if it shows up in a binding. Next commits will clean up the 'description:' strings (bringing them closer to 'title:' in most cases) and remove 'title:' from all bindings. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
37 lines
653 B
YAML
37 lines
653 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
description: Property default value test
|
|
|
|
compatible: "defaults"
|
|
|
|
properties:
|
|
int:
|
|
type: int
|
|
required: false
|
|
default: 123
|
|
|
|
array:
|
|
type: array
|
|
required: false
|
|
default: [1, 2, 3]
|
|
|
|
uint8-array:
|
|
type: uint8-array
|
|
required: false
|
|
default: [0x89, 0xAB, 0xCD]
|
|
|
|
string:
|
|
type: string
|
|
required: false
|
|
default: "hello"
|
|
|
|
string-array:
|
|
type: string-array
|
|
required: false
|
|
default: ["hello", "there"]
|
|
|
|
default-not-used:
|
|
type: int
|
|
required: false
|
|
default: 123
|