From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 819493D0929 for ; Sun, 4 Oct 2026 16:52:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791132740; cv=none; b=tWnBGYPkyh8rrtTg257WNLzTRecPJpWEiwCVALZ3H8AvHFiZDnw8PDVylyjv8/3yYjCg/qvOA1aAPfqKmqCW2so353rVotalHnE6JrvlGIjNaVV2YIodJRHhL2YZTD1i6TxydtOgBd+ziNr2dzgh4mr+TkxTNNYNLdZdW8UCyJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791132740; c=relaxed/simple; bh=v+ePETCe8wPnxEXXhds1CDCZkr+Y5xOzkRoCEoyMHko=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QfoYzEbzsmHI9PhKy/+RZ/Jp0YtNaIK3fz4LWXg+SfJvPAUDCAz4NrWuijqMBt3s09t5sTn/oWiilDyabUyXBGyCmJ5ArnLDu/z9tJNQTL0fVzljZ4nlR1ozWmDE0cqGaYcgTAR1CDYCGxz8u5ZCYCpI58ZM9aALajCPytWiXI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cXCQnjFe; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cXCQnjFe" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4a1728d8dfcso629365e9.1 for ; Sun, 04 Oct 2026 09:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791132736; x=1791737536; 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=hjq6OWraU4ksP0g6/oSpn1onbvhCPh/gZN+ZtPInBtY=; b=cXCQnjFe4rH8z+fFtFKJ9cImKMpKfZCgTlT9qfs1/Xf79ANiEtTiF7pImzSnJHcrti 8olG0kPGfuPnnUbpF3DmIEV3CAafnYxImuPizwYQ+g1eKrqsbDQE8QhdAAC68NywtylX QMsmvwVe9fCCAPAJtI7IgtA0rUVuHBAG+Q0xoJRpv87SV+dDMNIGWPcw38K+afhg3FWK j6eC/U3js+I3oVdGUaBRGEUgI5YR049tZaMhB+h67vZ0SkhkTpGx3yd42YRsP29aJrde cbkuw5imFUqWz536jZxyAQJV+g/YvmotkREhnRpGk7Ww5y4raGIqL4akEDgCkwGHhDaH XHDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791132736; x=1791737536; 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=hjq6OWraU4ksP0g6/oSpn1onbvhCPh/gZN+ZtPInBtY=; b=jQ4DdbaVB1MEkEl8M4CLE+Xd3pjR7pqtAw9jn7qELqdBUxmIMw5rp73ozyOecFxB+/ SCYaFQFvyYZq5rgwiECKFXNkEIyKfUKh3meTUJuknJK/NpeyAbfJQrFNZZybJRSgOnYl o2tuPeJCLWq/X7B1hN+Ge0Yh+FLwrz2ByGuGqzNulP5mhcxlv+sxabkmCwXjxl9fHhJ/ 1MWF1oimctP6ji2VZEJOy+FKwF9JuTdm1VmqbzX0xdX+4LKn4IQtROpit8lZFyijTVH9 jHunFtHGk9R10VzxTUfPK5iy3d6opV27oGL4vXroxUgP56gHCN0gYtxviM/jSBO1hBZI s+yg== X-Forwarded-Encrypted: i=1; AKwUvBxY7IwqslyzdWWUUYKlqUVj6kj35xc4jvSz+sLb1WY3BWO/Yngp13gSFRY521IQy9kHM9yeHOrQETJR@vger.kernel.org X-Gm-Message-State: AFuF++nSBUwUkQprNINfXhNJoKKsCQ15IKJ/uNhU6Bwcp8mida17ihWq fUOpMsXDV8tYAFlg3OF3oG//7BWQOPLeDlVIl+pghaw9YjRL0Febdk58 X-Gm-Gg: AYBFou1/mjs+SDc+IEAgit3te8Fqndy/hURM+v+5fiFbDaN5QwgJrlqICa9sOGNOA9u AXPH9hOruMZVP1TXvVeovhORdo8+Us7hkSloveoamJDzgsiWCsBheQmcoBiP7Dy0IY4IrqafuuZ vhO11PtzLl6ySvTGzVXmHhG5yYZgKhZmaq9z8MSMzx82l3eKMIpNEkcbFKU8gp0yB4ELMmTYbhn rU3pjHOZ48m01HcrSlI29Am0dd38tK8xQJrAAdk1hBt8+FGQwAFk+87LSNBrQXElhvO+Ydr8r+4 cesA3pOJBzJJuu3KHBX7MEyORCBJ6knL5PuO9Yg+0eMZn6zMxhMlXnLZDSybsdH+7lpXv/5AavG lCibB4zDkBOH4zQBI5WLAwUFIRI6gAdDQydTSBnCYgnFx38bQpARnzG5yF4KpOUKmwu8J5hrPvc obciOw+0p8MoPImL3gMwmkdWYm4kMWgdlgLwR9n21QkrqVXzHAklNHo3P8+Yvb6/ZBHyER5g84x iVRnG0GRSU4LXRoAlw= X-Received: by 2002:a05:600c:1d0a:b0:4a1:6ff4:886a with SMTP id 5b1f17b1804b1-4a16ff48af5mr31663835e9.16.1791132736286; Sun, 04 Oct 2026 09:52:16 -0700 (PDT) Received: from xeon ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48b382f8c4asm20902213f8f.37.2026.10.04.09.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Oct 2026 09:52:15 -0700 (PDT) From: Svyatoslav Ryhel To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Svyatoslav Ryhel , Mikko Perttunen , Jordan Viknar Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: usb: Move Tegra-specific Chipidea USB properties into a dedicated schema Date: Sun, 4 Oct 2026 19:52:03 +0300 Message-ID: <20261004165204.205660-2-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261004165204.205660-1-clamor95@gmail.com> References: <20261004165204.205660-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Move all Tegra-specific Chipidea devices and their properties into a dedicated schema file, by analogy with i.MX. Signed-off-by: Svyatoslav Ryhel --- .../bindings/usb/chipidea,usb2-tegra.yaml | 88 +++++++++++++++++++ .../devicetree/bindings/usb/ci-hdrc-usb2.yaml | 22 ----- 2 files changed, 88 insertions(+), 22 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/chipidea,usb2-tegra.yaml diff --git a/Documentation/devicetree/bindings/usb/chipidea,usb2-tegra.yaml b/Documentation/devicetree/bindings/usb/chipidea,usb2-tegra.yaml new file mode 100644 index 0000000000000..78046f8a63ad5 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/chipidea,usb2-tegra.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/chipidea,usb2-tegra.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tegra USB2 ChipIdea USB controller + +maintainers: + - Svyatoslav Ryhel + +properties: + compatible: + oneOf: + - enum: + - nvidia,tegra20-ehci + - nvidia,tegra20-udc + - nvidia,tegra30-ehci + - nvidia,tegra30-udc + - nvidia,tegra114-udc + - nvidia,tegra124-udc + - items: + - enum: + - nvidia,tegra114-ehci + - nvidia,tegra124-ehci + - nvidia,tegra210-ehci + - const: nvidia,tegra30-ehci + + operating-points-v2: + description: A phandle to the OPP table containing the performance states. + $ref: /schemas/types.yaml#/definitions/phandle + + nvidia,phy: + description: phandle of usb phy that connects to the port. Use "phys" instead. + $ref: /schemas/types.yaml#/definitions/phandle + deprecated: true + + nvidia,needs-double-reset: + description: Indicates double reset or not. + type: boolean + deprecated: true + +required: + - compatible + - reg + - interrupts + - clocks + - resets + +allOf: + - $ref: chipidea,usb2-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + usb@7d000000 { + compatible = "nvidia,tegra30-udc"; + reg = <0x7d000000 0x4000>; + interrupts = ; + phy_type = "utmi"; + clocks = <&tegra_car TEGRA30_CLK_USBD>; + resets = <&tegra_car 22>; + reset-names = "usb"; + phys = <&phy1>; + power-domains = <&pd_core>; + operating-points-v2 = <&usbd_dvfs_opp_table>; + + dr_mode = "otg"; + + hnp-disable; + srp-disable; + adp-disable; + + usb-role-switch; + extcon = <&charger>, <&extcon>; /* vbus, id */ + vbus-supply = <&usb_otg_vbus>; + + port { + usb_in: endpoint { + remote-endpoint = <&connector_out>; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml index 620b564914d43..b73bea61dcac0 100644 --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml @@ -17,20 +17,8 @@ properties: - chipidea,usb2 - lsi,zevio-usb - nuvoton,npcm750-udc - - nvidia,tegra20-ehci - - nvidia,tegra20-udc - - nvidia,tegra30-ehci - - nvidia,tegra30-udc - - nvidia,tegra114-udc - - nvidia,tegra124-udc - nxp,s32g2-usb - qcom,ci-hdrc - - items: - - enum: - - nvidia,tegra114-ehci - - nvidia,tegra124-ehci - - nvidia,tegra210-ehci - - const: nvidia,tegra30-ehci - items: - const: xlnx,zynq-usb-2.20a - const: chipidea,usb2 @@ -66,16 +54,6 @@ properties: - description: register offset - description: phy index - nvidia,phy: - description: phandle of usb phy that connects to the port. Use "phys" instead. - $ref: /schemas/types.yaml#/definitions/phandle - deprecated: true - - nvidia,needs-double-reset: - description: Indicates double reset or not. - type: boolean - deprecated: true - ulpi: type: object additionalProperties: false -- 2.53.0