From nobody Thu Apr 2 17:13:12 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