From patchwork Thu Apr 3 14:07:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer_via_B4_Relay?= X-Patchwork-Id: 878158 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1BA4A24EA87; Thu, 3 Apr 2025 14:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743689276; cv=none; b=jLGbCYEdEmKR0jwpCDjQ7WFPzY1j3Y65e8A6X/eKt+wP1oA8zdMsfnM9quFJkeyKDlicuN0FY58ZK1D1nZcYqa+BH7g2Kl3n33pw3erMSapBgJCRAh99r+gbXUeJ5bd2WmCjgpzAQmPWDgqls0nV8z0ZUzzLkZJAnPq+eKz5rIU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743689276; c=relaxed/simple; bh=3FwSqM9SC+WHZ8dEJUVrk/XcQOpiJyVZ62XDNM38fSY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=n22V0429jM5VB0nMZ38LtDz5Mh/r/niinubhV/EKBdgVB9BJwJKycXA8FlL6tFZDv9X5YCyNfla5eE77n6f52QGUYSAX5gbilbbo+8+YyGfqFuHbnaa2/wOkGZuvc8tjtui8Xwh2PNCTSIHrD38/N7iSlj4mQMlTFbjdKPrv/aU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o7ZeqP3c; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o7ZeqP3c" Received: by smtp.kernel.org (Postfix) with ESMTPS id 9CE54C4CEE7; Thu, 3 Apr 2025 14:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743689275; bh=3FwSqM9SC+WHZ8dEJUVrk/XcQOpiJyVZ62XDNM38fSY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=o7ZeqP3cBbix2BiVtd6FiQ004WxBFGb4wPJBK/W78NagXkjjtpI6Ey5y1Jha2peOA RtZ2cAWvUjdwXqnCtAdb/j8OOLiucXtRGmVWlC6/HPKzui0/XduS8cZVQNbiA2kQga tyRVi+KUN2OGb/RGW3vsyA3HiNRAts/MPYhD6risr4ADnh3DD/KqYC6mgOVuzCMk9w WDHYs26WKLiHfj713Rdy/StBQTU8YbCtvKor7NuzvRZ7ILkeOlnC5W7/aRdT1NQDZM B9XWzPAKZ+wvbpbcoUqXMPKT5wYhXKa1SNu7ChlI3M5iLQNo7RqaljvTc1k40UV819 RtCp+qaz9ZwBA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CE31C369A0; Thu, 3 Apr 2025 14:07:55 +0000 (UTC) From: =?utf-8?q?J=2E_Neusch=C3=A4fer_via_B4_Relay?= Date: Thu, 03 Apr 2025 16:07:49 +0200 Subject: [PATCH 2/2] usb: misc: onboard_dev: Add Realtek RTL8188 WiFi (0bda:0179) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250403-rtl-onboard-v1-2-10ca9a6a4ee0@posteo.net> References: <20250403-rtl-onboard-v1-0-10ca9a6a4ee0@posteo.net> In-Reply-To: <20250403-rtl-onboard-v1-0-10ca9a6a4ee0@posteo.net> To: Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?J=2E_Neusch=C3=A4fer?= , Matthias Kaehlcke , Greg Kroah-Hartman Cc: Martin Blumenstingl , Jes Sorensen , linux-wireless@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1743689273; l=2626; i=j.ne@posteo.net; s=20240329; h=from:subject:message-id; bh=V7FgpkJgVxsLWxgPTEDrQZdT8sqpW6FnLj60Ip+eQq0=; b=wWlOO1jh3MgN09JfBP6U4IbG6aiD4LxjJ5jMde05MqWe3qERaOzrKekpVPopAefdy192uA2Pw 1f1gE6rDl4ODckwfnZuboH/L561fB6Azh1L+4PvvZIEhWdzT4gebrCv X-Developer-Key: i=j.ne@posteo.net; a=ed25519; pk=NIe0bK42wNaX/C4bi6ezm7NJK0IQE+8MKBm7igFMIS4= X-Endpoint-Received: by B4 Relay for j.ne@posteo.net/20240329 with auth_id=156 X-Original-From: =?utf-8?q?J=2E_Neusch=C3=A4fer?= Reply-To: j.ne@posteo.net From: "J. Neuschäfer" Realtek RTL8188EU 2.4 GHz WiFi modules are found soldered into some embedded devices, such as the Fernsehfee 3.0 set-top box. It requires a 3.3V power supply. Signed-off-by: J. Neuschäfer --- checkpatch.pl flags the "usbbda" prefix as undocumented because it isn't in vendor-prefixes.yaml. It is, however, an established pattern: $ git grep -E 'usb[0-9a-f]{1,4},[0-9a-f]{1,4}' | wc -l 213 --- drivers/usb/misc/onboard_usb_dev.c | 1 + drivers/usb/misc/onboard_usb_dev.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/drivers/usb/misc/onboard_usb_dev.c b/drivers/usb/misc/onboard_usb_dev.c index 75ac3c6aa92d0d925bb9488d1e6295548446bf98..2f9e8f8108d8c36403b02f3e66db55757d4808ef 100644 --- a/drivers/usb/misc/onboard_usb_dev.c +++ b/drivers/usb/misc/onboard_usb_dev.c @@ -584,6 +584,7 @@ static const struct usb_device_id onboard_dev_id_table[] = { { USB_DEVICE(VENDOR_ID_REALTEK, 0x5411) }, /* RTS5411 USB 2.1 HUB */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x0414) }, /* RTS5414 USB 3.2 HUB */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x5414) }, /* RTS5414 USB 2.1 HUB */ + { USB_DEVICE(VENDOR_ID_REALTEK, 0x0179) }, /* RTL8188ETV 2.4GHz WiFi */ { USB_DEVICE(VENDOR_ID_TI, 0x8025) }, /* TI USB8020B 3.0 HUB */ { USB_DEVICE(VENDOR_ID_TI, 0x8027) }, /* TI USB8020B 2.0 HUB */ { USB_DEVICE(VENDOR_ID_TI, 0x8140) }, /* TI USB8041 3.0 HUB */ diff --git a/drivers/usb/misc/onboard_usb_dev.h b/drivers/usb/misc/onboard_usb_dev.h index 317b3eb99c0255269bb0dbf27b9aa29ef1bc15bd..bee255306d21e1c95d52aaf6aea97518321ea285 100644 --- a/drivers/usb/misc/onboard_usb_dev.h +++ b/drivers/usb/misc/onboard_usb_dev.h @@ -38,6 +38,13 @@ static const struct onboard_dev_pdata realtek_rts5411_data = { .is_hub = true, }; +static const struct onboard_dev_pdata realtek_rtl8188_data = { + .reset_us = 0, + .num_supplies = 1, + .supply_names = { "vdd" }, + .is_hub = false, +}; + static const struct onboard_dev_pdata ti_tusb8020b_data = { .reset_us = 3000, .num_supplies = 1, @@ -111,6 +118,7 @@ static const struct of_device_id onboard_dev_match[] = { { .compatible = "usb5e3,610", .data = &genesys_gl852g_data, }, { .compatible = "usb5e3,620", .data = &genesys_gl852g_data, }, { .compatible = "usb5e3,626", .data = &genesys_gl852g_data, }, + { .compatible = "usbbda,179", .data = &realtek_rtl8188_data, }, { .compatible = "usbbda,411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,414", .data = &realtek_rts5411_data, },