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>
17 lines
272 B
YAML
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
|