From patchwork Wed Oct 12 05:55:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 13004724 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7C33EC4332F for ; Wed, 12 Oct 2022 05:57:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cULqmZNQnHChlLwrHH5hGRZ8snatkTGY5FYZUW+j8qE=; b=Wy62M6IE0zrYSO 33ks4D1z2ohKEL4JHFQDHLMgSF9YOtrC8WVPT80DtUMX9qXjqP+K9YgE9T7fZ9FxqVfhARbtNaip+ Y6U0D8cY8gz2ijT3be2ibqvI8NeteTgIEX8PIzxW41e5c8xGMZMOVgZRwnD0Ms6lARLHoSr2kewkW jbXmuj4xKN+BwaBas8jLJHnIagRPELsF8EkjoHb39qSR8xU2VWSQaKmIHbXE4NUvPm8V7aEq9HYpI bbUeExto+eZr+CjVlWBa+v+E94Jc3/pgXRZb96aDX7GUnO/4OF6nlrua2fTYIF+wm6ICshb1xbfaB NHOrohKe9tI0SL0E1mcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiUka-006vD9-Ky; Wed, 12 Oct 2022 05:57:52 +0000 Received: from sender4-op-o18.zoho.com ([136.143.188.18]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiUjt-006upU-3w; Wed, 12 Oct 2022 05:57:10 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1665554222; cv=none; d=zohomail.com; s=zohoarc; b=FvfNG07iMKNR5U2ejpxyH2zlSm27+YkjplBGBsgjMzGIhJQuB8BXIUkQHBfYognfakb7GmEKRLPOLvY8W7MhrP13/Uvf0QP0TQvVP7j3duz7m7WexdcHEFtuK4f/bS4ML5FuzWiZkcRYISyxEhutI0GtYxcp+9aw2F+buYPrbdc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665554222; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=IHTmXBmR+SFMmksKEImErp0u02umet9I7N/QedIBsg0=; b=I4ocvCEW7R83bS1dwEosMQ7CfgKOmdYkV2HT11tlbQ1ZwyPaI6uV44ShwfGFUk5amnytCe43kYvS7Q1OwRkriJTTMT4RfbVs6VFs7y3wSFBFSkqH/IweIghbxEJncFaShO3ByC0A1ywIC2J8ZRazOeaSe+FVmHe81xA6dDP2HaM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1665554222; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=IHTmXBmR+SFMmksKEImErp0u02umet9I7N/QedIBsg0=; b=fboFKdqMktGTVCo7PalO8Q/YiUucZt5w62Dh390+w6vyOo9cevo3BPWuzc5eWR1t yINLo+qReqseC7WsRLjtwBfrm9jcnEyeRBjWY4GRLunAQ52wmgsP5uOd8iyqMF2YZq/ JWpc0Hk3zsK7A2snd5VKsJdNp8BF9gZG82wWDi74= Received: from edelgard.fodlan.icenowy.me (112.94.102.144 [112.94.102.144]) by mx.zohomail.com with SMTPS id 16655542214699.646510723270012; Tue, 11 Oct 2022 22:57:01 -0700 (PDT) From: Icenowy Zheng To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Andre Przywara Cc: soc@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, Icenowy Zheng Subject: [PATCH v2 05/10] musb: sunxi: add support for the F1C100s MUSB controller Date: Wed, 12 Oct 2022 13:55:57 +0800 Message-Id: <20221012055602.1544944-6-uwu@icenowy.me> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221012055602.1544944-1-uwu@icenowy.me> References: <20221012055602.1544944-1-uwu@icenowy.me> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221011_225709_227447_A35FCE2A X-CRM114-Status: GOOD ( 12.30 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org 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 Acked-by: Jernej Skrabec --- No changes since v1. 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 7f9a999cd5ff..4b368d16a73a 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);