From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 6E07D3603D5 for ; Wed, 15 Jul 2026 08:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784105715; cv=none; b=T18NghXg9NbGzycPQYEJypjF6XXekmd2hQV7mIwwCkSsEtzYxeuWtG/eGIn/8aFvOs3fJ9a3bZbUtQe5PuIkx3bwjiVBe67GLC/aSnVxTp5xeYG5/kh+DwmoSGRZBIABCBa9XfmJ14adjldHohOAh6/sk8IoOGzaTANrlYA3jVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784105715; c=relaxed/simple; bh=lenyNo7yJLPeybyXOoMP7XgBlraWqZU0r6gw2MR7+1c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=axRPoxuRJCIpIe6+cHBCFXg38gzon+kK+yVR8r/kJfOe3235DjoxYKojxpA/5RH4++RbryLlkRB5l04AIGKinNRMTKp62t1WP0nI9Rar/Ctxr4rnXSdeZ+2BAfxn9YnPw8zN4B9ep6qHbkwUmq8Ww7y5yUjJLnPk06ZV8PIdy6o= 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=Ixva/yuz; arc=none smtp.client-ip=209.85.210.176 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="Ixva/yuz" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-84830c774a0so1410840b3a.1 for ; Wed, 15 Jul 2026 01:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1784105710; x=1784710510; 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=pRAxPjZgDa6ntXP4Zl1WhffxSqufwl7Pl3uMzQrQ3GY=; b=Ixva/yuz5D8tKB4fohb6jSQatDmVli4ujpK/mqdAvHBKPKha/QuP7t2Ivn0Wv3lDqt 1wWxnoZDTc+IcD0OucWOXv8l3eeB9EuUh/okhTMAhiPp2FOkgnm1tZ8T7MoDfq2o0p5k HZ/ipY7/MwQBwkMDoPjcitYhDKLK3i3z9YzTs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784105710; x=1784710510; 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=pRAxPjZgDa6ntXP4Zl1WhffxSqufwl7Pl3uMzQrQ3GY=; b=rPxdoK2vx6QPvQGymYOtbBHCoLnpzzy7p5wrUXkg9NkryS2t8Ia3STQzmFZjoEk6jz cCbGqf5xqiqfCl88gv9tNhzDhKNWNsNWOPtZ26A9yqWjHHaqsfMS8gVOBrDC2GT33X/I dZxO6LjLJZuOFFKy4AJkOvqOixB4hNoAFaQf/P0oQM6jmXxZt1DsTu2K1NVUFNMRfv8s 9vWvwaRimB0N/vITg3OaKMAa8M3cVrJyYYjq+uiB8Tg3fSjuWgPheXkGs6/2El8ITWYd tVlitZy4Y2xJfKJlL/M1GjgASJWeqoCQzReFc6H2w/iw4tWhOE1t/rN4YGdu9IgRU+DU hPWA== X-Forwarded-Encrypted: i=1; AHgh+Rru1GKSanapX3cE1oH6hUeA4HjD7RwR+XwRLTWNJBBl14SoXaEEQHYwI+PDZCJUukAJbOCYIatLjA==@vger.kernel.org X-Gm-Message-State: AOJu0YyIQJJ1ceazZamcmfnZq68V//jjfyGR++G1iKI21K/TxEP0y/M1 n9FEYUpUcKqjp05RKtc4rDDTOmRTPaPcPwBzpalvNRcPxvF9o6lMxp/zWGrKC5cHkw== X-Gm-Gg: AfdE7ck3zKm+Sp2z5z2vqDkNNAkxy8FJYgc+xNX1zf85HueMwVJ8E15Pdkuy/jT/Biu r4rcYk8lRulY2QfGW4zd68Ai54xNTfuDFpF9QgeJO4HFECa4WW51b7tlW/a54ddUgOhU4CLBYvk 32YHyM8hQJqv7xKG/HKfwcXQlrECv/du6z0FzPtnATuMu1rDGDISYNaCrHEZqZ/rwadYw5zZUme gtf7Pfka/rUFAumXCtD0h1ArAJJQCfWOJfT//RT64fkEVgKHFxOeJB+KE8wNbjy1QncStH/aqgW bramCU8xgVEQHYm1MwMD8Lkgri+VSJE+H9nnQ8LIpjvg8f9p4suTQ1PxO3GMn4WY1L5q7G0+RZ7 3TzBfb2oqXo+p7+EY3A1m2R27MgbqeXwg1eR5WwHOc2FtKxunkFfHMTJwACWMtoYocw4h/1eGO0 JnU7NZedpatT24lp0AGYh9xtRId+ZQReqmFm6xPykVLaB6uxwLkivnl/18n2Qq0RJv8dGoHA== X-Received: by 2002:a05:6a00:1d90:b0:845:e9e8:6458 with SMTP id d2e1a72fcca58-84889703f26mr14531622b3a.20.1784105710178; Wed, 15 Jul 2026 01:55:10 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2a00:79e0:201d:8:47d7:4aa5:a6f8:2279]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84a4f819117sm2757491b3a.59.2026.07.15.01.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2026 01:55:09 -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 , 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 v5 11/16] dt-bindings: usb: mediatek,mtk-xhci: Switch to ports for USB connections Date: Wed, 15 Jul 2026 16:53:41 +0800 Message-ID: <20260715085348.3457359-12-wenst@chromium.org> X-Mailer: git-send-email 2.55.0.141.g00534a21ce-goog In-Reply-To: <20260715085348.3457359-1-wenst@chromium.org> References: <20260715085348.3457359-1-wenst@chromium.org> Precedence: bulk X-Mailing-List: linux-pm@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.795.g602f6c329a-goog