From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76158C43458 for ; Fri, 3 Jul 2026 11:04:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=D4WWH0bleuNmTAqXa1RwaMnEajgDvtrfpYNFP62ibWI=; b=QogZv+Gmrq7iASZTx9aPKZM8H0 7yGcCJn6Sfa0C8AqYFWhu+QJQiJH3RdNM+caJzRlZwgQ9uODe3a4GqcWKoEFYmQl0nm+NQlpJG0vh X3GxK23YF1CpFRB+aCy0VpcpbCNjqFIefl0T60b4RcVH5VuEMCl9Hj07un8URHErIXWP7KVQRa/wU r7xon7j+2U4dVjPcxqbNS0EgO1F8poNmKXLUveftOAX+FYiuwtkO4chWhsVW8DspBqz2MUrHhnlp3 TgZzaJjq+OXFDiovTLJEvoLg0wuU5F1/BelL/4wyJq6ahvo9oOQYqzh1oC9ySJIaI5uk3P0deMZh7 ibXcjzcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wfbgx-00000006ldN-01Dx; Fri, 03 Jul 2026 11:04:19 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wfbgu-00000006lZV-0fgW for linux-arm-kernel@lists.infradead.org; Fri, 03 Jul 2026 11:04:17 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-2caa57a41cdso4417535ad.1 for ; Fri, 03 Jul 2026 04:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1783076655; x=1783681455; darn=lists.infradead.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; bh=D4WWH0bleuNmTAqXa1RwaMnEajgDvtrfpYNFP62ibWI=; b=oCiB9cUbRbHyt21X0/XbdJRJKFtEqG693P8YhSi8mrqgwpR6o4gN3Fpw7bwWf7ZIFc B+aKB+fC/VwI+YKfCVCJOAxI3KC74Bb6/1bOyDadCDK8Jv87SmnO1+6XfcrksB+3tq6x pnEhsVkEc9CMpLuk/B0SFxCWK5MeK3EOYDvaU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783076655; x=1783681455; 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; bh=D4WWH0bleuNmTAqXa1RwaMnEajgDvtrfpYNFP62ibWI=; b=LMQupPNNn5El/0/RzO6f+rs1tao0T9a32kKIJr6bkU2DUeZBvWnfdxcs5MWq42Fh1n TZIbK3O3ioER2Q/XLSg2nBN7jPriAMSo/FEx7ZgZQ5OsY/0vtwuyhQL0Pkc84R9X7FfF htLh9t2Fqys89HqpivllOV86QwFRX25VOlF9ASiWNvnSIor7v+/r24zMIBdq/Ac5f+aX Qz5lpIKX5mzAMumg1AshMhxPjPIdj0/BzbD+0vmc5r/CH1jI8+LfK0GIsoEVDok90IxG 9XmQkde+VsivF8SotrKAiWHBGoDYVmxDXx31j5T4VMQnDRSvxGdxCxqOIxerBJXj8iGg qsOw== X-Forwarded-Encrypted: i=1; AHgh+RogtzBF27wT64jbGP7Oma0afe3QSiSJD926ckTXXRI0DNfX80YAL1Q94OGQaHXIsKUn0k/PyJYDldACjH4nGEs7@lists.infradead.org X-Gm-Message-State: AOJu0Ywyt2bKx4t9xtHAEXo0ik3imLgQSZVKDeHv4g5l3OSe5ghU4mtt Vrfsad0lSp8+NMnM8bZ1JjktDmkWYkGJECm4bjrhRdBhtnZou/0qFzYco/XPj1bI9Q== X-Gm-Gg: AfdE7clvA2LT4a6nEHA4FFHUkNcPXVS1oIJZU/GeIeA3+rGfMeF6HF1M+jIqmR3KkZk KxbbJgb4o9YShdWzrSOgujAa6rql6PTYM/uyOgCAGsTrzyBmSYeXglSBV8w4BukFiFBvgJ2efy5 z1o/Q2mUhjAae33meE9RyHC9JuNp1LxNr5RSlFwne1lEZjDNVNSPvhpkbFcAWhESJFW+6E5JyBy 816o5TpHAg7c9VFolhzVVHALO4Z4W5zKI4RO68V/aMPjcJMF8/IypbpNPOknK6duHdZ2VU1eL8y W9rfRkXYn0wJe6sEl2jnV53Km65a5wfSTdeybRZ+IjTL6zv3CsWj1tNQCiYuDZXUqV4+1zt811V q1kUoiqIFA0tSEvI/esXuAkTmXz2H6CJJ/MVt6RRa02yWMEs2Sk61FDGyBJfIV9URR9neyGgOPs wnvrjAKgysWd+UX0R9d53EZrR7mCSnifu/K+55H4uyERqwH8SjxrAZE9I7kqPT/dq/WaruSA== X-Received: by 2002:a17:902:d58d:b0:2ca:d7a0:1312 with SMTP id d9443c01a7336-2cad7a013f5mr21135815ad.25.1783076655443; Fri, 03 Jul 2026 04:04:15 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2a00:79e0:201d:8:7bc5:6c83:76cd:cbd6]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cad6f25e15sm7785315ad.13.2026.07.03.04.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2026 04:04:14 -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 Subject: [PATCH v3 09/13] dt-bindings: usb: mediatek,mtk-xhci: Switch to ports for USB connections Date: Fri, 3 Jul 2026 19:03:10 +0800 Message-ID: <20260703110317.1283411-10-wenst@chromium.org> X-Mailer: git-send-email 2.55.0.rc0.799.gd6f94ed593-goog In-Reply-To: <20260703110317.1283411-1-wenst@chromium.org> References: <20260703110317.1283411-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260703_040416_218574_56172144 X-CRM114-Status: GOOD ( 12.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 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.rc0.799.gd6f94ed593-goog