diff options
author | Stefan Wahren <stefan.wahren@i2se.com> | 2017-05-21 19:44:36 +0300 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-06-12 23:27:46 +0300 |
commit | 1aa1d858f582c7b1c245e8990ab21e1d9d8d00b1 (patch) | |
tree | 4002943a6ffbeeec3e0edc1c7ae19e4c87bc9b9a /arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi | |
parent | a19adf8d86e822eba502486524127595372c85f6 (diff) | |
download | linux-1aa1d858f582c7b1c245e8990ab21e1d9d8d00b1.tar.xz |
ARM: dts: bcm283x: Add dtsi for OTG mode
The Raspberry Pi Zero also supports OTG mode. So provide a dtsi file
to configure the USB interface accordingly. The fifo sizes are optimized
for device endpoint 6 and 7 with the maximum of 768.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi')
-rw-r--r-- | arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi b/arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi new file mode 100644 index 000000000000..e7d217c967a1 --- /dev/null +++ b/arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi @@ -0,0 +1,10 @@ +&usb { + dr_mode = "otg"; + g-rx-fifo-size = <256>; + g-np-tx-fifo-size = <32>; + /* + * According to dwc2 the sum of all device EP + * fifo sizes shouldn't exceed 3776 bytes. + */ + g-tx-fifo-size = <256 256 512 512 512 768 768>; +}; |