zephyr/dts/bindings/i2c/zephyr,i2c-dump-allowlist.yaml
Michał Barnaś 2bc7dcdc2e i2c: add filtering of i2c dumped messages
This commit adds option to dump i2c messages of only specified
devices. It makes it easier to debug communication of specific
i2c device instead of logging all i2c communication.
The filter of devices is specifiec in device-tree using the
node with "zephyr,i2c-dump-filter" compatible string.

Example of device-tree node:
i2c-dump-filter {
	compatible = "zephyr,i2c-dump-filter";
	devices = < &display0 >, < &sensor3 >;
};

Signed-off-by: Michał Barnaś <mb@semihalf.com>
2023-09-06 17:54:53 +02:00

17 lines
272 B
YAML

# Copyright 2023 Google LLC
# SPDX-License-Identifier: Apache-2.0
description: Devices allowlist for i2c messages dump
compatible: "zephyr,i2c-dump-allowlist"
include: base.yaml
properties:
status:
const: "okay"
devices:
required: true
type: phandles