From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f12.google.com (mail-pj2-f12.google.com [74.125.227.140]) (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 E4D003E6DC3 for ; Wed, 16 Sep 2026 07:59:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789545579; cv=none; b=oTvm/yanvrqDFypsE6wIiDH0FU19iC3GXcYNRHAx24YQVcmFPT3I6GHw4KOzirUWQPYMwXeHxpIx/K8vpRZGX6rygisSK9LOErIgZEXgIJsmB2lpNjW4Qv1+mDPxuxojTXgk2ggsF0qGHNNuaiF0QLq19+BLN4OGuqCKQCbYxFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789545579; c=relaxed/simple; bh=n5OM2/VFYsx7oj5lWPwm1kxpni3dSJJQk03UQEkKIio=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hOXrbXXBF+iICyyJ6UASs9twu7gXXJSMw5T5PKkRoCyjOncIdWq4W0wkzH3FRbq7TV/lJ6OCDIFk026ARNv7fflpp4Jt8dm2e07/rpjh1PLBznpxqExJJmWiFY6g6dgmXLDsiw3+7IzMlwANvO/9KmqSSqX6zhQCeaG5wHawRaY= 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=ohYqnxUt; arc=none smtp.client-ip=74.125.227.140 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="ohYqnxUt" Received: by mail-pj2-f12.google.com with SMTP id 98e67ed59e1d1-396cccbba91so453877a91.1 for ; Wed, 16 Sep 2026 00:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1789545556; x=1790150356; 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=UnPIF04bEgfqnB06sJJ+n/4J6DJ5aXluvuxFl2QwIxQ=; b=ohYqnxUtCPXeFU+yDLfm/g1jv2GU38BjR70gPaXT6fZBcN1akUi9BoI/csovFlpLeS X8cZbpOkdAT7PpAIHjYLJsNJXHKv2pVqHHFVhp77Ze8Mz8Pjou+T1OuotuigsqHGgzKo GTUvC3aWZ47Z7rkhK+0MjnFLYucVqepA4e0UI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789545556; x=1790150356; 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=UnPIF04bEgfqnB06sJJ+n/4J6DJ5aXluvuxFl2QwIxQ=; b=ULNY91NmPaNl6htlWo51aszHAynF7VHgSGORueC+gRm5WawCyaQFHP8hClq8Mhqucu Slq4QOyuYwvCFySpJgCwDFROqzK1oFIGUx8JBkCFdze8/plqtN2ekCBQZgfj7GVcW8AU egtfkz5eK6vsEt0jDqReZ1Otu58KEzD5diz4GgQZxQkCUZgkdC40CrgikZURNC5F8kQB 3e4Nc2dk51wqBsiA9fRNDc4kULNJ+q0aavjC4K2towtVbC5l8vywvCaJWc8nB7wJnaB0 52QDtP3VhokyyFq3RA2qdFp8CR6hNbB66Ip/hwciuB2vD/a4XurRM2VswZYcKKYOjqC6 W6fg== X-Forwarded-Encrypted: i=1; AKwUvBw4BBUVUW8CQ1C17Db3Y+5c/DEVPEzmtDNknToMRY5Q4mgDn8UTJPlfTlv1YaVg1hyl60K6KIbnih8G@vger.kernel.org X-Gm-Message-State: AFuF++moszUhw9iB7xhj2txII3QTBMHQXm59WQ3whY1wDHIbQS6hiFnK XRrKAvfsnEAv6z04zgTizMoiTEBxt88+gLu8BBoQ8SW1EhSyq4PsY2Nmv/ribA3Wdw== X-Gm-Gg: AYBFou3IyztqZ+XPSrQlpT4FPrybPo7f8vEvzwKPggJBx8yrHNejZI0wx/hR0AnYIfd zEJEKIOnxtsu3l446xkCNhhEhZeHC2iKQHrzfQxi8z+mkzsThYpQy3d8csTT594CPINxDHcmYsf PTO4qBDk+1VNT90jHvY7asb8Y3GkeRssSPEXIrUAaRAsyc4c8cPI8BUb9f+EomFPnnHkxYHRUfW ulGyusY2pIqUEh7+GvSKXeBb4L29GL6rN6w6yLS+O3yYzCC0yTHGL9r8jT4sotrzgvwhQCdYVeP CVZHv55Flx3GNhSkHTfcg4fsTMQR8k3LpCD/Zs7vUJb85BsD5VaARPq7Xg80rljlAn2GolBmKOk IAf3M7pPVV7hYBQauQ+oloGwDlO+4nhwX9vrUch6cir9R+cu5ELHBc3Pt9hevQNlKRUbhUi88CK 4yGMEPCg5aHw05PLECfUdUVebb22S0O3QZyyf0lPr8nCn9ukEEQorWGKR7pD2z18ff49DRgFY+R /5miwQ8sGEoJ+txIH9b2vfS5JIfP9deANO9rF9CCfx40m2lTgwMAFrYMQ== X-Received: by 2002:a17:90b:4cc8:b0:398:c292:ac80 with SMTP id 98e67ed59e1d1-39e1e330a2dmr4372580a91.10.1789545556050; Wed, 16 Sep 2026 00:59:16 -0700 (PDT) Received: from wenst-7875.tpe.corp.google.com ([2a00:79e0:203d:7:1f62:7622:5d61:2578]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39e1b7acba2sm4348197a91.16.2026.09.16.00.59.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2026 00:59:15 -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: 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 v9 10/15] dt-bindings: usb: mediatek,mtk-xhci: Switch to ports for USB connections Date: Wed, 16 Sep 2026 15:57:36 +0800 Message-ID: <20260916075745.3549953-11-wenst@chromium.org> X-Mailer: git-send-email 2.55.0.1032.g73a4cd73de-goog In-Reply-To: <20260916075745.3549953-1-wenst@chromium.org> References: <20260916075745.3549953-1-wenst@chromium.org> Precedence: bulk X-Mailing-List: devicetree@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.1032.g73a4cd73de-goog