Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/7] usb: fotg210: Various improvements
@ 2023-01-03 23:35 Linus Walleij
  2023-01-03 23:35 ` [PATCH 1/7] dt-bindings: usb: Correct and extend FOTG210 schema Linus Walleij
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Linus Walleij @ 2023-01-03 23:35 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski
  Cc: linux-usb, devicetree, linux-kernel, Fabian Vogt, Linus Walleij

This is some gradual improvements to the FOTG210 dual-mode
USB host/gadget driver.

- Create stricter device tree bindings fixing some mistakes.
  We have at least FOTG200 and FOTG210 out there. A third
  variant named FUSB220 is probably related but has a separate
  driver in the vendor code trees.

- Start to break out common code for remapping of memory and
  clock handling to begin with, move this to the core file.

- Check that the block is in the right role before
  proceeding, don't abort registration but print a warning
  if it's not.

- Assing some default speed and the OF node when the UDC
  starts. This is based on the similar pattern in the DW
  controllers.

- Implement a proper VBUS session handler calling down to
  the hardware VBUS control handler in the Gemini variant.
  This makes everything work on my hardware.

To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Rob Herring <robh+dt@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: linux-usb@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Fabian Vogt <fabian@ritter-vogt.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
Linus Walleij (7):
      dt-bindings: usb: Correct and extend FOTG210 schema
      usb: fotg210: List different variants
      usb: fotg210: Acquire memory resource in core
      usb: fotg210: Move clock handling to core
      usb: fotg210: Check role register in core
      usb: fotg210-udc: Assign of_node and speed on start
      usb: fotg210-udc: Implement VBUS session

 .../devicetree/bindings/usb/faraday,fotg210.yaml   |  7 +-
 drivers/usb/fotg210/fotg210-core.c                 | 81 +++++++++++++++++++---
 drivers/usb/fotg210/fotg210-hcd.c                  | 48 ++-----------
 drivers/usb/fotg210/fotg210-hcd.h                  |  1 +
 drivers/usb/fotg210/fotg210-udc.c                  | 68 ++++++++----------
 drivers/usb/fotg210/fotg210-udc.h                  |  2 +-
 drivers/usb/fotg210/fotg210.h                      | 27 ++++++--
 7 files changed, 136 insertions(+), 98 deletions(-)
---
base-commit: 1b929c02afd37871d5afb9d498426f83432e71c2
change-id: 20230103-gemini-fotg210-usb-95a76798706a

Best regards,
-- 
Linus Walleij <linus.walleij@linaro.org>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-01-18  8:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-03 23:35 [PATCH 0/7] usb: fotg210: Various improvements Linus Walleij
2023-01-03 23:35 ` [PATCH 1/7] dt-bindings: usb: Correct and extend FOTG210 schema Linus Walleij
2023-01-06  9:28   ` Krzysztof Kozlowski
2023-01-03 23:35 ` [PATCH 2/7] usb: fotg210: List different variants Linus Walleij
2023-01-03 23:35 ` [PATCH 3/7] usb: fotg210: Acquire memory resource in core Linus Walleij
2023-01-03 23:35 ` [PATCH 4/7] usb: fotg210: Move clock handling to core Linus Walleij
2023-01-03 23:35 ` [PATCH 5/7] usb: fotg210: Check role register in core Linus Walleij
2023-01-03 23:35 ` [PATCH 6/7] usb: fotg210-udc: Assign of_node and speed on start Linus Walleij
2023-01-03 23:35 ` [PATCH 7/7] usb: fotg210-udc: Implement VBUS session Linus Walleij
2023-01-18  7:03 ` [PATCH 0/7] usb: fotg210: Various improvements Linus Walleij
2023-01-18  7:04   ` Linus Walleij
2023-01-18  7:10   ` Greg Kroah-Hartman
2023-01-18  7:47     ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox