1# SPDX-License-Identifier: BSD-3-Clause
2#
3# Base include file for testing bindings initialization.
4#
5# Involves base property definitions ("type:", "description:", "const:",
6# "required:", "enum:" and "default:") up to the grandchild-binding level.
7#
8# Binding:
9#   + prop-1
10#   + prop-2
11#   + prop-enum
12#   + prop-req
13#   + prop-const
14#   + prop-default
15#
16#   Child-binding:
17#     + child-prop-1
18#     + child-prop-2
19#     + child-prop-enum
20#     + child-prop-req
21#     + child-prop-const
22#     + child-prop-default
23#
24#     Grandchild-binding:
25#       + grandchild-prop-1
26#       + grandchild-prop-2
27#       + grandchild-prop-enum
28#       + grandchild-prop-req
29#       + grandchild-prop-const
30#       + grandchild-prop-default
31
32description: Base property specifications.
33
34properties:
35  prop-1:
36    description: Base property 1.
37    type: int
38  prop-2:
39    type: string
40  prop-enum:
41    type: string
42    required: false
43    enum:
44      - FOO
45      - BAR
46  prop-const:
47    type: int
48    const: 8
49  prop-req:
50    type: int
51    required: true
52  prop-default:
53    type: int
54    default: 1
55
56child-binding:
57  description: Base child-binding description.
58
59  properties:
60    child-prop-1:
61      description: Base child-prop 1.
62      type: int
63    child-prop-2:
64      type: string
65    child-prop-enum:
66      type: string
67      required: false
68      enum:
69        - CHILD_FOO
70        - CHILD_BAR
71    child-prop-const:
72      type: int
73      const: 16
74    child-prop-req:
75      type: int
76      required: true
77    child-prop-default:
78      type: int
79      default: 2
80
81  child-binding:
82    description: Base grandchild-binding description.
83
84    properties:
85      grandchild-prop-1:
86        description: Base grandchild-prop 1.
87        type: int
88      grandchild-prop-2:
89        type: string
90      grandchild-prop-enum:
91        type: string
92        required: false
93        enum:
94          - GRANDCHILD_FOO
95          - GRANDCHILD_BAR
96      grandchild-prop-const:
97        type: int
98        const: 32
99      grandchild-prop-req:
100        type: int
101        required: true
102      grandchild-prop-default:
103        type: int
104        default: 3
105