From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795944495; b=lg7P/U6YIGt/9GXy27eX9u5eiTcV7UpaFcNRY3k63PZAcjORW2c9RCFdrzHSPZnre1Zm uEAGUu/CXy017MH+R5rO/dXcXcLq/dy3QHYDiX+/7QENCHsqeacLlZRJWZNzgof81r/eS 4bWaiy+kypmd/g3DIk9oVY9E27Hz06l0yuT+5twfm8iFKbljtzS2pFEUs0fORyjvpcjU4 1Iem6KVWHvNKz36MT3E+z1ShrxVpr7f0KJzFoMEpxlrE0/511WRoHUbzyhL3nxVkcq8XP M2V3bYeCZe1pf/iKTfoL4ofnmKD+pp5FGUP+qk4GkFBRRzqzcuw803CjOlPG7YhiYjA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795944495; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=54x/lpLAezvPi+SG+SqQKgrnjqyP4wST3E/buVQaPOw=; b=ObtrTgiufMHjFxgZaQtk2E27YY8eU01Q2PJjumPiy0SJjHtKB00cuUAgokdSyegDQOK3 cXplnrVYvH2djMCi9oXh2Yo1SbCAIspWgHdPY9wmc76y3rt1Y55kFdW3iKVFplKbmk0Qo IR80oTP7BOkpy6EZ6JpR+pt4mSMSs2crGVQzq0sSEua1VLVDov+eZPheQvfSqqj4QyfO1 rlixiSo42fjtuGf116tMOPgLEpgvCCT7MU0+W+9HOWUBVVCN83nw4fWX1KZ9q55dFhOm1 boanTrak9X+UjFNLkbLPtFMfBh+PC2cemzEaHGWV3wx+Lrgqn74kodYOhj7uUVQoOjg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.remote-ip=209.85.128.50 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E4CA606A68D for ; Sun, 29 Nov 2026 09:28:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7E4CA606A68D Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-49d05d51553so65069465e9.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=c7aIWlcAEmCTQerqvzHgf89IU6rZIcX6ljAgOcprVkqBx1s/EmVx65FlI6C3SAhwzZ kTUN98b9Rohvzq8l8s8/zt4yBbyZ0/O4Z0d81otnPxOdQCm7hmqCps3EDqsAXpL1PRrl o6JFIsk9Gw6RZwbgiNhrymx2E/AgW90vi8IfgXXvfYiMGrc2wLZzVzT+ACYuUqz/+t2o b32BjGTM+BxkWy32k6/2QtryBSm15vJz59JEnFkX24LkOLUObitPgT/I0nxdFu4A9aKQ 1TJcC3u0J76AVq6KIjBWf6JZI8vftZ2g+KIs7azAa17m4ZXz9pt1NKwUyV2bjr8owKzY 0Lmw== X-Forwarded-Encrypted: i=1; AL+hErEqqUzezMPV6/xWJ/mpUioSDSHLkcESSbPbOVRWQ6Oc6yYuLlYKxyA57zCCn2k+MpbDwRHL4ZSE+43Xbz8=@vger.kernel.org X-Gm-Message-State: APuU4Z+q4wraAD6busumlJUMllq0PMVFyzzd4oMqFWrBmNf0yJNWFNzN VdEcrYXLAkpy5OFfLJZXHD4C4EmQMhTqnXy5lfNmxWu/LCkhJlov+YQT X-Gm-Gg: AZFdTZeVByfQCUrvSR+GAlLguzgPMzDvJZJSYf/j8bsToG4kYn03Si0lZlNWCga0gsi J9XH+tyBN0xRM8OklRedshvQthHTDI1YEV9SFIqe4bVQbIbFymEUbXd+sK1KHTOZazlLTBAWF1e PGOBIXJMhM1ZcC0wcq7BfRpRc1e5BXsloXkc+oDdTIiUidyhxSl6Khvw00q6TjOeGWgS7raccav KAr3ecHzFtQrj3Ew7F8VGWOKy1XZyvkr66fMHG5cw/cE+ZPQmtwA5e00iwU5dZffmf6mfQg+OrZ kADymLwdt8oafOzN8cPgEZ0KoqTn0orPSMKApAz4d58Y8BhKQYv1ttSodlxldYZk1HnsZMTIu20 mlvCHq6Z3XKb6AzqRh5vIwxhNH3iSU1Aiy5QoLdVqGANy7iEhcqUiBQWd4Co9/yzCAUqVcGDOEU iWiTUTFg8QfvUFYBIfHJ1V2BnpIoel63VgZEjF9nRt8G9WAS8IH8eWxsPBVfXXLUfYrae2mRd95 H49K4dhpzSOIZX9aOsKB3sIyELjfbgNr+GB4L5m2XNjmp50oWPgQQ5cHoshKyYFIzoYQDblOiCF pOO+jY+/lpsJQx1vV5ERCCOMHU1Isv+1dRG5QYlJ9WTus1EOlGOWFIQFK+01Fn14HR/iK22ILpZ Vou4ToQc27dQIi6R7S5Uor7Cz 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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