From patchwork Tue Oct 3 11:01:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomer Maimon X-Patchwork-Id: 13407419 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4F4420B34; Tue, 3 Oct 2023 11:01:44 +0000 (UTC) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01hn2230.outbound.protection.outlook.com [52.100.0.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7DA1CE; Tue, 3 Oct 2023 04:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YVd8fMNvlWPb9MTh8x6smn/UKJ/vv1N5bwLkdfTGWLQcrUjpgKu+QmImYAL4L6HfA0CQ+YixAEw2kAZI4qeGAyP7tAaF+5kdcNS9mjzTEWK9e2z0bGMNtpvToW7mTShLoVpR86/0mKw0OEkf6x5poKT8cyF9uoeUZYRFNMBWHl1LbWCS6qSrXby0JMzfd/mXIO5ZXgppyDvDhCpYqbC1L+NQ0DjgV3i7afaMY05jzBDGlETJ13pIN/1WjrwicxqBYbugED62CCK8SB4Cq7vO8QjLKfs297tZEr8u44dZdVhuTBYEqTyEZncGHldb+mmpBxx5Hlyl2o8J8hiOv7UINw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HJPlBtL4X/T/9aSDc4JYtiVWMLfmJVy5DVI0D2TM3mA=; b=SQJ+hyHYTm4h4+BMy2P8X1A3eUwlAXZhIX+WonyHnxTlxiDwuRlcCYqcPdBwi3UbnG3sUeFBkXFwd8h5VVHguqMBXZ85aG2VpqCQ6Y3oe/a5osHz91cCQ+NWDak6kRYOdqDMhS7yhMqP2Ec3UjFc37ssjjjIsZSElkyAlXUFWUp0h/o9038jskNedth/oQ2k8xY8k0n1zUEjUPAmO8Tx+O2Ih4eAvKiYUCIaIN/Aygr6Bm8Jgh5XsV9dkkACWBO1nkJFVXnhAGM82rv8oJzwcFwsDe21bDPGV3CqT1BedSgBMTKjoVPBlmAhDv0yEmbyWc6V9s+P2zkCNloUS0TrXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 175.98.123.7) smtp.rcpttodomain=gmail.com smtp.mailfrom=nuvoton.com; dmarc=fail (p=none sp=quarantine pct=100) action=none header.from=gmail.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuvoton.onmicrosoft.com; s=selector2-nuvoton-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HJPlBtL4X/T/9aSDc4JYtiVWMLfmJVy5DVI0D2TM3mA=; b=VBiq/o0Y9Ul0X6dPB7y3NkR342Peu8I6IR0cSjgfaZdiY0grI0HEFW+HFvPUbt1QLlAYRox1LIYtnR+PepEWDsMXAgPQTPSJvO1FjnLGwaIxyAhDg50YZOUhJcqrE9wChCUzjrDPY5lxrNTeEBzjsRRyuPAv/5VJjvqoI+Dbw6w= Received: from SG2PR03CA0110.apcprd03.prod.outlook.com (2603:1096:4:91::14) by SEYPR03MB7191.apcprd03.prod.outlook.com (2603:1096:101:d4::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21; Tue, 3 Oct 2023 11:01:38 +0000 Received: from SG1PEPF000082E6.apcprd02.prod.outlook.com (2603:1096:4:91:cafe::ad) by SG2PR03CA0110.outlook.office365.com (2603:1096:4:91::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.24 via Frontend Transport; Tue, 3 Oct 2023 11:01:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 175.98.123.7) smtp.mailfrom=nuvoton.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=gmail.com; Received-SPF: Pass (protection.outlook.com: domain of nuvoton.com designates 175.98.123.7 as permitted sender) receiver=protection.outlook.com; client-ip=175.98.123.7; helo=NTHCCAS04.nuvoton.com; pr=C Received: from NTHCCAS04.nuvoton.com (175.98.123.7) by SG1PEPF000082E6.mail.protection.outlook.com (10.167.240.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.6838.14 via Frontend Transport; Tue, 3 Oct 2023 11:01:37 +0000 Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCCAS04.nuvoton.com (10.1.8.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Tue, 3 Oct 2023 19:01:36 +0800 Received: from taln60.nuvoton.co.il (10.191.1.180) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 3 Oct 2023 19:01:35 +0800 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 1773D64741; Tue, 3 Oct 2023 14:01:35 +0300 (IDT) From: Tomer Maimon To: , , , , , , , , , , , , CC: , , , , Tomer Maimon Subject: [PATCH v4 1/3] usb: chipidea: add CI_HDRC_FORCE_VBUS_ACTIVE_ALWAYS flag Date: Tue, 3 Oct 2023 14:01:28 +0300 Message-ID: <20231003110130.229711-2-tmaimon77@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20231003110130.229711-1-tmaimon77@gmail.com> References: <20231003110130.229711-1-tmaimon77@gmail.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NotSetDelaration: True X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[175.98.123.7];domain=NTHCCAS04.nuvoton.com X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E6:EE_|SEYPR03MB7191:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ae5b161-c3e5-4dfd-f43d-08dbc4001d46 X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zhGdFJ1UrURuPtqkrPHy494xK/GP4gsD063zdHXkdu1wZY9CszJdnz+kn4K/ic2zaCV0gLL4UPkLFoKo6wYmci2Earf9RaETrZjHVioIWoCT+PLd/xTvHzBIE8GJfxu1clpzYgH8VlmRXV5Nfa8MQ/RPCajAaGsXsviC9h2mKSoC6S49PbWoNi/GhXaLfryTYvF8bM80R0hDibcZOVBaeRXw4m5xC7z6tb+Oyh0W/RJrIuKX/0TT4jxtPLFpRtPBz5BJiVV59jRuX3fGtPPr/rTsjD8STxdRbwPu2PRENigha+289gvQHFlDEXSLQUp8tefzsMaURww0quSpqJNm6Xvo2FHtQmjNMmAcDJccOd7ad0BkUJpACx+SMcu4/F6GjIPeEKn6NQEwUntL08f6fgzyPMKtxhi2bzRSUMrT0swIQADILBW2ANnJKSMruIplKJ+Zm/mj2a0jB/1mtswOwmuhSRi6PBQYQftRg20ych73hFYteLAcNbqQ63AhtR2p09QDT+I+G8RmpYYxJ4+bgJiwfs02Hjbz4qgubUwdhndhob1y6s61MslsFowTSO40/HFy5XoayX4f7g3PIZnVZJcKQJChOqNukPJnEnR+omU5EujaYs6OXy7MhRACQW/dyC6F6CEJQSScFp72UWtJn2lYz7wkKO8LYDksH23ylFBSEOXq14Lc87K1V/chM70Iw/ivoOUStSi5j8aARz4CbxOTCGnZE3T2Jn9hCpJKStBq+HnVVvvJpi9cY+xMSVgq4e9K27/LO0FYklLCsvuJn5So+hETy+F7FQsMtS/ThkW18XZ/KX6BzmuTMqThKJvxgmlo6wjJ5akwEWrrP+zs3ELBgyDUhSv0Mi7ZVkySBS80NDT0z44Cj/9eP9JgD6XMvo7r57bTqu/Nhg+B14ilKQ7eoh9o0jPTFo2gYYRfmCAwCH8fv1qzM983aIBxC1M5kwn9KtX37Xe7RcJzx0HFDtpOlLPyh9HNI+rYCirLnjw= X-Forefront-Antispam-Report: CIP:175.98.123.7;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:NTHCCAS04.nuvoton.com;PTR:175-98-123-7.static.tfn.net.tw;CAT:NONE;SFS:(13230031)(4636009)(39860400002)(136003)(376002)(346002)(396003)(230922051799003)(5400799018)(186009)(61400799006)(451199024)(64100799003)(48200799006)(82310400011)(36840700001)(40470700004)(46966006)(478600001)(40460700003)(8936002)(2616005)(70586007)(6266002)(34020700004)(36860700001)(336012)(83380400001)(42882007)(76482006)(47076005)(82202003)(70206006)(54906003)(7416002)(316002)(42186006)(73392003)(6666004)(41300700001)(2906002)(5660300002)(8676002)(110136005)(1076003)(4326008)(26005)(55446002)(81166007)(356005)(36756003)(82740400003)(921005)(83170400001)(40480700001)(45356006)(35450700002)(84790400001)(12100799045);DIR:OUT;SFP:1501; X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2023 11:01:37.2353 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1ae5b161-c3e5-4dfd-f43d-08dbc4001d46 X-MS-Exchange-CrossTenant-Id: a3f24931-d403-4b4a-94f1-7d83ac638e07 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a3f24931-d403-4b4a-94f1-7d83ac638e07;Ip=[175.98.123.7];Helo=[NTHCCAS04.nuvoton.com] X-MS-Exchange-CrossTenant-AuthSource: SG1PEPF000082E6.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7191 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Adding CI_HDRC_FORCE_VBUS_ACTIVE_ALWAYS flag to modify the vbus_active parameter to active in case the ChipIdea USB IP role is device-only and there is no otgsc register. Signed-off-by: Tomer Maimon Acked-by: Peter Chen --- drivers/usb/chipidea/otg.c | 5 ++++- include/linux/usb/chipidea.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/otg.c b/drivers/usb/chipidea/otg.c index f5490f2a5b6b..647e98f4e351 100644 --- a/drivers/usb/chipidea/otg.c +++ b/drivers/usb/chipidea/otg.c @@ -130,8 +130,11 @@ enum ci_role ci_otg_role(struct ci_hdrc *ci) void ci_handle_vbus_change(struct ci_hdrc *ci) { - if (!ci->is_otg) + if (!ci->is_otg) { + if (ci->platdata->flags & CI_HDRC_FORCE_VBUS_ACTIVE_ALWAYS) + usb_gadget_vbus_connect(&ci->gadget); return; + } if (hw_read_otgsc(ci, OTGSC_BSV) && !ci->vbus_active) usb_gadget_vbus_connect(&ci->gadget); diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h index 0b4f2d5faa08..5a7f96684ea2 100644 --- a/include/linux/usb/chipidea.h +++ b/include/linux/usb/chipidea.h @@ -64,6 +64,7 @@ struct ci_hdrc_platform_data { #define CI_HDRC_PMQOS BIT(15) #define CI_HDRC_PHY_VBUS_CONTROL BIT(16) #define CI_HDRC_HAS_PORTSC_PEC_MISSED BIT(17) +#define CI_HDRC_FORCE_VBUS_ACTIVE_ALWAYS BIT(18) enum usb_dr_mode dr_mode; #define CI_HDRC_CONTROLLER_RESET_EVENT 0 #define CI_HDRC_CONTROLLER_STOPPED_EVENT 1 From patchwork Tue Oct 3 11:01:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomer Maimon X-Patchwork-Id: 13407418 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4F7220B36; Tue, 3 Oct 2023 11:01:44 +0000 (UTC) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01hn2219.outbound.protection.outlook.com [52.100.0.219]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F230C6; Tue, 3 Oct 2023 04:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K0iv0Ae3X2cCCHMfK75aj1fpblxez2De/Z7nIH1cNXxcNP5O4KM1T7bRegBLK7DHbtMAPtvul7BdLiOFMfWZ6YEdGngMGgtbz99lemI8/bj4wFhqAgpFtcZsTucvyog3OK40VqGrggEZETnpZrAoI3opp0pAlML0krVw/g65zh4bWDnYyJmGZFH1rsZzTHT+cd0fCZja1x65ld6qBe/V3/Xs04nIdZIiRM65MKHaxtL2tM4/6Md8AYr3qAthB4JIpVysWomfY9bwWq3x3pWfZEjYJ/EyO1SupO+8obHUWh3C0A6te68Tc+8kJxK8mkZPalNcgn+tHFjgOlaxneNxCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HhbXqOJR79u+/b1TOeqh2Q568aPZn+33VQAaeCzrrDc=; b=c04/sgQ9Hr4H+qd5ipRDnlZs7g32W0nuK4V6Mb2/4qDMIO8fpuVuNgOOVo+juR6lfDHOrEfmlwGwcaA/cdKK2QlhvZ0HbHmDlwex3nKxYkCvNNnIDDUoPzMKP0JfMwGogcqpnymlnw1z1avHsbOAUOFi1ap6CkJ7v8n+wEUrrMbKpfdDgecE+s1y6mmX2dqXNxDoMIKR1sb0VqgmR0qyeA7R3N8X3b6yphN5lVNwW3qYn+5Uh7QCvuIJO5dVpscQoEVHJymYWlQ4CMACGQHlZfBPRT8udrDqt9FFzC8oqEwEr8hEF+7PgwDmYpg2h0dxOZeP3cQPnXPMqicyNuUdDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 175.98.123.7) smtp.rcpttodomain=gmail.com smtp.mailfrom=nuvoton.com; dmarc=fail (p=none sp=quarantine pct=100) action=none header.from=gmail.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuvoton.onmicrosoft.com; s=selector2-nuvoton-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HhbXqOJR79u+/b1TOeqh2Q568aPZn+33VQAaeCzrrDc=; b=ZhhOaTsBLDV48y2wXNQp/gx0gNr0ssNAUsEHPRFyLqf0V/jVZyQD+S0zFBkyoy4ZHlAfq+5P09UpmUcuUbp+Qu2PuUzcPeUiboVJKk125BRoJa7ZmJkDHcAfTBvuNLSU6oWz8h9/AxK+2IFaTtCBTFTgRtPMflH3DU8pwAgOiL4= Received: from SG2PR03CA0119.apcprd03.prod.outlook.com (2603:1096:4:91::23) by TYZPR03MB7893.apcprd03.prod.outlook.com (2603:1096:400:452::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.31; Tue, 3 Oct 2023 11:01:39 +0000 Received: from SG1PEPF000082E6.apcprd02.prod.outlook.com (2603:1096:4:91:cafe::58) by SG2PR03CA0119.outlook.office365.com (2603:1096:4:91::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.24 via Frontend Transport; Tue, 3 Oct 2023 11:01:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 175.98.123.7) smtp.mailfrom=nuvoton.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=gmail.com; Received-SPF: Pass (protection.outlook.com: domain of nuvoton.com designates 175.98.123.7 as permitted sender) receiver=protection.outlook.com; client-ip=175.98.123.7; helo=NTHCCAS04.nuvoton.com; pr=C Received: from NTHCCAS04.nuvoton.com (175.98.123.7) by SG1PEPF000082E6.mail.protection.outlook.com (10.167.240.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.6838.14 via Frontend Transport; Tue, 3 Oct 2023 11:01:38 +0000 Received: from NTHCCAS02.nuvoton.com (10.1.9.121) by NTHCCAS04.nuvoton.com (10.1.8.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Tue, 3 Oct 2023 19:01:36 +0800 Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCCAS02.nuvoton.com (10.1.9.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 3 Oct 2023 19:01:36 +0800 Received: from taln60.nuvoton.co.il (10.191.1.180) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 3 Oct 2023 19:01:36 +0800 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id A1FC164742; Tue, 3 Oct 2023 14:01:35 +0300 (IDT) From: Tomer Maimon To: , , , , , , , , , , , , CC: , , , , Tomer Maimon Subject: [PATCH v4 2/3] dt-bindings: usb: ci-hdrc-usb2: add npcm750 and npcm845 compatible Date: Tue, 3 Oct 2023 14:01:29 +0300 Message-ID: <20231003110130.229711-3-tmaimon77@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20231003110130.229711-1-tmaimon77@gmail.com> References: <20231003110130.229711-1-tmaimon77@gmail.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NotSetDelaration: True X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[175.98.123.7];domain=NTHCCAS04.nuvoton.com X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E6:EE_|TYZPR03MB7893:EE_ X-MS-Office365-Filtering-Correlation-Id: 96435758-aa93-4b35-89be-08dbc4001dfe X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h3Mp7DaQvTpnkBeoBgAoYAUd5xnOjPB/M2IOzP44j4BwFh/uCLDfwgzsIJZeR5+/P5WK/FM7/roWe7vcShC73A68nfecXf8L5kup3QhtB6tnYt3xSSbDT4kyfEZbu1LBWLTiieq5CBiiGKE4n4PGqynvw0hJOf+JjFy/zL2akAnR9ctx2A6jGbqg5ivTi/K3Jif3FlKFHovlz23FRaz2tVCnikE5WsIV6XnLHIRodfa6RlzH02OozzR5g+jUbRK3etEg9n83yK/ENXUmZS6rapler+P24QLtQzbMoZ2CNSdoAviol5dxKR1t2PdvJR7zj0bsHNUEHYAdRWs+27zfginPPYFDUOq0X2NWSL9WFiaWqGFKLwcngB8233xP2NAAIsCH0kf6E7gJz+feXB0wmS9D525urJz0nuCM7T1PZK9D5rLgruOPJuoFM1ta/AbqAjWs3/XhA6v7EfLQttLE4r3KWa3vl9qcmijH6M23QHG5rFJgwxxGCSREbaInt85wPU8JcoMQP2ssN5qAqITT3V3KGsfB0s3EiyW3DunQ74ONF1uupYCnClbH2lkxNr3jr4QZzEmgfg1FRqOEJTlcyTpnv9oZCBaFWvrxZQ0B0yZ8NqZVIKLFknFamM+U6cvCWG3jGMo1Aa7pNoDQA10+2r0mJt/3GJd32Hc5I6iiigCBp55zXnYVI27is2oNrOo+CUyLVliT6CZhAMozhtRwtQCIvSOrNnN6dHtoGepi3nPG+XsBlW3tYhyoM9q67fjcCaJ1CppVmMJc3VYjbDqDU7cGP9MjufilmTWahWggYbw1I23hGGGMadwMKQgkzkrnQaey7HQv+1FEeme4bZ30QXXTlIzT8tqacVrwUgiygWKajFvep3+Y+6UCubM1t6qfouy2zkB/L8ABdm7/iFX74C7E/+St/JxaiNTqs4K6vC9zfH4z8myjDp8BoBkY7IKvadxn23g7Sf0mvUWB4UyAmliTqAjeByzxkoOfKVlE3dA= X-Forefront-Antispam-Report: CIP:175.98.123.7;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:NTHCCAS04.nuvoton.com;PTR:175-98-123-7.static.tfn.net.tw;CAT:NONE;SFS:(13230031)(4636009)(376002)(39860400002)(136003)(396003)(346002)(230922051799003)(64100799003)(61400799006)(186009)(82310400011)(5400799018)(48200799006)(451199024)(40470700004)(36840700001)(46966006)(40460700003)(42882007)(82202003)(73392003)(54906003)(47076005)(6266002)(2616005)(1076003)(6666004)(70586007)(70206006)(76482006)(55446002)(83170400001)(336012)(26005)(110136005)(34020700004)(42186006)(36860700001)(478600001)(82740400003)(356005)(4744005)(7416002)(2906002)(316002)(921005)(81166007)(8936002)(8676002)(4326008)(41300700001)(40480700001)(5660300002)(36756003)(45356006)(84790400001)(35450700002)(12100799045);DIR:OUT;SFP:1501; X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2023 11:01:38.4228 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96435758-aa93-4b35-89be-08dbc4001dfe X-MS-Exchange-CrossTenant-Id: a3f24931-d403-4b4a-94f1-7d83ac638e07 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a3f24931-d403-4b4a-94f1-7d83ac638e07;Ip=[175.98.123.7];Helo=[NTHCCAS04.nuvoton.com] X-MS-Exchange-CrossTenant-AuthSource: SG1PEPF000082E6.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR03MB7893 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Add a compatible string for Nuvoton BMC NPCM750 and Nuvoton BMC NPCM845. Signed-off-by: Tomer Maimon --- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml index 1394557517b1..a9e173432002 100644 --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml @@ -16,6 +16,8 @@ properties: - enum: - chipidea,usb2 - lsi,zevio-usb + - nuvoton,npcm750-udc + - nuvoton,npcm845-udc - nvidia,tegra20-ehci - nvidia,tegra20-udc - nvidia,tegra30-ehci @@ -388,6 +390,8 @@ allOf: enum: - chipidea,usb2 - lsi,zevio-usb + - nuvoton,npcm750-udc + - nuvoton,npcm845-udc - nvidia,tegra20-udc - nvidia,tegra30-udc - nvidia,tegra114-udc From patchwork Tue Oct 3 11:01:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomer Maimon X-Patchwork-Id: 13407420 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52EB7210EA; Tue, 3 Oct 2023 11:01:46 +0000 (UTC) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01hn2234.outbound.protection.outlook.com [52.100.0.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71EFDB4; Tue, 3 Oct 2023 04:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b2enKtkEK37iBfKjMVdvQpN5OIK+7p/kDVqxf/a1ejGvSZQkoYRxdo/3bpSBmFUwHnKBnFejVfljYrnY0dYxF1A0oc8YNIr5o8sIoN8PB/VebHzt19vz196hp27yIgoJeKoPvviXrFYyAwE651HjAw2gSHVRrzAaVzbbf6XQ2tF4lFnxEY/kufD5F8SVjCFF2VBcvptJ0YXeCR8XkJFMoyR3rttwNyEGaVA8tQU4rKELN+yrjexFYAW1LRXTHk/TfWhJ7BODRG6XRbJCPKB2mQ1tRCvxYMPjSH0kWO20e5MjPYVamD0WYvAYKJGM/goXmUGsgCCeol0J+G75E8hDSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PqdhpXuqvc/cGbndu9wJ6COlL/RiDHNa5WUr+9UxfMg=; b=BW7IFAfpitSeG+hfIVBP79CoIq2mxxhwaH9LEblxsjaG8puJzd815upy9F4CZqDRpP9WHdmAWzrzrHWiLkoeBGcieo8llHKwOLef0sbwLF1W68GMCZnGfZyTTi7SwN/HpWg5JgBba5pi03jxIBX9tfHq+ABEZSLsc3/3xmUzxqD4xirGeASj7LykoL756Rj3E3MTHj3L5xK5YzD7RZn9g3H2GSuq6LpS12m+p1MYjBAkyI/UKu0TO9cXHyBfij/FsFRjpQuC1B3JhibNwIgmSwwWeRD3Hw6RS4H6vcxF1WmGWe9cxIzTT5uRYGjnnH3QLkZEpDuM0CtjTh32HVInpQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 175.98.123.7) smtp.rcpttodomain=gmail.com smtp.mailfrom=nuvoton.com; dmarc=fail (p=none sp=quarantine pct=100) action=none header.from=gmail.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuvoton.onmicrosoft.com; s=selector2-nuvoton-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PqdhpXuqvc/cGbndu9wJ6COlL/RiDHNa5WUr+9UxfMg=; b=YUndTv85kF2pN31uT5UR8pUhbXrZkDCcYKTFH7ntNqYKb9Ts8eMKVmV3F8NYLMW0ByJha4RwObTPikjpU6kNlSgrset8xkTXXUuhP5rs8ybJbrJkiE9hKmqjrh/AXKPiocVqc1rE/wWI0zCWu/tTx7XtdJIXbeGPYyeA+ECXves= Received: from SG2PR03CA0121.apcprd03.prod.outlook.com (2603:1096:4:91::25) by KL1PR03MB7599.apcprd03.prod.outlook.com (2603:1096:820:cc::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Tue, 3 Oct 2023 11:01:39 +0000 Received: from SG1PEPF000082E6.apcprd02.prod.outlook.com (2603:1096:4:91:cafe::58) by SG2PR03CA0121.outlook.office365.com (2603:1096:4:91::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.21 via Frontend Transport; Tue, 3 Oct 2023 11:01:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 175.98.123.7) smtp.mailfrom=nuvoton.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=gmail.com; Received-SPF: Pass (protection.outlook.com: domain of nuvoton.com designates 175.98.123.7 as permitted sender) receiver=protection.outlook.com; client-ip=175.98.123.7; helo=NTHCCAS04.nuvoton.com; pr=C Received: from NTHCCAS04.nuvoton.com (175.98.123.7) by SG1PEPF000082E6.mail.protection.outlook.com (10.167.240.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.6838.14 via Frontend Transport; Tue, 3 Oct 2023 11:01:39 +0000 Received: from NTHCML01A.nuvoton.com (10.1.8.177) by NTHCCAS04.nuvoton.com (10.1.8.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Tue, 3 Oct 2023 19:01:37 +0800 Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCML01A.nuvoton.com (10.1.8.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 3 Oct 2023 19:01:37 +0800 Received: from taln60.nuvoton.co.il (10.191.1.180) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 3 Oct 2023 19:01:36 +0800 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 24ED664740; Tue, 3 Oct 2023 14:01:36 +0300 (IDT) From: Tomer Maimon To: , , , , , , , , , , , , CC: , , , , Tomer Maimon Subject: [PATCH v4 3/3] usb: chipidea: Add support for NPCM Date: Tue, 3 Oct 2023 14:01:30 +0300 Message-ID: <20231003110130.229711-4-tmaimon77@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20231003110130.229711-1-tmaimon77@gmail.com> References: <20231003110130.229711-1-tmaimon77@gmail.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NotSetDelaration: True X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[175.98.123.7];domain=NTHCCAS04.nuvoton.com X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E6:EE_|KL1PR03MB7599:EE_ X-MS-Office365-Filtering-Correlation-Id: 88298096-062a-4c2d-0c67-08dbc4001ea3 X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7MohIyX9Kg7RvZvA+j3iGhr5EvAS123iqLiczgKChNkWbZxdrs6ZVsVkElD/crzpBUItKlI3DoYzu2xRLJZ/NZhBRGLn7qaeh0p1+Cpfs8m2XxPKMk8yNTdN41FmIqw8ImlUprV02NJmGnSbzTYhmqusdftF1SG0WXF1fL7jKwW7r9fHvJRw0Rk8zJLhgFgO/2T0usv6qORix8bNVBsJ4T6vZiqDcWcjktShEFgdTUtPK2d2F0k/S9eKSRS4PL6v5EvluEVs9CyOOYBiWsMK4Yw3uRBwd4YMM/1fymLZlEbKLne+kozVyhnlvTHMzB75ZCKt9LJni2qlBBmC0nXa8Kqxj6jMIFrUymtPlVsewtGrBMWO1UMlDwrSn1uEfsprMyPdkdb/k0GtX8ei/JtM7ivSqZp0NtZbnpJ3iZWDjaAdugUB0PGJibuTSQeG5dL1cV9BCeQc3vEZQXTEyYKKIrE56qYQ6HG0HPkmw8QMgiisrjeRN03wpwCMdPvLWgkzkJTl0Ht6rsAcNpI96qRy65oLjKrXwY8/KoF1MvQ8C324c4y28cg1XMVdQOW67q5wk4N9D5UJa7Wen08r19tZOfMrJmUzeVfns4VnikHEqa2RNor0y0Z+hJMpLpZ8x+StHj9s4ejO3gOMoB3nAJpsb22FJ9JZJ6DuySgkt6vEUT8bxdANwQgWQlN9hox1VELXNXe2dkk2n1SulCjV1hBcM7DLe2p/NWL0nWL9J1IAUnsEMB3r07R3JSK1Cqc+3oG4WruxPg2Ys0vq+oSmowPf25Udi37AFYhP+u1aSRU2ZlaSEeRQ35CH3EVSdftgJMWE8SIdGRmqIf3g8am2l1KXe/cuhlh9mXrIIdATRsimn8R474WU0A0mokhLpju+7SpZvKNintm3zqNR/xdlCxJz5h4rfNAdSZZzmGAVzQoV6D9OC008QoXzo8cYvhQ2PUobAi+PqSzaB4V3R4Z6/QDX+oIa7QkxRf3HuGAlpnVWzG8= X-Forefront-Antispam-Report: CIP:175.98.123.7;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:NTHCCAS04.nuvoton.com;PTR:175-98-123-7.static.tfn.net.tw;CAT:NONE;SFS:(13230031)(4636009)(39860400002)(136003)(376002)(396003)(346002)(230922051799003)(82310400011)(451199024)(61400799006)(186009)(64100799003)(5400799018)(48200799006)(36840700001)(46966006)(40470700004)(2906002)(76482006)(7416002)(8936002)(4326008)(5660300002)(8676002)(42186006)(41300700001)(40460700003)(6266002)(356005)(36860700001)(110136005)(42882007)(54906003)(2616005)(40480700001)(70586007)(1076003)(81166007)(34020700004)(83170400001)(47076005)(82202003)(73392003)(336012)(70206006)(83380400001)(55446002)(26005)(316002)(921005)(6666004)(478600001)(36756003)(82740400003)(45356006)(84790400001)(35450700002)(12100799045);DIR:OUT;SFP:1501; X-OriginatorOrg: nuvoton.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2023 11:01:39.5165 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 88298096-062a-4c2d-0c67-08dbc4001ea3 X-MS-Exchange-CrossTenant-Id: a3f24931-d403-4b4a-94f1-7d83ac638e07 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a3f24931-d403-4b4a-94f1-7d83ac638e07;Ip=[175.98.123.7];Helo=[NTHCCAS04.nuvoton.com] X-MS-Exchange-CrossTenant-AuthSource: SG1PEPF000082E6.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7599 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Add Nuvoton NPCM BMC SoCs support to USB ChipIdea driver. NPCM SoC include ChipIdea IP block that used for USB device controller mode. Signed-off-by: Tomer Maimon Acked-by: Peter Chen --- drivers/usb/chipidea/Kconfig | 4 + drivers/usb/chipidea/Makefile | 1 + drivers/usb/chipidea/ci_hdrc_npcm.c | 114 ++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 drivers/usb/chipidea/ci_hdrc_npcm.c diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig index c815824a0b2d..bab45bc62361 100644 --- a/drivers/usb/chipidea/Kconfig +++ b/drivers/usb/chipidea/Kconfig @@ -43,6 +43,10 @@ config USB_CHIPIDEA_MSM tristate "Enable MSM hsusb glue driver" if EXPERT default USB_CHIPIDEA +config USB_CHIPIDEA_NPCM + tristate "Enable NPCM hsusb glue driver" if EXPERT + default USB_CHIPIDEA + config USB_CHIPIDEA_IMX tristate "Enable i.MX USB glue driver" if EXPERT depends on OF diff --git a/drivers/usb/chipidea/Makefile b/drivers/usb/chipidea/Makefile index 71afeab97e83..718cb24603dd 100644 --- a/drivers/usb/chipidea/Makefile +++ b/drivers/usb/chipidea/Makefile @@ -13,6 +13,7 @@ ci_hdrc-$(CONFIG_USB_OTG_FSM) += otg_fsm.o obj-$(CONFIG_USB_CHIPIDEA_GENERIC) += ci_hdrc_usb2.o obj-$(CONFIG_USB_CHIPIDEA_MSM) += ci_hdrc_msm.o +obj-$(CONFIG_USB_CHIPIDEA_NPCM) += ci_hdrc_npcm.o obj-$(CONFIG_USB_CHIPIDEA_PCI) += ci_hdrc_pci.o obj-$(CONFIG_USB_CHIPIDEA_IMX) += usbmisc_imx.o ci_hdrc_imx.o obj-$(CONFIG_USB_CHIPIDEA_TEGRA) += ci_hdrc_tegra.o diff --git a/drivers/usb/chipidea/ci_hdrc_npcm.c b/drivers/usb/chipidea/ci_hdrc_npcm.c new file mode 100644 index 000000000000..37b64a3dbd96 --- /dev/null +++ b/drivers/usb/chipidea/ci_hdrc_npcm.c @@ -0,0 +1,114 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2023 Nuvoton Technology corporation. + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "ci.h" + +struct npcm_udc_data { + struct platform_device *ci; + struct clk *core_clk; + struct ci_hdrc_platform_data pdata; +}; + +static int npcm_udc_notify_event(struct ci_hdrc *ci, unsigned event) +{ + struct device *dev = ci->dev->parent; + + switch (event) { + case CI_HDRC_CONTROLLER_RESET_EVENT: + /* clear all mode bits */ + hw_write(ci, OP_USBMODE, 0xffffffff, 0x0); + break; + default: + dev_dbg(dev, "unknown ci_hdrc event\n"); + break; + } + + return 0; +} + +static int npcm_udc_probe(struct platform_device *pdev) +{ + int ret; + struct npcm_udc_data *ci; + struct platform_device *plat_ci; + struct device *dev = &pdev->dev; + + ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); + if (!ci) + return -ENOMEM; + platform_set_drvdata(pdev, ci); + + ci->core_clk = devm_clk_get_optional(dev, NULL); + if (IS_ERR(ci->core_clk)) + return PTR_ERR(ci->core_clk); + + ret = clk_prepare_enable(ci->core_clk); + if (ret) + return dev_err_probe(dev, ret, "failed to enable the clock: %d\n", ret); + + ci->pdata.name = dev_name(dev); + ci->pdata.capoffset = DEF_CAPOFFSET; + ci->pdata.flags = CI_HDRC_REQUIRES_ALIGNED_DMA | + CI_HDRC_FORCE_VBUS_ACTIVE_ALWAYS; + ci->pdata.phy_mode = USBPHY_INTERFACE_MODE_UTMI; + ci->pdata.notify_event = npcm_udc_notify_event; + + plat_ci = ci_hdrc_add_device(dev, pdev->resource, pdev->num_resources, + &ci->pdata); + if (IS_ERR(plat_ci)) { + ret = PTR_ERR(plat_ci); + dev_err(dev, "failed to register HDRC NPCM device: %d\n", ret); + goto clk_err; + } + + pm_runtime_no_callbacks(dev); + pm_runtime_enable(dev); + + return 0; + +clk_err: + clk_disable_unprepare(ci->core_clk); + return ret; +} + +static int npcm_udc_remove(struct platform_device *pdev) +{ + struct npcm_udc_data *ci = platform_get_drvdata(pdev); + + pm_runtime_disable(&pdev->dev); + ci_hdrc_remove_device(ci->ci); + clk_disable_unprepare(ci->core_clk); + + return 0; +} + +static const struct of_device_id npcm_udc_dt_match[] = { + { .compatible = "nuvoton,npcm750-udc", }, + { .compatible = "nuvoton,npcm845-udc", }, + { } +}; +MODULE_DEVICE_TABLE(of, npcm_udc_dt_match); + +static struct platform_driver npcm_udc_driver = { + .probe = npcm_udc_probe, + .remove = npcm_udc_remove, + .driver = { + .name = "npcm_udc", + .of_match_table = npcm_udc_dt_match, + }, +}; + +module_platform_driver(npcm_udc_driver); + +MODULE_DESCRIPTION("NPCM USB device controller driver"); +MODULE_AUTHOR("Tomer Maimon "); +MODULE_LICENSE("GPL v2");