Home
last modified time | relevance | path

Searched full:binding (Results 1 – 25 of 509) sorted by relevance

12345678910>>...21

/Zephyr-latest/scripts/dts/python-devicetree/tests/
Dtest_edtlib_binding_init.py4 """Unit tests dedicated to edtlib.Binding objects initialization.
6 Running the assumption that any (valid) YAML binding file is
7 something we can make a Binding instance with:
8 - check which properties are defined at which level (binding, child-binding,
9 grandchild-binding, etc) and their specifications once the binding
13 - check the rules applied when overwriting a binding's description
14 or compatible string (at the binding, child-binding, etc, levels)
16 At any level, an including binding is permitted to:
25 times by several included binding files, "include:"ed first "wins"
28 At any level, an including binding is NOT permitted to:
[all …]
Dtest_edtlib.py54 …f"compatible 'enums' in binding '{enums_hpath}' has non-tokenizable enum for property 'string-enum…
55 …f"compatible 'enums' in binding '{enums_hpath}' has enum for property 'tokenizable-lower-enum' tha…
234 "<Node /parent in 'test.dts', no binding>"
237 "<Node /parent/child-2 in 'test.dts', no binding>"
240 …: <Node /parent/child-1 in 'test.dts', no binding>, 'child-2': <Node /parent/child-2 in 'test.dts'…
263 binding_include = edt.get_node("/binding-include")
265 assert binding_include.description == "Parent binding"
272 verify_props(edt.get_node("/binding-include/child"),
285 edtlib.Binding("test-bindings-include/allow-and-blocklist.yaml", fname2path)
291 edtlib.Binding("test-bindings-include/allow-and-blocklist-child.yaml", fname2path)
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings-init/
Dbase_multi.yaml3 # Includes base bindings at multiple levels (binding,
4 # child-binding, grandchild-binding):
7 # child-binding:
9 # child-binding:
15 # Child-binding level:
20 # From "child-binding: include:" element.
25 # Grandchild-binding level:
30 # From "child-binding: include:" element.
34 # From "child-binding: child-binding: include:" element.
39 # Grand-grandchild-binding level:
[all …]
Dbase_amend.yaml11 # at each level (binding, child-binding, grandchild-binding).
30 # The including binding is permitted to overwrite a property description.
32 # The including binding is permitted to set a "const:" value.
36 # The including binding is permitted to add a property description.
38 # The including binding is permitted to limit property values
43 # The including binding is permitted to set a default value.
46 # The including binding is permitted to promote a property
51 # The including binding is permitted to define a new property.
55 # Same amendments at the child-binding level.
56 child-binding:
[all …]
Dvnd,thing.yaml3 # Top level binding file (device binding) for testing
14 child-binding:
16 description: The Thing's child-binding.
18 child-binding:
20 description: The Thing's grandchild-binding.
Dthing.yaml7 # Binding level:
12 # Child-binding level:
17 # Grandchild-binding level:
27 child-binding:
29 child-binding:
50 child-binding:
51 description: Child-binding description (thing).
59 description: Thing child-binding property.
62 child-binding:
63 description: Grandchild-binding description (thing).
[all …]
Dcompat_desc.yaml6 description: Binding description.
12 child-binding:
13 description: Child-binding description.
16 child-binding:
17 description: Grandchild-binding description.
Dcompat_desc_base.yaml6 description: Binding description (base).
10 child-binding:
11 description: Child-binding description (base).
14 child-binding:
15 description: Grandchild-binding description (base).
Dbase.yaml6 # "required:", "enum:" and "default:") up to the grandchild-binding level.
8 # Binding:
16 # Child-binding:
24 # Grandchild-binding:
56 child-binding:
57 description: Base child-binding description.
81 child-binding:
82 description: Base grandchild-binding description.
Ddiamond.yaml3 # Binding file for testing diamond inheritance (top-bottom).
16 # * Binding level.
29 # * Child-binding level:
42 # * Grandchild-binding level:
63 child-binding:
65 child-binding:
77 child-binding:
78 description: Diamond's child-binding.
87 child-binding:
/Zephyr-latest/subsys/net/conn_mgr/
Dconn_mgr_connectivity.c19 struct conn_mgr_conn_binding *binding; in conn_mgr_if_connect() local
25 binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_connect()
26 if (!binding) { in conn_mgr_if_connect()
30 api = binding->impl->api; in conn_mgr_if_connect()
35 conn_mgr_binding_lock(binding); in conn_mgr_if_connect()
44 status = api->connect(binding); in conn_mgr_if_connect()
47 conn_mgr_binding_unlock(binding); in conn_mgr_if_connect()
56 struct conn_mgr_conn_binding *binding; in conn_mgr_if_disconnect() local
62 binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_disconnect()
63 if (!binding) { in conn_mgr_if_disconnect()
[all …]
/Zephyr-latest/tests/net/conn_mgr_conn/src/
Dtest_conn_impl.c91 static int test_connect(struct conn_mgr_conn_binding *const binding, bool a) in test_connect() argument
93 struct test_conn_data *data = binding->ctx; in test_connect()
104 simulate_fatal_error(binding->iface, data->fatal_error); in test_connect()
109 simulate_timeout(binding->iface); in test_connect()
118 net_if_dormant_off(binding->iface); in test_connect()
122 static int test_disconnect(struct conn_mgr_conn_binding *const binding, bool a) in test_disconnect() argument
124 struct test_conn_data *data = binding->ctx; in test_disconnect()
135 net_if_dormant_on(binding->iface); in test_disconnect()
150 int test_set_opt_a(struct conn_mgr_conn_binding *const binding, int optname, in test_set_opt_a() argument
153 struct test_conn_data *data = binding->ctx; in test_set_opt_a()
[all …]
/Zephyr-latest/include/zephyr/net/
Dconn_mgr_connectivity_impl.h53 int (*connect)(struct conn_mgr_conn_binding *const binding);
64 int (*disconnect)(struct conn_mgr_conn_binding *const binding);
76 void (*init)(struct conn_mgr_conn_binding *const binding);
96 int (*set_opt)(struct conn_mgr_conn_binding *const binding,
114 int (*get_opt)(struct conn_mgr_conn_binding *const binding,
157 * @brief Connectivity Manager network interface binding structure
201 /* Internal-use mutex for protecting access to the binding and API functions. */
235 * @brief Retrieves the conn_mgr binding struct for a provided iface if it exists.
241 * @param iface - bound network interface to obtain the binding struct for.
242 * @return struct conn_mgr_conn_binding* Pointer to the retrieved binding struct if it exists,
[all …]
/Zephyr-latest/scripts/release/
Dlist_devicetree_bindings_changes.py26 from devicetree.edtlib import Binding, bindings_from_paths, load_vendor_prefixes_txt
42 binding between the start and end commits. See subclasses
46 Compat2Binding = Dict[Compat, Binding]
47 Binding2Changes = Dict[Binding, List[BindingChange]]
153 for compat, binding in compat2binding.items():
154 ret[get_vnd(binding.compatible)][compat] = binding
165 for binding, changes in binding2changes.items():
166 ret[get_vnd(binding.compatible)][binding] = changes
183 for compat, binding in compat2binding_end.items():
193 ret[binding] = binding_changes
[all …]
/Zephyr-latest/dts/bindings/test/
Dvnd,great-grandchild-bindings.yaml5 Test binding for 3 levels of "child-binding".
8 "child-binding:" in a YAML file. This file is used to test that the
15 child-binding:
18 child-binding:
21 child-binding:
/Zephyr-latest/dts/bindings/gpio/
Dsparkfun,micromod-gpio.yaml13 by this binding.
14 * Reset, Boot pins and SWD pins not exposed by this binding.
16 RX and TX pins. Neither of them are exposed by this binding.
18 this binding.
19 * 2 SPI buses not exposed by this binding. Only SPI CS control pin
20 is exposed by this binding.
21 * Audio line not exposed by this binding.
26 This binding provides a nexus mapping for the analog, digital and
/Zephyr-latest/include/zephyr/mctp/
Dmctp_uart.h17 * @brief An MCTP binding for Zephyr's asynchronous UART interface
21 struct mctp_binding binding; member
55 * @param uart MCTP UART binding
60 int mctp_uart_start(struct mctp_binding *binding);
61 int mctp_uart_tx(struct mctp_binding *binding, struct mctp_pktbuf *pkt);
65 * @brief Statically define a MCTP bus binding for a UART
67 * @param _name Symbolic name of the bus binding variable
72 .binding = \
/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings-include/
Dfilter-child-bindings.yaml1 description: Test binding for filtering 'child-binding' properties
6 child-binding:
8 child-binding:
/Zephyr-latest/doc/_scripts/
Dgen_devicetree_rest.py102 for binding in bindings:
103 vnd = compatible_vnd(binding.compatible)
105 generic_bindings.append(binding)
107 unsorted[vnd].append(binding)
109 unknown_vendor_bindings.append(binding)
115 def binding_key(binding): argument
116 return binding.compatible
184 help='additional DTS folders containing binding files')
186 help='additional individual DTS binding files')
204 # Get a list of edtlib.Binding objects from searching 'dts_roots'.
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings/
Dchild-binding-with-compat.yaml3 description: child-binding with separate compatible than the parent
5 compatible: "top-binding-with-compat"
7 child-binding:
15 child-binding:
Dchild-binding.yaml3 description: child-binding test
5 compatible: "top-binding"
7 child-binding:
16 child-binding:
Dparent.yaml3 description: Parent binding
5 compatible: "binding-include-test"
15 child-binding:
16 # child.yaml included at child-binding level
/Zephyr-latest/doc/build/dts/
Dbindings-intro.rst1 .. _dt-binding-compat:
14 each node in the devicetree to a binding file. When this succeeds, the build
15 system uses the information in the binding file both when validating the node's
33 Here is a minimal binding file which matches the node:
37 # A YAML binding matching the node
46 The build system matches the ``bar-device`` node to its YAML binding because
47 the node's ``compatible`` property matches the binding's ``compatible:`` line.
56 For example, the build system would use the above binding to check that the
67 binding:
90 The ``baz-device`` node would get matched to a binding with a ``compatible:
[all …]
Dbindings-syntax.rst22 # A high level description of the device the binding applies to:
34 # Used to match nodes to this binding:
39 # binding's nodes need to satisfy go here.
41 child-binding:
42 # You can constrain the children of the nodes matching this binding
74 This key is used to match nodes to this binding as described in
75 :ref:`dt-binding-compat`. It should look like this in a binding file:
82 This devicetree node would match the above binding:
90 Assuming no binding has ``compatible: "manufacturer,device-v2"``, it would also
100 binding is used. The :ref:`on-bus: <dt-bindings-on-bus>` key can be used to
[all …]
/Zephyr-latest/doc/hardware/emulator/
Dindex.rst38 * DT binding: :dtcompatible:`zephyr,adc-emul`
43 * DT binding: :dtcompatible:`zephyr,dma-emul`
48 * DT binding: :dtcompatible:`zephyr,emu-eeprom`
55 * DT binding: :dtcompatible:`zephyr,sim-eeprom`
68 * DT binding: :dtcompatible:`zephyr,sim-flash`
75 * DT binding: :dtcompatible:`zephyr,gpio-emul`
80 * DT binding: :dtcompatible:`zephyr,i2c-emul-controller`
85 * DT binding: :dtcompatible:`zephyr,rtc-emul`
90 * DT binding: :dtcompatible:`zephyr,spi-emul-controller`
95 * DT binding: :dtcompatible:`zephyr,mspi-emul-controller`
[all …]

12345678910>>...21