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 8D72B60A3826 for ; Sun, 29 Nov 2026 09:28:21 +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=lElD3QfU 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=E/zxTNdvri70TUoxNavY+eoh+b34sHowZ+TL7xEkcXU=; b=lElD3QfU36lYBWNxTbYjfYpCdQ WG45AYnIs8wrsdxWWi0VZeyQlWHUbM07R7o6MClqhTG6EnhdXRNS5Z2V0u0HwwSFZvUfC0LVAGfO/ oHWMM2nYEfpIszISA4rcOWg2bG5PA4TERelKq5CV4KncfR8RYMU0YQDuQZMNdnhZTb/vy8UrCBN/R RRxVpN3yEGrH7745wSYNg6g7cXzmKrDiAettTXzETeY6WIT2kdf6FAuQhHzuYd000JgoLmtiaZSAk sU06l+W0vzgnitcJlOYPNV2Wlt9evNqEdJAjX4UTVMspUsSUGilILY0ZmN4bz2z04fLNiRqyWT0x8 yNHiIPkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCn-00000001jn6-0TpY; Sun, 29 Nov 2026 09:28:21 +0000 Received: from mail-wm1-f48.google.com ([209.85.128.48]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCh-00000001jci-2DVe for linux-amlogic@lists.infradead.org; Sun, 29 Nov 2026 09:28:17 +0000 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4a35a60499eso72425495e9.0 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=alF4Ym93zGJje+vOuSbnLPo36AO1cat1B+B0F+mMB65G4YVwNJz5JvXcqEDlLyfCoW 9IF3Cki9qV4f6v1lQ8Xh7pVTlrtzvmfkmmFHqtShigdatIFlMyIf+ToKyT3oRK+Z0e+l RPJ/XmoYbsYOyKA5PdzJ8kr3wpw1VQOWrz6KIR00rS6GuClxWmVBkGFe9jAl7YFsny7C Y94ZYnaNrIwXrdYV9KnueaPjj5TyN7Ubu5Ulqm896LG5KZz8LzjV6KFXtwJANYEdn8aR HGuHvOUrDnT/1rW2spqXl01WdoUEt+rfiNRgEunxn1SacQ0ONidThig0skI4NLojkQq3 sTfQ== X-Forwarded-Encrypted: i=1; AL+hErG5E8hU2jO4m7AKdOqjZlq6793jU0H1PgB6UY6anJUQJYjAglBXyc/kqHNIaH3/HSJn6pfG3j607v98hED2@lists.infradead.org X-Gm-Message-State: APuU4Z/cRTaYLdVp8Q46KfPphB++IgcM3nF3sTrPEzqLdvjzdATjICRE QKbd2i3XoxG8uM6wj8TwXjFB0WXiSWVMB1km34tedxJrkiYCSRx+b0Uq X-Gm-Gg: AZFdTZdVCh4h6A/I/aUhmKWPAGPzyLMhRioqeeOr0wjAXiKdz2Sr6nD40L3s8YItz7a k/bubN6I25O3xX7r/hYaYS9/+4RpRyW9FAozHufTomA7uh1qA4cZht2M0rU/WfbNXplN5SNN667 H7c6hUX/CKzYV/on+K4nElXsgf+3mCITMeJBss6eyKGOVhAdZgAeeBDzZkzxlmxQ7paqDHJKZf7 zvV9AaR1d1l+X/K/4CiTUvDRpWPkDK31vLauJpNyloZmRUTkJHuzV4ymKnDRq3xqsTXMIzZTctk zSnakyIMBovC2NQpHAaFVoUrWuCXshDbJiShW4FW+aIDsODxaxZrfVtwnKezdkaVI9zIR7lwzN2 g2J0ko02V/hpiV3EJPTbAxTU9QwDQUai3yVr6+iH2Bk2VHye7/P0TAlckGD/qqjuvwslqphTAA3 yrwhCoad574Q1s5xqDR9EcR026uTw4l3WS1FkL+/3EtpsdUnXbgC3RbINrJ6sg0pT6MdkLmHipR BC6+W5083gtLne9LiTel++JWKohWQH3IPzrOXw8iY8rN87mF+3MfLC53omsoOOFlmEWlVqE1LII 0FTQszuXnUUfPe3Xw9mn2NbPxNAW7SuR6UHct+qAeMNlhCYhJGVAUC3O8MUNWf2ONizYlFcMfo1 EjElWFEqM51IGnGMllhH9oNPi 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_587473_38F5C788 X-CRM114-Status: GOOD ( 12.05 ) X-Spam-Score: -0.8 (/) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" 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-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic