From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (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 B9F6234D3BE for ; Tue, 18 Aug 2026 14:31:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787063502; cv=none; b=PLpeuYMkM7XKhfH8i+FaKJKoJxSmd4ACIlLtyaJNYt+0AyCUFknVBcsWPbHM1P/qXZxSKMZzHDoTyOMWF1g9VHaspcC/WECm/1RiyKJQ/JrVMiGG9c464Ex8yD+cZ7xPeD4o7N85slZsnk814xMjF4KM9ddsTjIn1O4c2h7DhMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787063502; c=relaxed/simple; bh=bJqIbElUcpqQLiMeMmTF1fWVKJqAYL76gZjzfUU7oAc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LTRGTASIvXWFvdzxCWevFDnfP9TzOPcFiFO37NPSjd8Owl6Vz54avNbTzYYKh3D9W1K6KHGvr2Q9g/jb4HWsv2FlwDU0wEHvgp8Q9r5tfeqIpZQJQzyvdPQ7q4TtKNr1EFP9AzX+ULEDGTVl4Oef24Y+GUv6PYqf/xeclpfgs/I= 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=Bd1YM4ww; arc=none smtp.client-ip=209.85.216.53 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="Bd1YM4ww" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-384c94c9423so554557a91.2 for ; Tue, 18 Aug 2026 07:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787063500; x=1787668300; darn=vger.kernel.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=RE21JFz7XFYmP4oZ5LDGVF5TCaoOBdwIPAfKGxU/5ig=; b=Bd1YM4ww4z9ihbH0kiibqxjOxVk+86ussTA4NNVhMAtYoadrhNgGsBoZGwNhZMOHol qo6pQw3u7IFPRTlHSbKVwpz0tabRtLuEygayJdCqj0abBkaAlUbwLscOJBvJhcHW5iPE N8L1QnJxhZVUG1lq/NEP7e7m0WeIXfoJQNLNQA/lJaUnJC2xPrHvCWAvnOZZ+zXMqxlx qjX3aH/WpW4KMHHy7uzU5PC7wlUDLFgoH6V2zsa7ewTCzqe1PDWBya6j5ExGyNQK+8G2 08FjTYn4qMPgduhZRCQb7KXuB5OSJDa3gFsa0AQL2YwYgcDpy+jc+IOOAHV0Jd25ubT3 h+og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787063500; x=1787668300; 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=RE21JFz7XFYmP4oZ5LDGVF5TCaoOBdwIPAfKGxU/5ig=; b=lOvoz3waJOc3MQCbca472MvgpCJiQZz01+9iSFwFEViGjIhaFUPMc1yKodUWj9Yg1k +/qkBlR2hlZWqoSTiJkbyQ2X3TecaNqri+yUEci0CfKwAwHyPzs8mcWK3pg4RkF0d7qf cxidNrWXcUEYnZCMH+tePdHIBDKOc9HAFwNlkDVCCH0BLMR34eewGZ3iLQqXAdmOWy6o qgwBoe31YtQlGluEpGKZUv7lX3VJgQmsQRLLZMXI8XXkqV030DocHqTG5FVsQ5QYusAW jleeNyhywKWaMdcaJaldLpNUW8p50mZwIXYxYo0trJ+IEt8OIhG0KinW9IWpROvPO0jp FOsQ== X-Forwarded-Encrypted: i=1; AHgh+Rp3ubQcEHWmSlMsnYYm6Hj6GMJ4rBES9GC8BA4XIem039ejePfNLTsGQtXgvott3jFL0AD8/wcbd1Q5@vger.kernel.org X-Gm-Message-State: AOJu0YxXrSYjUZMntqU4x13XFlnkB6s0EhZf74o3BUwd8VrkVSzZTxGg YId4mMAbPxrGJw+AL3hskLDMYJisFE35mu0gqGXKcoUJa4AyrgR6RcBH X-Gm-Gg: AR+sD12Qhl/D0+BvxSiIBrbciOkEPwGTXdEoMmIChlhnfkE8PBEYPbxyPP1OsuiG7LX YQIlTmc13nBvULy0JASR9MwxRTvevrJc1S9HBWfArzH5TnUMDwO9M5GquOxbOWHZ1NYfHKR8+YR 5V7eT4fFbd+/yKwuVxjSEoZPmCOmB7BNU1vw2FyTcbLwfAzjA8fLGZTQoxf3vybolsnP3tkiReg Dx02jC7v2nX8ns/rYM9btP9t29Uh8GhH2Z+6XHvjRR6ix8FIfMcJaV/aOgmYC7iPmisflUfSSem JRJE+0aowqF4arOw3O5xoNeClPVexvlCFn70r7POXtg9foUKNNSo45Iif0OG+rfOYPYP+cS+MfV mMGf/CjpOADaV4DFqKgI7eeTem5yPo497d6MUW2mIcQCk4emJ9rBNsRYYdJB6nh2qSlTxWsO/J7 6vU0P7S6Jt1+jJjwFwUKPVak5Gd9zW9ZnO0gbEYAkSti5IDV6ahZ5sjqgIyXb/Mq+Y2tYbjgPg X-Received: by 2002:a17:90b:164b:b0:38e:76f8:fcbb with SMTP id 98e67ed59e1d1-3933b95a6b0mr24932418a91.4.1787063499757; Tue, 18 Aug 2026 07:31:39 -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.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2026 07:31:39 -0700 (PDT) From: Bhargav Joshi Date: Tue, 18 Aug 2026 19:58:49 +0530 Subject: [PATCH v2 7/7] dt-bindings: usb: ti,da830-musb: Convert to DT schema Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260818-ti-am33-usb-v2-7-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=5232; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=bJqIbElUcpqQLiMeMmTF1fWVKJqAYL76gZjzfUU7oAc=; b=ajK8gPvHZukbS3OTmoaPWtiAJLKyEZ4GPUFMq/CpE/Is60UY8/yuYcdWqrtu0dzz4DNm5f3F8 Xln7lr2e1j+Bnn0KSAPjfBGJwlj+o/H8ZUzSgbPQCIDrSgByE2tgdsM X-Developer-Key: i=j.bhargav.u@gmail.com; a=ed25519; pk=IqNDwUZKECEA+n8wXctFLBbYL9NhFstZNbOznm/nX1k= Convert the TI DA8xx/OMAP-L1x MUSB text bindings to DT schema. Since DA8xx MUSB node acts as a parent bus for the CPPI41 DMA controller add required #address-cells, #size-cells, and ranges properties. Signed-off-by: Bhargav Joshi --- .../devicetree/bindings/usb/da8xx-usb.txt | 69 ------------- .../devicetree/bindings/usb/ti,da830-musb.yaml | 113 +++++++++++++++++++++ 2 files changed, 113 insertions(+), 69 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/da8xx-usb.txt b/Documentation/devicetree/bindings/usb/da8xx-usb.txt deleted file mode 100644 index 00320d92d3bb..000000000000 --- a/Documentation/devicetree/bindings/usb/da8xx-usb.txt +++ /dev/null @@ -1,69 +0,0 @@ -TI DA8xx MUSB -~~~~~~~~~~~~~ -For DA8xx/OMAP-L1x/AM17xx/AM18xx platforms. - -Required properties: -~~~~~~~~~~~~~~~~~~~~ - - compatible : Should be set to "ti,da830-musb". - - - reg: Offset and length of the USB controller register set. - - - interrupts: The USB interrupt number. - - - interrupt-names: Should be set to "mc". - - - dr_mode: The USB operation mode. Should be one of "host", "peripheral" or "otg". - - - phys: Phandle for the PHY device - - - phy-names: Should be "usb-phy" - - - dmas: specifies the dma channels - - - dma-names: specifies the names of the channels. Use "rxN" for receive - and "txN" for transmit endpoints. N specifies the endpoint number. - -Optional properties: -~~~~~~~~~~~~~~~~~~~~ - - vbus-supply: Phandle to a regulator providing the USB bus power. - -Example: - usb_phy: usb-phy { - compatible = "ti,da830-usb-phy"; - #phy-cells = <0>; - }; - usb0: usb@200000 { - compatible = "ti,da830-musb"; - reg = <0x00200000 0x1000>; - ranges; - #address-cells = <1>; - #size-cells = <1>; - interrupts = <58>; - interrupt-names = "mc"; - - dr_mode = "host"; - vbus-supply = <&usb_vbus>; - phys = <&usb_phy 0>; - phy-names = "usb-phy"; - - dmas = <&cppi41dma 0 0 &cppi41dma 1 0 - &cppi41dma 2 0 &cppi41dma 3 0 - &cppi41dma 0 1 &cppi41dma 1 1 - &cppi41dma 2 1 &cppi41dma 3 1>; - dma-names = - "rx1", "rx2", "rx3", "rx4", - "tx1", "tx2", "tx3", "tx4"; - - - cppi41dma: dma-controller@201000 { - compatible = "ti,da830-cppi41"; - reg = <0x201000 0x1000 - 0x202000 0x1000 - 0x204000 0x4000>; - reg-names = "controller", "scheduler", "queuemgr"; - interrupts = <58>; - #dma-cells = <2>; - dma-channels = <4>; - }; - - }; diff --git a/Documentation/devicetree/bindings/usb/ti,da830-musb.yaml b/Documentation/devicetree/bindings/usb/ti,da830-musb.yaml new file mode 100644 index 000000000000..0faf2a1a17c7 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,da830-musb.yaml @@ -0,0 +1,113 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,da830-musb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI DA8xx MUSB + +maintainers: + - Sergei Shtylyov + +allOf: + - $ref: /schemas/usb/usb-drd.yaml# + +properties: + compatible: + const: ti,da830-musb + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-names: + const: mc + + phys: + maxItems: 1 + + phy-names: + const: usb-phy + + dmas: + minItems: 1 + maxItems: 8 + + dma-names: + minItems: 1 + maxItems: 8 + items: + pattern: "^(rx|tx)[1-4]$" + + vbus-supply: + description: Phandle to a regulator providing the USB bus power. + + clocks: + maxItems: 1 + + clock-ranges: true + + ranges: true + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +patternProperties: + "^dma-controller@[0-9a-f]+$": + $ref: /schemas/dma/ti/ti,cppi41.yaml# + +required: + - compatible + - reg + - interrupts + - interrupt-names + - phys + - phy-names + - ranges + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + - | + usb@200000 { + compatible = "ti,da830-musb"; + reg = <0x00200000 0x1000>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + interrupts = <58>; + interrupt-names = "mc"; + + dr_mode = "host"; + vbus-supply = <&usb_vbus>; + phys = <&usb_phy 0>; + phy-names = "usb-phy"; + + clocks = <&psc1 1>; + clock-ranges; + + dmas = <&cppi41dma 0 0>, <&cppi41dma 1 0>, + <&cppi41dma 2 0>, <&cppi41dma 3 0>, + <&cppi41dma 0 1>, <&cppi41dma 1 1>, + <&cppi41dma 2 1>, <&cppi41dma 3 1>; + dma-names = "rx1", "rx2", "rx3", "rx4", + "tx1", "tx2", "tx3", "tx4"; + + dma-controller@201000 { + compatible = "ti,da830-cppi41"; + reg = <0x201000 0x1000>, + <0x202000 0x1000>, + <0x204000 0x4000>; + reg-names = "controller", "scheduler", "queuemgr"; + interrupts = <58>; + #dma-cells = <2>; + dma-channels = <4>; + }; + }; -- 2.55.0