From nobody Thu Apr 2 15:41:48 2026 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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 05ABE3603E9 for ; Fri, 27 Mar 2026 16:47:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774630079; cv=none; b=WVfdYzjEJXgCKPaZhLPVSp3sja28vHd39XgyA8QpNCXQhOGWM/quF9+MwEIEZNCyxr/wm3m+0RX8ebWCp1A4ijG00+ufmNEOrtkefYvsJEJYwWk5MgsfUN38Aa98OUuIr4ATOB6EI7wbWa/qMSKXqI9D0PeJyKDhWBMW2tS+zNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774630079; c=relaxed/simple; bh=UIodTV3hpL0XvV9F+VpVBsKxBAUh1LXR1IjMfNJEjwU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OWg5tP8Tq28I/W3hMrToZVWehgxr+rgWzh4DTgKJVwFWcwck8RFMh0eXmzyE/QS5JcnPAxkJSCu4xTFFqjpJc/jMdmhntZNSHgCR+sBByd6pbMS56Vi6lmFADzt2FeIDBwadQ+mZXYYAVZTOtpUaqmSiG1nHgE5WvJP7ATOEB5M= 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=s5oenN90; arc=none smtp.client-ip=209.85.216.48 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="s5oenN90" Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-3567e2b4159so1505229a91.0 for ; Fri, 27 Mar 2026 09:47:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774630077; x=1775234877; 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=UOuRJlmmqD4Xl6AKwZIJqCij8drZ2YSxq5ghkTBikxg=; b=s5oenN907ts3IfdUgF0/RFjP1evqpH8BehxykIfm7ZGBGFc8OLPXQxgTEjX+oVDeBY zi3KuMdzpt0h+RTx7YJUwWX5itXjp3iHbz+c01FwgGIYz6KN2Xk1jX4oxNjs5AHsdJGi yMUmKPfdto6r1C0tehf4dMlpNj28e561+X/5aO3yhNGlcj0Rvn8vEFSMKys06oYoh2PY tuVtYSqtOXifKxUf8WHp6P1jj7jwrf+fHDL5v/4RXz8+Px4M2L7bkmNHaBiv16NUjVCK j6pR0LTplV0+JTnSzEnYHuSNrLxS5p9G4531oHk01LfisMVkFFNlooMOUkjOmxqzvX8L 75uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774630077; x=1775234877; 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=UOuRJlmmqD4Xl6AKwZIJqCij8drZ2YSxq5ghkTBikxg=; b=rls+u06D0LWPj2lWAcbMTeZ9QY4uINXBcpYvgTKXUxjN1BlkLG/Kj4suDmrfVmcq86 wyy3/70Lx17UeFabVyQQTSuQih1ZZ2PdKWkWBuexOQnRbIdGQK/e9YPuaYiVqhL1hZvB FHseR4N2rmZb4tHh5sRxsA55kI0tKPzc2p5e0ZwreSZwU19QH9YlYVZlG3hfC+D71CKd NvekxGkC/hb9n4Zf3ahtgWrEs4fYaIIl+NMAIV1nNyLip8ESsQn7hH8P2nYCa6iNSzTA 4ohg2+PCLa1S3/4pExl8itwn9I8nzXsZDhLRQpw9rkfNawvtl+R+NR6LRkE7sxxXk3iA xooA== X-Forwarded-Encrypted: i=1; AJvYcCUXNm81yQRE6G4J8zvH6wu3SrusNbF+bLqhQqPDLwIqDf08zHLXGu84/AGNL8ayMeW4sp8qG0qgNcdsAf8=@vger.kernel.org X-Gm-Message-State: AOJu0YyAa3VBaSrZq29rCoSXiBKCLKO98M31I37PvKlFDLG3NYM+71HR q9PeMql60bNcSLaG+KKwM+CZOsJvBqxTxwljWDJjrYD10Gc5sHiCRwmF X-Gm-Gg: ATEYQzwqTD61t8ZtX4rnv1yNvyzDOQtPi+iirsYfwUdVqNsxbsnWV8vja/lEz+KelWP z+Oi5HZBBR6cwB9Uq2ptBP7WknhgAIpr1RaZp+KdJ1G4d6EynE6TlJRGyjvHnwqONREqxwqJxoG 9EK5MIf5qmhy6cL4Ppxs+nlxU9Oacp9Vrpb2wzwaheLBGXPRR5DOuYk0sLRPQC3QlvbkD2DU4Jd K/UnzC9vRb/m3RPbIA5TttqGkLXnVhWgpZ4a7N2ab7sN0r2/kbBUOHUUFIuqemVsd6FVTqYfACZ 2hgVJMd5C8EkGj00aeQWOFLpRG1VFddD3T+rpN/WpImVuERBNv2d86UBNa8RMKapEv8KpGyyjsk KJapWpPDNWip6SuXU5QUApvyh0EAQMEhBQXcbURNdRIrmbj2mYlUO6tXNQBfKgPOlu7FFy36+Ci HZBlVSlVIduULPOLkirOeFY+8S2ooodwL3XmzrrF6pobjyCL4dNybCoeg= X-Received: by 2002:a17:903:37ce:b0:2b0:41bf:ca83 with SMTP id d9443c01a7336-2b0cdcc8106mr35196945ad.23.1774630077337; Fri, 27 Mar 2026 09:47:57 -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.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 09:47:56 -0700 (PDT) From: Charan Pedumuru Date: Fri, 27 Mar 2026 16:47:42 +0000 Subject: [PATCH v4 1/5] arm: dts: at91: remove unused #address-cells/#size-cells from sam9x60 udc node 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-1-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 The UDC node does not define any child nodes, so the "#address-cells" and "#size-cells" properties are unnecessary. Remove these unused properties to simplify the devicetree node and keep it consistent with DT conventions. Reviewed-by: Claudiu Beznea Signed-off-by: Charan Pedumuru --- arch/arm/boot/dts/microchip/sam9x60.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/boot/dts/microchip/sam9x60.dtsi b/arch/arm/boot/dts/m= icrochip/sam9x60.dtsi index b075865e6a76..e708b3df4ccd 100644 --- a/arch/arm/boot/dts/microchip/sam9x60.dtsi +++ b/arch/arm/boot/dts/microchip/sam9x60.dtsi @@ -75,8 +75,6 @@ ahb { ranges; =20 usb0: gadget@500000 { - #address-cells =3D <1>; - #size-cells =3D <0>; compatible =3D "microchip,sam9x60-udc"; reg =3D <0x00500000 0x100000 0xf803c000 0x400>; --=20 2.53.0 From nobody Thu Apr 2 15:41:48 2026 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 894383624AD for ; Fri, 27 Mar 2026 16:48:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774630084; cv=none; b=GzGnGdp+jyvAu52zgpsEi8uKuyVNcH3NkBi5PorVhr4in7ocRHiOLkLNm3KPJdAjD/yPjwqj+gwSX2HS6ho+naY84opI316IHGP+vIRt2sDv4LprBh3oUCs8WUSu5TyB71jFU4EmvvSSYpy8/4pOrbitV4VxM2Nv2WB0yMgnHOU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774630084; c=relaxed/simple; bh=Z8MJ5nSQHTa5NXYBn3gqCApWzdTH+o38SeU1BHLtWhQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WUC9OX3K/4NeJgUl86vrDk9JzbhLAt0GKkii9NeGwNmZUrgkdl5BCWmRZ6gr4r+tViSQV6fclYumiLo9MfRvK2nO2p8Erbr6zM76zeGsw4ud38oeeBVmIOdjWjlxNMoz06Dwcl2IsROZua2qMr8u8/F7ihSYrZSej535PFkcXN0= 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=CxplJA9i; arc=none smtp.client-ip=209.85.214.182 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="CxplJA9i" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2b06c43e6a7so12085495ad.2 for ; Fri, 27 Mar 2026 09:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774630082; x=1775234882; 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=KcCW/GTEnEUFiHAWHz6f8JvJTk6/azgZ2oCG+4+XfEY=; b=CxplJA9i9OJgO/RNhyXa9jsPuQxkj/UT71a0QoPpaPcIHf+16YOY0da0kFjGr2XxPI KVUIRvgNsWIzN6itRrE/4NWQ8Zu9G2tB71SHifSeyPUAUTfG3hgqtiqyL4nMQhjzVzyp vu1AxK865pjCLiK0aoQo//J3gSdf1bSOuLHSsF+B46Xg67wHexF/HvqaR/CHyqY5HugP KDRk1pgjJRXFJeG8KSAijndw+J+Plq8Zcy3tnOBWSd/W35q6mL9w0j7ucCK/Ob2s+V2E oC3gv7I6rcBnKqGRptoKp7vtC4VNUFNgKxEOoMCbrc+9Myjowman1NHEKkecSqzuPrSV pSlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774630082; x=1775234882; 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=KcCW/GTEnEUFiHAWHz6f8JvJTk6/azgZ2oCG+4+XfEY=; b=BB8aIgGpfL6ruKO19p9SKYyyixZLs3iwZ/IheIP7ovDl+e0Jkt+QyPXfQKBAJDqU0k YhiwQ3aK6Ck377M6PVXowlDwAZTD9MCZoxXZ4zKX9iu3+AXoVo8J3uyZCgBD1rE6s7j4 +rLY4AMJK6B9Qk1nEigBWHHWhKBqTnK6StdJsz4pufiCbPzVYfKMTO6HkOLZeToBXijK ZeU+fpRLu1Xlh6hZKshB7jird1zPCeRiNAQB+qYcChFBNKvwhxqnHuo/ZbviJv2Q6xM4 /ZbASMwQxydF3bTsA31hr53kklmSCBp7EVeTh7k4/+SXEnZ0SXhe0TZQWYBlDqMgRpSv KB/Q== X-Forwarded-Encrypted: i=1; AJvYcCXtbgjtmdL+LvZXfCr3k9H12tLLFXOMct78Vhvpcpg4Mu52t1Q2NiZ87IDVcH7dBk6RwBMLheOLWlVQX3g=@vger.kernel.org X-Gm-Message-State: AOJu0YxYswop4wT09T8jlUclUJiqjyWcKomTicImKjLheihMIhnb3Xtq 0MkisEmcqoQviN/rtKKweKSR69oziylh+bdwzMnKAz96VQqQ9ZrRxOeG X-Gm-Gg: ATEYQzyB7vcvw8b1w74gvbuVt0qpWAQT2OMU1bB2f0yzYwmfdYSvxNuaJdf5e8Rz5o7 p1PvQh/amhuT4xTz94lI+jaGam5XK58iha81MC4CV8+JeAXbX5B/X5H9ee20WE4wczvxnJ7ROMp ciIfQ8nMT3PbA5vWMM0nLvNz8+kgFKMaost5SlTDnSsBr9+I5CxMginlKLEDfKGNHxvJVm0esMc /uoC8VVxk9s0RF1BQVd3RirpD5P1xUYC93JXLVZZFCI3GI3YJbg/oflISUXkJs3xyUeUohDZWH4 FpcLEAFbMrtylM8ZW1TalhOsMxmduxk5gziNaeTwmcEdFVOUzWj+7cbAR85wQ4q632atMx+lAMl WB0smmTc9adU2CsGQNeAlMmTRMROYWYV+rz8XFpR6RMQnG67Peq/Mhyk0ANSGg42TNJ5TD8H/GB JJCSmbYyRqeVsgh7n2k73l0KiTDK0QBYuIbVG+OovB28Ba X-Received: by 2002:a17:902:cf03:b0:2b0:c451:aea8 with SMTP id d9443c01a7336-2b0cdc2a006mr32092775ad.14.1774630081879; Fri, 27 Mar 2026 09:48:01 -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.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 09:48:01 -0700 (PDT) From: Charan Pedumuru Date: Fri, 27 Mar 2026 16:47:43 +0000 Subject: [PATCH v4 2/5] dt-bindings: usb: generic-ohci: add AT91RM9200 OHCI binding support 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-2-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 the Atmel AT91RM9200 OHCI USB host controller binding to DT schema by defining it in the existing generic OHCI schema. Signed-off-by: Charan Pedumuru --- .../devicetree/bindings/usb/atmel-usb.txt | 27 -------------- .../devicetree/bindings/usb/generic-ohci.yaml | 41 ++++++++++++++++++= ++++ 2 files changed, 41 insertions(+), 27 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Document= ation/devicetree/bindings/usb/atmel-usb.txt index 12183ef47ee4..c09685283109 100644 --- a/Documentation/devicetree/bindings/usb/atmel-usb.txt +++ b/Documentation/devicetree/bindings/usb/atmel-usb.txt @@ -1,32 +1,5 @@ Atmel SOC USB controllers =20 -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 =20 Required properties: diff --git a/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/Docu= mentation/devicetree/bindings/usb/generic-ohci.yaml index 961cbf85eeb5..d42f448fa204 100644 --- a/Documentation/devicetree/bindings/usb/generic-ohci.yaml +++ b/Documentation/devicetree/bindings/usb/generic-ohci.yaml @@ -55,6 +55,7 @@ properties: - ti,ohci-omap3 - items: - enum: + - atmel,at91rm9200-ohci - cavium,octeon-6335-ohci - nintendo,hollywood-usb-ohci - nxp,ohci-nxp @@ -137,6 +138,24 @@ properties: The associated ISP1301 device. Necessary for the UDC controller for connecting to the USB physical layer. =20 + atmel,vbus-gpio: + description: + GPIO used to control or sense the USB VBUS power. Each entry + represents a VBUS-related GPIO; count and order may vary by hardware. + Entries follow standard GPIO specifier format. A value of 0 indicates + an unused or unavailable VBUS signal. + minItems: 1 + maxItems: 3 + + atmel,oc-gpio: + description: + GPIO used to signal USB overcurrent condition. Each entry represents + an OC detection GPIO; count and order may vary by hardware. Entries + follow standard GPIO specifier format. A value of 0 indicates an + unused or unavailable OC signal. + minItems: 1 + maxItems: 3 + required: - compatible - reg @@ -144,6 +163,28 @@ required: =20 allOf: - $ref: usb-hcd.yaml + - if: + properties: + compatible: + contains: + const: atmel,at91rm9200-ohci + then: + properties: + clock-names: + items: + - const: ohci_clk + - const: hclk + - const: uhpck + + required: + - clocks + - clock-names + + else: + properties: + atmel,vbus-gpio: false + atmel,oc-gpio: false + - if: not: properties: --=20 2.53.0 From nobody Thu Apr 2 15:41:48 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 4C1D13644DC for ; Fri, 27 Mar 2026 16:48:07 +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=1774630088; cv=none; b=ddx/0w7aVZst3WCc+JeBaUcF50oTBz7NmsB+JGtx93K8jl7rA23ZVEl+3KDnKY86lp6uZInNygjcL3j4zXGFrBbcTkZq6Pt6sA9JXaydYtgptfWwRaUupVbeEzQ1Hb2KycsbSpfeBU4M7ZH+C0hM3FdFTOgrQhAfg+ZPdRpdc5I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774630088; c=relaxed/simple; bh=fXXG1Cyzjh18AbX4b2uGKLKZm6cZcX80hBT/uwuFitM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UE89NE2u+IXllG5DzsFiAsik5q0rSpb2OT9lXdjX2GfYM2DANSlR2IrunLAR44zGmwLRk0/lNyArEo4aqiApLKH8qmwVmrz0S+354sByGXLGCw8fzqjfjk+7jaSA9N4HzqtFwz+QPx3eWVapiYwRqGIC1JLTnLfMacr0hpnyTaY= 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=PoM7aZyU; 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="PoM7aZyU" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2aecefc7503so16603345ad.1 for ; Fri, 27 Mar 2026 09:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774630086; x=1775234886; 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=CcW5pwvFh1W3aCrl8ykkfzRz1WOtzWb7PvDwxuJWqOk=; b=PoM7aZyUVq4XiZRXsnQ/n65GYYTf1jf5YoRnMBisi+2SJ14WUtFex+cgCEiJG3F0Vt nXkCBRUpJYEznP8UpeMDiE1dfq/TwT342wPMSEKLyKFYcUJASf+IadHoGSzCla0Cg90v 9AY/DYmuF5YrkcjWkcSYa+P4RmXL1uIL1djT+/lOegT4B4pOegQdQmf9oztq6YDqgehN yzRZKfduYX1jMpF9Zl75zxflIQuuhcM9ZifGIxMwWzexmXeKXN9AIAAGbpxEfXMWm3sl vXFtVy1ocb2Q/Vyfdik8hsAfMEvJF3lLECywfpwWlj89XgMkHvRPV/7LQGZWL9MBhETW 19Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774630086; x=1775234886; 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=CcW5pwvFh1W3aCrl8ykkfzRz1WOtzWb7PvDwxuJWqOk=; b=QdyytEkxl8tM9UHXVVlq35OroXP8Cxo4Ia0ZEf8ogTCBRPJsuRHkN9/k0U4mi6DMa5 iEoR0Z2/UIkgPlby2CKPNUX2aIAg9x6RSA++5u2sHuKzq3ez5pQMi4xy+LWQJoTCh74L cGnYH2MyODR39Ozlxs/fPSUZZIngrjVekcSCyKpDf9V0qpo9lgSOwYS5kDG0sfMha5d4 JoKEtqHJwC5UqpM3ZRCUmAfDnACXVDvf3BVuNYvlyQLdkiZ1QLFFJzCazF1Y5rd/9m8Z iexF9G/uBw8bqpkJnUCChAXrpfznC2s065AAdnpjkWyfM5nLMhEJv5Y8OJKmdA/oPOz/ zJyg== X-Forwarded-Encrypted: i=1; AJvYcCWWj66+zZO4kZPuWsxUiuCL2ErpgWnk1bFxd3aR/02jbCeSwjacathbX/k5776tDftuQgqtQhGgHb10mdQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxGeTWNaQEQCnf/FN/Jm82XyS1sJ3jBYH4Fx7iiFNWaBBfCE7Bc J+8Sk5+HpoqgPWlYIzlIADrK6etE5CFLWkRF6XayG6rsuQFhqTmOBGwu X-Gm-Gg: ATEYQzx/ahJeDMu/Jl/BN5uKNq2b2p2wcgH/gNyjh5EinhVycMKirowjqXP9bYcDd2e iqSIn1fTGPVl9VdA6iDYNubLAJlfi156G/Drd2mp5hCJ/LTaSIio/O7DXWdE0ErqiAZh1rf/5lQ bbKXMi5cBg8zFWTWd8xNaV1V7aXAfyZDZ7kAlUKGpjykoa3UgUcnxackcWzuTg1Ci059kgM+c7U AForsvSLqvqucSIVMXcvfFWWpRdi1CzbB3QmrS0tsr6XsMPZwkRRNv3jULlajwvqPLKqd0eS8LR yzo4JAJ0tjLw/2eVz7R2t0yO1HJa0hnLey6yZ7+yBy11FDaKlkyx79V8/tQku2ZYk6hjwSkIsCr Wh898Ixm8qXaXgMAoGY0C87HCU2hxnH4fRhWowLynYgymA7LZ8/nt5Lnh18g9tBwLDFJs5rNrI9 aQfquvYaA9j2HygqZt4daxmjghOqT4LWy8asXm0zYB7VP3BPDFFCB6h74= X-Received: by 2002:a17:903:a86:b0:2b0:603e:e13c with SMTP id d9443c01a7336-2b0cdc9eacfmr33580145ad.33.1774630086351; Fri, 27 Mar 2026 09:48:06 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 09:48:06 -0700 (PDT) From: Charan Pedumuru Date: Fri, 27 Mar 2026 16:47:44 +0000 Subject: [PATCH v4 3/5] dt-bindings: usb: generic-ehci: fix schema structure and add at91sam9g45 constraints 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-3-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 Add clock and phy constraints for atmel,at91sam9g45-ehci and reorganize the allOf section to fix dtbs_check warnings. Reviewed-by: Rob Herring (Arm) Signed-off-by: Charan Pedumuru --- .../devicetree/bindings/usb/atmel-usb.txt | 24 ----------- .../devicetree/bindings/usb/generic-ehci.yaml | 46 ++++++++++++++++--= ---- 2 files changed, 33 insertions(+), 37 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Document= ation/devicetree/bindings/usb/atmel-usb.txt index c09685283109..bf2149e5f0b3 100644 --- a/Documentation/devicetree/bindings/usb/atmel-usb.txt +++ b/Documentation/devicetree/bindings/usb/atmel-usb.txt @@ -1,29 +1,5 @@ Atmel SOC USB controllers =20 -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 =20 Required properties: diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Docu= mentation/devicetree/bindings/usb/generic-ehci.yaml index 601f097c09a6..55a5aa7d7a54 100644 --- a/Documentation/devicetree/bindings/usb/generic-ehci.yaml +++ b/Documentation/devicetree/bindings/usb/generic-ehci.yaml @@ -9,19 +9,6 @@ title: USB EHCI Controller maintainers: - Greg Kroah-Hartman =20 -allOf: - - $ref: usb-hcd.yaml - - if: - properties: - compatible: - not: - contains: - const: ibm,usb-ehci-440epx - then: - properties: - reg: - maxItems: 1 - properties: compatible: oneOf: @@ -167,6 +154,39 @@ required: - reg - interrupts =20 +allOf: + - $ref: usb-hcd.yaml + - if: + properties: + compatible: + not: + contains: + const: ibm,usb-ehci-440epx + then: + properties: + reg: + maxItems: 1 + - if: + properties: + compatible: + contains: + const: atmel,at91sam9g45-ehci + then: + properties: + clock-names: + items: + - const: usb_clk + - const: ehci_clk + + phy_type: + enum: + - utmi + - hsic + + required: + - clocks + - clock-names + unevaluatedProperties: false =20 examples: --=20 2.53.0 From nobody Thu Apr 2 15:41:48 2026 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 9DDA336604D for ; Fri, 27 Mar 2026 16:48:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774630092; cv=none; b=Yhvc/vOUzxzP6+RtJI5yWlnIopN1GkyaMuSN1M+t4/NgKjz8w8tanwoC4ocs81DAwgfcR/aqhgxIl2dA2Q488GJh+azJ/3yWdlzpbqztzIDnL/ojCCxN/LOUgZ3g5neaP4xGg3aOhd/aaVs9JvyTRP1hc9GphrWQZgZAbH8QwA4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774630092; c=relaxed/simple; bh=pTS8uG5VmLH/V/Tc99jd7kQoII4k336sCKYir7dR+yY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bH9oAgZcGVUBapIiBElAk+1e7y/BMthBAUCeLjtncILpkoRm6qjI3hnnHb1YKh00jMt+WPXuR7+K6BbBKobGRh6VM7lHjDWcYHFHSZT3wxTgwInM3B9w9g0vhWoR7IixequEEer2971+JWZwkckJWgCHgje3imLU97V9/mV1IdA= 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=pR1Jy6QL; arc=none smtp.client-ip=209.85.214.181 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="pR1Jy6QL" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2b0c8362d93so11775795ad.3 for ; Fri, 27 Mar 2026 09:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774630091; x=1775234891; 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=YBHc0eO3/NbG1nFm7mct65bznXsLp+shsTmz7+UdJu8=; b=pR1Jy6QL1oeYKhQkFNeqUh0fywmXfwJ4VE6KJrmjAmtFXgr4EdB4wdQOPR22V1PXgL RDzJwB2IoFXPPBkPimjXilmElhryDT6OihhBTtEYk0TkHfVer5B35fwhdf6MIBFwfRYs pkT89oi4jA9ChKoYI0u0qytTloWN7r8nq0bUmwELiLk6Ol+No1/SRyA9YzeV3W5esIA3 MfqrNAfxdUVEIwVga09fKdm2Ma3BVSvqdNArEjCo57NjbI4YNFoRQpy8Z1bqy5YbhDTY b3iKhf7Emm80m+upX8ztEeZAel8+5ncdFYxLxq8iCnyDxzS4imRwrWKwSIzucTceni5u t77g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774630091; x=1775234891; 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=YBHc0eO3/NbG1nFm7mct65bznXsLp+shsTmz7+UdJu8=; b=V8oQU2fWgIqaq/0c+bABNltc6yM4ysGYJJUTdhJCrGFi6cZkm/or7C2czzITK0CJr5 j+q9jM22NteggvPpzXVExDe7Dr5aWoErgjqTfZJ1uuu9fWpykzYHIJSgIj+a3vQddhyf xuZ9sfhgIVGMVZe+brhISJ9050mA9hihWH+rC6iS+XeTnfma8nsiWCuNIRGpsfYZcK0s F6pt0Nae+mSSVhqmPvYmvruljIRzhIMXJx/qpNyKzrnm8qRwjy/+pgspRf1+uEFGtHEH /QqUcTxniP2ufDntizpIJL11fQzkto7HxRb/d6rlatFMLgJ5/D95yqQNW0N50+0glP7a EJzw== X-Forwarded-Encrypted: i=1; AJvYcCWf+0oePeZf1VTpVr+9PJA+Z/ARbpVqXpCLkgDHMjTspbRBeXOC00PU1ybb/YHHnqEMiT/KcASpSOSFZkE=@vger.kernel.org X-Gm-Message-State: AOJu0YytBZWR0JhwiZIoUoeJtARPnlwyoMcGRhHanv5KFOvy9FS2HX+o wCoZsmD6eTiqIwU9HiUvdqIHW74Ia8CybyChVVC7dj0/BwEgLsBb0Gf/ X-Gm-Gg: ATEYQzxI24vLz825weHbLT1ZupfSxKWSNQLM1GMS/brl9mUA6M+ahoBbzcCgCllXfRF oZ44sHyFn4Nz+X8UEsrL4M9rWjk1lpJH8QrIM4Zj6fjZecT3dXYDiim2g9OnRWRTFpiNuzJFxwL LXSQBO1+WmvJf+RDhKSJIJGPCUWdInBT/3AxdgRGCM4FKBvbgYaXrvKV6hqIAmrLOpgWl4o6Pfz UnOVzsrR9eP3aUkxjq6D+GEuYgV4H3T80Ezo2dKhH4s0Z+EOTV7/vshN1LWjqsdoaHIxDsuZ4yQ hjkkWPezCgpMVMpldAwin5K50RsvJHphVLACNLKX9/LgP0/aBK7G0S1k/18Bt2EgpQmnA+9g9jf BVbdlRlzd6EiUka1RbqS3GRkVOBvFRfRzAjG6Ow7U/nYwhO87bReVZ7yUNewrp4iZs/+4k6aSfH lnsnwWd43fHtYisUu1ZPXWz67cBJCDm2nPOMBA+wJ/YULa X-Received: by 2002:a17:903:228e:b0:2ae:5163:c2aa with SMTP id d9443c01a7336-2b0cdc28166mr35337035ad.20.1774630090965; Fri, 27 Mar 2026 09:48:10 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 09:48:10 -0700 (PDT) From: Charan Pedumuru Date: Fri, 27 Mar 2026 16:47:45 +0000 Subject: [PATCH v4 4/5] dt-bindings: usb: atmel,at91rm9200-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-4-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 AT91 USB Device Controller (UDC) binding to DT schema. Changes during conversion: - Include "atmel,pullup-gpio" and "atmel,matrix" in the properties since they are required by existing in-tree DTS definitions. Reviewed-by: Rob Herring (Arm) Signed-off-by: Charan Pedumuru --- .../bindings/usb/atmel,at91rm9200-udc.yaml | 76 ++++++++++++++++++= ++++ .../devicetree/bindings/usb/atmel-usb.txt | 28 -------- 2 files changed, 76 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/atmel,at91rm9200-udc.yam= l b/Documentation/devicetree/bindings/usb/atmel,at91rm9200-udc.yaml new file mode 100644 index 000000000000..a4eabb935e6e --- /dev/null +++ b/Documentation/devicetree/bindings/usb/atmel,at91rm9200-udc.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/atmel,at91rm9200-udc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel AT91 USB Device Controller (UDC) + +maintainers: + - Nicolas Ferre + - Alexandre Belloni + +description: + The Atmel AT91 USB Device Controller provides USB gadget (device-mode) + functionality on AT91 SoCs. It requires a peripheral clock and an AHB + clock for operation and may optionally control VBUS power through a GPIO. + +properties: + compatible: + enum: + - atmel,at91rm9200-udc + - atmel,at91sam9260-udc + - atmel,at91sam9261-udc + - atmel,at91sam9263-udc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: pclk + - const: hclk + + atmel,vbus-gpio: + description: GPIO used to enable or control VBUS power for the USB bus. + maxItems: 1 + + atmel,matrix: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the Atmel bus matrix controller. + + atmel,pullup-gpio: + description: + GPIO controlling the USB D+ pull-up resistor used to signal device + connection to the host. + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + gadget@fffa4000 { + compatible =3D "atmel,at91rm9200-udc"; + reg =3D <0xfffa4000 0x4000>; + interrupts =3D <11 IRQ_TYPE_LEVEL_HIGH 2>; + clocks =3D <&udc_clk>, <&udpck>; + clock-names =3D "pclk", "hclk"; + atmel,vbus-gpio =3D <&pioC 5 GPIO_ACTIVE_HIGH>; + }; +... diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Document= ation/devicetree/bindings/usb/atmel-usb.txt index bf2149e5f0b3..ab353576d1de 100644 --- a/Documentation/devicetree/bindings/usb/atmel-usb.txt +++ b/Documentation/devicetree/bindings/usb/atmel-usb.txt @@ -1,33 +1,5 @@ Atmel SOC USB controllers =20 -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 =20 Required properties: --=20 2.53.0 From nobody Thu Apr 2 15:41:48 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