ARM: dts: bcm283x: Add dtsi for OTG mode
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 21 May 2017 16:44:36 +0000 (18:44 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 12 Jun 2017 20:27:46 +0000 (13:27 -0700)
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>
arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi [new file with mode: 0644]

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 (file)
index 0000000..e7d217c
--- /dev/null
@@ -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>;
+};