From: Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org> To: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>, Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Subject: [PATCH 1/4] ARM: dts: bcm283x: Add dtsi for OTG mode Date: Sun, 21 May 2017 18:44:36 +0200 [thread overview] Message-ID: <1495385079-3697-2-git-send-email-stefan.wahren@i2se.com> (raw) In-Reply-To: <1495385079-3697-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org> 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-eS4NqCHxEME@public.gmane.org> --- arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi 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 0000000..e7d217c --- /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>; +}; -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: stefan.wahren@i2se.com (Stefan Wahren) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/4] ARM: dts: bcm283x: Add dtsi for OTG mode Date: Sun, 21 May 2017 18:44:36 +0200 [thread overview] Message-ID: <1495385079-3697-2-git-send-email-stefan.wahren@i2se.com> (raw) In-Reply-To: <1495385079-3697-1-git-send-email-stefan.wahren@i2se.com> 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> --- arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi 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 0000000..e7d217c --- /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>; +}; -- 2.7.4
next prev parent reply other threads:[~2017-05-21 16:44 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-05-21 16:44 [PATCH 0/4] ARM: dts: bcm2835-rpi-zero: Enable OTG mode Stefan Wahren 2017-05-21 16:44 ` Stefan Wahren 2017-05-21 16:44 ` [PATCH 3/4] " Stefan Wahren 2017-05-21 16:44 ` Stefan Wahren [not found] ` <1495385079-3697-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org> 2017-05-21 16:44 ` Stefan Wahren [this message] 2017-05-21 16:44 ` [PATCH 1/4] ARM: dts: bcm283x: Add dtsi for " Stefan Wahren 2017-05-21 16:44 ` [PATCH 2/4] ARM: dts: bcm283x: Add generic USB PHY Stefan Wahren 2017-05-21 16:44 ` Stefan Wahren 2017-05-21 16:44 ` [PATCH 4/4] ARM: bcm2835_defconfig: Enable serial & ethernet USB gadget support Stefan Wahren 2017-05-21 16:44 ` Stefan Wahren 2017-06-01 8:38 ` [PATCH 0/4] ARM: dts: bcm2835-rpi-zero: Enable OTG mode Stefan Wahren 2017-06-01 8:38 ` Stefan Wahren [not found] ` <542130487.90500.1496306283902-7tX72C7vayboQLBSYMtkGA@public.gmane.org> 2017-06-09 7:05 ` Stefan Wahren 2017-06-09 7:05 ` Stefan Wahren [not found] ` <6a45fcd8-0d88-bc17-6432-d38fe771dc80-eS4NqCHxEME@public.gmane.org> 2017-06-12 23:10 ` Eric Anholt 2017-06-12 23:10 ` Eric Anholt
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1495385079-3697-2-git-send-email-stefan.wahren@i2se.com \ --to=stefan.wahren-es4nqchxeme@public.gmane.org \ --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org \ --cc=f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \ --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.