From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D89863F660F for ; Fri, 4 Sep 2026 08:44:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788511463; cv=none; b=qptWin+VFy2paDb24BkYR3C1AvDRvT33lJmFNXzcCTpPeksP3QO9DicrZ5tEpmNlf5CdvcD99/zZlNQwAZetjJlh/I+Hz1sU+aKfSHYW1IV45KdGsf74VCwlgnWkJ1o9+ifjZBbdJjtWEPIUgNSlFuCh1avu+lKXixGw8KQBrQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788511463; c=relaxed/simple; bh=evX7eHGckJlWiDjaLlRDSEr7EUj3T3hqiY287BkHQLE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tMe9RIYBKbL4jelhdekJEFK9XrprUUDD+idCfJW0k5vF7IMYBGWyPJZTMbSihzJZxDGrsp21IEeRaX08qLvDT9IYYL6Uinu26JyRBU+oa1punX1kyqLkegkH5LPgFqjfWo4iK+AtL7w+jRFL2N9FQNYP2T+RD0y+Z2FbMkTZ6+M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=Ka2DzsTP; arc=none smtp.client-ip=209.85.216.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Ka2DzsTP" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-38e041ea211so597954a91.0 for ; Fri, 04 Sep 2026 01:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1788511457; x=1789116257; darn=vger.kernel.org; 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:content-type; bh=ObFYxd9MufAeOT7Yw9/ly+HXxu6y+wv2diiZ0sB4OhA=; b=Ka2DzsTPOYkfLQgnSpArl8sTLhy9gXY5HzNB17WAEfxOiZ4+A6zd/jKUPvA26Nf98w O3zAOQpJiKyxYBVZVQ1craECrAkhoqcmwEwoatmiB7yXgTTHaJYSUi+wPNJk5iNwzKms v0qAQYbSzjTQn5XO0zaU7os1tx1mdF2L6MXo0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788511457; x=1789116257; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ObFYxd9MufAeOT7Yw9/ly+HXxu6y+wv2diiZ0sB4OhA=; b=oMJnCO+nvXAOSshv4GZa8pnSu6prggcTGfBLX56BV9Q3fbeDnzwNYs2pMsYl+LQkb/ Krqs/dgT04pplNPotxIF5iGm6C5Ad87OgUmEs9nEUclIrP+RGgqUg3M32/iqi2lrV8em Z1AxRtnbib5wmBWBjllvXwx0/M3VOxEgVBKlYndzHM1a4nJB2vxHXhM2y11EVg+P04OA O8yBYKpl4DlB7csHsYKDNHPEjzE4h8P0MqnQnaD0xDtD1nRsy5MsA7QaISkIqiAcoe5K kYiu66ygLS3s6ZOk3Pn5jH7zxk06c1dKd1wGtEGwacwH7z5M61p/W1NrJnSxLxLHZCa5 z+MA== X-Forwarded-Encrypted: i=1; AKwUvBzCrvm/kJg+NF3kdoUzQKrPVcelDMxRHNn6aDEG19bkiCz0EHhVZ2vFGM1xC2He7jZPUjqB71egViB3/c0=@vger.kernel.org X-Gm-Message-State: AFuF++nEJ7rfcxP6YuCOHNppcXqWHzuiiSHILXwLGZMzBeOiHizVuYFt Jj/yRtg/+RrgSi8RIhZ4uQzV9gDCs4KFJsQrySdkHsuPy5z1TxnFVLr7UBgdHzZh8Q== X-Gm-Gg: AYBFou2h7LvT7x53PXWMquyJ+QeqPD5Q3DJy9H4Eg7WY0f8xcWicyuDkddaGAMHZpHA jyWo0gvyfW4H8dNXBZf5u3BFKV22Uy47EleeSumfu24t8G6tYdP//hH0fWHfUGd6H0EftTQFaM+ /MG5cGqQPIb+QlKWdtl2rO/bJJa8ELhFw+FcCXujQVirF6087AHRnKs2Dz1Iq0oYSEII9WeWAAn 1UOf84ZUA5cpnTsy1Jh4mnj0rJTTKUH3qi4fv5tYkZ2pI/ucR1/51Li8wTYnIdHtAs8++qADfJH 8EEoOLC/+DKpq6BbVjLbApTUt/UB+su8W5+BrRlaAcgLxrIPqbVvWSR5531PcRHua4jb44joKY4 gJoML6FfCAj5pfDBiaw2RkkcC4iLiCGBOpLAYXgj/vk5jSk+0QbPFtkh/LjhvyWMJpo4pO+Ucma Tw+X0AFobxZHy66cPI6de1kYGFw+PcYqm3g4a8XBB+C6sXxdOcAChagOVEdCUW6HSSx1zQyfjKc iDFIcOHQ07kq2W0F71cPe97rKC7dSyHwoY0QyHoTD7o X-Received: by 2002:a17:90b:2808:b0:398:b46d:48c0 with SMTP id 98e67ed59e1d1-39b262aaeb7mr7039451a91.18.1788511457565; Fri, 04 Sep 2026 01:44:17 -0700 (PDT) Received: from wenst-7875.tpe.corp.google.com ([2a00:79e0:201d:8:343:bf21:3095:9c5]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39b260fdf9asm3343538a91.9.2026.09.04.01.44.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2026 01:44:17 -0700 (PDT) From: Chen-Yu Tsai To: Bartosz Golaszewski , Greg Kroah-Hartman , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , "Rafael J. Wysocki" , Danilo Krummrich , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Wei Deng , Konrad Dybcio , Chen-Yu Tsai , linux-acpi@vger.kernel.org, driver-core@lists.linux.dev, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam , Alan Stern , Krzysztof Kozlowski , Bartosz Golaszewski Subject: [PATCH v8 11/16] dt-bindings: usb: mediatek,mtk-xhci: Switch to ports for USB connections Date: Fri, 4 Sep 2026 16:41:50 +0800 Message-ID: <20260904084158.1341550-12-wenst@chromium.org> X-Mailer: git-send-email 2.55.0.979.g7e5102b832-goog In-Reply-To: <20260904084158.1341550-1-wenst@chromium.org> References: <20260904084158.1341550-1-wenst@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This reverts commit 454a1e3cd36c113341d7b71e8e691c6e47ab4a8a. MediaTek's XHCI implementation supports both USB 2.0 High Speed (HS) and USB 3.x Super Speed (SS). The block can also be synthesized with either HS-only capability or HS+SS capability. The SSUSB controller handles the device or gadget mode. Saying that SSUSB handles the HS portion is wrong. For example, on the MT8195, the first two instances support both HS and SS, while the latter two instances support only HS. Switch to a "ports" sub-node for describing USB connections. Port 1 is Super Speed if the controller is SS-capable, otherwise it is High Speed. Port 2 is High Speed if SS-capable. This port mapping scheme directly matches what the hardware returns in its capability registers. Fixes: 454a1e3cd36c ("dt-bindings: usb: mediatek,mtk-xhci: Add port for SuperSpeed EP") Cc: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski Reviewed-by: Bartosz Golaszewski Signed-off-by: Chen-Yu Tsai --- Changes since v1: - Squashed DT binding revert and addition together - Dropped reviewed-by from Bartosz --- .../bindings/usb/mediatek,mtk-xhci.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml index 231e6f35a986..d6c75bd20b78 100644 --- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml @@ -107,10 +107,6 @@ properties: - description: USB3/SS(P) PHY - description: USB2/HS PHY - port: - $ref: /schemas/graph.yaml#/properties/port - description: Super Speed (SS) Output endpoint to a Type-C connector - vusb33-supply: description: Regulator of USB AVDD3.3v @@ -188,6 +184,19 @@ properties: "#size-cells": const: 0 + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Super Speed (SS) data bus if SS-capable; + otherwise High Speed (HS) data bus. + + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: High Speed (HS) data bus if controller is SS-capable. + patternProperties: "@[0-9a-f]{1}$": type: object -- 2.55.0.979.g7e5102b832-goog