From: Andre Przywara <andre.przywara@arm.com>
To: Chen-Yu Tsai <wens@csie.org>,
Samuel Holland <samuel@sholland.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Bin Liu <b-liu@ti.com>
Cc: Icenowy Zheng <uwu@icenowy.me>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
devicetree@vger.kernel.org, soc@kernel.org,
linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev
Subject: [PATCH v4 02/11] usb: musb: sunxi: add support for the F1C100s MUSB controller
Date: Thu, 17 Nov 2022 10:36:47 +0000 [thread overview]
Message-ID: <20221117103656.1085840-3-andre.przywara@arm.com> (raw)
In-Reply-To: <20221117103656.1085840-1-andre.przywara@arm.com>
From: Icenowy Zheng <uwu@icenowy.me>
The suniv SoC has a MUSB controller like the one in A33, but with a SRAM
region to be claimed.
Add support for it.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
drivers/usb/musb/sunxi.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c
index 7f9a999cd5ff1..4b368d16a73ad 100644
--- a/drivers/usb/musb/sunxi.c
+++ b/drivers/usb/musb/sunxi.c
@@ -722,14 +722,17 @@ static int sunxi_musb_probe(struct platform_device *pdev)
INIT_WORK(&glue->work, sunxi_musb_work);
glue->host_nb.notifier_call = sunxi_musb_host_notifier;
- if (of_device_is_compatible(np, "allwinner,sun4i-a10-musb"))
+ if (of_device_is_compatible(np, "allwinner,sun4i-a10-musb") ||
+ of_device_is_compatible(np, "allwinner,suniv-f1c100s-musb")) {
set_bit(SUNXI_MUSB_FL_HAS_SRAM, &glue->flags);
+ }
if (of_device_is_compatible(np, "allwinner,sun6i-a31-musb"))
set_bit(SUNXI_MUSB_FL_HAS_RESET, &glue->flags);
if (of_device_is_compatible(np, "allwinner,sun8i-a33-musb") ||
- of_device_is_compatible(np, "allwinner,sun8i-h3-musb")) {
+ of_device_is_compatible(np, "allwinner,sun8i-h3-musb") ||
+ of_device_is_compatible(np, "allwinner,suniv-f1c100s-musb")) {
set_bit(SUNXI_MUSB_FL_HAS_RESET, &glue->flags);
set_bit(SUNXI_MUSB_FL_NO_CONFIGDATA, &glue->flags);
}
@@ -815,6 +818,7 @@ static const struct of_device_id sunxi_musb_match[] = {
{ .compatible = "allwinner,sun6i-a31-musb", },
{ .compatible = "allwinner,sun8i-a33-musb", },
{ .compatible = "allwinner,sun8i-h3-musb", },
+ { .compatible = "allwinner,suniv-f1c100s-musb", },
{}
};
MODULE_DEVICE_TABLE(of, sunxi_musb_match);
--
2.25.1
next prev parent reply other threads:[~2022-11-17 10:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-17 10:36 [PATCH v4 00/11] ARM: suniv: USB and two new boards support Andre Przywara
2022-11-17 10:36 ` [PATCH v4 01/11] dt-bindings: usb: sunxi-musb: add F1C100s MUSB compatible string Andre Przywara
2022-11-17 10:36 ` Andre Przywara [this message]
2022-11-17 10:36 ` [PATCH v4 03/11] usb: musb: sunxi: Introduce config struct Andre Przywara
2022-11-17 10:36 ` [PATCH v4 04/11] ARM: dts: suniv: add USB-related device nodes Andre Przywara
2022-11-17 10:36 ` [PATCH v4 05/11] ARM: dts: suniv: licheepi-nano: enable USB Andre Przywara
2022-11-17 10:36 ` [PATCH v4 06/11] dt-bindings: vendor-prefixes: add Source Parts Andre Przywara
2022-11-17 10:36 ` [PATCH v4 07/11] dt-binding: arm: sunxi: add compatible strings for PopStick v1.1 Andre Przywara
2022-11-17 10:36 ` [PATCH v4 08/11] ARM: dts: suniv: add device tree " Andre Przywara
2022-11-17 10:36 ` [PATCH v4 09/11] dt-bindings: vendor-prefixes: add Lctech name Andre Przywara
2022-11-17 10:36 ` [PATCH v4 10/11] dt-bindings: arm: sunxi: add compatible strings for Lctech Pi Andre Przywara
2022-11-17 10:36 ` [PATCH v4 11/11] ARM: dts: suniv: Add Lctech Pi F1C200s devicetree Andre Przywara
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=20221117103656.1085840-3-andre.przywara@arm.com \
--to=andre.przywara@arm.com \
--cc=b-liu@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=linux-usb@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=samuel@sholland.org \
--cc=soc@kernel.org \
--cc=uwu@icenowy.me \
--cc=wens@csie.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