2026-03-11 18:30:24 +08:00
|
|
|
#include <zephyr/dt-bindings/gpio/gpio.h>
|
|
|
|
|
|
2026-03-11 10:44:50 +08:00
|
|
|
/ {
|
2026-03-20 17:25:57 +08:00
|
|
|
chosen {
|
2026-03-31 15:09:23 +08:00
|
|
|
zephyr,boot-mode = &boot_mode0;
|
2026-03-11 10:44:50 +08:00
|
|
|
};
|
2026-03-14 12:13:25 +08:00
|
|
|
|
|
|
|
|
hid_dev_0: hid_dev_0 {
|
|
|
|
|
compatible = "zephyr,hid-device";
|
|
|
|
|
label = "HID_BOOT";
|
|
|
|
|
protocol-code = "keyboard";
|
|
|
|
|
in-report-size = <8>;
|
|
|
|
|
in-polling-period-us = <1000>;
|
|
|
|
|
out-report-size = <8>;
|
|
|
|
|
out-polling-period-us = <1000>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
hid_dev_1: hid_dev_1 {
|
|
|
|
|
compatible = "zephyr,hid-device";
|
|
|
|
|
label = "HID_NKRO";
|
|
|
|
|
protocol-code = "none";
|
|
|
|
|
in-report-size = <31>;
|
|
|
|
|
in-polling-period-us = <1000>;
|
2026-03-20 15:50:20 +08:00
|
|
|
out-report-size = <31>;
|
2026-03-14 12:13:25 +08:00
|
|
|
out-polling-period-us = <1000>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
raw_hid: hid_dev_2 {
|
|
|
|
|
compatible = "zephyr,hid-device";
|
|
|
|
|
label = "HID_RAW";
|
|
|
|
|
protocol-code = "none";
|
|
|
|
|
in-report-size = <64>;
|
|
|
|
|
in-polling-period-us = <1000>;
|
|
|
|
|
out-report-size = <64>;
|
|
|
|
|
out-polling-period-us = <1000>;
|
|
|
|
|
};
|
2026-03-11 10:44:50 +08:00
|
|
|
};
|
|
|
|
|
|
2026-03-31 15:09:23 +08:00
|
|
|
&gpregret1 {
|
2026-03-14 12:13:25 +08:00
|
|
|
status = "okay";
|
2026-03-11 18:30:24 +08:00
|
|
|
|
2026-03-31 15:09:23 +08:00
|
|
|
boot_mode0: boot_mode@0 {
|
|
|
|
|
compatible = "zephyr,retention";
|
2026-03-14 12:13:25 +08:00
|
|
|
status = "okay";
|
2026-03-31 15:09:23 +08:00
|
|
|
reg = <0x0 0x1>;
|
2026-03-14 12:13:25 +08:00
|
|
|
};
|
|
|
|
|
};
|