From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 64DB0FC9EDF for ; Sat, 7 Mar 2026 09:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=x7aE/ahuMqPx7JTjIMjRyrjOLyXEOk45Uib8bjVom3c=; b=o7zZHIKIFK965nwi6jLCdz5LYq ADJWQUXeRJZDa3ath7LMvLaRHSdro4g27RRogi0jVmwPNb8PJYHWomPZyrQY4kmDo6I3AaxfCgAmf U8MOT2H5qJlIeHWTC3YWGKgNOakMM7CR6Zfc9TCLsTmpvLlpsZn6hW2EMM5mZlkURpugu5DaWVTrp cJIgoi5Dg7o9Cwyfuz/yMHwaTwnQNGyquxLgmkSegD3rmKC0S2CU12y0T2RKyX+2hx0wHJMhD5bFI Xmr6mmLjHoAmSNFKHzu6kjFoG0pYJBUmvNbJNYLN45SLbjKjx8L0MvzLjj6CcF0TX6lsRxz2+A62d rQIH2tmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vynmH-000000052Nf-1Fym; Sat, 07 Mar 2026 09:16:53 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vynmE-000000052L7-0BIZ for linux-arm-kernel@lists.infradead.org; Sat, 07 Mar 2026 09:16:52 +0000 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-2a8fba3f769so44348295ad.2 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=lists.infradead.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=SHK+JSXVPv+vvRNVHPpKUGGuI1sP76E7cOeqfDdDb2AAe7yPf6gt1nS1jlgzPJoRPj 3avPEVXHCKqpDxc2vqXlPeAhRJppxGxW0rn84h0d6NHjU/1vrC1jJeRPbCSAAghBKGRw RDQgeh/ZWinUvjU02iheqERipuyzQIlGmw+dbz/XvCuiEfY9eDjBHjMOYvUfaHBM3LFM 2UIFWjV7WL7oIBvXa1n0da8cbawU3/JzFeT1isY8stW0UK6eu9bYQt18BoFMUni/L04m IsZzRUTuv2BEAmtO0aOh10TFG8KOiIviWce7oo2DiyviCk2S3+2MVa2JY8gvo+I+pFnI pVog== 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=ibE3RzI7brDUc58JN86XUFReVyS+PRzFeNVCikyxfWRMWPX4GqNQIo0OkS3qw8cZI1 U3knJXJrLw0ihoTECjPZoYkyX2hikevghOGmu7bVK/+eqaAlLR5dctG36iP/R+FaVeJC +1nd9rrHmcs/5h//C82kaC8krD+vt3wUGbzHFFApcnVxaTDTML+pI1q+9qZFOyuOiLO1 ZpcZtFjJ3/1Y1EUGjHP09hO7fDMY/uk/oydYbXkKuCs69wUaJFVmDVZaK6P1NVm8bLWN I2/8a95DMQQWgkyeEZgSxz9WL5QZ3jk3NHCKeIm/J353FsBIsoR7ULtjmH5B/HKSiwtm KPUw== X-Forwarded-Encrypted: i=1; AJvYcCUg8PskKe2gSPNZhMVMlLojGGM2EqXaA6uBZWk6qjpV8BBUxI1fG83IffB2bNVGIuq31n/VKptx4pyXUHsbGeap@lists.infradead.org X-Gm-Message-State: AOJu0YwrObSsTmA2STmmYWNWEZHS71aVjqEP2GFnY4/9hK1glOJ+NPar jjfw34WGfEThOOp6Mb6KD8UwnspDTMxk944TiDls6nbUKzj5ug+Ux9Bt X-Gm-Gg: ATEYQzxfze4ApnGo36o7eF9M0JlgaB2IJExRxWf67Whlbga5nVmTukdy/a5fggb9YCK jDJfXfw+qRwnoikQpn0EtgDkaoBAdwI5IDA7VHDlEwiWqFdqlnTUSjKaUTMSPiNQlF4IAPUml+l 4DIk5I3FHkTQte50vDfU0UnXEQqFHX1RX1eQWRgQMEo2OXJf3KSqioYwfYBxZC9PFzAbjO/fdRK g7pYVcQizJiyEsu0O+xEhRC7byHuvyjxwSGXVc/kE4YTU5UCYW8kReoqey+Peehtpa02IxVVIVy AvI6D5vFigBNNWOPeL9LlnoGEzt+sgI9qev7BXWGWWEELfZoS4LKc3fXnVm9eirS80QSgXtEHak ieTmWJc3PB7XFH9jwkPyQRPVDj5Ow/oO7j95UNhWwx/AWbmjX/8CFPDNLzwz65wq8smNLAO1mM/ Nw1lx19SLoucGf1I2jFMI96VShoP8IpxKIVabei5Ghfq0= 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 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260307_011650_725492_B02CD8F3 X-CRM114-Status: GOOD ( 18.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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.yaml 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 = "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