app.overlay 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * OpenPuck USB device topology for the Zephyr USBD stack.
  3. *
  4. * The TinyUSB shim binds Adafruit_USBD_HID objects to this pool of HID device
  5. * nodes in begin() order (see usb_glue.cpp). The puck mode needs the most: a
  6. * wake mouse + four bond-slot HID interfaces = 5. The board already declares a
  7. * CDC ACM console (board_cdc_acm_uart) on zephyr_udc0, which usbd_register_all_
  8. * classes picks up; serial_console is wired to it.
  9. *
  10. * in-report-size 64 covers the largest puck HID report; 1 ms polling matches the
  11. * ~250 Hz+ RF cadence (the RF link, not USB, is the rate limit).
  12. */
  13. / {
  14. hid_dev_0: hid_dev_0 {
  15. compatible = "zephyr,hid-device";
  16. label = "OPK_HID0";
  17. protocol-code = "none";
  18. in-polling-period-us = <1000>;
  19. in-report-size = <64>;
  20. out-polling-period-us = <1000>;
  21. out-report-size = <64>;
  22. };
  23. hid_dev_1: hid_dev_1 {
  24. compatible = "zephyr,hid-device";
  25. label = "OPK_HID1";
  26. protocol-code = "none";
  27. in-polling-period-us = <1000>;
  28. in-report-size = <64>;
  29. out-polling-period-us = <1000>;
  30. out-report-size = <64>;
  31. };
  32. hid_dev_2: hid_dev_2 {
  33. compatible = "zephyr,hid-device";
  34. label = "OPK_HID2";
  35. protocol-code = "none";
  36. in-polling-period-us = <1000>;
  37. in-report-size = <64>;
  38. out-polling-period-us = <1000>;
  39. out-report-size = <64>;
  40. };
  41. hid_dev_3: hid_dev_3 {
  42. compatible = "zephyr,hid-device";
  43. label = "OPK_HID3";
  44. protocol-code = "none";
  45. in-polling-period-us = <1000>;
  46. in-report-size = <64>;
  47. out-polling-period-us = <1000>;
  48. out-report-size = <64>;
  49. };
  50. hid_dev_4: hid_dev_4 {
  51. compatible = "zephyr,hid-device";
  52. label = "OPK_HID4";
  53. protocol-code = "none";
  54. in-polling-period-us = <1000>;
  55. in-report-size = <64>;
  56. out-polling-period-us = <1000>;
  57. out-report-size = <64>;
  58. };
  59. };