From nobody Mon Feb 9 23:15:11 2026 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 AF69432AAAB for ; Sun, 1 Feb 2026 11:35:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769945718; cv=none; b=QhHmKx0OMxY0ShCOa24DJrk+YVJwKZIUhgLpoTDtaq355VJpol1F3sk4fFgeNiXykNWtnMzSaqMuqwRkvH/uYgOt0asRr319liCWdOY5VBgJYZUag3eiYbibrrW6x1GAA7m2wUb/lbTaB/DVJTT9YgzpctYCQH4tsD6F9FvGWcc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769945718; c=relaxed/simple; bh=2xjOo4rQYT1KaQC3tvCqFCwXg2yc/61LBfO4QH6BKsY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VoB8LkKcjNHTeN+1B1f0jsSDPHD4TaRjuR25RQTISYhNcZWNxgZ4G+bSGVVd4XFRO0UGLzwYJypo0mOvnhmtQOTFF0/oz6G4qja9PRsh695xYx6Z7p9HYA76BlpsXYCPSt4H6mTpWMXqWf13PU80OetMMIkWEPzgBLi+I8qi1/s= 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=Ybim5pxW; arc=none smtp.client-ip=209.85.210.174 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="Ybim5pxW" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-81dbc0a99d2so1781869b3a.1 for ; Sun, 01 Feb 2026 03:35:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769945714; x=1770550514; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CwiMlqn8zSWND/MaEGxRB1MrDjr/sEbwA0uoenl3eoE=; b=Ybim5pxWMfq03fGVIv3I691ZgVK1ld+kyr/NWAtj2ej/mi+H6g2OZOlQ5LDbKG+7mk wpUElM66DvA8ju4x8Qvi2CZvJ4kHmktgxQujs7uIfW1NqNylAsWjlm6uV9a6wsIYwCCx /Ps+5LJiBqb6YWgUoeWAKwI0gdj17TrBFOSMtqiiir3mUNaEcCq6tmjdttX2gUq/2YbG oCr5vaPjp6SFNek1JQvhJaW02N+viDHLV+koAS6msh6V7G91RZDxSsxquGVtfcaxMqkC Y8b85tBaCk0K9LHyo3iWowzetEdIfsTp0VLBblTg7m9KM/tH8ABLPMhPk0OvRXeKbNFo Qgxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769945714; x=1770550514; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=CwiMlqn8zSWND/MaEGxRB1MrDjr/sEbwA0uoenl3eoE=; b=UFMqikF8mTUbLhkdbnsnAFFTHFVrYl+ErrxzxjTh4/yuXL0Ms+WMUauuVPf86z3N5B y1H7+WPdH9dBN8q3uxeOuvgVPgXLm20eHXgDXnRVG1bT8jMPkxsecQ9znFm5FELpBLM0 04tjpNQU9Dzujv1gq0QDGD4A6PSteSLWm7JaCOzItHdmOMKoQUYIgMx8s1l2SQksQrP6 0I8DsrEqAg5ErlYx+WtvAPSXK3uvcnlJj+mkdO+3SeD+IswRDviFrGv0FtaZd4gCfo9C HPwK5JtyUidHCo30ZxGMUn/ELxuyMyL9kp3Mjxn6sa3q/Lgt6RAVypUigikL9+MFFyNw SxyA== X-Forwarded-Encrypted: i=1; AJvYcCWmhzRDc8uew3z+esCsYYxYiLTD+pYp0UIcTwLv702w+cwlF9hDz8/DCrGaaEg9A1oimEk6PkAvx2GYLNI=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6jZpgCEP1wW7ENaZ+1TmOwoQsd84XXVEOcnNN3ML/xU9Gj0Ww lp4+jJQMiwnfJGWReLFfYbiLYcal9EynuAaUc42QO9dvTiZu8BmeQq2D X-Gm-Gg: AZuq6aKxTXKi0JE2SCScicsQJRXTvNEzwv2VAe6Tybiruw/CQQwZdysswLTHlmZSTtj EbisNKYvLkNnkIWFojH21eUWS5qtnMQfuqfcgLksUEyanTbTBRXFmKcI2hsSDRNPFwqUQgc25TA KgfArubo/p6WnTsFjsR46ARp8wEJ0bF0jlKdoiAaeTpK4SXUZEwHqjQeOT008G1wyM3raQAC0Xe BH4OTDKJ0PSeUmlfGMZF+z37bGKyktjHL4a2HjaphT6awfEXMv58C0dAqhfeUH6v9pNhcEnLKeQ OKCUzhhsEDWnJfr/o5fCLMqyxpLMlGjjodqyHHxsWssQr8RQ8whfwmYzo6w6jS1CaXpZJiUNHlF qDYUhKTNpQY8Ml/SeyhomswtuaDTl4tAbvDi2iYuQrwyMKzufEfAkkC/TQGoAbKdnI2iCrVF47k CeD2dtPHDsVHw0H/jINF3agoqLjFTdqLqZQg== X-Received: by 2002:a05:6a00:430c:b0:81f:4769:6fde with SMTP id d2e1a72fcca58-823ab670cbbmr8524983b3a.17.1769945713898; Sun, 01 Feb 2026 03:35:13 -0800 (PST) Received: from Black-Pearl.localdomain ([115.99.252.105]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-82379c24083sm12994728b3a.55.2026.02.01.03.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Feb 2026 03:35:13 -0800 (PST) From: Charan Pedumuru Date: Sun, 01 Feb 2026 11:34:23 +0000 Subject: [PATCH 4/4] dt-bindings: usb: atmel,at91sam9rl-udc: 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: <20260201-atmel-usb-v1-4-d1a3e93003f1@gmail.com> References: <20260201-atmel-usb-v1-0-d1a3e93003f1@gmail.com> In-Reply-To: <20260201-atmel-usb-v1-0-d1a3e93003f1@gmail.com> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Claudiu Beznea , Herve Codina , Nicolas Ferre , Alexandre Belloni Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Charan Pedumuru X-Mailer: b4 0.14.3 Convert Atmel High-Speed USB Device Controller (USBA) binding to DT schema. Changes during conversion: - Include "#address-cells" and "#size-cells" in the properties since they are required by existing in-tree DTS definitions. Signed-off-by: Charan Pedumuru --- .../bindings/usb/atmel,at91sam9rl-udc.yaml | 81 +++++++++++++ .../devicetree/bindings/usb/atmel-usb.txt | 125 -----------------= ---- 2 files changed, 81 insertions(+), 125 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/atmel,at91sam9rl-udc.yam= l b/Documentation/devicetree/bindings/usb/atmel,at91sam9rl-udc.yaml new file mode 100644 index 000000000000..6f5710cecaee --- /dev/null +++ b/Documentation/devicetree/bindings/usb/atmel,at91sam9rl-udc.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/atmel,at91sam9rl-udc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel High-Speed USB Device Controller (USBA) + +maintainers: + - Nicolas Ferre + - Alexandre Belloni + +description: + The Atmel High-Speed USB Device Controller (USBA) provides USB 2.0 + high-speed gadget functionality on several Atmel and Microchip SoCs. + The controller requires a peripheral clock and a host clock for operation + and may optionally use a GPIO to detect VBUS presence. + +properties: + compatible: + oneOf: + - enum: + - atmel,at91sam9rl-udc + - atmel,at91sam9g45-udc + - atmel,sama5d3-udc + - items: + - const: microchip,lan9662-udc + - const: atmel,sama5d3-udc + - const: microchip,sam9x60-udc + + reg: + maxItems: 2 + + interrupts: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + clocks: + minItems: 2 + maxItems: 2 + + clock-names: + minItems: 2 + maxItems: 2 + items: + enum: [pclk, hclk] + + atmel,vbus-gpio: + description: GPIO used to detect the presence of VBUS, indicating that + the USB cable is connected. + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + gadget@fff78000 { + compatible =3D "atmel,at91sam9g45-udc"; + reg =3D <0x00600000 0x80000 + 0xfff78000 0x400>; + interrupts =3D <27 IRQ_TYPE_LEVEL_HIGH 0>; + clocks =3D <&pmc PMC_TYPE_PERIPHERAL 27>, <&pmc PMC_TYPE_CORE PMC_= UTMI>; + clock-names =3D "pclk", "hclk"; + atmel,vbus-gpio =3D <&pioC 15 GPIO_ACTIVE_HIGH>; + }; +... diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Document= ation/devicetree/bindings/usb/atmel-usb.txt deleted file mode 100644 index 12183ef47ee4..000000000000 --- a/Documentation/devicetree/bindings/usb/atmel-usb.txt +++ /dev/null @@ -1,125 +0,0 @@ -Atmel SOC USB controllers - -OHCI - -Required properties: - - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers - used in host mode. - - reg: Address and length of the register set for the device - - interrupts: Should contain ohci interrupt - - clocks: Should reference the peripheral, host and system clocks - - clock-names: Should contain three strings - "ohci_clk" for the peripheral clock - "hclk" for the host clock - "uhpck" for the system clock - - num-ports: Number of ports. - - atmel,vbus-gpio: If present, specifies a gpio that needs to be - activated for the bus to be powered. - - atmel,oc-gpio: If present, specifies a gpio that needs to be - activated for the overcurrent detection. - -usb0: ohci@500000 { - compatible =3D "atmel,at91rm9200-ohci", "usb-ohci"; - reg =3D <0x00500000 0x100000>; - clocks =3D <&uhphs_clk>, <&uhphs_clk>, <&uhpck>; - clock-names =3D "ohci_clk", "hclk", "uhpck"; - interrupts =3D <20 4>; - num-ports =3D <2>; -}; - -EHCI - -Required properties: - - compatible: Should be "atmel,at91sam9g45-ehci" for USB controllers - used in host mode. - - reg: Address and length of the register set for the device - - interrupts: Should contain ehci interrupt - - clocks: Should reference the peripheral and the UTMI clocks - - clock-names: Should contain two strings - "ehci_clk" for the peripheral clock - "usb_clk" for the UTMI clock - -Optional properties: - - phy_type : For multi port host USB controllers, should be one of - "utmi", or "hsic". - -usb1: ehci@800000 { - compatible =3D "atmel,at91sam9g45-ehci", "usb-ehci"; - reg =3D <0x00800000 0x100000>; - interrupts =3D <22 4>; - clocks =3D <&utmi>, <&uhphs_clk>; - clock-names =3D "usb_clk", "ehci_clk"; -}; - -AT91 USB device controller - -Required properties: - - compatible: Should be one of the following - "atmel,at91rm9200-udc" - "atmel,at91sam9260-udc" - "atmel,at91sam9261-udc" - "atmel,at91sam9263-udc" - - reg: Address and length of the register set for the device - - interrupts: Should contain macb interrupt - - clocks: Should reference the peripheral and the AHB clocks - - clock-names: Should contain two strings - "pclk" for the peripheral clock - "hclk" for the AHB clock - -Optional properties: - - atmel,vbus-gpio: If present, specifies a gpio that needs to be - activated for the bus to be powered. - -usb1: gadget@fffa4000 { - compatible =3D "atmel,at91rm9200-udc"; - reg =3D <0xfffa4000 0x4000>; - interrupts =3D <10 4>; - clocks =3D <&udc_clk>, <&udpck>; - clock-names =3D "pclk", "hclk"; - atmel,vbus-gpio =3D <&pioC 5 0>; -}; - -Atmel High-Speed USB device controller - -Required properties: - - compatible: Should be one of the following - "atmel,at91sam9rl-udc" - "atmel,at91sam9g45-udc" - "atmel,sama5d3-udc" - "microchip,sam9x60-udc" - "microchip,lan9662-udc" - For "microchip,lan9662-udc" the fallback "atmel,sama5d3-udc" - is required. - - reg: Address and length of the register set for the device - - interrupts: Should contain usba interrupt - - clocks: Should reference the peripheral and host clocks - - clock-names: Should contain two strings - "pclk" for the peripheral clock - "hclk" for the host clock - -Deprecated property: - - ep childnode: To specify the number of endpoints and their properties. - -Optional properties: - - atmel,vbus-gpio: If present, specifies a gpio that allows to detect whe= ther - vbus is present (USB is connected). - -Deprecated child node properties: - - name: Name of the endpoint. - - reg: Num of the endpoint. - - atmel,fifo-size: Size of the fifo. - - atmel,nb-banks: Number of banks. - - atmel,can-dma: Boolean to specify if the endpoint support DMA. - - atmel,can-isoc: Boolean to specify if the endpoint support ISOC. - -usb2: gadget@fff78000 { - #address-cells =3D <1>; - #size-cells =3D <0>; - compatible =3D "atmel,at91sam9rl-udc"; - reg =3D <0x00600000 0x80000 - 0xfff78000 0x400>; - interrupts =3D <27 4 0>; - clocks =3D <&utmi>, <&udphs_clk>; - clock-names =3D "hclk", "pclk"; - atmel,vbus-gpio =3D <&pioB 19 0>; -}; --=20 2.52.0