All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Walle <michael@walle.cc>
To: u-boot@lists.denx.de
Cc: Marek Vasut <marex@denx.de>, Simon Glass <sjg@chromium.org>,
	Ran Wang <ran.wang_1@nxp.com>, Michael Walle <michael@walle.cc>
Subject: [PATCH 0/8] usb: dwc3: add Layerscape SoC support
Date: Wed, 13 Oct 2021 19:44:23 +0200	[thread overview]
Message-ID: <20211013174431.652550-1-michael@walle.cc> (raw)

Primarily, this will add support for peripheral mode on Layerscape SoCs.
For this to work, we have to backport two fixes from linux and fix the
fixup code for the DWC3 controller (which enables snooping because the SoC
has wrong startup defaults).

As a first user of the driver, enable it on the Kontron SL28 board, where
both host and peripheral mode was tested.

OTG mode is not supported. For this to work, one would need to read the
hardware status of the OTG pin in the bind() op. But it isn't allowed to
access the hardware in the bind() op (if I understand Simon correctly).

Michael Walle (8):
  dm: core: add ofnode_for_each_compatible_node()
  armv8: fsl-layerscape: rework the dwc3 snooping enable code
  usb: common: silence dubious errors
  usb: dwc3: Add frame length adjustment quirk
  usb: dwc3: Enable undefined length INCR burst type
  usb: dwc3: add layerscape support
  board: sl28: switch to dwc3 driver
  board: sl28: enable USB periheral support and gadgets

 arch/arm/cpu/armv8/fsl-layerscape/soc.c |  28 ++-
 configs/kontron_sl28_defconfig          |   9 +-
 drivers/usb/common/common.c             |   4 +-
 drivers/usb/dwc3/Kconfig                |  10 ++
 drivers/usb/dwc3/Makefile               |   1 +
 drivers/usb/dwc3/core.c                 |  95 ++++++++++
 drivers/usb/dwc3/core.h                 |  22 +++
 drivers/usb/dwc3/dwc3-layerscape.c      | 222 ++++++++++++++++++++++++
 include/dm/ofnode.h                     |  24 +++
 9 files changed, 397 insertions(+), 18 deletions(-)
 create mode 100644 drivers/usb/dwc3/dwc3-layerscape.c

-- 
2.30.2


             reply	other threads:[~2021-10-13 17:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-13 17:44 Michael Walle [this message]
2021-10-13 17:44 ` [PATCH 1/8] dm: core: add ofnode_for_each_compatible_node() Michael Walle
2021-10-14 15:11   ` Simon Glass
2021-10-13 17:44 ` [PATCH 2/8] armv8: fsl-layerscape: rework the dwc3 snooping enable code Michael Walle
2021-10-13 17:44 ` [PATCH 3/8] usb: common: silence dubious errors Michael Walle
2021-10-13 17:44 ` [PATCH 4/8] usb: dwc3: Add frame length adjustment quirk Michael Walle
2021-10-13 17:44 ` [PATCH 5/8] usb: dwc3: Enable undefined length INCR burst type Michael Walle
2021-10-13 17:44 ` [PATCH 6/8] usb: dwc3: add layerscape support Michael Walle
2021-10-13 17:44 ` [PATCH 7/8] board: sl28: switch to dwc3 driver Michael Walle
2021-10-13 17:44 ` [PATCH 8/8] board: sl28: enable USB periheral support and gadgets Michael Walle

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=20211013174431.652550-1-michael@walle.cc \
    --to=michael@walle.cc \
    --cc=marex@denx.de \
    --cc=ran.wang_1@nxp.com \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /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: link
Be 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.