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 E4634C5DF7D for ; Tue, 18 Aug 2026 14:31:22 +0000 (UTC) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UGarFDbt33cC1HP5H0CkPlmzpcPvbip8INC4ca1cXrQ=; b=rAZPCUmwcce/44 Qw2ztBtmE52j4VODfItG3Kkigk6/NPd0uJI+VunBV8VLX6zaTs80fF6uKDb3oHmCFGuLjlNjyl+F3 tpeJIhdArXTPd55govx5kVLt8U1IO0k5HrEn9MqfKVNYGoqWGOX1cfaAI7bJqZPD8i2/NwTJrMGKO BtcXyleuRWAoGitLpkuxIsl1PfV4ESEldU0riEkGYdpAmVnortQHSlWOWffldiM2ykDfiyCligd/Y 1fEFuLvR+u1rOj7gk3ARKYHdxIz6Ghs+vV0XQ42hpa3stbca4i0alIPBDSE4klIzlsPINuJCSN4Hk uuYTBs9AHb8XmHw4W9jw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wwKqY-00000008B6Q-2gNq; Tue, 18 Aug 2026 14:31:22 +0000 Received: from mail-yw1-x112c.google.com ([2607:f8b0:4864:20::112c]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wwKqW-00000008B5x-2k84 for linux-phy@lists.infradead.org; Tue, 18 Aug 2026 14:31:22 +0000 Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-81bd69f4f6fso3233747b3.2 for ; Tue, 18 Aug 2026 07:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787063479; x=1787668279; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uNwpo15aYMcmAQYZVsAfYNaAmgKyeQ+0Da3v9FeFOKo=; b=Z0Wn5qKalUEgH8EhyPFZaLfXc/0F8qyWQCuoc1h4BVEiGFnH8xMEW9JgyDrYtFsRue DRGhOqlGIJCxpDBvFNqA+GlERd3TUPbQSRJUUGXexC/lzO0VWZohtL5f1oyfzsF5/Et4 Np/wsPG1PapxTvTmKt2TzXHNuPzGgY1bmywVpw6+2dhfPf1riLNz27xywg1BB0ohp6J6 5BPpzfCMJA0EsCoQi+tna2PF7k+1DrAOLMkgMxmoIt64s5CzOUDSiWTt6i1XebwMFlyh jorMAxAVkZkMRuZ+vh4/LjAWOAKJvXy59S3MG7s9trNvM3wkw1JcIKo016YinCQveep1 Te2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787063479; x=1787668279; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uNwpo15aYMcmAQYZVsAfYNaAmgKyeQ+0Da3v9FeFOKo=; b=b5j0Qt3wMql/QAMrOohva5u7skU06RprkZDFpM5oNMpCOI9iPyjMEStPoMNH3CPqP7 IPgmsczOyIJcpLk6aiQW1ta9UkO+je7PqmwKp2l3LGL+tcIsESXolXHogJtjA0EnQwAN 6jzVz114R2nWM6exL+E2fPGzMfobVRGvXdj7snMxn7/+10jcKW8L3hcE52Qkk6Ouz7gM AHF3qyC3lNBiD83HDxaO6h6RI87t5+Spu5j3J0Ku/j0VesXfVey/G1sv8yweGNmFf+OT K5qnNy6MDpvNUUPxTv+RcpUFv0iPB2E1MhL9FxNLS4Cmy1gOH0qN1tbJte8zvftkJ2Fj LckA== X-Forwarded-Encrypted: i=1; AHgh+Ro2Dzn8/UwNCEDxQPuOPGqmmPIohaYkOb7LUlTqKhui4Xp9qGDGdT5w3TjsLkLz7DeoMXZ+HcYCLRg=@lists.infradead.org X-Gm-Message-State: AOJu0Yx3SWyJys63KKqan7WjxUR6NnXkJA1XFffFWPOUDii3qPY1ykHH iRczFHFzOSqdDL1Az3D8C79zKBK7AlWQnlNYnNPBcgfgaXEwIPsZzNWO X-Gm-Gg: AR+sD117PbYtBK6ycBu2L21hHzDvwBHHtFShRb/Jp2/Gw9kHYQrWrxebv62xJFMgRYm BQJkknITwGA3y04zZfws9QaG1E2ZaHMiA74aHbz/p1ELY8GY6zPJykWMX/MQsnU3zSWhj1LgXnv nS9Keg6MFkdYnjklWOErEXFos+BPfnklXyh3Cp/cE9mwhzuC96fo83v6kZaeIIZFlOaNwKkBBw+ /anBQVJfd4xU4KbSXo6evz16px5zy6f2CJ0ZP9IfBDAi5PBNrvYwj2E2DyxfMBxIgBbqIql+9km gSYLVHjJW33dGZ/I2QSHI+p7nlDJ43AmaQgbwvTW/lnKdPP79KgpebAfe/6mr9ItpGNOo41GdmB EFQ9XYl1AX6mmn/ZMaQuJ2TfAbQMXAE+awHHIdTmcHkSSwfLEWpo4nzvzFf91L3COXKysHZEMea abLqCeYPT6A0wAl27zB0c8YCEdXYzcgL1dJr3hn1lVkz+qWfkTuZyTaMwqOkRdAvF4RhIvR3FI X-Received: by 2002:a05:690c:b0f:b0:81e:c06e:58b1 with SMTP id 00721157ae682-8370ce2a8edmr129120867b3.1.1787063478845; Tue, 18 Aug 2026 07:31:18 -0700 (PDT) Received: from [10.90.163.252] ([2409:40c2:501a:6e15:dc3f:c23f:e55e:d03d]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-327b43d488dsm9043527eec.29.2026.08.18.07.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2026 07:31:18 -0700 (PDT) From: Bhargav Joshi Date: Tue, 18 Aug 2026 19:58:48 +0530 Subject: [PATCH v2 6/7] dt-bindings: usb: ti,am33xx-usb: Convert to DT schema MIME-Version: 1.0 Message-Id: <20260818-ti-am33-usb-v2-6-66fd44d66824@gmail.com> References: <20260818-ti-am33-usb-v2-0-66fd44d66824@gmail.com> In-Reply-To: <20260818-ti-am33-usb-v2-0-66fd44d66824@gmail.com> To: Vignesh Raghavendra , Vinod Koul , Frank Li , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Andrzej Siewior , Neil Armstrong , Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Ravi B , Kumar Gupta , Sergei Shtylyov Cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-phy@lists.infradead.org, linux-omap@vger.kernel.org, goledhruva@gmail.com, m-chawdhry@ti.com, daniel.baluta@gmail.com, simona.toaca@nxp.com, j.bhargav.u@gmail.com X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1787063337; l=8155; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=osjjdDGsZGpa7XUAENAl0v5NC1y1AYvnGUsWQhsltM0=; b=vITHpyS4CFK+czQO5AwU08PaBVOMpGYr3bsjynu7WN5UF8cLRKLS0Zry/7xyr3Uz5lfUyL/hj Sx76l+5cHOZByKEz7L2ejwTuDngwQvDmSH8HTQN2gQ5T7cYPkL5pKxO X-Developer-Key: i=j.bhargav.u@gmail.com; a=ed25519; pk=IqNDwUZKECEA+n8wXctFLBbYL9NhFstZNbOznm/nX1k= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260818_073120_728645_B16026FE X-CRM114-Status: GOOD ( 14.85 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Convert the TI AM33xx USB Wrapper text binding to DT schema. Changes during conversion: - Drop the USB control module from child nodes, as it physically resides within the System Control Module address space, not the USB wrapper. - Allow standard phy@[0-9a-f]+$ child node names alongside the legacy usb-phy@[0-9a-f]+$. - Mark the legacy ti,hwmods property as deprecated. - Document required #address-cells, #size-cells, and ranges property missing from text binding. Signed-off-by: Bhargav Joshi --- .../devicetree/bindings/usb/am33xx-usb.txt | 143 --------------------- .../devicetree/bindings/usb/ti,am33xx-usb.yaml | 103 +++++++++++++++ 2 files changed, 103 insertions(+), 143 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/am33xx-usb.txt b/Documentation/devicetree/bindings/usb/am33xx-usb.txt deleted file mode 100644 index 94312ad8ec8c..000000000000 --- a/Documentation/devicetree/bindings/usb/am33xx-usb.txt +++ /dev/null @@ -1,143 +0,0 @@ - AM33xx MUSB -~~~~~~~~~~~~~~~ -- compatible: ti,am33xx-usb -- reg: offset and length of the usbss register sets -- ti,hwmods : must be "usb_otg_hs" - -The glue layer contains multiple child nodes. It is required to have -at least a control module node, USB node and a PHY node. The second USB -node and its PHY node are optional. The DMA node is also optional. - -Example: -~~~~~~~~ -The following example contains all the nodes as used on am335x-evm: - -aliases { - usb0 = &usb0; - usb1 = &usb1; - phy0 = &usb0_phy; - phy1 = &usb1_phy; -}; - -usb: usb@47400000 { - compatible = "ti,am33xx-usb"; - reg = <0x47400000 0x1000>; - ranges; - #address-cells = <1>; - #size-cells = <1>; - ti,hwmods = "usb_otg_hs"; - - ctrl_mod: control@44e10000 { - compatible = "ti,am335x-usb-ctrl-module"; - reg = <0x44e10620 0x10 - 0x44e10648 0x4>; - reg-names = "phy_ctrl", "wakeup"; - }; - - usb0_phy: usb-phy@47401300 { - compatible = "ti,am335x-usb-phy"; - reg = <0x47401300 0x100>; - reg-names = "phy"; - ti,ctrl_mod = <&ctrl_mod>; - #phy-cells = <0>; - }; - - usb0: usb@47401000 { - compatible = "ti,musb-am33xx"; - reg = <0x47401400 0x400 - 0x47401000 0x200>; - reg-names = "mc", "control"; - - interrupts = <18>; - interrupt-names = "mc"; - dr_mode = "otg" - mentor,multipoint = <1>; - mentor,num-eps = <16>; - mentor,ram-bits = <12>; - mentor,power = <500>; - phys = <&usb0_phy>; - - dmas = <&cppi41dma 0 0 &cppi41dma 1 0 - &cppi41dma 2 0 &cppi41dma 3 0 - &cppi41dma 4 0 &cppi41dma 5 0 - &cppi41dma 6 0 &cppi41dma 7 0 - &cppi41dma 8 0 &cppi41dma 9 0 - &cppi41dma 10 0 &cppi41dma 11 0 - &cppi41dma 12 0 &cppi41dma 13 0 - &cppi41dma 14 0 &cppi41dma 0 1 - &cppi41dma 1 1 &cppi41dma 2 1 - &cppi41dma 3 1 &cppi41dma 4 1 - &cppi41dma 5 1 &cppi41dma 6 1 - &cppi41dma 7 1 &cppi41dma 8 1 - &cppi41dma 9 1 &cppi41dma 10 1 - &cppi41dma 11 1 &cppi41dma 12 1 - &cppi41dma 13 1 &cppi41dma 14 1>; - dma-names = - "rx1", "rx2", "rx3", "rx4", "rx5", "rx6", "rx7", - "rx8", "rx9", "rx10", "rx11", "rx12", "rx13", - "rx14", "rx15", - "tx1", "tx2", "tx3", "tx4", "tx5", "tx6", "tx7", - "tx8", "tx9", "tx10", "tx11", "tx12", "tx13", - "tx14", "tx15"; - }; - - usb1_phy: usb-phy@47401b00 { - compatible = "ti,am335x-usb-phy"; - reg = <0x47401b00 0x100>; - reg-names = "phy"; - ti,ctrl_mod = <&ctrl_mod>; - #phy-cells = <0>; - }; - - usb1: usb@47401800 { - compatible = "ti,musb-am33xx"; - reg = <0x47401c00 0x400 - 0x47401800 0x200>; - reg-names = "mc", "control"; - interrupts = <19>; - interrupt-names = "mc"; - dr_mode = "host" - mentor,multipoint = <1>; - mentor,num-eps = <16>; - mentor,ram-bits = <12>; - mentor,power = <500>; - phys = <&usb1_phy>; - - dmas = <&cppi41dma 15 0 &cppi41dma 16 0 - &cppi41dma 17 0 &cppi41dma 18 0 - &cppi41dma 19 0 &cppi41dma 20 0 - &cppi41dma 21 0 &cppi41dma 22 0 - &cppi41dma 23 0 &cppi41dma 24 0 - &cppi41dma 25 0 &cppi41dma 26 0 - &cppi41dma 27 0 &cppi41dma 28 0 - &cppi41dma 29 0 &cppi41dma 15 1 - &cppi41dma 16 1 &cppi41dma 17 1 - &cppi41dma 18 1 &cppi41dma 19 1 - &cppi41dma 20 1 &cppi41dma 21 1 - &cppi41dma 22 1 &cppi41dma 23 1 - &cppi41dma 24 1 &cppi41dma 25 1 - &cppi41dma 26 1 &cppi41dma 27 1 - &cppi41dma 28 1 &cppi41dma 29 1>; - dma-names = - "rx1", "rx2", "rx3", "rx4", "rx5", "rx6", "rx7", - "rx8", "rx9", "rx10", "rx11", "rx12", "rx13", - "rx14", "rx15", - "tx1", "tx2", "tx3", "tx4", "tx5", "tx6", "tx7", - "tx8", "tx9", "tx10", "tx11", "tx12", "tx13", - "tx14", "tx15"; - }; - - cppi41dma: dma-controller@7402000 { - compatible = "ti,am3359-cppi41"; - reg = <0x47400000 0x1000 - 0x47402000 0x1000 - 0x47403000 0x1000 - 0x47404000 0x4000>; - reg-names = "glue", "controller", "scheduler", "queuemgr"; - interrupts = <17>; - interrupt-names = "glue"; - #dma-cells = <2>; - dma-channels = <30>; - dma-requests = <256>; - }; -}; diff --git a/Documentation/devicetree/bindings/usb/ti,am33xx-usb.yaml b/Documentation/devicetree/bindings/usb/ti,am33xx-usb.yaml new file mode 100644 index 000000000000..0b36b9ddfb4a --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,am33xx-usb.yaml @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,am33xx-usb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI AM33xx USB Wrapper + +description: + The glue layer contains multiple child nodes. It is required to have at least + a USB node and a PHY node. The second USB node and its PHY node are optional. + The DMA node is also optional. + +maintainers: + - Sebastian Andrzej Siewior + +properties: + compatible: + const: ti,am33xx-usb + + reg: + maxItems: 1 + + ranges: true + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ti,hwmods: + $ref: /schemas/types.yaml#/definitions/string + description: Name of the hwmod associated with the USB module. + const: usb_otg_hs + deprecated: true + +patternProperties: + "^(usb-)?phy@[0-9a-f]+$": + $ref: /schemas/phy/ti,am335x-usb-phy.yaml# + + "^usb@[0-9a-f]+$": + $ref: /schemas/usb/ti,musb-am33xx.yaml# + + "^dma-controller@[0-9a-f]+$": + $ref: /schemas/dma/ti/ti,cppi41.yaml# + +required: + - compatible + - reg + - ranges + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + usb@47400000 { + compatible = "ti,am33xx-usb"; + reg = <0x47400000 0x1000>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + ti,hwmods = "usb_otg_hs"; + + usb-phy@47401300 { + compatible = "ti,am335x-usb-phy"; + reg = <0x47401300 0x100>; + reg-names = "phy"; + ti,ctrl_mod = <&ctrl_mod>; + #phy-cells = <0>; + }; + + usb@47401000 { + compatible = "ti,musb-am33xx"; + reg = <0x47401400 0x400>, + <0x47401000 0x200>; + reg-names = "mc", "control"; + interrupts = <18>; + interrupt-names = "mc"; + dr_mode = "otg"; + mentor,multipoint = <1>; + mentor,num-eps = <16>; + mentor,ram-bits = <12>; + mentor,power = <500>; + phys = <&usb0_phy>; + }; + + dma-controller@7402000 { + compatible = "ti,am3359-cppi41"; + reg = <0x47400000 0x1000>, + <0x47402000 0x1000>, + <0x47403000 0x1000>, + <0x47404000 0x4000>; + reg-names = "glue", "controller", "scheduler", "queuemgr"; + interrupts = <17>; + interrupt-names = "glue"; + #dma-cells = <2>; + dma-channels = <30>; + dma-requests = <256>; + }; + }; -- 2.55.0 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy