zephyr/scripts/dts/test-bindings/sub-node-parent.yaml
Ulf Magnusson e703b4954a dts: edtlib: Sanity-check contents of 'sub-node:'
The contents of 'sub-node:' was assigned as-is as the binding, bypassing
_check_binding(). This also hid an error in
test-bindings/sub-node-parent.yaml.

Require 'sub-node:' to just have 'properties:' in it, and sanity-check
the properties like for regular bindings.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-09-07 10:25:02 -05:00

20 lines
348 B
YAML

# SPDX-License-Identifier: BSD-3-Clause
title: Sub-node test
description: Sub-node test
properties:
compatible:
constraint: "parent-with-sub-node"
type: string-array
sub-node:
properties:
foo:
category: required
type: int
bar:
category: required
type: int