From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12E81606A325 for ; Sun, 29 Nov 2026 09:28:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Z9TxPV5x DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=xroMy7+XGieY37+iEeRPfgMeqTFgEmICUqPlSbsKVD8=; b=Z9TxPV5xzNF7S1CUai0zoFdx42 TA1AyB1I+NDFJw9xAlVUfk66c27eSWCwFYuvBI2QHq9XofOEwNMKCDnQh+pdisGNME/RUXG8+2XuC aCe1SvdNHo/srGemRzwpiK5MczdKp+P7oQJw+sQQNMmZTS0S7gCQw6Kndh5vc23fJiolR8X1ZHUH5 CsEJklAD4kJComDrVSA/O1lU1Pihrnr+WJXFwy2mR+woAMaLPXlZq3A6kViaprEXBVO/veuHXTkgX xJV/y0S/j41+A7HjE90yPrZE18Sbt7GDXYxxaWjB7ylv3RNBsnjaALPri0gLV1PliWFM6Y/UW2kDG knGTGlmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbD0-00000001jzT-3RC8; Sun, 29 Nov 2026 09:28:43 +0000 Received: from mail-wm1-f49.google.com ([209.85.128.49]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCh-00000001jck-3Gew for linux-phy@lists.infradead.org; Sun, 29 Nov 2026 09:28:18 +0000 Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-49d05d51553so65069475e9.2 for ; Sun, 29 Nov 2026 01:28:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795944494; x=1796549294; 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=54x/lpLAezvPi+SG+SqQKgrnjqyP4wST3E/buVQaPOw=; b=oTluvncAcEIOIHBkuu6J2a4XEBIJfTAkRPcMcdQ1R1kWwabWw3ufa5aT8ycNHwjTLl bdanhyrDgdOgoMgy/Q3hCXQchFu9dx1qsjy8sR9wgAHcYq9AirSIqemOxYN5MgxNBTuf pCHAuC5AvlFtF7jh6e6McxmsCfXR6EeDxIHA0xmPZ3YERUV1wInDKxKFEYnu9Yh8Sa0Y A32HDHXqtbtzcDWHIQP7VEUcXCdehFU1ggSoPbt9iAEuYiBw1saNlZ3RNNJZl5ZLfZ3e H+C0fXhcktRQEjj/ZmQXtdj3mvIr11BVIDsdPToy7wrxsVeTuBK2Kg6C1x3olnHU/Ht1 DQAA== X-Forwarded-Encrypted: i=1; AL+hErF8ojN/WiTjbfm/gANjW1xNRYIPwhZVRGBJU7wItqkAPVVphGBKR/T8wV3t5tHfsYqKIwDeMdDgamY=@lists.infradead.org X-Gm-Message-State: APuU4Z8aF1TOXrPH3lbuDut5/4eDrMytL8RYppXeyQj4yliqneX6NhNq RCvgG+T1v6BlpgpEY7p0keizY35C7JVEAtrm/twdyZx102KDly4cats3 X-Gm-Gg: AZFdTZczrAGzkkuuqbuIY6yDDdkEJH9qBzShppIi1+y6LCpmo+p1y3BZMx39mJXMYMB z0LAUFRpHUZ/4SLxtiH0EQ8u67BVnIkASD0k1ZT7IKjH+j93aLECcM1pa6jCVsq5AUywmZ1IPvP /hvtIffekSuJDVvaF4UyWqgraBiWYRm+HCMKUeoP0HlIA5m2+JMBKbPs6n9v3htWaojLC6z17zu GEC3qvkwsdzBi+rtxaSXxMMM/24/vOBmNJ9g2rQ03iL88i+owufLw3l4NbPHy8JsS5kL7ZizVHy nWBG3OUlhekz9Ffhm1cMzfHfsrYci8zI+IRDz3t9cCUVzwf1N1mkkGfkKyqeo8JAD9GLUSckROg Gryg4JHNrzkyiI5smt3A1f+alNF0YNhHkLNoHPYWNIkQ6ib2bK6POKU4U0+wyFDYDCpDBlBhSrt eVwVUdPlWrPesQ5hyeHa49Ue8H0Lvd1NfZCy+FYQ5o8AazxAhYKkjFwqXn5bhelZ4Z30n6M1bMK 2JzWyCUZ9SHinEeLypNJ3jyC4vpAlN5iycrmqqN0VCki+CxQN58POBO2JdYPIuK/K1HbS47K1sQ wkYc5Z5DU2jeQCX5CqwzcLUcSR1aEBfx7plfBbu8x+xItmHuF0rvwg/pmwmRmDBGYdfXhsM7uFG bTXazrvnnf0hadZkRg/rQqrJj X-Received: by 2002:a05:600c:3547:b0:4a2:a6e:80f5 with SMTP id 5b1f17b1804b1-4bb888098bfmr610434085e9.11.1795944493835; Sun, 29 Nov 2026 01:28:13 -0800 (PST) Received: from threads.localdomain ([84.68.176.78]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf61e8sm60210765f8f.11.2026.11.29.01.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 01:28:13 -0800 (PST) From: Lucas Tanure To: Neil Armstrong , Kevin Hilman , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Mathias Nyman Cc: Jerome Brunet , Martin Blumenstingl , Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/9] dt-bindings: usb: add the Amlogic T7 USB controller Date: Sun, 29 Nov 2026 09:28:04 +0000 Message-ID: <20261129092810.146043-4-tanure@linux.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261129092810.146043-1-tanure@linux.com> References: <20261129092810.146043-1-tanure@linux.com> X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_012815_847571_81218AE3 X-CRM114-Status: GOOD ( 12.05 ) X-Spam-Score: -0.8 (/) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 The Amlogic T7 has two USB controllers that are not described. Each one can be a USB host or a USB device. In the host role it is an xHCI that cannot use addresses above 4GB, although it reports that it can. The driver must know this, so the controller needs its own compatible. The binding allows both roles, so that device mode can be added later without changing existing device trees. Signed-off-by: Lucas Tanure --- .../bindings/usb/amlogic,t7-usb.yaml | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml diff --git a/Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml b/Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml new file mode 100644 index 000000000000..3eb56fb5fa6c --- /dev/null +++ b/Documentation/devicetree/bindings/usb/amlogic,t7-usb.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/amlogic,t7-usb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic T7 USB controller + +maintainers: + - Neil Armstrong + +description: + Dual-role USB controller. In the host role it is an xHCI. + +allOf: + - $ref: usb-drd.yaml# + - $ref: usb-xhci.yaml# + +properties: + compatible: + const: amlogic,t7-usb + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + items: + - description: USB block reset, shared by both controllers + - description: controller reset + + phys: + minItems: 1 + maxItems: 2 + + phy-names: + minItems: 1 + items: + - const: usb2-phy + - const: usb3-phy + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - resets + - power-domains + - phys + - phy-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + usb@fde00000 { + compatible = "amlogic,t7-usb"; + reg = <0xfde00000 0x8000>; + interrupts = ; + clocks = <&clkc_periphs CLKID_SYS_USB>; + resets = <&reset 4>, <&reset 6>; + power-domains = <&pwrc PWRC_T7_USB_COMB_ID>; + phys = <&usb2_phy0>; + phy-names = "usb2-phy"; + dr_mode = "host"; + }; -- 2.56.1 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy