From patchwork Tue Aug 8 10:07:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 132895 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2413854vqr; Tue, 8 Aug 2023 14:49:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIPWKhwPgD7RDmtJzRZ0DxJp6kukustQNF2Z2iUcHvkRRi8yw8ivrG0DWa5OtQ/gXpDtRa X-Received: by 2002:a05:6a20:12cc:b0:13e:9dba:ea43 with SMTP id v12-20020a056a2012cc00b0013e9dbaea43mr13456890pzg.2.1691531349057; Tue, 08 Aug 2023 14:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691531349; cv=none; d=google.com; s=arc-20160816; b=amotbOGW9dyiRq0fdy/s6V/bZtN6rqwmthc+IYjYyzlkGiZOvZro0iBgWVRafXJszE KIs3TJHCkG337edIJfYMe3aeWJHQ37dHt3DSrJ+jQhNHQic6xzsDssntz58+6aVcWcRe isA/KhY6HAQuvJjW2PjmaqjTFHSvMj4rcxDuRGCqENQh9DwbwcdwVVjH0aQoNESGs3s/ RCCzKOkhayNM0yu2fM4HOzSJ1DHrYb1hcQH8SA4iAwhGkcOcZrRBywuYbnDfEBErmg9x vkfN7uuWVibPejO8Dxo/7XtTEBrFeDs6aVpadM89pKP49jDRq/whIOiGs+R2KDa+QM03 qSLg== 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=r+/8A+T5kJZ2sAJcy7n9I+3axWMphmfRgNl05Gm90p8=; fh=WCvyZzMo9TozdfJBdo0/WF1opwofCeY2Akq8pcEQTFk=; b=ttWkp0WfiS0f6pem9cDs6GP0LBWlFPB5DAallLb+cR0Vp0ZEmCx/LeP1gT7jHz6ope kUctI3obxR3i0hkdLma9d4dgr50imHZ8p/w5iw/lTt0SxxaS2YCC/QezHmCMx5S8MBJN d766HTS5sOBQ72LF9AwPeM1sluOUVB9tZVFimOhdENDLrYgo7EsOYscfGfBHMMwnZNKV Hqaxhk5rAh9zrPevNw/PAqcvEmkY5YvvWQKZ35sFm+ovK6t9kBrjlQ1WbVF54X0JAKOp XfopTaBqkRP5XxYLAmqULNmOmBVfR476xU7V+VGGL+55MM/T+oTtZuV7zV483mMmVMVC DFkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b="mxJM/9/t"; 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 i129-20020a636d87000000b00563f627f2ecsi7939592pgc.13.2023.08.08.14.48.55; Tue, 08 Aug 2023 14:49:09 -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="mxJM/9/t"; 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 S232069AbjHHUdd (ORCPT + 99 others); Tue, 8 Aug 2023 16:33:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235363AbjHHUdT (ORCPT ); Tue, 8 Aug 2023 16:33:19 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE6A1146576 for ; Tue, 8 Aug 2023 10:02:23 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-997c4107d62so821733566b.0 for ; Tue, 08 Aug 2023 10:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1691514140; x=1692118940; 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=r+/8A+T5kJZ2sAJcy7n9I+3axWMphmfRgNl05Gm90p8=; b=mxJM/9/t8gXgW7N5V3pLo3zx7b0zvyfoaIAncu3fiGSHfSYk0A0KDsAXt5X9RtUhm9 dk/9OGvoShrGz67zKqmsVGUb3XZiqL8nh6zu+9fGWeGirckYxaiPvSG4eNjMCUg3/hho ilXnChUV4mDCLUd7oauYGuglKMIwI3ay+ub3peicN+FBsBpdlY/KoBjnYcF5bwezL/54 GTH2n4XqdLpJzRhvOMNpmid/yyAd6NARExYgRIclTsAoZ7dOUzaVjJ8WU1CmcA1PMr2p 6V0GBbhre97RpbS1GedOVc8HXKoVJ34flqlU3yl6vUShfjKz8k9nXMleqQu4xvoGbb2O J2mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691514140; x=1692118940; 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=r+/8A+T5kJZ2sAJcy7n9I+3axWMphmfRgNl05Gm90p8=; b=kQCC8fnp72055BaEpXbZQlZZfBVjuTKyX0TWPrTk6Bb/J0gHKs3DkW6M6gp59SvYnl OmbaYh7TFxjEpGJH0I7xWZn6JUf0nBCjv605EukhBF5d3USMVJ5ZJHZ8LfaOSayAAjV2 oZcFug9M3SZQRcYVzfiQU5gr+NYk0J8x+T3mhFoi5u83nxW2JwRYqhs7eqTs14H6Jd5X tTccF+9xOiwF7sKGpAsGwayoEeLmhNFQygghZziBC/yfKemCBqNkZsS1GVl6QvYryoxh K4zCwDT473VwetFnFnrBpTe+e6cbFhOuxmZMwKvu8hvRc7AlhmKFaxNzBZToEsrgLCPR gZSg== X-Gm-Message-State: AOJu0Yysdg1cIsHEshgHwUzwVF8VsLtq5l/Mmm/HVS3fU6L1tDTh1cAv CoXkKZoSrquXYjBid2caHxj8qaiolUXG6On7AZ0= X-Received: by 2002:a5d:6d51:0:b0:317:f7b0:85f with SMTP id k17-20020a5d6d51000000b00317f7b0085fmr1442288wri.33.1691489279549; Tue, 08 Aug 2023 03:07:59 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 03:07:59 -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 1/2] dt-bindings: usb: add device for Genesys Logic hub gl3510 Date: Tue, 8 Aug 2023 12:07:45 +0200 Message-Id: <20230808100746.391365-2-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,URIBL_BLOCKED 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: 1773699176137850535 X-GMAIL-MSGID: 1773699176137850535 Add gl3510 USB 3 root hub device id Signed-off-by: Jerome Brunet Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/usb/genesys,gl850g.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml index cc4cf92b70d1..a7e7142651f8 100644 --- a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Genesys Logic GL850G USB 2.0 hub controller +title: Genesys Logic USB hub controller maintainers: - Icenowy Zheng @@ -17,6 +17,7 @@ properties: enum: - usb5e3,608 - usb5e3,610 + - usb5e3.626 reg: true 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, },