From patchwork Tue Feb 27 09:02:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Macpaul Lin X-Patchwork-Id: 207095 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2574804dyb; Tue, 27 Feb 2024 01:03:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW1rsYXYu5YOynFVMzo0RCFlKr4WtnpBQGrCfggc6s0jxOd0mBquq74gkPv3VfEhne4Pta2BWFeKVLLF+2zr5f3xJkgTg== X-Google-Smtp-Source: AGHT+IGvzknMIssp+txAgbKSreXgiWvmxBgUP9jOm8tCfsJ9ZXiI28D2lL5VX5h+NLhKr/FK0w7t X-Received: by 2002:a17:906:c28d:b0:a3f:c115:3ac8 with SMTP id r13-20020a170906c28d00b00a3fc1153ac8mr6306871ejz.43.1709024608978; Tue, 27 Feb 2024 01:03:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709024608; cv=pass; d=google.com; s=arc-20160816; b=CHy9fUu8CU4E6IqsasAo8ioTxKNACuENUqqXJHx5mXKMdYxw69ze86W+lcZoMs/+hz BKQYeaIf0f656r4GCaw1WubrISCHApjbDWwgULfPDVm0q4E2yzAseCP1rDEHQygbg8SL etGyskLHjBL7mCCXX+XE6Z27m5blQdRpV+s34WzfqdPTSW9NHrbXyCphRQ/Z8sSgOzsi mGhzBdqx/Lx676x74QBPAC9zBIlW5JZhGq4oAu8lZ0l02I6ZkQUIBF0LK/XuumqOY2WY IzPpw/3xLXkgZYQqBDNkpT9D1SVEyznPdEFthefeRQkLGfbSrHP31GeeKv3XdcO6gA1j QnCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=tmj8YPmmqvqYG5v+SWsXq/apQfPyzcxQHhDN/sTXgcQ=; fh=DHFeF9eHwe8qmlM2CU3aHbSGUo/uHlKTVYljfNz8J7M=; b=ic4r44nyiXB/UYVrbJi+Cd7gIGUXL6I2Jajcra3grF9rE3XhK3x2+fI/YasXS0SYEb Lxo0N9BQkCkoMjH31iswntMNTZYktmudisDLk+DdolMpYKCC+3vm+2cWkpho7YzO7+bv jDIv/rmNUIyCZH4VZqvZ3I2zdEYXHH9ZwRNHoWjixP1yJagI01+FZMtc3yZCZgHU5g2p VU86zcbkiXmGJN9CbbxYM3bZ9pOEErwkYnFe/lK5N4JdZNHWSL1v6Wvg5IzE2g9GkCXa OgiFkM5pGmUWNwcFL1Cqvyb2Iu02vscqKFF7Tb0KMCYYqHN7QloPOmnnXUwI4a5c0jWB 96SQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WAFouEi6; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-82899-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82899-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r5-20020a17090638c500b00a3e9055c0d7si527697ejd.947.2024.02.27.01.03.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 01:03:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82899-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WAFouEi6; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-82899-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82899-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6DB291F218AB for ; Tue, 27 Feb 2024 09:03:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5FA7136670; Tue, 27 Feb 2024 09:02:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="WAFouEi6" Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (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 635573D68; Tue, 27 Feb 2024 09:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709024572; cv=none; b=PTCj2ETBuA1eFDKbpOYNx8iphj24UWTLml4yuSE9Q7SRYz9gb8o87Q028EoJCEMtKpGIRkFJEVYm9BPOqyy59SO8O+caZ/8bfF2qymG6/9OL1qL3kdHxSojVrpW2ue0g6ZaCrJASheil3ALY/OjVaX8Qt9hB9vYoPlxhqrFP/v8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709024572; c=relaxed/simple; bh=MDyB7kN9fLzkF3IUaQuVq2aN3lZtwp94JqS0ur3aaFs=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=qHmSgrSg888Zxfh9Q/be5oTVhQWGakRx2fFjl9+NtUSCigK9/c9+qQywvfiuSJ/dOTpK/OBN9DL6AxDBJ+VySIjJDkczSA5nbl6NZ2UOrCthGladAYkQMy8Zsspvq7Wc/0qk9OlGVzD6AGAWR6EY+yKaye0cel7DbvnfIQGjzmY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=WAFouEi6; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: f4540afcd54e11eea4ad694c3f9da370-20240227 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=tmj8YPmmqvqYG5v+SWsXq/apQfPyzcxQHhDN/sTXgcQ=; b=WAFouEi6N11te0IuPXOLm7Qkrqqo6ImhICnKtq1D242RoaWBlb2dmarCmNDEuFetCup64fQY0hftU6hiXCydE550XhE72iU5tiZ2n6TA77NVTPD5typFHmA4nuSDAk8/kjTHdDoNIXHQawuA4wQS9Tx/sEExNuODCWDz/zsf8WY=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:b09291ff-bcba-45e1-b45a-14aa6171dcbb,IP:0,U RL:25,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:20 X-CID-META: VersionHash:6f543d0,CLOUDID:e3775e84-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES :1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: f4540afcd54e11eea4ad694c3f9da370-20240227 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1368438755; Tue, 27 Feb 2024 17:02:37 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 27 Feb 2024 17:02:36 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Tue, 27 Feb 2024 17:02:36 +0800 From: Macpaul Lin To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Matthias Brugger , AngeloGioacchino Del Regno , , , , , CC: Bear Wang , Pablo Sun , Macpaul Lin , Macpaul Lin , Chunfeng Yun , Yow-shin Liou , MediaTek Chromebook Upstream , Chen-Yu Tsai Subject: [PATCH 1/2] dt-bindings: usb: Add binding for TI USB8020B hub controller Date: Tue, 27 Feb 2024 17:02:27 +0800 Message-ID: <20240227090228.22156-1-macpaul.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MTK: N X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792042188280024515 X-GMAIL-MSGID: 1792042188280024515 The TI USB8020B is a USB 3.0 hub controller with 2 ports. This initial version of the binding only describes USB related aspects of the USB8020B, it does not cover the option of connecting the controller as an i2c slave. Signed-off-by: Macpaul Lin --- .../devicetree/bindings/usb/ti,usb8020b.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ti,usb8020b.yaml diff --git a/Documentation/devicetree/bindings/usb/ti,usb8020b.yaml b/Documentation/devicetree/bindings/usb/ti,usb8020b.yaml new file mode 100644 index 000000000000..8ef117793e11 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,usb8020b.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,usb8020b.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI USB8020B USB 3.0 hub controller + +maintainers: + - Macpaul Lin + +allOf: + - $ref: usb-device.yaml# + +properties: + compatible: + enum: + - usb451,8025 + - usb451,8027 + + reg: true + + reset-gpios: + items: + - description: GPIO specifier for GRST# pin. + + vdd-supply: + description: + VDD power supply to the hub + + peer-hub: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle to the peer hub on the controller. + +required: + - compatible + - reg + - peer-hub + +additionalProperties: false + +examples: + - | + #include + + usb { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + + /* 2.0 hub on port 1 */ + hub_2_0: hub@1 { + compatible = "usb451,8027"; + reg = <1>; + peer-hub = <&hub_3_0>; + reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; + vdd-supply = <&usb_hub_fixed_3v3>; + }; + + /* 3.0 hub on port 2 */ + hub_3_0: hub@2 { + compatible = "usb451,8025"; + reg = <2>; + peer-hub = <&hub_2_0>; + reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; + vdd-supply = <&usb_hub_fixed_3v3>; + }; + }; From patchwork Tue Feb 27 09:02:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Macpaul Lin X-Patchwork-Id: 207096 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2574829dyb; Tue, 27 Feb 2024 01:03:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUuozPZsYd+TYnteoq9WTqALQwLvjIcbqbixmZ8csMGANSh2VL+HXgiVZv65jhpwh5qC976CS5FWyAmX6mHygm5PnsCtg== X-Google-Smtp-Source: AGHT+IFk5vD2QSgTxrPDc9lCh+IrugWw3yxdD832mG02l1cLZauFaOwrUV2ZGOITlttbeAzalRB0 X-Received: by 2002:a81:48cb:0:b0:609:2fab:f816 with SMTP id v194-20020a8148cb000000b006092fabf816mr281008ywa.29.1709024613875; Tue, 27 Feb 2024 01:03:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709024613; cv=pass; d=google.com; s=arc-20160816; b=SEI//dQsNuESdSDq7IMdeLpTajbxVyYsx3WII/IeSqK1SoUF/BomahJjEpA5o7rtKj aEH5Ou1fw2y/n5x3l8czDWJPvzjS8QqmS43AIYNLdHY2yOX4Ddc9FduVJg9mn99tqGz8 z6e+mLuoS2QAogmkc0pj9xqlVO94aAHJMllAc8+KDF12tVigzRM5h18etK9v95jJw8RJ /UezQZtvX5jfPBrVDpsYdKVq8GzbAecJR1V9yOVrlOZ22A/46GlV0PIZ1j1B+xtGyf9w xalqz7cBuY4LT5r/6qfelzcTXC93b64WflN5qZrMpY7gJ17c9m5nP9i79VH2CwEjv1TD 3qeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8OThIfn6BIQq05HaqmPcAmZQvWHQOfMXh3CrMlCShBo=; fh=DHFeF9eHwe8qmlM2CU3aHbSGUo/uHlKTVYljfNz8J7M=; b=Y4KMdlw8dsm7TwgrpMEjSnlEK2yxqIkZlEngg8LPj4OrPLTRXtRj6Mh1QiRMP7gdL9 xoaTznmniCcL20CYyAAhAnsoWagzSYz3IDr+S3en6aIxDTwS4eGRbYQtccmwYEG0/OA8 EITUWkY5Pf7H9RLYarrvHkoR01zH4oA8kros8qoUH4FIdSTe+176b0thUd99J8UngcwU slbFZ7deX13xx3ycAnvyar92hblgIDTDkb9UF6V/WOgQRguBXuWsjGmTB7KaeYT0STuP flsCYZNrhSWOtZoTSkxyOqTCMjIJU9oJz8Fc2EfUwyW1B0KNPdxM9wxmhib8pPUQgUXx g0RQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bfN7JS4o; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-82900-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82900-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s10-20020a05620a16aa00b00787b487ef99si6905610qkj.625.2024.02.27.01.03.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 01:03:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82900-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bfN7JS4o; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-82900-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82900-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A84191C2266C for ; Tue, 27 Feb 2024 09:03:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77C0C13667C; Tue, 27 Feb 2024 09:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="bfN7JS4o" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 BB07954BCB; Tue, 27 Feb 2024 09:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709024573; cv=none; b=AxvsOd2pG1oV0vt6xID0lHWpqud7N+exyPaRAdct3LHZUKjCuzKgFii8PYpWW/dTg060YGyvmJ9Y4pVEl62ZhBdLu0oN2KTPyqMkOT1uLpgvCNtj1Pl1uw/MRwdLvZMKDub6YD8FgT85rPdv+hThPEH44YONRdzf8xSey+e1tAI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709024573; c=relaxed/simple; bh=5XGsyfkhdqZJfxTu2MezsTiwGPmdEGuU82hbzxU8+Ww=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ipdc/2biofRtozmCzR0U2ehinE3mkSkVygo6EDLbrXCsHRWt4EILJfIxy5GO+tBGjMtvRX5ed4LP/a/cCXhkAtrwzrkfKB9k+qK1HhnqzKgehXgfIQ/hO3g7OBOTC0NuD64BuYPySp16Lf1HWcQGHObu7bHRniG2Ey//16yzO1A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=bfN7JS4o; arc=none smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: f4766138d54e11eea528b71b88a53856-20240227 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=8OThIfn6BIQq05HaqmPcAmZQvWHQOfMXh3CrMlCShBo=; b=bfN7JS4oKqWjny3XooJ0iH9PrtLmM60LgtHNzgpteQ9DVr96y3BnrW3vXcV3IYjGJpfT+ZrFn2rP7tmGlhLpWGcjFj6f1InguoTSUT3K3NKZdAKwmpsWmyEAaRGmdKgSCICAylCez3C+V7N3uljJ+GmqrtHSxftVaKPep5n5YIs=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:3fcb109a-2b38-4ce1-a031-1077d0c83628,IP:0,U RL:0,TC:0,Content:-25,EDM:-30,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:-55 X-CID-META: VersionHash:6f543d0,CLOUDID:ce58c58f-e2c0-40b0-a8fe-7c7e47299109,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:2,IP:nil,UR L:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,S PR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: f4766138d54e11eea528b71b88a53856-20240227 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1390185718; Tue, 27 Feb 2024 17:02:38 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 27 Feb 2024 17:02:36 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Tue, 27 Feb 2024 17:02:36 +0800 From: Macpaul Lin To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Matthias Brugger , AngeloGioacchino Del Regno , , , , , CC: Bear Wang , Pablo Sun , Macpaul Lin , Macpaul Lin , Chunfeng Yun , Yow-shin Liou , MediaTek Chromebook Upstream , Chen-Yu Tsai Subject: [PATCH 2/2] usb: misc: onboard_usb_hub: Add support for TI TUSB8020B Date: Tue, 27 Feb 2024 17:02:28 +0800 Message-ID: <20240227090228.22156-2-macpaul.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240227090228.22156-1-macpaul.lin@mediatek.com> References: <20240227090228.22156-1-macpaul.lin@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MTK: N X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792042193366146898 X-GMAIL-MSGID: 1792042193366146898 The TI TUSB8020B is a 2-port USB 3.0 hub. Add support for this hub in the driver in order to bring up reset, and supply dependencies. Power-up: Issue a GPIO reset (GRSTz) 3ms after VDD and VDD33 stabilize. Signed-off-by: Macpaul Lin Reviewed-by: AngeloGioacchino Del Regno --- drivers/usb/misc/onboard_usb_hub.c | 2 ++ drivers/usb/misc/onboard_usb_hub.h | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc/onboard_usb_hub.c index 1e169c97f45e..e19c11a64923 100644 --- a/drivers/usb/misc/onboard_usb_hub.c +++ b/drivers/usb/misc/onboard_usb_hub.c @@ -457,6 +457,8 @@ static const struct usb_device_id onboard_hub_id_table[] = { { USB_DEVICE(VENDOR_ID_REALTEK, 0x5411) }, /* RTS5411 USB 2.1 */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x0414) }, /* RTS5414 USB 3.2 */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x5414) }, /* RTS5414 USB 2.1 */ + { USB_DEVICE(VENDOR_ID_TI, 0x8025) }, /* TI USB8020B 3.0 */ + { USB_DEVICE(VENDOR_ID_TI, 0x8027) }, /* TI USB8020B 2.0 */ { USB_DEVICE(VENDOR_ID_TI, 0x8140) }, /* TI USB8041 3.0 */ { USB_DEVICE(VENDOR_ID_TI, 0x8142) }, /* TI USB8041 2.0 */ { USB_DEVICE(VENDOR_ID_VIA, 0x0817) }, /* VIA VL817 3.1 */ diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h index 373192afd022..874473e60132 100644 --- a/drivers/usb/misc/onboard_usb_hub.h +++ b/drivers/usb/misc/onboard_usb_hub.h @@ -31,6 +31,11 @@ static const struct onboard_hub_pdata realtek_rts5411_data = { .num_supplies = 1, }; +static const struct onboard_hub_pdata ti_tusb8020b_data = { + .reset_us = 3000, + .num_supplies = 1, +}; + static const struct onboard_hub_pdata ti_tusb8041_data = { .reset_us = 3000, .num_supplies = 1, @@ -70,6 +75,8 @@ static const struct of_device_id onboard_hub_match[] = { { .compatible = "usb424,2744", .data = µchip_usb5744_data, }, { .compatible = "usb424,5733", .data = µchip_usb5734_data, }, { .compatible = "usb424,5744", .data = µchip_usb5744_data, }, + { .compatible = "usb451,8025", .data = &ti_tusb8020b_data, }, + { .compatible = "usb451,8027", .data = &ti_tusb8020b_data, }, { .compatible = "usb451,8140", .data = &ti_tusb8041_data, }, { .compatible = "usb451,8142", .data = &ti_tusb8041_data, }, { .compatible = "usb4b4,6504", .data = &cypress_hx3_data, },