mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-08 11:25:22 +00:00
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>
37 lines
719 B
YAML
37 lines
719 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
title: Deprecated stuff
|
|
description: Deprecated stuff
|
|
|
|
# Deprecated include syntax
|
|
inherits:
|
|
!include deprecated-include.yaml
|
|
|
|
properties:
|
|
# Deprecated way of specifying the 'compatible' string
|
|
compatible:
|
|
constraint: "deprecated"
|
|
type: string-array
|
|
|
|
# Deprecated 'category' key (replaced with 'required')
|
|
|
|
required:
|
|
type: int
|
|
category: required
|
|
|
|
optional:
|
|
type: int
|
|
category: optional
|
|
|
|
# Deprecated older 'child-binding'-alike
|
|
sub-node:
|
|
properties:
|
|
foos:
|
|
type: phandle-array
|
|
required: true
|
|
|
|
# Deprecated older catch-all version of *-cells
|
|
"#cells":
|
|
- foo
|
|
- bar
|