From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (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 28F37431E47 for ; Fri, 4 Sep 2026 08:44:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788511463; cv=none; b=Itf6NCN7mE1CXAkI5eeIyQ8pRH/r0/gHx8TRRzr6+ox6ny09PwbhGtX2a9JVZJo4+/7S1sDJ07am30ef4t7tXELAhJPy4POnf3DnPeWhIMTdap/dRRDyQ1ovS1y8Fh3qPWRjBJYbJ2mHzYWKDpObILgFxVzLCw3rPwaG+rtQMeI= 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.52 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-f52.google.com with SMTP id 98e67ed59e1d1-39266382df6so617744a91.3 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=p6miNehFnOn8F4q2F0S0dgueccZuY4oiLIZg8+qbPDOiw5BFw3Q3BhNrbM2XElPGcC /hLRCBdF4y4m/HjELb64HDkDbxfUxG9F823IYRyRQOFxWcaIS+Ek9J54TO45S+Mpfznu 2HyYjm0vuf6MjJqD6uiS6jtHObhFm4Kzh9m6R7sgFADrxX5lBXwVXX2JaIGIc0sz0bdA rTJNbapqVRBYn3TCavjQWpWfwLYdJROnk1awrFeZN/IhzbZllqKN8wPVOeFs8mPISsv/ XNuK1HVXFpSHn/mPMSmqEArgYQ9C8PVJxzMst3/AObi4Ydt3ROZCPRJpmFSvnDebWFV9 4F0w== X-Forwarded-Encrypted: i=1; AKwUvByoT3Ykc/JEBjlwu8wDY9BFK0sWK6ZljebHwC10oUC/7rl2ba350ZvAzbaGzKJ/SMw5hww9YKu/gBvK@vger.kernel.org X-Gm-Message-State: AFuF++kLsghnh83PF9gbqnv39hFj+gHhOSjy4EApPqvAp081C9RzDtwC 6WR64A4MXmOB8lEO60gUHb7u9arTIK2SxnpCvbkz02YT+qoRPNe+lA24afGQksWqPw== X-Gm-Gg: AYBFou3/5gL791X1hYQhhb7T+DHS2s3jhQtbWmJjI5yiyAv4iLl0kXovSjFt6azjlUb qGCpEdi6U71G+AI5tQNW9LQXHttSIjcnp6tcsmPOsWZ1cQ/LGBfgCGvrhR+n8aw9BX204mExC92 xd9cxsqgI3FH8Sv+x3G+wEl1L85SwJjQej1Ih3kUF35x9luPw69+r85mSxL0icBhRVjMg2R3c9l CJGRKmi3PiU0KiyrV7T+s7CycturfP8m4XEukh6kppsxxnBU1YD3VIi2btjo/VI98dh0JlKM/MF Mznyy6L5G5YeIrfSPIo6wbISpr5gKf+lYWlZ4fRC6IB8uK4IC2tJiCMLfRva+R+Ox5ULMhPRZWl ki+fRcx9A2LOen3IkpF23/HLaiKY/EWFCWGYle52qIl9zzQ5yA2a9OPy0fmtNMdc0OcJP8sNLIm 9SO14l+Zp+EAuyxVrJQIyrafDI/IxhgoeyypxNcx7Gv51FHX6fgbocp0CQtR0nOP1Udu2DyBaAb /yqGqaOrH5eWJNZeN5KETgl+3dAbwKAZN7xO87PGBcI 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-acpi@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