From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) (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 1928637AA61 for ; Tue, 24 Feb 2026 13:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771938947; cv=none; b=EXQMG5nJZTJ18rjOufxUWVx/Se9ZY2jDEBH8Nnrc9a9q0ztcL5rXlvWuVuvQOgQ7kh1vo8Ml3XYo8ix49fKIgOU1TDA3UsZ3EwKpmy3V89mLrlEJy/e1jYZ9iavzFpE28W8S6QPOeUMEq2Ce/qQ/M7Bv3nX073zQPBSixu8AmX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771938947; c=relaxed/simple; bh=O70Wf2hov4FuY/4KRTWalSn0MOyqTm0hmLa6x2VLUQU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EN6Q2eTAThGDo3Ccc44ivrQcLRn/KY2TAP+t+TUZBAWDSE5VIP9I63h3kgDGwLP8TVOTFByRVPHkG+NMr6XkJdujbNeQ/rlCLR6pAuWk1zkjVu9ciADO3EUfbZT2wVBYVVa5oWzIZrskRkkw8z2pBrEr0awTbzPP4m6U6BDmgPI= 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=W3+/RAqU; arc=none smtp.client-ip=209.85.215.180 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="W3+/RAqU" Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-c70c112cb61so1533527a12.0 for ; Tue, 24 Feb 2026 05:15:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771938944; x=1772543744; 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=o/4bQ4PzNfjZtRfxhU1Dhe4G6PTYYpxaIPq8BE8Sc+E=; b=W3+/RAqUm5drS8W52V+mG53VwMQgrqJtyjFIRPpqc/skBcOw2tp1pny+mz2z7z70Gv GAUtzZM5Vvo37R0OWmYju5QRY8OJgItfkrsao5m5rt15AqEKKrSdh5lVyi11YFDDEdiJ EoBD5OT2UTgEFEppm5zzp0muv0MdGWXIDPgPxpqCdWRaWHvK3f50lYEuD2kl6p4PTkZE lgrSYSDW5IzLPvxpM1x4Trol64fH9G+sM+RBU3RY55QGOyC3c1VMl0cXFfU5rC4eWGEj HbqPXhqjTFPSobLkfDwRhuUgzbeki+TiEcgPLAOLziJf5aJ8PQ6/CkA2QON6XyX/qX2I urFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771938944; x=1772543744; 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=o/4bQ4PzNfjZtRfxhU1Dhe4G6PTYYpxaIPq8BE8Sc+E=; b=wDkXELr1BSlzzL1oKqaOz2XuIETGNETDc0LVJ64nkpxJglPca8FQiWLOD2wCF+ak2p 46OYgURh9cf09VLYmpL8us1La0nRCqW5wXK2zjs7CKGi0PxKOst6+A6FCSIF/Xqqr9GB hIus9b5nEiQdW7b63wUvtrOanH3ldZT7WIvgNtOQhzd+FElX2tIAPa22qXXK6PW6E9lI FZnU8NHhvNy5yTqqUIOn4XfPPMBQwhq6Gdqjj/9KBEeghEELMc0qZR5ChdesmQ+K6CSj n0frxwkT27bneR/oh4AIgIbZS2xjYYw68WWBYmRcQVIElSZ2dI98C3TPqUtZgjK9hkHf G9zg== X-Forwarded-Encrypted: i=1; AJvYcCX5MjrPbLm9GV4Tl7waPdeanEW5yJOY42GvGrNviQI2bajP8yGm8yB1ZKyc+ObxvKZpjzUKvC0WwoK9sbI=@vger.kernel.org X-Gm-Message-State: AOJu0YyDOcDgTUuBVWdZkVlT0bEdOy951/vsCXNBAIM9pN9yLYW8Xjsw 5IMPqJgryCjcuGUuPlPXFnYeGR7oeX9a8UdjlCpSTqcf5PHi6lu5aXZK X-Gm-Gg: AZuq6aJa36rJcrFGbe5WPVMNiw0KfAiKhWxMohsIopjX86nal22tkk7fmSVNwO5VD7e T0JCH0FsgSrtIjgw9e6bER6O/WJXKH0Cnu992oC9oWZ82we7v4clq2RdmnP5Z4UnvqHkQPDij2V kYNgqlGLKZ0CeGp5vVm+los8pJfo37IywcqO4vRI6eKfm6XGMVfLIkicornnkwUwlU7auurQrxf U35Ob468Z3qHTJrgvQDab3HC6pT32MgUeYT78GaSJ4BEwRZJxxMAQPdIXn6BR/ktQRqQ2aQ/4ab cFysa1GixM1IALmcfD54wlqT66CpDTDgrrXWQg1MaJloF/I08QCn00syBkHXyY9PlXQbu1jQy9I tIrAYMLsRf2uLSalvJNCOYDVxvxju1R/4w2WUIKaQ+UHl9kb4r0DXALkXD0A1opOUo3PBCHtdGb 5W/phLqMj5aS7Scp0hiTFIjr7WgX7xfZq0CxK3xHoJdg== X-Received: by 2002:a05:6a20:c989:b0:366:2360:8f7 with SMTP id adf61e73a8af0-39545dbf191mr14435962637.14.1771938944327; Tue, 24 Feb 2026 05:15:44 -0800 (PST) Received: from Black-Pearl.localdomain ([27.7.171.51]) by smtp.googlemail.com with ESMTPSA id 41be03b00d2f7-c70b7253a70sm10794013a12.24.2026.02.24.05.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Feb 2026 05:15:43 -0800 (PST) From: Charan Pedumuru Date: Tue, 24 Feb 2026 13:13:01 +0000 Subject: [PATCH v2 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: 7bit Message-Id: <20260224-atmel-usb-v2-4-6d6a615c9c47@gmail.com> References: <20260224-atmel-usb-v2-0-6d6a615c9c47@gmail.com> In-Reply-To: <20260224-atmel-usb-v2-0-6d6a615c9c47@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.yaml 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 = "atmel,at91sam9g45-udc"; + reg = <0x00600000 0x80000 + 0xfff78000 0x400>; + interrupts = <27 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&pmc PMC_TYPE_PERIPHERAL 27>, <&pmc PMC_TYPE_CORE PMC_UTMI>; + clock-names = "pclk", "hclk"; + atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>; + }; +... diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Documentation/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 = "atmel,at91rm9200-ohci", "usb-ohci"; - reg = <0x00500000 0x100000>; - clocks = <&uhphs_clk>, <&uhphs_clk>, <&uhpck>; - clock-names = "ohci_clk", "hclk", "uhpck"; - interrupts = <20 4>; - num-ports = <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 = "atmel,at91sam9g45-ehci", "usb-ehci"; - reg = <0x00800000 0x100000>; - interrupts = <22 4>; - clocks = <&utmi>, <&uhphs_clk>; - clock-names = "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 = "atmel,at91rm9200-udc"; - reg = <0xfffa4000 0x4000>; - interrupts = <10 4>; - clocks = <&udc_clk>, <&udpck>; - clock-names = "pclk", "hclk"; - atmel,vbus-gpio = <&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 whether - 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 = <1>; - #size-cells = <0>; - compatible = "atmel,at91sam9rl-udc"; - reg = <0x00600000 0x80000 - 0xfff78000 0x400>; - interrupts = <27 4 0>; - clocks = <&utmi>, <&udphs_clk>; - clock-names = "hclk", "pclk"; - atmel,vbus-gpio = <&pioB 19 0>; -}; -- 2.53.0