Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B046B606A33A for ; Mon, 30 Nov 2026 16:33:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=GaTna7LV; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=CGXQTqr6 Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 8762880880; Mon, 30 Nov 2026 16:33:48 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id LAH93V43Jr6a; Mon, 30 Nov 2026 16:33:47 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 19C2E807EB Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796056427; b=R+lwXgWJsySdly9i66sGjCkazH4eY6suXpzEPKmJTJvPBAOg+DeA+6+Zb0wThkCFKu6O BNv8VleQ5I9G9K80aZ9zejTaGBTDnkaowp6ORXbBbx7/L/ZDwR4bTCn8J+x0PPl2aaZFt IAjpLMkMKw7Pa8PqBreQNvw18hg2Z1LReuCdW9A58PfaigY/RXq7zvudmNGjsXgr/cxBB ssWZ/y1EwJFvuUXvNduk2FZGd/JwDlVplqyjXfA/MwePan6gAV4x2Chhfh5m/q2URmRdn egLafkMawGNRADdZZghpuwSQ+dzKaheQtE95Ni7yBGgz9Ue81+TYGiz4VYAEy/uRV1Q== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796056427; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: Received:Received:DKIM-Signature:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Last-TLS-Session-Version: X-Mailman-Approved-At:X-BeenThere:X-Mailman-Version:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Errors-To; bh=6CmeBXQ+lNdJz1Wk2iCst21fuM0OMDvXKiczQZF6fMI=; b=MnYawWwLIpaKLKp4Ao6t+DCuPfsbuKKvfmHqcotMnOwmQ379Ndp3eLrUvI0iYSj/Zgy7 MS7IiSz7nGeHUAwoN2yFY5PXTb/HEZVBGJskhO0ABfjdQcTRM1eFJzAyrtKlWj3TZxqu9 ZG7mE0chEWyaD0t8KNPEFM5bhk21ifOM5yFKmO0E14lANNKPgH3w2+ZM+BMR623C7sgoG c1/KNQaYzJ0tixD8hsxVQB0u9DpyTRxeH3gA9o+QLVPIUN/jiHw64dxCoX5IonZhXa8QP XB5XK8CyL3EXwjd2K6WEuQborJ8XafmBYTmi0kvVZ1vCUWG2shubtwhV/XRUQT3nFwg== ARC-Authentication-Results: i=1; smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796056427; bh=6CmeBXQ+lNdJz1Wk2iCst21fuM0OMDvXKiczQZF6fMI=; h=From:Subject:Date:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=GaTna7LVNI+XjtGznlNxuh4rahUY4E11M2D97P9dL+cvfGKkkuwVjRmluaXPsNd6+ +Cpk94/iu/RpQFxbqXXIb86Rcun3ySP8uZO4VPWSgaH9aUDtB6AAjKVmBqL/MDSUDI eH05UciL0GX4hY7R+4KxusTOh4U3Z1q+pesU604VePH6IX7SnMal9P4jzwbzRAqceA OFMLLxVHQyj3j2vkxZYk6SO3XdI3TRmea1TBVu9ZH6xxgpY1fQuCld7IzI+n2+vFGW eqheFDD+RfltWs6RrkGkI/zU6bDkXDmRDhPAnD+jaRh2KkbKBKgHMnx7o+VoWFrVlk EgiBwG9hAeBhA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 19C2E807EB; Mon, 30 Nov 2026 16:33:47 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists1.osuosl.org (Postfix) with ESMTP id AD756325 for ; Mon, 30 Nov 2026 14:59:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 9F4644026C for ; Mon, 30 Nov 2026 14:59:38 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id T-dq1PaRGsD5 for ; Mon, 30 Nov 2026 14:59:37 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org E4B9E40269 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=185.246.85.4 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.246.85.4; helo=smtpout-03.galae.net; envelope-from=romain.gantois@bootlin.com; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=CGXQTqr6 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by smtp2.osuosl.org (Postfix) with ESMTPS id E4B9E40269 for ; Mon, 30 Nov 2026 14:59:35 +0000 (UTC) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id E72874E4181B; Mon, 30 Nov 2026 14:59:32 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id AB9F46007C; Mon, 30 Nov 2026 14:59:32 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id EB92111EA03AE; Mon, 30 Nov 2026 15:59:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796050770; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=6CmeBXQ+lNdJz1Wk2iCst21fuM0OMDvXKiczQZF6fMI=; b=CGXQTqr6MdMmXmv7n1J95mZMRD9Fyr5jvpc3BSjF7FczA2qo/c/jYy/7jWZBXu0fgUS2UY GnIt4lLxT4cB6PIWWMQvpVcqKXK9D0uu5eaDWRZq+Noj6cri/w8qlx/r2Bu74BCBUj2NF7 ZRmG1ql+lqw2fI0njOyDlATZvBZd+U2BiBppnZcvYfErKL9ZnMltmuyDmqYwTle6EQFjIJ a8X6eNjD66KwtS3NSMsSVR8xRd7Cvn+p3TNKmMIjyfMCwxgKYcc0wyuvt0sWRBxiu9TLUS tmOK7X50xnJZv94Iy4N9D4S/dnbH0eVMzVg9E5SBu1uzt0ENVzvd4JZNYDVoMA== From: Romain Gantois Subject: [PATCH v4 0/2] usb: gadget: Add Renesas RZ/N1 USBF driver Date: Mon, 30 Nov 2026 15:59:16 +0100 Message-Id: <20261130-rzn1-usbf-v4-0-e88a2b1f0dfe@bootlin.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/2WOyw7CIBBFf8WwFkMBaevK/zAueEwtRouBlqhN/ 12oMda4meQm95w7IwrgLQS0W43IQ7TBui4Fvl4h3cruBNialBElVBBBKfbPrsBDUA3mhgkuqlI C5yj1bx4ae59dh+M7h0GdQfdZkButDb3zj3ksFrn38W4X3lhgggkUklVNqSqq98q5/mK7jXZXl M2RftmSLH+KNLNEA2hQEqT4Z9mCpWzJssQybkyp0zF1/ctO0/QC6bV8BC4BAAA= X-Change-ID: 20260622-rzn1-usbf-4d364687ae44 To: u-boot@lists.u-boot-project.org, u-boot@lists.u-boot-project.org Cc: Thomas Petazzoni , Tom Rini , Mattijs Korpershoek , Nobuhiro Iwamatsu , Quentin Schulz , Kever Yang , Peter Robinson , Jonas Karlman , George Chan , Balaji Selvanathan , Herve Codina , Neil Armstrong , Ralph Siemsen , Simon Glass , Peng Fan , Kory Maincent , Ilias Apalodimas , Kuan-Wei Chiu , Raymond Mao , Stefan Roese , Philip Molloy , Jerome Forissier , David Lechner , Julien Stephan , Romain Gantois , Johan Jonker , Bastien Curutchet , Lukasz Majewski , Marek Vasut , Michal Simek , Carlo Caione , Marek Vasut X-Mailer: b4 0.15.2 X-Last-TLS-Session-Version: TLSv1.3 X-Mailman-Approved-At: Mon, 30 Nov 2026 16:33:45 +0000 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hello everyone, This is version four of my series which adds support for the Renesas USBF controller, which is used in the RZ/N1 SoC. This will facilitate exposing USB gadgets from RZ/N1 SoCs in U-Boot. The driver was ported from the Linux kernel. The following features were removed to reduce the memory footprint of the driver, and to avoid including features not relevant to U-Boot: - Suspend/resume - Handling of endpoints > 2 - Dynamic detection of endpoint DMA capability (DMA capability is predetermined for each endpoint anyway). Best regards, Romain Signed-off-by: Romain Gantois --- Changes in v4: - Added a comment to explain why AHBBINTEN has to be read - Refactored VBUS handling to use the vbus_session() mechanism - Added back some missing dev_info() and dev_dbg() calls - Link to v3: https://patch.msgid.link/20260723-rzn1-usbf-v3-0-34dd7c4ddd99@bootlin.com Changes in v3: - Mentionned all removed features in commit log. - Style corrections in Kconfig. - Added a call to usbf_detach() in remove(). - Matched indents with Linux driver and stubbed spinlock handling. - Link to v2: https://patch.msgid.link/20260702-rzn1-usbf-v2-0-00ceecebaea6@bootlin.com Changes in v2: - Provided the original Linux commit hash. - Corrected a few spelling mistakes. - Link to v1: https://patch.msgid.link/20260625-rzn1-usbf-v1-0-0e1a38f7b82c@bootlin.com To: u-boot@lists.denx.de To: u-boot@lists.u-boot-project.org Cc: Thomas Petazzoni Cc: Tom Rini Cc: Herve Codina Cc: Simon Glass Cc: Romain Gantois Cc: Mattijs Korpershoek Cc: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Neil Armstrong Cc: David Lechner Cc: Julien Stephan Cc: Peng Fan Cc: Kory Maincent Cc: Kuan-Wei Chiu Cc: Raymond Mao Cc: Quentin Schulz Cc: Stefan Roese Cc: Kever Yang Cc: Peter Robinson Cc: Jonas Karlman Cc: Johan Jonker Cc: George Chan Cc: Balaji Selvanathan Cc: Bastien Curutchet Cc: Lukasz Majewski Cc: Marek Vasut Cc: Michal Simek Cc: Carlo Caione --- Herve Codina (1): usb: gadget: Add Renesas RZ/N1 USBF controller support Romain Gantois (1): linux/list.h: Add list_is_first() MAINTAINERS | 5 + drivers/usb/gadget/Kconfig | 9 + drivers/usb/gadget/Makefile | 1 + drivers/usb/gadget/renesas_usbf.c | 3154 +++++++++++++++++++++++++++++++++++++ include/linux/list.h | 10 + 5 files changed, 3179 insertions(+) --- base-commit: 8937b1ba6e7c32e463d964b4255b700088455ad6 change-id: 20260622-rzn1-usbf-4d364687ae44 Best regards, -- Romain Gantois