From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (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 2304A4156E9 for ; Fri, 4 Sep 2026 08:44:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788511462; cv=none; b=n8rqvUeG6pOtzOwa8lMheQAt403+JwJ1iPvgOvfXkcTIk/s5apYCUjVhgOckd+TshBHFZmV8zgjLhvHvZcmeXlCR3OJNTmR4PAvbG8HZk5ZlqFPkjSz8ulQ+6R8vxrPgfO4KiyHeSD90T+5HWAxMjzRNJQO9gBhq00Cnodk6dnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788511462; c=relaxed/simple; bh=evX7eHGckJlWiDjaLlRDSEr7EUj3T3hqiY287BkHQLE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nNTZmbLLMtGGnFZxOhtSXSlgtP84GXfGnrqwB6eJ6LPmcFLI4wuKhaX0ufgyhowrkjDgNU3RgqVlvS3sndlRdTtlwpklEF3zqkLdyQIJAZhVCpCHkG3npJJVFqqQnCLtC8UuiyPq2UszEyjzFOoX78EafHotPlxCzCFAXRt5gnA= 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.47 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-f47.google.com with SMTP id 98e67ed59e1d1-398d2b28acfso556881a91.1 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=Lgqiqy6PHhnmHfX0U15SmnAGJTGLKJWan798CAFa+0mDzsthJI3kyki07l98V1r8HF 7A8Fn/ZLqqoDP3RyuiFerWCNAB92e++L5vmNQUrxNPM3PdHfA64Xmbs3PGNezKD8Qpeo VonvaAGEEevoIsYBrbRxKz7l/3v8xJMZCGTRX0buUsVZRvASgIhhqyUlq+vEQPt2Zo8t riJxSe+AIHuLdWsoZYDNXKgAvi+VdovLes0eLaD2AXlBp24ThpsOUHwyIR1FOly917XZ VaghORS6r58nY1awd7pDonxKEemAGkNNfk53Ofz0wo1n7/qEgsEHvQKf69sVv2br3mEN VD+A== X-Forwarded-Encrypted: i=1; AKwUvBzVBmBSz/Nc6n3GRVhkXz7F7LtOHItV23OiRiY8acn/Q7OoaP5OApqvUbJJBwOjX39Fm3xoqyF+dw==@vger.kernel.org X-Gm-Message-State: AFuF++nqwN11qouGYaNSs2/stjmyL0ZBqzMuI2UVhcaIPgOLKosu02lc rrHcZh0IP3sHl8idAHSAFcF7PREr/fk58OTytQgfIC+0SmwlnZUghWSF3qBkjmc/iA== X-Gm-Gg: AYBFou1dp53pra0rsYJz6FxKg0Kve28sJD+cq5mb8JrR5T0h6V5WuSzSW7qiGBChQb1 UNl9O6hrIU7j6ztB07sG/3esAaXGd6zldx98spw3JD4CHkldUKrTKcCO2Og9fpVSWGMghCRIZYD 6tXqycNJC8OIToyAuOGIAVJhYmU28fT4V1bbwMnn9cEDR+cUngIcWHce5SdlGsl9tur+6KkLNkH PAviNeEDBo7W9/pzFV7bVcRJwnmeGrh1fBc5LEkpLHqX7hyhoDhYFh2uEGPx+XXughJBG1uC8UM VSO2H43cNjBZ7iNFt/uldYZMYaBEZ3pR8JyNgIgmaAb9UXtrzodb/QYlB/pEM0dcZ6ZPbFjqMvo NWSuT3txyilaPNg4nv9fV3gJedU85dVbW1eiyLXdjn3tgwMviVABKUNwrFnAxcdZc6mHRq9aOVU AsjH9qnbvZ4682o7fGuF9/jCNpvi6rokvcYtxvxLH/xJdEIgrlhsd8lHTmSBcJWSOEgYN9Pz74h Jh/v2IlOBw0QSVuKB0Zu0uoF51Xbd4akOxcmSBMRVtv 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-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.979.g7e5102b832-goog