This patch set adds Service Interval support for device mode. When this mode is enabled core is able to send data any u(f) in current service interval. Also in this mode core is able to accept L1 tokens for ISOC IN endpoints. Reference clock was added in the core to track SOF number internally. Because of some inaccuracies of reference clock new interrupt was added to initiate remote wake up and keep sync with the host frame number. The new interrupt register were added GINTSTS2 for that interrupt. Grigor Tovmasyan (9): usb: dwc2: Update registers definitions to support service interval usb: dwc2: Add core parameter for service interval support usb: dwc2: Add dwc2_gadget_dec_frame_num_by_one() function usb: dwc2: Update target (u)frame calculation usb: dwc2: Add definitions for new registers usb: dwc2: gadget: Add parameters for GREFCLK register usb: dwc2: gadget: Program GREFCLK register usb: dwc2: gadget: enable WKUP_ALERT interrupt usb: dwc2: gadget: Add handler for WkupAlert interrupt drivers/usb/dwc2/core.h | 29 +++++++++++++++ drivers/usb/dwc2/debugfs.c | 1 + drivers/usb/dwc2/gadget.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/usb/dwc2/hw.h | 15 ++++++++ drivers/usb/dwc2/params.c | 6 +++ 5 files changed, 142 insertions(+) -- 2.11.0