The intention was to use the "interface-name" string property in the
interface string descriptor, but using the label property is acceptable
again. Therefore, allow the use of the DT label property string in the
interface string descriptor.
Follow exactly the same approach as in the CDC ACM implementation
introduced in the commit b0791400f6
("usb: device_next: cdc_acm: allow setting the interface description").
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
15 lines
274 B
Text
15 lines
274 B
Text
/*
|
|
* Copyright (c) 2023 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/ {
|
|
hid_dev_0: hid_dev_0 {
|
|
compatible = "zephyr,hid-device";
|
|
label = "HID0";
|
|
protocol-code = "keyboard";
|
|
in-report-size = <64>;
|
|
in-polling-period-us = <1000>;
|
|
};
|
|
};
|