From nobody Sat Sep 26 13:50:16 2026 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (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 229953F107A for ; Mon, 31 Aug 2026 23:23:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218640; cv=none; b=lJX2ZeZTh/ShpbU3rV0sboVcp4AHpFCt/szUifBMnD/195s3g/6tQxDA8iKrk2cJqhJLBPssT52zHGosMA78B23eggUBkrKiKEsEnRqcrKSduZ3KkzeTdpT0rGL4WA9fluS8x9jCa1WlWMMCySE64JB0jgjMGJwGppCMbOBRzq0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218640; c=relaxed/simple; bh=HIZOfZztkTOerpbTCbh6mnrcWPp1/knZyXp0t7QNArY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FeyE5TJrLLi7hd2364RXar1dc7BpPKU3a9HWKhv23ZO3bW593FsXf19ExH5q2g9Khle/050oFo9ta2pmNyjagx6T2x1pLdaNWg3+dDjbn8ZUOg5TG08ItHqLow0Ox/bQZwG96AL8Mcm9fwA8gUuGFTfZb19dNJxo60aynxxe27E= 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=RVNAJ9d+; arc=none smtp.client-ip=209.85.216.46 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="RVNAJ9d+" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-396555b8c7cso550243a91.3 for ; Mon, 31 Aug 2026 16:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788218638; x=1788823438; 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=t3EuOR9GUslMYy5cLrs5U/qjnYbkc8yoD6yTFWIvT+M=; b=RVNAJ9d+5Yfd5wv0q6idwasClhGVkQ5gyA9ildjGSO3eNxJ2stjTIHHEGnz/KNGLiv BHxk6Pq6S+pJote1usa3YDh4XVSgSOWboQbRvA0HgxY+mpTyv1sDbWV1h5ZSLW3vc9kE uF+l2F+FBMXKdGikAtIfhjfzktysQsUme4tDl45x2toIzn6fu43/n2wxf5jqGLzLPnoz RUViaw9XMWJCFnGQI7VUSfb3WbbCD//dCSWugGGzoiXAIHLHSd4xoGfO3v6rPiBNvWOW +mf1cNyqAqbCyrKEvxxrwqERL0j+AN6NanZYcXWeFgWZzm0f0C6g6VUHpD/H3XT6XBiw Pl7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788218638; x=1788823438; 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=t3EuOR9GUslMYy5cLrs5U/qjnYbkc8yoD6yTFWIvT+M=; b=OUWlAdKiAVW3fK206lT8VUMO7iftWjVrh20nOpAWWTS/VabYbe/v2By4aGxlpiRJuw Ldp8jAS8UU7EDt5VgcM3nzxAyf3TTCEUOj1qL/Tu8cXfoxwsfnB7ctboQslnY1Zg2u9V U2CuVBMPB1b1M04F6SBFyE3ZcOUeqavz6Bf01bwtXqy3fx5FMVMpIgWyGQIRDqlz/cch 5BwUjCbRa2QKegOe7IDS9XvLZnGOkGoP/Lxb9k1L2gIEKCX/nl44z4Gx6y+OM1vuc4Xh +T/YCjI2m954A0whCE7C59bpAKioUyLOemSmfAp1UKJtvtuGH10KKfEvelpGxsP9GO0j uEdA== X-Forwarded-Encrypted: i=1; AKwUvBy+O+sfjxw2tXraqsi76kxnxE8AQfQx0F4U8ezK28NIKz00JwGO2YE7atA738w+rDWpB5ghc1ypZ/BtakM=@vger.kernel.org X-Gm-Message-State: AFuF++l6sX/xNO2X/Iga6Q9UwbUHwaIdlmnnz6S4U2ZTS+yjO5RblF1J sOoZ3b+R1LR1IYyHLGkAp7neX9P9eN2GyoQPtIhGcWwyYn1bS57mPhMTjExVnw== X-Gm-Gg: AYBFou1hGo8tZENFDwvzM3XyFDcNosYsIV5g9YPSNXNfV07itIfi8qdk3Q62sUZRJwD tpJhYfXIDSP2EHimdGAvL69YhD8zWx7Q4JNN/kTerdXP2709rmtHR6qaTMFkigwMrVQVkpMlS7h SELv9ZXbgsgP8hBwRzHSh1CCN6haeQe+lc2nVOm4ghyM4y3GeOMPuHyE5sI9B/r9S2AyggDrU4O Wo5ITF4oFmpkomkte027Ik3/Bz3thMKUntHBqWIOBeJ+u4F1NGMCNIRcj9+eG7EmZpijgwl7p4W d3jsadGTF8mdph4wLC9QYjC7qvIAbzZgMTMlU8K2UDLekI87C8ww4bsYbxwp/FyFG71gsFuLaGC BCdms9pgmLRCsC2i8n+NlhB70E/ccBSnqQcf1Crd2k/yrsEoYzkAfyjdWkwOSymsa9bOst5fu96 OkqTGhhrPtIryoQWromj6yuwuWClpINhM7TSn1h9NSSg1Ne0wmHP/0jFJzTiMrztobxnjUOG0= X-Received: by 2002:a17:90b:5288:b0:381:bcfb:e710 with SMTP id 98e67ed59e1d1-398babbaa1bmr16637563a91.3.1788218637567; Mon, 31 Aug 2026 16:23:57 -0700 (PDT) Received: from [10.60.78.252] ([2409:40c2:5002:4362:354a:8f21:7ceb:c8a6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3990d75fc49sm1963213a91.12.2026.08.31.16.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 16:23:57 -0700 (PDT) From: Bhargav Joshi Date: Tue, 01 Sep 2026 04:53:05 +0530 Subject: [PATCH v3 1/6] dt-bindings: dma: ti,cppi41: Convert to DT schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260901-ti-am33-usb-v3-1-5e15c617d2e9@gmail.com> References: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@gmail.com> In-Reply-To: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@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 , Manivannan Sadhasivam , Bin Liu 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=1788218595; l=5496; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=HIZOfZztkTOerpbTCbh6mnrcWPp1/knZyXp0t7QNArY=; b=JXYLTjSgWVbdPooDMpJ/A4F3QlYlYjO7N0T4XSe0L+hgJAlH064Ttg3iMKDCGtIF2aOqfjK7t vNvl8IiNelaAeL+PHj8zJxwwAdETjJ3vAHpVCEfkmYdpfSkxF+XmX5n X-Developer-Key: i=j.bhargav.u@gmail.com; a=ed25519; pk=IqNDwUZKECEA+n8wXctFLBbYL9NhFstZNbOznm/nX1k= Convert TI CPPI 4.1 DMA controller text bindings to DT schema. Add ti,am3359-cppi41 and ti,da830-cppi41 into single schema since they share the same hardware IP block and driver. Add undocumented #dma-requests and power-domains properties to match existing DTS usage. Reviewed-by: Rob Herring (Arm) Signed-off-by: Bhargav Joshi --- .../devicetree/bindings/dma/ti/ti,cppi41.yaml | 109 +++++++++++++++++= ++++ .../devicetree/bindings/usb/am33xx-usb.txt | 14 --- .../devicetree/bindings/usb/da8xx-usb.txt | 12 --- 3 files changed, 109 insertions(+), 26 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/ti/ti,cppi41.yaml b/Docu= mentation/devicetree/bindings/dma/ti/ti,cppi41.yaml new file mode 100644 index 000000000000..a8c28e8ada07 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/ti/ti,cppi41.yaml @@ -0,0 +1,109 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/ti/ti,cppi41.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI CPPI41 DMA Controller + +maintainers: + - Sebastian Andrzej Siewior + +properties: + compatible: + enum: + - ti,am3359-cppi41 + - ti,da830-cppi41 + + reg: + minItems: 3 + maxItems: 4 + + reg-names: + minItems: 3 + maxItems: 4 + + interrupts: + maxItems: 1 + + interrupt-names: + const: glue + + "#dma-cells": + const: 2 + + dma-channels: + description: Number of DMA channels supported. + $ref: /schemas/types.yaml#/definitions/uint32 + + dma-requests: + description: Number of DMA requests supported. + $ref: /schemas/types.yaml#/definitions/uint32 + + power-domains: + maxItems: 1 + + "#dma-channels": + description: Deprecated, use dma-channels instead. + deprecated: true + + "#dma-requests": + description: Deprecated, use dma-requests instead. + deprecated: true + +required: + - compatible + - reg + - reg-names + - "#dma-cells" + - dma-channels + +allOf: + - $ref: /schemas/dma/dma-controller.yaml# + - if: + properties: + compatible: + contains: + const: ti,am3359-cppi41 + then: + properties: + reg: + minItems: 4 + reg-names: + items: + - const: glue + - const: controller + - const: scheduler + - const: queuemgr + power-domains: false + required: + - interrupt-names + - interrupts + - dma-requests + else: + properties: + reg: + maxItems: 3 + reg-names: + items: + - const: controller + - const: scheduler + - const: queuemgr + +unevaluatedProperties: false + +examples: + - | + dma-controller@7402000 { + compatible =3D "ti,am3359-cppi41"; + reg =3D <0x47400000 0x1000>, + <0x47402000 0x1000>, + <0x47403000 0x1000>, + <0x47404000 0x4000>; + reg-names =3D "glue", "controller", "scheduler", "queuemgr"; + interrupts =3D <17>; + interrupt-names =3D "glue"; + #dma-cells =3D <2>; + dma-channels =3D <30>; + dma-requests =3D <256>; + }; diff --git a/Documentation/devicetree/bindings/usb/am33xx-usb.txt b/Documen= tation/devicetree/bindings/usb/am33xx-usb.txt index 654ffc62d013..8431de346129 100644 --- a/Documentation/devicetree/bindings/usb/am33xx-usb.txt +++ b/Documentation/devicetree/bindings/usb/am33xx-usb.txt @@ -51,20 +51,6 @@ USB The controller should have an "usb" alias numbered properly in the alias node. =20 -DMA -~~~ -- compatible: ti,am3359-cppi41 -- reg: offset and length of the following register spaces: USBSS, USB - CPPI DMA Controller, USB CPPI DMA Scheduler, USB Queue Manager -- reg-names: glue, controller, scheduler, queuemgr -- #dma-cells: should be set to 2. The first number represents the - endpoint number (0 =E2=80=A6 14 for endpoints 1 =E2=80=A6 15 on instance= 0 and 15 =E2=80=A6 29 - for endpoints 1 =E2=80=A6 15 on instance 1). The second number is 0 for = RX and - 1 for TX transfers. -- dma-channels: should be set to 30 representing the 15 endpoints for - each USB instance. -- #dma-channels: deprecated - Example: ~~~~~~~~ The following example contains all the nodes as used on am335x-evm: diff --git a/Documentation/devicetree/bindings/usb/da8xx-usb.txt b/Document= ation/devicetree/bindings/usb/da8xx-usb.txt index fb2027a7d80d..00320d92d3bb 100644 --- a/Documentation/devicetree/bindings/usb/da8xx-usb.txt +++ b/Documentation/devicetree/bindings/usb/da8xx-usb.txt @@ -27,18 +27,6 @@ Optional properties: ~~~~~~~~~~~~~~~~~~~~ - vbus-supply: Phandle to a regulator providing the USB bus power. =20 -DMA -~~~ -- compatible: ti,da830-cppi41 -- reg: offset and length of the following register spaces: CPPI DMA Contro= ller, - CPPI DMA Scheduler, Queue Manager -- reg-names: "controller", "scheduler", "queuemgr" -- #dma-cells: should be set to 2. The first number represents the - channel number (0 =E2=80=A6 3 for endpoints 1 =E2=80=A6 4). - The second number is 0 for RX and 1 for TX transfers. -- dma-channels: should be set to 4 representing the 4 endpoints. -- #dma-channels: deprecated - Example: usb_phy: usb-phy { compatible =3D "ti,da830-usb-phy"; --=20 2.55.0 From nobody Sat Sep 26 13:50:16 2026 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (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 667FA3BB664 for ; Mon, 31 Aug 2026 23:24:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218659; cv=none; b=PynYehvJ91sLEdGbRXh0vpA8idepRtkb59ntsEw9lZKcB38/+Hdkf6O/y4K6G8Ht677ZD4vRcprQiPP6SwjBfuyDgMBoTbBf7a7HYp9cm3l322Zmz/JiyLut9cotCg1mhL9xgj04r4tnHRLbbLe94e1W4053b5ihVvdCUijp06I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218659; c=relaxed/simple; bh=wdCGHEerWJ5cmqLQGOw8nf8LkCX3g+goumJdNXlbraM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=n4fYWG7sNnnTFTBi/ALTMIXLLP597q4ma7Wh3IDi2c0B77zeaKYEFFkscspfFEojd3KHeNCoOhgyUd1fZk9WNlk2AiA5c7YfAJ5Rh06HFPs0WoS+afcGdj+9ZHCY630mmJOOYh0zxWz0CR6MF9R80LW6Q9M+pZNkPAf94gAGwpQ= 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=YZ4QErD/; arc=none smtp.client-ip=209.85.215.170 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="YZ4QErD/" Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-cbe4c537ad6so839592a12.0 for ; Mon, 31 Aug 2026 16:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788218658; x=1788823458; 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=J4jt4+G+FlNDDgolam7fVa9at5qKQS5ruNcIg62BbRI=; b=YZ4QErD/hEDz0RH8rzaOl7HKJUo4QDLiXELppnopyvKbXGD/pZ2DQPLd403vTZZpsy 2S6sTI4Tm1BEviYgdDnCPOD6mkjaw+JN2VOVtb7CWlSkxc6tGz4Gmts7joKL28Ez4ock MCZx+b6sOW/MYQ/uQagfFMDAFRwKSatKDiq3QDjY07vmveTD2iAOihtvSXp/JUmoJpGi X4d7sNOhIWChpSLWx/7gwNx1/J+QOXwD1OnGlmIZnnMqbatOLZkqmdGzfXzBGITk5x2I zGWdrVg/Cecd6wM7TpV6P7HBoDhdmjGGyBeZ0QYdvzxJXc4IPyIJ7Lc7j0rrdWYMNWRb 2QLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788218658; x=1788823458; 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=J4jt4+G+FlNDDgolam7fVa9at5qKQS5ruNcIg62BbRI=; b=cQ3jnSLk2HQGJ6ryhftRpjp+bLG3T5ktehz1dHJ9gaQeoaLDK2kDEI1EWDio3O0vmL /x0i/5+ffaFrAtJhUdldYz/eqFODQ+xgHxROWejeER+HrNiTjuJxUQUITvov+fX6SxIR eagyG80ULB41b14xMscIdqUQsWIdtV7qBjkM2l/ERmHo09PC8ey3CfokEbYdBXAu5G1L xYE4gVBMhrLAUotEqi7v1kESk6jUmVJBLsxMMPO3yqNF9ryiOYeih7hMcvEid8p2+qax yf6QNqXXY2lSb9gLC4iPNWJG4PUTqjzu59QbGHjZbDxQJ9Nw9fXhWYqr/uiHgPJo0o/F hTjg== X-Forwarded-Encrypted: i=1; AKwUvBybrUx1JgtXCLnaK0HDApjf27poXwSHFNOUl+nr9IcgWi+Q4fDBRhVnbCiul/ytXTjmfywJzM/BMGM2JuQ=@vger.kernel.org X-Gm-Message-State: AFuF++lrZPqMFLVhT80RAP9EluG6us5l5Z+yz0PPH6Ymw0W9JQw7m4Di RtzMmaB1H6gyKxrR4kaRuVedIfdZTJqkZ9RnnKM/9c0CjvQIOLc9+QAxe0Jsog== X-Gm-Gg: AYBFou1lhgdfrC61xLj9Rb1NP6r1FEoMsNgA3DIj1nggURsA4aAd/dAjSw2AW9q5q4U RLQBv3X1HE+ogxSVUTFg/MiVcY+VcWCViuYwqomp2ib+jOM8MYS2UwvDkG6SeELPI/hg1itfECJ B008rbuj7kPFZg0YVij5t9q1awAQANxksgZ+A2ZzNuJ3xF7FlXqr3ThMEQdSuIInYG9+KPYLOS6 OirSPviYCJ/3ZKcQOF5H5uxP5MAaE2CGnP9QxgcRySc37W5ywMkVEQyegGu0ddXJokjy4QRFRWg rx6kKBJIYCZkKktezzBx2AI8NNIFhf2mnIcYJoJH5tAhFcPfX0hieknkwmfjLBfoF/Q9p28VBRn 0JLQ0Mn/sl6wB/eWmej+LxF9o4mfdfPgrynLNpfmR4bG2cvHukfvZfBw8Z4Ys6xPTjvGQRb+I4z Lu3l4YlUOXY0E1aT6LLqnQM4VpH6esxdcAJwAzU8qQXwXjBDA4mGA57RT+Nw0ncH8TS7pqMa8= X-Received: by 2002:a17:90b:4b87:b0:396:463e:2eeb with SMTP id 98e67ed59e1d1-398ba6dc4f0mr14936225a91.0.1788218657679; Mon, 31 Aug 2026 16:24:17 -0700 (PDT) Received: from [10.60.78.252] ([2409:40c2:5002:4362:354a:8f21:7ceb:c8a6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3990d75fc49sm1963213a91.12.2026.08.31.16.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 16:24:17 -0700 (PDT) From: Bhargav Joshi Date: Tue, 01 Sep 2026 04:53:06 +0530 Subject: [PATCH v3 2/6] dt-bindings: phy: ti,am335x-usb-phy: Convert to DT schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260901-ti-am33-usb-v3-2-5e15c617d2e9@gmail.com> References: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@gmail.com> In-Reply-To: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@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 , Manivannan Sadhasivam , Bin Liu 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=1788218595; l=2527; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=wdCGHEerWJ5cmqLQGOw8nf8LkCX3g+goumJdNXlbraM=; b=433rLdFjhp/cZxJu80LNeYmwzyv7NpPrsHPWkvaXA3CSzd0fsbH2lnjG9g42jIzAEqebm3YrE HYUCmFZ7fZSDHQTZuxLzJhe8aEP7UYjeWCPN8u73ffdOnObKiiu7q5d X-Developer-Key: i=j.bhargav.u@gmail.com; a=ed25519; pk=IqNDwUZKECEA+n8wXctFLBbYL9NhFstZNbOznm/nX1k= Convert the TI AM335x USB PHY text bindings to DT schema. Add undocumented vcc-supply property to match existing DTS usage. Reviewed-by: Rob Herring (Arm) Signed-off-by: Bhargav Joshi Acked-by: Manivannan Sadhasivam --- .../devicetree/bindings/phy/ti,am335x-usb-phy.yaml | 49 ++++++++++++++++++= ++++ .../devicetree/bindings/usb/am33xx-usb.txt | 9 ---- 2 files changed, 49 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/ti,am335x-usb-phy.yaml b= /Documentation/devicetree/bindings/phy/ti,am335x-usb-phy.yaml new file mode 100644 index 000000000000..b28cd42ece5e --- /dev/null +++ b/Documentation/devicetree/bindings/phy/ti,am335x-usb-phy.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/ti,am335x-usb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI AM335x USB PHY + +maintainers: + - Sebastian Andrzej Siewior + +properties: + compatible: + const: ti,am335x-usb-phy + + reg: + maxItems: 1 + + reg-names: + const: phy + + ti,ctrl_mod: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the reset module node. + + "#phy-cells": + const: 0 + + vcc-supply: + description: Phandle to the regulator that provides power to the PHY. + +required: + - compatible + - reg + - reg-names + - ti,ctrl_mod + - "#phy-cells" + +additionalProperties: false + +examples: + - | + usb-phy@47401300 { + compatible =3D "ti,am335x-usb-phy"; + reg =3D <0x47401300 0x100>; + reg-names =3D "phy"; + ti,ctrl_mod =3D <&ctrl_mod>; + #phy-cells =3D <0>; + }; diff --git a/Documentation/devicetree/bindings/usb/am33xx-usb.txt b/Documen= tation/devicetree/bindings/usb/am33xx-usb.txt index 8431de346129..8832843c7d7c 100644 --- a/Documentation/devicetree/bindings/usb/am33xx-usb.txt +++ b/Documentation/devicetree/bindings/usb/am33xx-usb.txt @@ -17,15 +17,6 @@ Reset module - reg-names: "phy_ctrl" for the "USB control registers" and "wakeup" for the USB wake up control register. =20 -USB PHY -~~~~~~~ -compatible: ti,am335x-usb-phy -reg: offset and length of the "USB PHY" register space -ti,ctrl_mod: reference to the "reset module" node -reg-names: phy -The PHY should have a "phy" alias numbered properly in the alias -node. - USB ~~~ - compatible: ti,musb-am33xx --=20 2.55.0 From nobody Sat Sep 26 13:50:16 2026 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (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 111A73F107A for ; Mon, 31 Aug 2026 23:24:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218681; cv=none; b=VibYlnXgEF/lHaf4vbVTkkd8OCr6Yx4mxaxiP74jK1GnV67hjXK6o3y4Uml9OV6N1qiJasQvakLVUYSvGwah9mY1WQpiB0Rpr5AEY/QeEfaJcc39nRrtuyvYbJLSt82Z83r84Dw6qeId1NxfrWWEonxkEE9j5qJW2Cj4eVrhM1A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218681; c=relaxed/simple; bh=eP2GsusgnC1pbU80sJIT0eWrfLWddFQwIfPwMIT9cmQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rBSbzudayAeyFRO/2DmOIGxKW59Rb8QRRIBRzttPd5YTKusGpCnzYwTaJ/tLa6x5SmTlsjyELHXTvnLwUCU3DeZbdjYAipuvNlluP2+0gcxEeZ2u9Hq2+/XJK1bqjA7UMppCv3q+7MDjI7zPDwHcSFhGBxNxESc3ZLw4bpy2tyE= 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=YhUKuE/g; arc=none smtp.client-ip=209.85.216.52 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="YhUKuE/g" Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-384c94c9423so495003a91.2 for ; Mon, 31 Aug 2026 16:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788218678; x=1788823478; 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=aBzDYqJz1rhOo2qIbSAQbkR5tnylL7yY6lbPSQMXgwo=; b=YhUKuE/gFBfS6CA6vhx+EjfqKRXC9cil+jcaxcCW0DSUxfxTE39bkZwjiHkmTX75Dn m88GCFkVxt4q7/eHD8OJ30/mqJfOh/ykDbF4n17ZTM0VEPuW1acOdDS1aKqod8C0sKHr QtvyjWpC0MhdYIPzbn+zsuahKqa6TXtkIk18zo2GkUm4KhLVwHEbErCk4kXv96nTJA5T DECpdDzRpFT4+w3/DHLuLEk4epvBKdylLRrdrK+jjjLyZNoTdpcu8Rh0acWW+ynEgjMg +6QFqESrVLiSF7I4WDgJRmkIxAl3ALrjOZRBvUZKFC9x61hRdtiPwSOqrXcmOyT6iqvg JBkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788218678; x=1788823478; 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=aBzDYqJz1rhOo2qIbSAQbkR5tnylL7yY6lbPSQMXgwo=; b=TTrROzbqEFtx6bI0UfwdegYGuMc0vBbmuIihOECp0qkcWsF0utdvhoNQ6CNUhmLyWE P4Uh3TBZxDLR2aCMvyk7I+v7LQaXHw0J+HVOPwZ3z1zqCX/2384i7jzhSZU1ZJGrWfEn nfBT52o/i8iu+6l2BjIsYyGzK9dw3DR/RS4u2PKmZJS52yveQVPE3UhKV8Dw/9+0KPCl TV9ISQMKkAOK3t5BiCSvU4WnD6bo5+48xcHbkutfimDQTjsFjg1hrjhAfVy64j1yjlxx CdYpnqpqL9YDWlh4UJC0zQ9p4ukB9ZUPouEUWfbyXgVUC+OLoPM0dlwnOCu7Uq/5wzXU zyVg== X-Forwarded-Encrypted: i=1; AKwUvBwhIvd7O9t6C0qf5Bmj9d2g4DtUWekrtxNkDve8z9ngIm3TwWwnZ2aGaF+Wh+nku/rLSOeqqgG1fmdBHME=@vger.kernel.org X-Gm-Message-State: AFuF++mUa5K1q2iHEfEI+noIIBAsMmVTeA9EYA2qpO54pOZ8BVMCe2Iw WpBzrnAYmBNvm22hHW/O+MBdNz9/TLQEagNbS/lKKkyO9NOOa4e/akiygrFs1A== X-Gm-Gg: AYBFou2q/xP3e+Wlro5XCMOrpseMRWcakBDfogaPjkwM59/xzzUqCZ05ns0g/Wmip53 t8YmV0YyBUJJnCsalxHFjYJbcyvA647YOxG430jMAhdQEmKOFK6S6k0ND0f69aXpaTjWFbcOZuY WqftIQ8rkIZJ2OCP6iHqD91oOB7cX3KVYYBsGLYIy9J7Tdrcll9TjcaubbNqhPkUL5rFSv1SiJS QRFi7dAb97PfdKK7LoEHSZSLhRMfybqPP+w+tG7oGtv/VYfsJAyahd7/crbhxPKWz1duz2Dd3s+ lzHI1WOfSX+WqTRBJo7AdI2YXeMnpvXDmQ4sw96t5Bj8QbIDkNH7yKUJX4emfW216H8kfV7iNxK jIckVLN8d0qt7WD27pyEIO7mpmuAzuBVbXCFXaoRRdtzCLQK8VzbaJElNxLLIWY+UpbLCaPIjOW XV9g+Am0U/oncojCJ+XEJewdQ1A7uI47nuQesQ50I5qtSBH7y1lmy+Qgtx0eTnHKn6w6KBWpI= X-Received: by 2002:a17:90b:58c8:b0:38e:480b:99a5 with SMTP id 98e67ed59e1d1-398bab4a682mr15575622a91.2.1788218678209; Mon, 31 Aug 2026 16:24:38 -0700 (PDT) Received: from [10.60.78.252] ([2409:40c2:5002:4362:354a:8f21:7ceb:c8a6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3990d75fc49sm1963213a91.12.2026.08.31.16.24.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 16:24:37 -0700 (PDT) From: Bhargav Joshi Date: Tue, 01 Sep 2026 04:53:07 +0530 Subject: [PATCH v3 3/6] dt-bindings: usb: ti,musb-am33xx: Convert to DT schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260901-ti-am33-usb-v3-3-5e15c617d2e9@gmail.com> References: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@gmail.com> In-Reply-To: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@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 , Manivannan Sadhasivam , Bin Liu 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=1788218595; l=5224; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=eP2GsusgnC1pbU80sJIT0eWrfLWddFQwIfPwMIT9cmQ=; b=QKEENH/pj3ZaAy5ezfELNDe8pUzU+tFPVnNjJtdxDFCz4/6NtxPSN1SnnaeXP7MXy6zDXGJdZ kLUrMckFkwTBgWUvFyjKaYnWZ7kD0k3h5Eiy2kJtstOdTebdX2jbHpl X-Developer-Key: i=j.bhargav.u@gmail.com; a=ed25519; pk=IqNDwUZKECEA+n8wXctFLBbYL9NhFstZNbOznm/nX1k= Convert the TI AM33xx MUSB text bindings to DT schema. Changes during conversion: - Allow an optional vbus interrupt used in am335x-bone-common. - Add the interface-type and phy-names properties natively used by the dm816x hardware. - Allow 0 or 1 for mentor,multipoint. While the text binding mandated 1, the Mentor USB IP natively supports both single and multipoint configurations as used in existing DTS. Reviewed-by: Rob Herring (Arm) Signed-off-by: Bhargav Joshi --- .../devicetree/bindings/usb/am33xx-usb.txt | 25 ----- .../devicetree/bindings/usb/ti,musb-am33xx.yaml | 113 +++++++++++++++++= ++++ 2 files changed, 113 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/am33xx-usb.txt b/Documen= tation/devicetree/bindings/usb/am33xx-usb.txt index 8832843c7d7c..5973f88bcc65 100644 --- a/Documentation/devicetree/bindings/usb/am33xx-usb.txt +++ b/Documentation/devicetree/bindings/usb/am33xx-usb.txt @@ -17,31 +17,6 @@ Reset module - reg-names: "phy_ctrl" for the "USB control registers" and "wakeup" for the USB wake up control register. =20 -USB -~~~ -- compatible: ti,musb-am33xx -- reg: offset and length of "USB Controller Registers", and offset and - length of "USB Core" register space. -- reg-names: control for the ""USB Controller Registers" and "mc" for - "USB Core" register space -- interrupts: USB interrupt number -- interrupt-names: mc -- dr_mode: Should be one of "host", "peripheral" or "otg". -- mentor,multipoint: Should be "1" indicating the musb controller supports - multipoint. This is a MUSB configuration-specific setting. -- mentor,num-eps: Specifies the number of endpoints. This is also a - MUSB configuration-specific setting. Should be set to "16" -- mentor,ram-bits: Specifies the ram address size. Should be set to "12" -- mentor,power: Should be "500". This signifies the controller can supply = up to - 500mA when operating in host mode. -- phys: reference to the 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. - -The controller should have an "usb" alias numbered properly in the alias -node. - Example: ~~~~~~~~ The following example contains all the nodes as used on am335x-evm: diff --git a/Documentation/devicetree/bindings/usb/ti,musb-am33xx.yaml b/Do= cumentation/devicetree/bindings/usb/ti,musb-am33xx.yaml new file mode 100644 index 000000000000..cc01edc75d11 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,musb-am33xx.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,musb-am33xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI AM33xx/DM816 MUSB + +maintainers: + - Ravi B + - Ajay Kumar Gupta + +allOf: + - $ref: /schemas/usb/usb-drd.yaml# + +properties: + compatible: + enum: + - ti,musb-am33xx + - ti,musb-dm816 + + reg: + maxItems: 2 + + reg-names: + items: + - const: mc + - const: control + + interrupts: + minItems: 1 + maxItems: 2 + + interrupt-names: + minItems: 1 + items: + - const: mc + - const: vbus + + mentor,multipoint: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Indicates the musb controller supports multipoint. + enum: [0, 1] + + mentor,num-eps: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Specifies the number of endpoints. + const: 16 + + mentor,ram-bits: + description: Specifies the ram address size. + const: 12 + + mentor,power: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Controller supply capacity (in mA) when operating in host= mode. + const: 500 + + phys: + maxItems: 1 + + dmas: + minItems: 1 + maxItems: 30 + + dma-names: + minItems: 1 + maxItems: 30 + items: + pattern: "^(rx|tx)([1-9]|1[0-5])$" + + phy-names: + const: usb2-phy + + interface-type: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Describes the type of interface between the controller an= d the PHY. + enum: [ 0, 1 ] + +required: + - compatible + - reg + - reg-names + - interrupts + - interrupt-names + - dr_mode + - mentor,multipoint + - mentor,num-eps + - mentor,ram-bits + - mentor,power + - phys + +unevaluatedProperties: false + +examples: + - | + usb@47401000 { + compatible =3D "ti,musb-am33xx"; + reg =3D <0x47401400 0x400>, + <0x47401000 0x200>; + reg-names =3D "mc", "control"; + interrupts =3D <18>; + interrupt-names =3D "mc"; + dr_mode =3D "otg"; + mentor,multipoint =3D <1>; + mentor,num-eps =3D <16>; + mentor,ram-bits =3D <12>; + mentor,power =3D <500>; + phys =3D <&usb0_phy>; + dmas =3D <&cppi41dma 0 0 &cppi41dma 1 0>; + dma-names =3D "rx1", "tx1"; + }; + --=20 2.55.0 From nobody Sat Sep 26 13:50:16 2026 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (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 98F2C3D890B for ; Mon, 31 Aug 2026 23:25:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218703; cv=none; b=Ly/ZCIxrLkPro5ZnIjgZ5c3yUC/l4Hgok0i8TLXnkZXlqTRtVrwA0WNQDF2oqr6zhy794t1nEQzSdzVQ/Ch665zsGQbjYS5TeuKwPpUFltuPIK4m4WtB30mTN8zt7RsAsvBfpN+QmgWbgv8HlbazCclCS1G8ndK+5B+X1FqfRxY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218703; c=relaxed/simple; bh=WBrVAh2dl8UJKYGy/bCn2gBe1W2WzeDKN1Fq4A99l8c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y2Pq7B9u+HCEbLvBACrFoXCqZ/nYHHxfQNl1ues/7MU4s84tbW2JeIc+AZD3JkbY+wDK6mi8bKlva0HsMZ2BED5KBytBgacp7rodeXLxynhOC0bHlIKJJ/PGWJN/5XVenynYneDjU2DYIBQlN+qta+dSEVyCGhI5yQPQxvhaGpY= 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=PIOEVkSt; arc=none smtp.client-ip=209.85.216.43 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="PIOEVkSt" Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-38f57e312ecso935491a91.1 for ; Mon, 31 Aug 2026 16:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788218700; x=1788823500; 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=I2f1MFzQHcHK1Gr7vYedM+Hgn+oOUGoRn3RcTHV7nos=; b=PIOEVkStyOHty1skV9UY043stR/L9hqx/c/UDiyldT201xdJR5ZXpHY5WvLvW4uZw4 jRcHtZ1vC2AB2Fr1h6nRKsNhZ2YAEncRPyfzAzTPG3w5aLS5voYu5/BE0cWaSVkDQ1Xe /2h/0MOGlLT5Gd1BWTGkOeU4uQOpW4VV13q/TlFNoJQnqQKv3V2xpBiSXF4gaWz1Zzll zZn28SKEp7s0KDyGQHgE9zHS9x3kmfgOlIAX+ZJen/StJjZc0eIrgvcjIMcUmZTl9SHX WTIkqSQ/jiXK3g0aDEcFao42WIo2ZgHffPBEYi98r5GFLhPWWHrGJs99iABDnFfYBOYN pgOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788218700; x=1788823500; 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=I2f1MFzQHcHK1Gr7vYedM+Hgn+oOUGoRn3RcTHV7nos=; b=mJsd/FpyKVeRgKeCQTuzaJybtCS+pzZWyDJBxSkb4vj81qrts0v1xLNdhqovseK238 O7yYS8HGcWrybcqKDyDNucZvbZ61WVuw9X/2KKXNEMZDI6azcid55up93D7/pcAk8qkB AuiisFax1TiE816tbdnKsy6dMIpTc/JilAIZQKGcLC8N8BijMWekHoXLdtQPNauItD4h Q/hdfSe/xW4kZCbeufSCuUrjp3AquK2qCvj/Ve+zE8GOigU7fEjxqVBfpx1OzUAKV5t9 nn1pWyrU4h+Q/U/f8tfD/nBjdJcM5NJL//of43hBwS73jJM1413Q8Ebfn3nwunLy4shD wwGQ== X-Forwarded-Encrypted: i=1; AKwUvBxQixdqg0osFsC2Qxm1CgszzBRiKpW5FSM2uVmjukY/k34T6B7YhRt9gAMxX1tXChteu6ua7xbtDUfj0SA=@vger.kernel.org X-Gm-Message-State: AFuF++lV4kq0DHT119OlAOlvSI+G5s0GGR5v/uhMPKe1IJX/7FZRj1pT cwwqrwmmMNNEvSwvSQFQlnGWB4Uwxu9D6n/jkC5mQXNvlAydmbU/WS9OJvEXUA== X-Gm-Gg: AYBFou0iUI63BGpHU+/qwH7uVtvLodD8yWoR09PVLhcIF9023xd4pfixw8fYJnRF70U 2RgBddeUdJIvziptyKlT074WXFI12G3Cig8FEx7WBehed7KiOyLPqT2FF09WOm8xZ0W5tSEEiHT LAwTO9gJ6eKhOIL8KNAiqT+0HIQJU3/Suj4ZSSCksqi493cldRHuRw9Bk2Riuo9SRgy4A5/rAaf VR7zlXoFTyHWL8aC0qGZG90T6TJpI5sqzQfjHqozIndnenPrx4zLK8T1g5ll3Jopz/yucMczVXD zLOajBq1gR9NEdB9jaRMLNALmB/ggoo+qlTpTnDrun0hO1QEFp7ugqR7bOLMPU4ryodmxXcGHbb 62cJiVE9KEj7VLY/KuP35BCWQL74hOelNRaDN1IRXx1TUFq8x6JcYo0742ShVHL23zmEwu4ksL/ y9UmYgPTneuzbGmUKNccIrBfhfmVv4DS9tiNFkS6bAVrsR6FN2+MwqDm1/aa34NOsKY695koo= X-Received: by 2002:a17:90a:d403:b0:38f:aa76:88b with SMTP id 98e67ed59e1d1-398babbb56fmr15866363a91.4.1788218699965; Mon, 31 Aug 2026 16:24:59 -0700 (PDT) Received: from [10.60.78.252] ([2409:40c2:5002:4362:354a:8f21:7ceb:c8a6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3990d75fc49sm1963213a91.12.2026.08.31.16.24.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 16:24:58 -0700 (PDT) From: Bhargav Joshi Date: Tue, 01 Sep 2026 04:53:08 +0530 Subject: [PATCH v3 4/6] dt-bindings: usb: ti,am335x-usb-ctrl-module: Convert to DT schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260901-ti-am33-usb-v3-4-5e15c617d2e9@gmail.com> References: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@gmail.com> In-Reply-To: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@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 , Manivannan Sadhasivam , Bin Liu 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=1788218595; l=2531; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=WBrVAh2dl8UJKYGy/bCn2gBe1W2WzeDKN1Fq4A99l8c=; b=PrUWAD8e1Wj6MZVJOd+5GcYQfmkOigONZ2BF6CqeZ9Pp250pErMagc4593CxI0anBHddpK9QH T1/skBp4CYHDpOn59vKaQxDkb6rTvMVOCMbZh1kfidhWsIs83gr1u2B X-Developer-Key: i=j.bhargav.u@gmail.com; a=ed25519; pk=IqNDwUZKECEA+n8wXctFLBbYL9NhFstZNbOznm/nX1k= Convert the TI AM335x USB Control Module text bindings to DT schema. No functional changes. Reviewed-by: Rob Herring (Arm) Signed-off-by: Bhargav Joshi --- .../devicetree/bindings/usb/am33xx-usb.txt | 9 ----- .../bindings/usb/ti,am335x-usb-ctrl-module.yaml | 38 ++++++++++++++++++= ++++ 2 files changed, 38 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/am33xx-usb.txt b/Documen= tation/devicetree/bindings/usb/am33xx-usb.txt index 5973f88bcc65..94312ad8ec8c 100644 --- a/Documentation/devicetree/bindings/usb/am33xx-usb.txt +++ b/Documentation/devicetree/bindings/usb/am33xx-usb.txt @@ -8,15 +8,6 @@ The glue layer contains multiple child nodes. It is requir= ed 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. =20 -Reset module -~~~~~~~~~~~~ -- compatible: ti,am335x-usb-ctrl-module -- reg: offset and length of the "USB control registers" in the "Control - Module" block. A second offset and length for the USB wake up control - in the same memory block. -- reg-names: "phy_ctrl" for the "USB control registers" and "wakeup" for - the USB wake up control register. - Example: ~~~~~~~~ The following example contains all the nodes as used on am335x-evm: diff --git a/Documentation/devicetree/bindings/usb/ti,am335x-usb-ctrl-modul= e.yaml b/Documentation/devicetree/bindings/usb/ti,am335x-usb-ctrl-module.ya= ml new file mode 100644 index 000000000000..f8ac0af745c6 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,am335x-usb-ctrl-module.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,am335x-usb-ctrl-module.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI AM335x USB Control Module + +maintainers: + - Sebastian Andrzej Siewior + +properties: + compatible: + const: ti,am335x-usb-ctrl-module + + reg: + maxItems: 2 + + reg-names: + items: + - const: phy_ctrl + - const: wakeup + +required: + - compatible + - reg + - reg-names + +additionalProperties: false + +examples: + - | + control@44e10000 { + compatible =3D "ti,am335x-usb-ctrl-module"; + reg =3D <0x44e10620 0x10>, + <0x44e10648 0x4>; + reg-names =3D "phy_ctrl", "wakeup"; + }; --=20 2.55.0 From nobody Sat Sep 26 13:50:16 2026 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 C748C3E5EEA for ; Mon, 31 Aug 2026 23:25:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218721; cv=none; b=WnnKR+c/cZEbB6j8+63piHGWvscnjxxRtsq3qEqxoPxBz+7aBvxIg4WPqh0P1MgTg2Cuah0btj1GjSqVmEhvdMMeAbhT/zRVGZXAWR/zDa3V8SofV+SOICxxCvrXLWXvgyHeldVHVFrLUZGuXQ4p7a6pRRZL08sp8/WWSKVp0fo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218721; c=relaxed/simple; bh=ZbR5e3iSx3We61kptyp25XVhlVD2xl4rq8aQcMhjv/E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZsI2Gr8Oo40oixiII/lY3EUQ/zLCa3eAermLuyaM7/vinK1+i8gHTG3emLFKF4VQmAe4SjMQfySIkzo6u5DuJHGc45G3clIm9wNHhrfYzkmD7QEOrWV994qvhOKb2x6jBM18ZLNycYJska00s6KvMPQwhuAoo5Odl5ywBkl++1o= 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=XOz0xGv9; arc=none smtp.client-ip=209.85.216.50 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="XOz0xGv9" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-396afefb35bso527503a91.2 for ; Mon, 31 Aug 2026 16:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788218719; x=1788823519; 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=vEDujxfcQqG+DZ1q+qLYb+AredW1xx3215/C6epQlL0=; b=XOz0xGv9tYY7HAoBMytL5cwGTAbkc1rXZJPhMehstlJyJi9LUMBK/+VQMzDtjucS6y LHCM8aGToieiuTMkiUJJAoaSspTeqYiL7fGCFaOWsyDHXDL+YcDYMNioMiAYC5bVYnJy qFu0F2oZX31QpBA7m21SCcmStMbUKlcEX90pcw/OKdETAuboYl0dmvcI5QWloq2Wbwkz dlyAMvCX9zTLND7rolHqbWxLhWJMZhJCJ/51KGkEht4k1vDUIlMdYACB1BcK3uOlmhgr ulQp69t1nDNsPOWT+7O5o7PbO9DcvVDHAzZnItFv4rOAp6F4CrTi1pWBWIcQoljHzjr7 lO2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788218719; x=1788823519; 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=vEDujxfcQqG+DZ1q+qLYb+AredW1xx3215/C6epQlL0=; b=nGQT13sqZ67Sho3cREZiJiDE0FsXK2vAP8Gsxmjabw74bzRYzFKCgQ/Kcy52xgBhO+ wIu5kT08us8XlQnHpWoKNQM4BS3cZWHgcN5OYIMqWz3tbi+ndIiB1G9N8FHbe73dO2SA U1FNOIXsl22Ei272xd3pTLrWN0Ud8wD583N9Iu2SqAnOO4G6suwPm9VXDpYaNhZRLl3H ExX9eJ1oSirl0+N9l1HZIvA8US+NV9SdThxrURHiPuTOxCcotzNEwdWIMsNlZrWML+Gn t17PJhne7AUnPoBHP3ldZE46chloo2gLohiZglWxumGTd+VKvnWtZlyqFwekd9lOo7Vg EtnA== X-Forwarded-Encrypted: i=1; AKwUvBxUQUF5AGbNQOWv9dHNjD41bnGJnDAyMp2KvUTsEufWtcMyRkEnbIYURg3z6PkZN414PJ6i5DGZI/IWX6Y=@vger.kernel.org X-Gm-Message-State: AFuF++n+ppdNqjXcSqH+APWHUo+Q064Z23Ddp7P7B72ckK9+RoWFdBKN 6VIVpwB2S41Trf9JUet+IpdC6nsO+3t8YD4GH9pi3xQt/yEcAkWcg5aa6ayZQw== X-Gm-Gg: AYBFou0ozsijxsXfPISdlGBWBlLWKe4MQxL8YP5a6J9oP9YrTfsVvYccy1+yXN0ug18 rZo62Zz3f9AdGIw2GfZhCB2SKXnBnkcnjleL2TjBUHUM8jZb+ATiM5FbVVgEeLa51I8H8o3Hnxh CHNEs/5hJSv+k5lfnVldjOqzBei+0+noukVtkORSMq2xq1m0foG87lFvKtgb07rhm1E2LNTuc7h FUmA+1dpsaX0X8kb0Kr6XLTN5iEfQIMBlnr+GEElZ6PZ65CIIN8+6+x0lmaNpHQQv07U+K1/Scr 8IM3vz4VHJNAPpyh8cub4VH53u9ib8I+riQP4IHL8G7V3zMUXuzE4/RGIPLPrup+4s3pl7g5Jlv Ay8SHQ5HUyfeENOMfFpGCnVEF1sEUP9ufg8uzATLNvwA94dZsIsmGxAcJpir2mDxKpG+pdyPalh bHsLm5VHQctN6bLjujAKGtuLvxWdc1ypJ08nlcTPsA2X3LzjEvLxut8xl/xpIIt1FrzuA3ba0= X-Received: by 2002:a17:90a:ec85:b0:398:bad2:c0f with SMTP id 98e67ed59e1d1-398bad20e7bmr14555598a91.5.1788218718935; Mon, 31 Aug 2026 16:25:18 -0700 (PDT) Received: from [10.60.78.252] ([2409:40c2:5002:4362:354a:8f21:7ceb:c8a6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3990d75fc49sm1963213a91.12.2026.08.31.16.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 16:25:18 -0700 (PDT) From: Bhargav Joshi Date: Tue, 01 Sep 2026 04:53:09 +0530 Subject: [PATCH v3 5/6] dt-bindings: usb: ti,am33xx-usb: Convert to DT schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260901-ti-am33-usb-v3-5-5e15c617d2e9@gmail.com> References: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@gmail.com> In-Reply-To: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@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 , Manivannan Sadhasivam , Bin Liu 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=1788218595; l=8205; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=ZbR5e3iSx3We61kptyp25XVhlVD2xl4rq8aQcMhjv/E=; b=OK8WmRfKp8tQaxPx85rZ9BP5a5Jt/eX2mJYmSRouEhjxrLWCM6Ae2tuucDbzsx7P8eIv1+/fd cyHqE2Zq7tjAHFxeESRzH52QMomOn3qr7fLNUyZl07+p4u8iLUfG7lj X-Developer-Key: i=j.bhargav.u@gmail.com; a=ed25519; pk=IqNDwUZKECEA+n8wXctFLBbYL9NhFstZNbOznm/nX1k= 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. Reviewed-by: Rob Herring (Arm) 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/Documen= tation/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 =3D &usb0; - usb1 =3D &usb1; - phy0 =3D &usb0_phy; - phy1 =3D &usb1_phy; -}; - -usb: usb@47400000 { - compatible =3D "ti,am33xx-usb"; - reg =3D <0x47400000 0x1000>; - ranges; - #address-cells =3D <1>; - #size-cells =3D <1>; - ti,hwmods =3D "usb_otg_hs"; - - ctrl_mod: control@44e10000 { - compatible =3D "ti,am335x-usb-ctrl-module"; - reg =3D <0x44e10620 0x10 - 0x44e10648 0x4>; - reg-names =3D "phy_ctrl", "wakeup"; - }; - - usb0_phy: usb-phy@47401300 { - compatible =3D "ti,am335x-usb-phy"; - reg =3D <0x47401300 0x100>; - reg-names =3D "phy"; - ti,ctrl_mod =3D <&ctrl_mod>; - #phy-cells =3D <0>; - }; - - usb0: usb@47401000 { - compatible =3D "ti,musb-am33xx"; - reg =3D <0x47401400 0x400 - 0x47401000 0x200>; - reg-names =3D "mc", "control"; - - interrupts =3D <18>; - interrupt-names =3D "mc"; - dr_mode =3D "otg" - mentor,multipoint =3D <1>; - mentor,num-eps =3D <16>; - mentor,ram-bits =3D <12>; - mentor,power =3D <500>; - phys =3D <&usb0_phy>; - - dmas =3D <&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 =3D - "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 =3D "ti,am335x-usb-phy"; - reg =3D <0x47401b00 0x100>; - reg-names =3D "phy"; - ti,ctrl_mod =3D <&ctrl_mod>; - #phy-cells =3D <0>; - }; - - usb1: usb@47401800 { - compatible =3D "ti,musb-am33xx"; - reg =3D <0x47401c00 0x400 - 0x47401800 0x200>; - reg-names =3D "mc", "control"; - interrupts =3D <19>; - interrupt-names =3D "mc"; - dr_mode =3D "host" - mentor,multipoint =3D <1>; - mentor,num-eps =3D <16>; - mentor,ram-bits =3D <12>; - mentor,power =3D <500>; - phys =3D <&usb1_phy>; - - dmas =3D <&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 =3D - "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 =3D "ti,am3359-cppi41"; - reg =3D <0x47400000 0x1000 - 0x47402000 0x1000 - 0x47403000 0x1000 - 0x47404000 0x4000>; - reg-names =3D "glue", "controller", "scheduler", "queuemgr"; - interrupts =3D <17>; - interrupt-names =3D "glue"; - #dma-cells =3D <2>; - dma-channels =3D <30>; - dma-requests =3D <256>; - }; -}; diff --git a/Documentation/devicetree/bindings/usb/ti,am33xx-usb.yaml b/Doc= umentation/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 opti= onal. + 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 =3D "ti,am33xx-usb"; + reg =3D <0x47400000 0x1000>; + ranges; + #address-cells =3D <1>; + #size-cells =3D <1>; + ti,hwmods =3D "usb_otg_hs"; + + usb-phy@47401300 { + compatible =3D "ti,am335x-usb-phy"; + reg =3D <0x47401300 0x100>; + reg-names =3D "phy"; + ti,ctrl_mod =3D <&ctrl_mod>; + #phy-cells =3D <0>; + }; + + usb@47401000 { + compatible =3D "ti,musb-am33xx"; + reg =3D <0x47401400 0x400>, + <0x47401000 0x200>; + reg-names =3D "mc", "control"; + interrupts =3D <18>; + interrupt-names =3D "mc"; + dr_mode =3D "otg"; + mentor,multipoint =3D <1>; + mentor,num-eps =3D <16>; + mentor,ram-bits =3D <12>; + mentor,power =3D <500>; + phys =3D <&usb0_phy>; + }; + + dma-controller@7402000 { + compatible =3D "ti,am3359-cppi41"; + reg =3D <0x47400000 0x1000>, + <0x47402000 0x1000>, + <0x47403000 0x1000>, + <0x47404000 0x4000>; + reg-names =3D "glue", "controller", "scheduler", "queuemgr"; + interrupts =3D <17>; + interrupt-names =3D "glue"; + #dma-cells =3D <2>; + dma-channels =3D <30>; + dma-requests =3D <256>; + }; + }; --=20 2.55.0 From nobody Sat Sep 26 13:50:16 2026 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 361813E7BBF for ; Mon, 31 Aug 2026 23:25:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218744; cv=none; b=kuRZ9B/30W2rLFhAh3btinMrjhKHVqCfyu5psD6rHisFOOGM/vfSiUe9qLlTjJLYOYNKjLx8CfUgGHQw4k6YXgNGdzCDtAcFo2P6ZwNCIqL3tS38w8SFNV2kv5YW1WsZwE+dN6tolDFbW3WbJ9U9VH94+a1mZ9QXaeVBj2+fPfQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788218744; c=relaxed/simple; bh=uM708j09j6nSOP7IiMsV0ytTgwnrzIZATjME+J7mX5E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KVb/7j/hj8FrlatY+hR88ykBGnps+4j4VsVgpLWwKrHG+uOY/WFvFK6QaQoq1Gyn9rWGpbsSddFatfJPKW269pV1/G7X+LhtKB7wsLA68R897U8Vp7JbhqnCp3qfmFVBg9e7N/fcTx8ZGT3NWkiksJrbvS1KcM16d3SFAGfKIQ4= 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=YCzMOjMl; arc=none smtp.client-ip=209.85.216.50 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="YCzMOjMl" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-38f57e312ecso935586a91.1 for ; Mon, 31 Aug 2026 16:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788218742; x=1788823542; 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=l6om3FeFy+vwSp6+A3N9tIRqD8PcybsChQtR5r/26Do=; b=YCzMOjMlKIBbxKGQfyIXJL0wDV3XHrwSaJm9IsE9msTMi+1ComUtL3RMPHg8jblMsS i9SZFQqPSv2T47iC9xdTy4z9S2WnwK3pTOzzWIEUnAxMvxyeOYrxrQ/HsoQQj09MjX6T gFiJtMWERQ9/rdQ85YVJtJAyqW84k6QJkPl00Q1d7n1fBpnNRt/ggOd2ALxTQWTTz7jY sEYR686A341tVY3Qb0JPYj60mgn+RDvZH9EYYCyieqWyS6dW4J487WpmKHAWBpt4wEUc Oku5ADBYL1K6CREiqURAV+415iweRG3GJlQ4bX1sS6TDtQttbuEHYbKYuYc0QF6EFYrl ImjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788218742; x=1788823542; 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=l6om3FeFy+vwSp6+A3N9tIRqD8PcybsChQtR5r/26Do=; b=T3c3sUNRfgpj3u9hEmGiQ4iVZxWZJwrM968zRIhOGAtu+l1mZ6Fgc5Uzq9+87tImrH K/wTPqttFNZXUZT0//MMTokSG+dPem/WNXUUZkKpOq15Z+opLFwGZAKBeqxWJC1CaDzg R4nI5cgoaZjn69R846qLwCl8IPOtAVkNQi1qd9/2pL0TubCDxIhfoqKgD3hM2g/O3SGv lifjwqT2LKrcSLNpvFzGAHMNuCtQBpdlyaRWmRfUye4zEMiZRD3fhV2XwLDLMhIQSbmA V3GiFtkKVubfsFPgHTHTXIzb6RaoCHV0XcigkyG99cRnE1tflp3gKskjrOwVwX59deYg TGNA== X-Forwarded-Encrypted: i=1; AKwUvBwGhfyilF541qQGgaS1cKFllg7tzi5umeslMP7cKAhoNWozLe8NdDsUrf2p9v2VS8uldANmQrwfj5x95jc=@vger.kernel.org X-Gm-Message-State: AFuF++mAcR7XgJPuKzAkLfd8hQkRTlTY1e4hAbh/bSojfn3q5QHBLEn9 wmBJOkKCo8SKFnhprHQHTKEA2vdre1cQI57NgXfxr2nzVxRTbRhONWHzdYYQNg== X-Gm-Gg: AYBFou2M+7fM26vBu76aDpXUeGFSYMJSPt+NVJgxMJiXDZ2vE2kFNa5eqThAE+8jjFV O738A4BmXrU8jUPu7qS0bEf3TxNK/wc7YRd1FIFIM+bCpEPOSpdz+7sViqjZ764SpWtyPXaCoKv 067cr/o3O+XLhYEnkLs86kUcGVFSOQfZRD1iiliKT9Bs9JIYJJdhfvTSYuzWvc0fmtoy2wtFMTJ hqzuror51pzuqWtb4KXEkrHxDMdd4Nyt+n3dDW8+d6JggUfa9RDD+0okKov80w6vAQPZ1P6thhH 5B7xcmgpp4WKJ1TRDcaioE6UajW4fPVl+HJbBbTxf9LuUmhtRXELLGJCywVLYXEjxGF215smIos PUZDdfq/BwM7Q1qJyjfFcSwrFppxm0Jy2CnBN3UEgfCifleGBI3h6c43ZtYTh4vO3Q9cmFpIZ5/ OySiDQOlupc52zxBjfXCZH2Ai6WYYDUkI1XSQbKx0yTIbeAXOLIr9lVJ6QcJnYw/2/m6Ir1VQ= X-Received: by 2002:a17:90a:e7cb:b0:398:bac0:238e with SMTP id 98e67ed59e1d1-398bac026b0mr15204624a91.6.1788218741556; Mon, 31 Aug 2026 16:25:41 -0700 (PDT) Received: from [10.60.78.252] ([2409:40c2:5002:4362:354a:8f21:7ceb:c8a6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3990d75fc49sm1963213a91.12.2026.08.31.16.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 16:25:41 -0700 (PDT) From: Bhargav Joshi Date: Tue, 01 Sep 2026 04:53:10 +0530 Subject: [PATCH v3 6/6] dt-bindings: usb: ti,da830-musb: Convert to DT schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260901-ti-am33-usb-v3-6-5e15c617d2e9@gmail.com> References: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@gmail.com> In-Reply-To: <20260901-ti-am33-usb-v3-0-5e15c617d2e9@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 , Manivannan Sadhasivam , Bin Liu 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=1788218595; l=5263; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=uM708j09j6nSOP7IiMsV0ytTgwnrzIZATjME+J7mX5E=; b=3rKnxP+0ubnqPfB1KGJfmvBJbDtMtM57d7hApu3Tc/BQkJgnnS2cvdQ9c2FKRUcp3mct7jCXb bSBnPJPSyxvANvstRgX8Nl2s+b9M+nb2iECTqjA9qQdy6JJ//qSvH5L 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. Reviewed-by: Rob Herring (Arm) 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/Document= ation/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 =3D "ti,da830-usb-phy"; - #phy-cells =3D <0>; - }; - usb0: usb@200000 { - compatible =3D "ti,da830-musb"; - reg =3D <0x00200000 0x1000>; - ranges; - #address-cells =3D <1>; - #size-cells =3D <1>; - interrupts =3D <58>; - interrupt-names =3D "mc"; - - dr_mode =3D "host"; - vbus-supply =3D <&usb_vbus>; - phys =3D <&usb_phy 0>; - phy-names =3D "usb-phy"; - - dmas =3D <&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 =3D - "rx1", "rx2", "rx3", "rx4", - "tx1", "tx2", "tx3", "tx4"; - - - cppi41dma: dma-controller@201000 { - compatible =3D "ti,da830-cppi41"; - reg =3D <0x201000 0x1000 - 0x202000 0x1000 - 0x204000 0x4000>; - reg-names =3D "controller", "scheduler", "queuemgr"; - interrupts =3D <58>; - #dma-cells =3D <2>; - dma-channels =3D <4>; - }; - - }; diff --git a/Documentation/devicetree/bindings/usb/ti,da830-musb.yaml b/Doc= umentation/devicetree/bindings/usb/ti,da830-musb.yaml new file mode 100644 index 000000000000..fefae735b34d --- /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: + - Bin Liu + +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 =3D "ti,da830-musb"; + reg =3D <0x00200000 0x1000>; + ranges; + #address-cells =3D <1>; + #size-cells =3D <1>; + interrupts =3D <58>; + interrupt-names =3D "mc"; + + dr_mode =3D "host"; + vbus-supply =3D <&usb_vbus>; + phys =3D <&usb_phy 0>; + phy-names =3D "usb-phy"; + + clocks =3D <&psc1 1>; + clock-ranges; + + dmas =3D <&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 =3D "rx1", "rx2", "rx3", "rx4", + "tx1", "tx2", "tx3", "tx4"; + + dma-controller@201000 { + compatible =3D "ti,da830-cppi41"; + reg =3D <0x201000 0x1000>, + <0x202000 0x1000>, + <0x204000 0x4000>; + reg-names =3D "controller", "scheduler", "queuemgr"; + interrupts =3D <58>; + #dma-cells =3D <2>; + dma-channels =3D <4>; + }; + }; --=20 2.55.0