Skip to content

Commit

Permalink
ARM: dts: bcm283x: Add dtsi for OTG and gadget mode
Browse files Browse the repository at this point in the history
The Raspberry Pi Zero also supports OTG and gadget mode. So provide
2 dtsi files to configure the USB interface accordingly.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
  • Loading branch information
lategoodbye committed Sep 16, 2016
1 parent 9702236 commit a6ec75d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi-zero.dts
Expand Up @@ -12,6 +12,12 @@
/dts-v1/;
#include "bcm2835.dtsi"
#include "bcm2835-rpi.dtsi"

/*
* Include bcm283x-rpi-usb-host.dtsi for host mode
* or include bcm283x-rpi-usb-otg.dtsi for OTG mode
* or include bcm283x-rpi-usb-peripheral.dtsi for gadget mode
*/
#include "bcm283x-rpi-usb-host.dtsi"

/ {
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi
@@ -0,0 +1,6 @@
&usb {
dr_mode = "otg";
g-np-tx-fifo-size = <16>;
g-rx-fifo-size = <256>;
g-tx-fifo-size = <256 128 128 64 64 64 32>;
};
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/bcm283x-rpi-usb-peripheral.dtsi
@@ -0,0 +1,6 @@
&usb {
dr_mode = "peripheral";
g-np-tx-fifo-size = <16>;
g-rx-fifo-size = <256>;
g-tx-fifo-size = <256 128 128 64 64 64 32>;
};

0 comments on commit a6ec75d

Please sign in to comment.