From nobody Thu Apr 2 17:09:12 2026 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 A96B435AC1C for ; Fri, 27 Mar 2026 16:48:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774630098; cv=none; b=SxfsSok0Yhe/oNjKq0T9aQebGfZpB2NSypBr+eNwuBoO6ZYQeuWjOLXzM3uSvJRZazKcrJoouUke40hV63M19yytTjLr4n4xgLKcdW31RxsMuyAZH/jgt/rX+z8iM6Q61vSqLgD5uQYVUkRaPiUGQfaXYMKBfF6DAFSXW9/nNGI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774630098; c=relaxed/simple; bh=MtDErEaoqToxmXWxShx/4zVcbSjwCCWvFD8QCYhOpMk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IZTonN8QMvCRNMuWZl+dTKzDtv5tkX2v6Yqh6BDzuQh292VqnNzAyFiOgsCnk8SKBw2/2V0NAbpRdG8LeUY8Fkc/4XSetfQXP/HdKqJTxsKopjb+B0+KbgZdb9Xy90vqcmvd2537UQ/EYpvBosQxaJ/tTFRwGvARCiRfdr6GzLg= 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=cz5ItPs0; arc=none smtp.client-ip=209.85.214.179 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="cz5ItPs0" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2addb31945aso18829195ad.1 for ; Fri, 27 Mar 2026 09:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774630096; x=1775234896; 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=9OzEqlfjCP+7hOjyp4vYS6CJ3+BJqvMqcHKBBEUysxc=; b=cz5ItPs0PDG9cPjcBdbaBPMfD1Yxehk+qGO9BvoC7UVXG4/b47nd4bfsQpJBY8Edrn S0ZxJJljub4afGvygJInyGGQ29fVMYnlSN7eiIIIy2uRWUey1akSirsrisuxgukp7SOz +onJ0NYBBWmY6clpkG0zEl3wE7NNfiNwwkR11AYlOgl6+yOj4Sl36ASX0c/1bwROXA7r hJ0kMPSqC8KkL/lhY2CdhwVcR5pUwQioOAUZ16dgbdhwXmnKyiBAlzcn6hvE7nK6drcM R0rYg2MfZAQMjBAtt1ycWcvEiqzKsWz1ZlAfB98vxA9GJwkvtqSqgRBQmykEG5F0ceiI yHzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774630096; x=1775234896; 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=9OzEqlfjCP+7hOjyp4vYS6CJ3+BJqvMqcHKBBEUysxc=; b=DjEqW3JtEWLVCHJqHgMqkAMOB2vABt5vmsaTH+bgZe2rdxCg6mO6wHkwVKqfnTEwKP cPy7i8O7eqV8lLNPK+kLKI+de2NtK8iFOuL/GxTrnkuq+C6YGqLcBZznfwjIvEZNaj75 1meWapVoxwWuwA+QybB2szXmyM5TnFIw0NVUAtnCKpJcdfEKfMX8yS3SBfiXrGylOrNj Jgp4lYqumkondHOVD4JJgThko+syTHzqWNeZjV4TlQ8lVSv94MXZ2q/N76nAd+V0b6IX FCLtBNkaWbKQo3pYFExqcGWWqjvmF4ypxygB7aS6yrwkl/KFsyV33fn00NjqqWXzfkOP dThA== X-Forwarded-Encrypted: i=1; AJvYcCXB6xYfzMZiuMxxInOAafvQNj8jyHmPzyN4eBCXIjFRnc4P2T3TQ8eMjSQEAXFG6qtfWsBYKctIw4jyABw=@vger.kernel.org X-Gm-Message-State: AOJu0YwDVf9Phmnk2zjK44ZJzCmyJrVeAnELRbuOf0Hvu3enFVmUmLwU dAGSgAwLf03SQSlLTVnDCV5EwnMwu80gSUvBjgnZ5/RTZhv01l5yQFh/ X-Gm-Gg: ATEYQzzrrysOFK42+A6Z8vHSLfC09zTkJVKsGpdZWrO/xW/iZM7KUKg1IA+m0RuYR21 rbuFfdR2fQGMk0p+s04NQOae8ohaRkSdWIUOoLzlbQ4ftnHLfoPX+zHU8h9f0DsnNfxcvHI6i7+ GOSx2DQ82NM8zX4zes4hNR/xurj88CaOs04I3Pr2/Z0OjhXSDVieWTBubF+LeZgoKlM05iVDMCk 0KVmNOhdLmPEWwbRPSnnurgkYZjgcCpZzdan9IzNE6Im/DR+MAot9o2rSzMC5APHJ3tTXLvkIzQ QPhQGIbaTh5vT1Bjodojv8vtWf2z3LXS2RTs0gJ28m+W45a6iLcRbsdCaR1wmsI+M/dYBACQ6Ax HXH3umnBm91ecbWAK1djCzlnLSi3qkWZbXVBdJfzb0NN1Ntiqg/vDouFzLiHbkvFH0xml6RKYiX PzNTCvKXaafjYy1Bpav4Ko0zRHAdBjUoV9+X8DidFLC+4c X-Received: by 2002:a17:902:cf03:b0:2ae:c529:a13f with SMTP id d9443c01a7336-2b0cdc24049mr35807125ad.14.1774630095953; Fri, 27 Mar 2026 09:48:15 -0700 (PDT) Received: from Black-Pearl.localdomain ([116.72.145.18]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-2b0bc8b9da6sm86065305ad.58.2026.03.27.09.48.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 09:48:15 -0700 (PDT) From: Charan Pedumuru Date: Fri, 27 Mar 2026 16:47:46 +0000 Subject: [PATCH v4 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: <20260327-atmel-usb-v4-5-eb8b6e49b29d@gmail.com> References: <20260327-atmel-usb-v4-0-eb8b6e49b29d@gmail.com> In-Reply-To: <20260327-atmel-usb-v4-0-eb8b6e49b29d@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: - Make the "clock-names" property flexible enough to accept the items in any order as the existing in tree DTS nodes doesn't follow an order. Signed-off-by: Charan Pedumuru --- .../bindings/usb/atmel,at91sam9rl-udc.yaml | 74 ++++++++++++++++++= ++++ .../devicetree/bindings/usb/atmel-usb.txt | 46 -------------- 2 files changed, 74 insertions(+), 46 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..cdbbd17f8036 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/atmel,at91sam9rl-udc.yaml @@ -0,0 +1,74 @@ +# 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: + 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 ab353576d1de..000000000000 --- a/Documentation/devicetree/bindings/usb/atmel-usb.txt +++ /dev/null @@ -1,46 +0,0 @@ -Atmel SOC USB controllers - -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