From nobody Sat Apr 11 12:30:43 2026 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 D74D238BF83 for ; Sat, 7 Mar 2026 09:16:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772875011; cv=none; b=KfAh33oleGda1OQ+niIbJi79/ATCuXlLxxHCBUbKQEU6DusjY8TJr1h3jf3q5fTzTjVTDgAlyXRcVrtrLqQHxa7w3hgvidpgRmoj8v2SUQvptEaJDr9QHsQfCZqJ2wkkNC5gIuhDxu5nCN60DMZbDnMLw189neFZx3abT93m4Y4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772875011; c=relaxed/simple; bh=Ou/iWbGxGfkOAQnnYdsiwLR4UjSRY4YpC1Wp6DcAXIU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XyQ3CTobh8ff7wIdzVXnd/rJPMCKCJoA5EBdlLum9SCu8QeNVjdVEptOO3g9XKqnkayagnnHKdar2mgEEQuLIuNZkr6kkgpkZTV/fpfS3uOksAWPj/uIzy5VYQPx6YvnEbuHxn/6wT4XhH3RnrsP5u4u/ZlacCBCi7NpViV/nvc= 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=BXuTpC/8; arc=none smtp.client-ip=209.85.214.175 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="BXuTpC/8" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2ae46fc8ec1so45538505ad.3 for ; Sat, 07 Mar 2026 01:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772875009; x=1773479809; 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=x7aE/ahuMqPx7JTjIMjRyrjOLyXEOk45Uib8bjVom3c=; b=BXuTpC/8WMaKt09i6SZ2B0YgiDxUb4K/wuKRkcAUZH/uWxvgZpTNJYbwDylcgimYoq mfLb47CgtM4jzqFN+odLFKEXVdaF/AOXwqpZsjt70wAvOxWkvk8PUUApgUGLrIw/xTcw 82QAhAyPH3o1Bu4UMXsU5/+NdGHN6BRLCi+8HNPLmgI/GifjV6Q08vczEC8Zd+0losVL QlcsbNcF2TRAU5n2i/FOnM99a3i8ZUWvcPnHhJ57EENUR6uIuSUMsyiHZ49HsggjqOJr 3yJTyzfok8U0TltQEhfK6TcjjiraHZy6pXy+8WHBY/KcAmRNtCGrO08iy6xtykU3tiCW mNXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772875009; x=1773479809; 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=x7aE/ahuMqPx7JTjIMjRyrjOLyXEOk45Uib8bjVom3c=; b=b2/cTQvNqZpUrYzfAPR3LwcwuDyTKI7ejhWNppvoMqSoMxvTUNirOoq0YyxBd51ktu q3qI6EQOQO4lb3MPmccD75ffog3wWrtpQbfkQOT06/JzeYwuRwBpjdSX4mMxHzgxxgsL Vhe75thcvmdkN+CX75/0/2UTipAknUzLfdngKxTIqQj7dwljQEisWV4D8QUQXW0yq3DX TxQCI9df4pMQHqpt39xgdsTmp6rNUFiyB942SIW+VoYOm7cQbp9Zj5EJDa57XnXbEwAi GRWZJs6VXRksIK6At39KiBuX9kANntjq2XsSUrjiyNEYhT20WIQ4I9dyvh60RcH5iFHu 2Ysg== X-Forwarded-Encrypted: i=1; AJvYcCV7oTC/hObfE8pDrZ62tTdGJqViTKsaVdMNZ7BlrNhZvEWSu3kbhKwZCEeTKVEg/SY+aeVCL/ByojsCCqY=@vger.kernel.org X-Gm-Message-State: AOJu0YwjbjUZJXJJdtSaH5ShP/M1h793/LMOeEZF6eccDYJPJ/gIMBGc 1YExE+xrjxWKsjWajbixBc7INpJWxXnwwX2ZHP4dU2aWtzVSXt6ZCjTU X-Gm-Gg: ATEYQzz+U/1xP1KKOobzeLsOeA7G29ODAi4mdKN8GURZscXLDZdNrZqG/J8p5TyTyDK lW3Ydm9TNqKvdpW7UhdWnf7tVSVmy6v6WbjlDgGV3KGOkmPnREbTfcTQy+vEFHvH/Kq7c4OH7MG 1czFUKRknR1Tk4/ZhYYpz27r/3c03+leo+PICySZm8Mp0TkD6E6feHUbYkjDuEx0Rh573mZBMQT Wqv2LUSuCxPwNfFoB2dwJnQ+xHHK7GyLbwbM8KMV8/DjyexTiB0Y5URaLykzzzKp4TQVBw7S6sV HhWdLC/foWYbeDoy3SW532SZzigD+uApHjDh9GA1lYnaBx+1KTjWBXbuhBdnYCPI4vc9mjCdk08 mMzInpukQRWzs/6RfYov6+aUsb3Z4oWjStmVYE6BHGKW19r3weBQpWcVFOTSB/7Y6tIwlhVCZqZ +9Gl8siWgKNSEZg61H54YUJVJrB4rvnKIFmdWaUA+2hEc= X-Received: by 2002:a17:903:234a:b0:2ae:5eab:1338 with SMTP id d9443c01a7336-2ae82366c81mr45397995ad.8.1772875009109; Sat, 07 Mar 2026 01:16:49 -0800 (PST) Received: from Black-Pearl.localdomain ([27.7.215.222]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-2ae83f74e4fsm45569385ad.58.2026.03.07.01.16.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2026 01:16:48 -0800 (PST) From: Charan Pedumuru Date: Sat, 07 Mar 2026 09:16:22 +0000 Subject: [PATCH v3 5/5] 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: <20260307-atmel-usb-v3-5-3dc48fe772be@gmail.com> References: <20260307-atmel-usb-v3-0-3dc48fe772be@gmail.com> In-Reply-To: <20260307-atmel-usb-v3-0-3dc48fe772be@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. Signed-off-by: Charan Pedumuru --- .../bindings/usb/atmel,at91sam9rl-udc.yaml | 75 +++++++++++++ .../devicetree/bindings/usb/atmel-usb.txt | 125 -----------------= ---- 2 files changed, 75 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..55a0e062b04d --- /dev/null +++ b/Documentation/devicetree/bindings/usb/atmel,at91sam9rl-udc.yaml @@ -0,0 +1,75 @@ +# 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 + + 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.53.0