Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: gr_udc: Expand devicetree documentation

Provide more information on the two different interrupt cases and more
information of endpoint buffer sizes. Suggested by Mark Rutland.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Andreas Larsson and committed by
Felipe Balbi
d9a6ef1b 22876266

+13 -7
+13 -7
Documentation/devicetree/bindings/usb/gr-udc.txt
··· 12 12 13 13 - reg : Address and length of the register set for the device 14 14 15 - - interrupts : Interrupt numbers for this device 15 + - interrupts : Interrupt numbers for this device. Either one interrupt number 16 + for all interrupts, or one for status related interrupts, one for IN 17 + endpoint related interrupts and one for OUT endpoint related interrupts. 16 18 17 19 Optional properties: 18 20 19 - - epobufsizes : An array of buffer sizes for OUT endpoints. If the property is 20 - not present, or for endpoints outside of the array, 1024 is assumed by 21 - the driver. 21 + - epobufsizes : Array of buffer sizes for OUT endpoints when they differ 22 + from the default size of 1024. The array is indexed by the OUT endpoint 23 + number. If the property is present it typically contains one entry for 24 + each OUT endpoint of the core. Fewer entries overrides the default sizes 25 + only for as many endpoints as the array contains. 22 26 23 - - epibufsizes : An array of buffer sizes for IN endpoints. If the property is 24 - not present, or for endpoints outside of the array, 1024 is assumed by 25 - the driver. 27 + - epibufsizes : Array of buffer sizes for IN endpoints when they differ 28 + from the default size of 1024. The array is indexed by the IN endpoint 29 + number. If the property is present it typically contains one entry for 30 + each IN endpoint of the core. Fewer entries overrides the default sizes 31 + only for as many endpoints as the array contains. 26 32 27 33 For further information look in the documentation for the GLIB IP core library: 28 34 http://www.gaisler.com/products/grlib/grip.pdf