From patchwork Mon Sep 11 08:22:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13379011 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 082DBEE57DF for ; Mon, 11 Sep 2023 08:22:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235015AbjIKIWz (ORCPT ); Mon, 11 Sep 2023 04:22:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233257AbjIKIWy (ORCPT ); Mon, 11 Sep 2023 04:22:54 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2089.outbound.protection.outlook.com [40.107.22.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA3E5110; Mon, 11 Sep 2023 01:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oHoDJv1h2J7uejyW7ZTBJqyf4damWccsnuijKEkYfbT33Eis6+v1Axd/q/svMxY3YCqXWt6ycnR0dfmQaVyHNAYpAzL7IR0i+9G6Pn0wmXN9J4Q40O9cx9ycz4J70+MkOPoCFzyUupYBRgPZYk+rtFEilIYY2DXpWV74dE6R7Zte0f4Lkbjo2pNkfqoNmrQB5d9W924JeVVRrPoPaLO08X68NlLSdH3NArbC71QrzMlNucNlu3SN9lumRa4GwYCPPV56vr4velAIXq2Ok1lc6XTqjDn/OSnCdKdWfRLl8FXeYk2pIRWo3Sf+u/xNCyVHSaQc9i1N1h+tfu40aNfi2A== 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=KkVjSHCVX2vsyFl7OLD6duvvFrtJPg+ZAufbThK/j4c=; b=TwP7ABLl9WdO2RW/dpOg8mEfRvfYCl52DBGPPM5lTKeETvca30zzBQX9ZEMdDRSURG3OWlY4R3e10vZz63ajv9/u0JV3rtKM94VdbcyoBFf3HIcUQO5XYrmneg83rwI1gZuB2gK2ItMr0gUWblM000TREoe2ZJBybK4NnCxdY9d2WvSuPtO299sJ63rcqWPpjuxv6pZp0SQCQgbqeEmSecF4YQDz4ETRASh6juAo7SJ2Z1v/Als7RSYwiQxZX5eEFJNGBY37y5NKn3dt9FeYTNPy7kqp/6tioYpjx9iVVmoUIIcv3BmAaYteT+npGohK/Ynf/0zKSnF6xX9VSUVrtQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KkVjSHCVX2vsyFl7OLD6duvvFrtJPg+ZAufbThK/j4c=; b=2Y7uiNU9p/KBdCEhZjQExRTjk34Wop3q7V73g6JzXvaHiY5MQyHVLcKBNioX/JKRm7T3OBRGz8k4eyIM+9tO77DO/8z0Ee0hnmRP06YrSH2gFyANjvRcse9Ibk0C2vLrJpJDWtzLe2rFYaGQhcPD60f+bvZEvcmtEjhj/B3aQ/M= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by DU0PR08MB9394.eurprd08.prod.outlook.com (2603:10a6:10:421::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.30; Mon, 11 Sep 2023 08:22:47 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bc92:216b:11ed:db63]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bc92:216b:11ed:db63%6]) with mapi id 15.20.6768.029; Mon, 11 Sep 2023 08:22:47 +0000 From: Javier Carrasco Date: Mon, 11 Sep 2023 10:22:38 +0200 Subject: [PATCH] usb: misc: onboard_hub: add support for Microchip USB2412 USB 2.0 hub Message-Id: <20230911-topic-2412_onboard_hub-v1-1-7704181ddfff@wolfvision.net> X-B4-Tracking: v=1; b=H4sIAE3O/mQC/x2N0QrCMAwAf2Xk2cJSi1V/RWSkbbSBkY52E2Hs3 y0+3sFxOzSuwg3uww6VP9KkaAc8DRAz6ZuNpM5gR3seb4hmLYtEYx3aqWgoVNOUt2Awee88Xx3 FC/Q4UGMTKmnMPddtnrtcKr/k+789nsfxA8GULi59AAAA To: Matthias Kaehlcke , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694420567; l=2126; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=oCsLx/a2DAyB+iiaf6JFdAjrrrjl6uj4Lyk2O/OWTc8=; b=yMXT7qKtsGQC/hcF31OfVgsn2qfdXlIlY6d48tckha2/UHn46n8tSjRMN2xdIJPraW95qrY9X LDg6FO6bxY0Awn0CDx64kGSnB0v0gB6Y+KYgxpoRavjLheAao9v1QBx X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR06CA0133.eurprd06.prod.outlook.com (2603:10a6:803:a0::26) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|DU0PR08MB9394:EE_ X-MS-Office365-Filtering-Correlation-Id: dae7a88c-494a-49b5-24e0-08dbb2a047fb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9MjqpCEIQwafQpcnhvRimXTZrF/nxAdgg8Pqf0GhpajOpnNbD6eVgVb4fl2leDUOZfWtjwOoHoENQDXSwaz0yK1OtMBgPDrHMWE12sHn1FBcc6Sl02pjWxiyhMtZViPmw9GlyzyxdTOqKu18onTOr9nJK+S4lJdioGNt8V0aS4peWsQtQd0gsIxHyOoRh2B9KL0AEd4MkiQBh1ksSg4W1SxC+eYxHRz8Q4tYC3+QEKn+Fa9+zphZh4/+OaMSUEHbrEInqA82Qb3sqdKHzJhMrMFkwhHbHtT0KLeIDL1ydNqbYFvTTvUDIoEz8McadwpQnMyjAuwHlCejVXCjsiwHk3QB6VmV3Steas66+hWMWL5kYEmKOh6dBlXW9190iIGGyipwLUNFL/oNCy+2FZV+DpdVvQ8FrXJkCi+4cdips2SEsQWNrLR6OqSUeCZd8ywehVtEGLTIxz36qWxm+hxxQOKI49fpuJcpkXHVGvb/QUQyrYNy+q11c8lQ95tsyOR2g7AR/VxcwZ2bseDKxL+KvipSQm2TR9vXTw0GTF6FcS/UhEab8r6TRZwbOILRVjP/EIoj+pZ9dBoZXxGOxekpGALVLOwqJY6JMfHt8iNqJGedh7TKT3lOd5QQMmRfOtBO X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(396003)(376002)(39840400004)(136003)(451199024)(1800799009)(186009)(44832011)(2906002)(5660300002)(2616005)(478600001)(4326008)(6512007)(8936002)(26005)(6666004)(8676002)(110136005)(107886003)(52116002)(6506007)(6486002)(66476007)(66556008)(66946007)(41300700001)(316002)(36756003)(38350700002)(38100700002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?5k6IXAmvtIdY7thkJiWqQX3DCTlp?= =?utf-8?q?vsn08k5uAiyjw7/tU/+cdiD7H7L8X0jBsXn0SSG/NU2xGU/iusBCgv7OK84qFm0NQ?= =?utf-8?q?gVIanVLYpdPIVW0+C9Z+lSDqdYPed/4AHZXJmO0P4Z8fear4VvA33JWdzUcGmxW4a?= =?utf-8?q?BrYUWoMZGDRsKnJ6xPrqEz50EbGDbSrs9P6QBskBcwtR1AQzKvolv3mNi/vlbXpNF?= =?utf-8?q?Z61+aaWCltLbvvAo9Tnlbwdd0JPO2T/jN3z3smEysqmJu5E3zXgheJeK63+6Gm/1T?= =?utf-8?q?UTbPhdO+sFv6r+6gPlGIJPIGZtZYnT+22n81WBKAe0AfVfIAQb0zJv3LkEKDRB2y4?= =?utf-8?q?rfY5xTpDL/VBVP2+mDE8QxGGrnlPbJVKCu3FwYZJdvquBkRtasrpAazcW8Qfy1lVA?= =?utf-8?q?mZ4G8mHrE5aXAu34eAGDH4tJZ/e8dg+6edKf1zi7t8G0jOSKtO+/uVuMR0/N95IqE?= =?utf-8?q?VL3u/3aSHvhk/0UUCR5xmOgQVfHVR3gmMe8N3naLce3Xwp9CpYRFmyrVn92jBvdzg?= =?utf-8?q?Ge6FN8+yWgvYeNIYeFLPRQLd3NHZATbimsYh09+ovOkxT08gDi2eGbliFGU+jW9x9?= =?utf-8?q?EwTocKtOvJvP0RRbc3SYinS+ZWzeFOSKQjbs5r9fJKTGGicjEb+Fx8lFNgCbdhFUv?= =?utf-8?q?RPx3l4WAWeYGiQSVuwBT88ayq4x74NpOGAs4yn4ROoNDlBbJ/eyAHtqyE0bWvmt5j?= =?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Org: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: dae7a88c-494a-49b5-24e0-08dbb2a047fb X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2023 08:22:47.6562 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eXuJitY2oXfBNpN83DbLGuM5rWgqHAy3MULAAsUi/QCjCpE/vBofJgvicPEFP8davgi63dc75j8tYxFrK6XtXYa5axTl/4MJDqiP3dtu4k4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9394 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The USB2412 is a 2-Port USB 2.0 hub controller that provides a reset pin and a single 3v3 powre source, which makes it suitable to be controlled by the onboard_hub driver. This hub has the same reset timings as USB2514/2517 and the same onboard hub specific-data can be reused for USB2412. Signed-off-by: Javier Carrasco Acked-by: Matthias Kaehlcke --- drivers/usb/misc/onboard_usb_hub.c | 1 + drivers/usb/misc/onboard_usb_hub.h | 1 + 2 files changed, 2 insertions(+) --- base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d change-id: 20230911-topic-2412_onboard_hub-1d7747e84ac6 Best regards, diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc/onboard_usb_hub.c index 3da1a4659c5f..57bbe1309094 100644 --- a/drivers/usb/misc/onboard_usb_hub.c +++ b/drivers/usb/misc/onboard_usb_hub.c @@ -434,6 +434,7 @@ static const struct usb_device_id onboard_hub_id_table[] = { { USB_DEVICE(VENDOR_ID_GENESYS, 0x0608) }, /* Genesys Logic GL850G USB 2.0 */ { USB_DEVICE(VENDOR_ID_GENESYS, 0x0610) }, /* Genesys Logic GL852G USB 2.0 */ { USB_DEVICE(VENDOR_ID_GENESYS, 0x0620) }, /* Genesys Logic GL3523 USB 3.1 */ + { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2412) }, /* USB2412 USB 2.0 */ { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2514) }, /* USB2514B USB 2.0 */ { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2517) }, /* USB2517 USB 2.0 */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x0411) }, /* RTS5411 USB 3.1 */ diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h index 4026ba64c592..2a4ab5ac0ebe 100644 --- a/drivers/usb/misc/onboard_usb_hub.h +++ b/drivers/usb/misc/onboard_usb_hub.h @@ -47,6 +47,7 @@ static const struct onboard_hub_pdata vialab_vl817_data = { }; static const struct of_device_id onboard_hub_match[] = { + { .compatible = "usb424,2412", .data = µchip_usb424_data, }, { .compatible = "usb424,2514", .data = µchip_usb424_data, }, { .compatible = "usb424,2517", .data = µchip_usb424_data, }, { .compatible = "usb451,8140", .data = &ti_tusb8041_data, },