From: Linus Walleij <linus.walleij@linaro.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Fabian Vogt <fabian@ritter-vogt.de>,
Linus Walleij <linus.walleij@linaro.org>
Subject: [PATCH 0/7] usb: fotg210: Various improvements
Date: Wed, 04 Jan 2023 00:35:17 +0100 [thread overview]
Message-ID: <20230103-gemini-fotg210-usb-v1-0-f2670cb4a492@linaro.org> (raw)
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>
next reply other threads:[~2023-01-03 23:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-03 23:35 Linus Walleij [this message]
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
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=20230103-gemini-fotg210-usb-v1-0-f2670cb4a492@linaro.org \
--to=linus.walleij@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=fabian@ritter-vogt.de \
--cc=gregkh@linuxfoundation.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=robh+dt@kernel.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).