From patchwork Tue Aug 8 10:07:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 132759 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2331232vqr; Tue, 8 Aug 2023 12:00:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZq1aWZoHcvUwkswufw2eqy7ZFfi9nj3pZ4ECl6EVWx5z2+mEh/2ke2mFJToM5+4WLJ0TA X-Received: by 2002:a05:651c:90:b0:2b9:cf90:ab9c with SMTP id 16-20020a05651c009000b002b9cf90ab9cmr275741ljq.8.1691521230662; Tue, 08 Aug 2023 12:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691521230; cv=none; d=google.com; s=arc-20160816; b=H24O0yNSc+65tLtMeeh5zn8VjGU4raqMPemMajtXpn+uKcpJcJeqZO37zDgM+2fp/8 DbxUMSe+xKdfriYswWcy5NC9NoLPwEVfBfWHc5h8IXAAluhHXlm5BLDuN1ctjFPzuF6U BpnHFCv16sk7IszcL8cKYRZzBttUwCNDkR6ytN30jcjhp1CkBkL7UJ7MfZQaYFKjy1Wm 6Y4cgErrqHhI+W5cC5cOxC3EDnAd6zEysGdmPNyoqOHee0EtY+dmwM4V9QAuuiNJtvy0 F4cBsR69evo8B3Frb/2R1wgg2JwU9Tr5SjkZQw4VhzKhPdhZYp2eqRNxIC7levjwSMid s7Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aKTM65Hk6mGoUuD04O4aN5AQ3hEPhlqNZbHsqhxOlFc=; fh=WCvyZzMo9TozdfJBdo0/WF1opwofCeY2Akq8pcEQTFk=; b=PvGXwX43Xpk6sq91EDWnEEMf0IJNGSPIs8fxoyY2Dr6JWZns+mD4QDmS05aFInXc8+ fgDmTghfC00+EoFdFOYAjY2l+vakefEKyx4kfpML+IHanKDlGCpo3PY0wXiWMsXOcqC4 W/LPtZerbbbF+YniKjHpejcRVpTtdcb7LDfz+5sycbVN6ZrYPDoMSAVmTQwzbETS7pKM d6S01ng+Y49x8qdecBJx+kgMXYc8wh1KbxP8WNOmKuiuWUYHNWU/TFslNVNm5ivDAze3 JIjMxAJQQZpyWI405Cab7RkGxAQd48vFannPseAj7eRCCEUfaZ1xAzlTIByS4ozohzqL GB1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=PGMQy2C5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h25-20020a17090619d900b0098f564f6366si7672559ejd.345.2023.08.08.12.00.01; Tue, 08 Aug 2023 12:00:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=PGMQy2C5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234782AbjHHRct (ORCPT + 99 others); Tue, 8 Aug 2023 13:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234866AbjHHRcG (ORCPT ); Tue, 8 Aug 2023 13:32:06 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6919F91B08 for ; Tue, 8 Aug 2023 09:13:58 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fe2fb9b4d7so49822535e9.1 for ; Tue, 08 Aug 2023 09:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1691511220; x=1692116020; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aKTM65Hk6mGoUuD04O4aN5AQ3hEPhlqNZbHsqhxOlFc=; b=PGMQy2C5Os2kHa7UatjlOZCDrLNrEwQrz1IItVAFXacHosKWUEf7fWStic2qmLhg2Y Ma6YBV4eD6kJ+H/HlR0RPZutppO5vEtVzYdlfIgd2A6/xLYe9PVOMihhPBCGg0bmBzy8 l73GPXsmQTSkbhj2SxJgHc9dYN1VdKyhyU8uAma9vJTYGeRtBEWFazjIvyRJms4xc/yD TxVgFthMiU5vnz/qtHEUthx+Y3OaxqbqrR5HjDsnanEL0NQfcWvBaDRna8kq8uj4b0lB 8p4QjhY4DZ7mCrOu5+Mg1ubYFDP/y4irbaOwmog7Ft0ay9aaa+k6lkMBtdthxu7gqSTU csvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691511220; x=1692116020; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aKTM65Hk6mGoUuD04O4aN5AQ3hEPhlqNZbHsqhxOlFc=; b=TepErPw6rwUKmc3c93F7hzIoK/+95V0e79unUlmYSIKtDssB719zdTzGRTiD97h0YK bbMqoxlb8ymAohcQrl5j5YnXYL6bkYy08qv++dbaMTru+aeWppS2sl5XMimUDFViRbai szla/gWMJG0Egy59n7sHIniF2ojsAlDcCeyWi+1mcvU1gY25rzsASiYZ7n1xehbMqGFe C7yCdpXzgx8FrhTV9TLdcb6IwP12nb2hRaffBoMkpenhzhfShwrG9fSMagfbkhZeGTLV n6NWAHsiDI3M0rvPHzA1LVAp+D9WoW1eXXUbq0xGCwhzru9SL218rRlM4aL3PnVxDbOO vDUw== X-Gm-Message-State: AOJu0YwyLMzlaTSAjbDnxgVtoYGKJRq3/JWWS4LPeDkvMWpSsSed1Caa y5cOb7RG93aHUNi9Ceo6ecJXQ7drAM+dl/PiMDA= X-Received: by 2002:adf:ffc3:0:b0:317:5b99:d3d8 with SMTP id x3-20020adfffc3000000b003175b99d3d8mr7412543wrs.20.1691489280387; Tue, 08 Aug 2023 03:08:00 -0700 (PDT) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:efd4:f3df:2c50:1776]) by smtp.googlemail.com with ESMTPSA id e11-20020a5d500b000000b003143c9beeaesm13109420wrt.44.2023.08.08.03.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 03:08:00 -0700 (PDT) From: Jerome Brunet To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jerome Brunet , Da Xue , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] usb: misc: onboard_usb_hub: add Genesys Logic gl3510 hub support Date: Tue, 8 Aug 2023 12:07:46 +0200 Message-Id: <20230808100746.391365-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230808100746.391365-1-jbrunet@baylibre.com> References: <20230808100746.391365-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773688565807239410 X-GMAIL-MSGID: 1773688565807239410 Add support for the gl3510 4 ports USB3.1 hub. This allows to control its reset pins with a gpio. No public documentation is available for this hub. Using the same reset duration as the gl852g which seems OK. Signed-off-by: Jerome Brunet --- drivers/usb/misc/onboard_usb_hub.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h index aca5f50eb0da..4b94ea375d45 100644 --- a/drivers/usb/misc/onboard_usb_hub.h +++ b/drivers/usb/misc/onboard_usb_hub.h @@ -22,6 +22,10 @@ static const struct onboard_hub_pdata ti_tusb8041_data = { .reset_us = 3000, }; +static const struct onboard_hub_pdata genesys_gl3510_data = { + .reset_us = 50, +}; + static const struct onboard_hub_pdata genesys_gl850g_data = { .reset_us = 3, }; @@ -41,6 +45,7 @@ static const struct of_device_id onboard_hub_match[] = { { .compatible = "usb451,8142", .data = &ti_tusb8041_data, }, { .compatible = "usb5e3,608", .data = &genesys_gl850g_data, }, { .compatible = "usb5e3,610", .data = &genesys_gl852g_data, }, + { .compatible = "usb5e3,626", .data = &genesys_gl3510_data, }, { .compatible = "usbbda,411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,414", .data = &realtek_rts5411_data, },