Home
last modified time | relevance | path

Searched refs:binding (Results 1 – 25 of 84) sorted by relevance

1234

/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/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,
247 STRUCT_SECTION_FOREACH(conn_mgr_conn_binding, binding) { in conn_mgr_if_get_binding()
248 if (iface == binding->iface) { in conn_mgr_if_get_binding()
249 if (binding->impl->api) { in conn_mgr_if_get_binding()
250 return binding; in conn_mgr_if_get_binding()
270 static inline void conn_mgr_binding_lock(struct conn_mgr_conn_binding *binding) in conn_mgr_binding_lock() argument
[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/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
224 bindings = [binding for binding in bindings if
225 compatible_vnd(binding.compatible) != 'vnd']
325 for binding in bindings:
[all …]
/Zephyr-latest/tests/net/conn_mgr_monitor/src/
Dtest_ifaces.c113 static void test_conn_api_init(struct conn_mgr_conn_binding *const binding) in test_conn_api_init() argument
116 net_if_dormant_on(binding->iface); in test_conn_api_init()
119 static int test_conn_api_connect(struct conn_mgr_conn_binding *const binding) in test_conn_api_connect() argument
122 net_if_dormant_off(binding->iface); in test_conn_api_connect()
126 static int test_conn_api_disconnect(struct conn_mgr_conn_binding *const binding) in test_conn_api_disconnect() argument
129 net_if_dormant_on(binding->iface); in test_conn_api_disconnect()
/Zephyr-latest/scripts/dts/python-devicetree/tests/
Dtest_edtlib.py311 binding = edtlib.Binding("test-bindings-include/include-invalid-keys.yaml", fname2path)
321 binding = edtlib.Binding("test-bindings-include/include-invalid-type.yaml", fname2path)
329 binding = edtlib.Binding("test-bindings-include/include-no-name.yaml", fname2path)
336 binding = edtlib.Binding("test-bindings-include/allowlist.yaml", fname2path)
337 assert set(binding.prop2specs.keys()) == {'x'} # 'x' is allowed
339 binding = edtlib.Binding("test-bindings-include/empty-allowlist.yaml", fname2path)
340 assert set(binding.prop2specs.keys()) == set() # nothing is allowed
342 binding = edtlib.Binding("test-bindings-include/blocklist.yaml", fname2path)
343 assert set(binding.prop2specs.keys()) == {'y', 'z'} # 'x' is blocked
345 binding = edtlib.Binding("test-bindings-include/empty-blocklist.yaml", fname2path)
[all …]
Dtest.dts330 binding-include {
331 compatible = "binding-include-test";
346 // For testing Node.props (derived from 'properties:' in the binding)
416 // For testing Node.props with 'default:' values in binding
421 // Should override the 'default:' in the binding
471 // Node with 'child-binding:' in binding (along with a recursive
472 // 'child-binding:')
475 child-binding-dep {
478 child-binding {
479 compatible = "top-binding";
[all …]
Dtest-multidir.dts8 * Used by test_edtlib.py. Dedicated file for testing having multiple binding
/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 …]
/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 …]
Dbindings-upstream.rst22 is an existing binding for your device in an authoritative location, you should
23 try to replicate its properties when writing a Zephyr binding, and you must
28 - There is an existing binding in the mainline Linux kernel. See
32 - Your hardware vendor provides an official binding outside of the Linux
55 - For example, a binding for compatible ``vnd,foo`` must be named ``vnd,foo.yaml``.
56 - If the binding is bus-specific, you can append the bus to the file name;
57 for example, if the binding YAML has ``on-bus: bar``, you may name the file
64 submitting the binding.
101 this rule is if you are replicating a well-established binding from somewhere
113 If your binding describes hardware with a well known vendor from the list in
[all …]
Dhowtos.rst176 .. _dts-find-binding:
178 Find a devicetree binding
186 binding, open the generated header file, which starts with a list of nodes in a
205 node has a matching binding:
218 See :ref:`missing-dt-binding` for troubleshooting.
364 * Find your device's DT binding for details. */
379 * Find your device's DT binding for details. */
386 - set its properties according to its binding
403 Writing a devicetree-aware driver begins by defining a :ref:`devicetree binding
405 from similar drivers as a starting point. A skeletal binding to get started
[all …]
Dbindings.rst10 A devicetree binding declares requirements on the contents of nodes, and
/Zephyr-latest/scripts/release/
Dlist_devicetree_bindings_changes.py153 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
385 for binding in bindings:
386 compat = Compat(binding.compatible, binding.on_bus)
388 ret[compat] = binding
421 lambda binding: f':dtcompatible:`{binding.compatible}`'
[all …]
/Zephyr-latest/samples/basic/custom_dts_binding/
DREADME.rst1 .. zephyr:code-sample:: gpio-custom-dts-binding
2 :name: GPIO with custom Devicetree binding
5 Use custom Devicetree binding to control a GPIO.
21 This sample demonstrates how to use a GPIO pin for other purposes with a custom devicetree binding.
24 custom devicetree binding for the power output controlled via a GPIO pin is specified in the file
/Zephyr-latest/doc/services/ipc/ipc_service/backends/
Dipc_service_icbmsg.rst170 * **Binding message** - Message exchanged during endpoint binding process (described below).
230 The endpoint binding procedure must be finished before sending this control message.
268 The ``MSG_BOUND`` control message is similar to the ``MSG_DATA`` except the blocks carry binding in…
269 See the next section for details on the binding procedure.
289 See the next section for details on the binding procedure.
298 After ICBMsg initialization, you are ready for the endpoint binding procedure.
305 The binding process is not symmetrical.
308 * **Initiator** - It assigns endpoint addresses and sends binding messages.
309 * **Follower** - It waits for a binding message.
316 The binding process needs an endpoint name and is responsible for following two things:
[all …]
/Zephyr-latest/boards/nxp/mimxrt1170_evk/dts/
Dnxp,enet1g.overlay4 * ENET_1G binding overlay
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py530 def __init__(self, name: str, binding: Binding):
531 self.binding: Binding = binding
533 self._raw: Dict[str, Any] = self.binding.raw["properties"][name]
541 return self.binding.path
1268 binding = "binding " + self.binding_path
1270 binding = "no binding"
1295 binding = None
1299 binding = self.edt._compat2binding[compat, bus]
1302 if not binding:
1304 binding = self.edt._compat2binding[compat, None]
[all …]
/Zephyr-latest/doc/connectivity/networking/conn_mgr/
Dimplementation.rst35 This binding structure will contain a reference to the bound iface, the connectivity implementation…
59 …hyr ifaces, each binding instantiates a context container (of :ref:`configurable type <conn_mgr_im…
60 Each binding is then instantiated with a reference to that container, which implementations can the…
74 int my_connect_impl(struct conn_mgr_conn_binding *const binding) {
77 int my_disconnect_impl(struct conn_mgr_conn_binding *const binding) {
80 void my_init_impl(struct conn_mgr_conn_binding *const binding) {
235 * Set the iface to dormant, carrier-down, or both during :c:member:`binding init <conn_mgr_conn_api…
260 Zephyr ifaces may be accessed from other threads without respecting the binding mutex.
315 Connection Manager provides a context pointer to each binding.
326 *Access ifaces only through binding structs*
[all …]
/Zephyr-latest/scripts/
Drequirements-base.txt9 # used by dts generation to parse binding YAMLs, also used by
/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/
DREADME.txt6 identified through a test-specific devicetree binding in the `dts/`
/Zephyr-latest/doc/hardware/peripherals/sensor/
Ddevice_tree.rst5 for sensors on a per device level. Each device must specify a device tree binding
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_registry.h176 void lwm2m_engine_get_binding(char *binding);
/Zephyr-latest/tests/cmake/hwm/board_extend/oot_root/boards/native/native_sim_extend/
Dnative_sim_native_one.dts140 * DTS binding
149 * DTS binding

1234