From patchwork Thu Aug 22 15:27:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13773866 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 E0D7DC531DF for ; Thu, 22 Aug 2024 15:54:37 +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:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=oG0PQto83btnEL28K6haZsLSn7p7+BWVYeK6+IqQicQ=; b=Gc2PMHfisJWC5yLccBnAtFd7Q8 vjVaY8uw0yQoMq8Kqgan/FVS4Tq6IqNLmmhcqhNNi61DV/7I2vtbRj6n/rz8dTZzC8i+FpXK+9ItV gpbwTTcoYatjdb4jqcERqNZk1FkKQ4STrxxt5b30DiNyFhBZgBgrfBr9F6ihsg0rrlyzTYJTs8ht2 5uFCI2wKEE7bpzRgSSNAnBKiqLkj0rRAJ5a6Ddi1p3HZONruQ5cDLfw3Pbc6JT5UDpVX6fOFUZrBB ABi4XY4FpFyf+t5tmz4hf7chWJTuF12YyKCg0KqveFZ664NYAQA7brogqlTKKnnVFEu+2jCN9QCms D+8Vxbow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shA8k-0000000DRIK-3Vmt; Thu, 22 Aug 2024 15:54:22 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh9jW-0000000DKlA-3fKa for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2024 15:28:20 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-533488ffaddso1330426e87.1 for ; Thu, 22 Aug 2024 08:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1724340496; x=1724945296; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=oG0PQto83btnEL28K6haZsLSn7p7+BWVYeK6+IqQicQ=; b=Kd0DuaWhb86PQtp/hxx+OyAnMToW3VGdg6Yh87KrBeYqM5ZoMfFC+5kPP14VTUJT/j AYPjVOx49RawudoVYonIsTCP3iUZRvEbYr1YnR2AwnPV8SbQXV7CaEvU4mVbdIDkzFoO hgP2xk7DUTFbEx8OGJiKrYCQ/c1Hu8htdMckKvF/k12iad1Q7hVjLW197cf5TVBbn0mf 3Ii4TJ9OXhBwpzVUGzfwJjovJmCoM3kgn7nwoqA5X++Yd+SIeZYYL596CogNzES8u+hZ O/EeNs/mxmjZykOEJZpQ0d9R39ObEtA2GI2awhSusLzs06hEsoknr/+KZWq0dYJD38eW scWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724340496; x=1724945296; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oG0PQto83btnEL28K6haZsLSn7p7+BWVYeK6+IqQicQ=; b=T2VkNYwovIrSXbQti00y5bU52z1Hx9yWUN9D7XimT672T6nS0f5Z4ZKZalUUypgps2 QQrqQJj+gwOVBVhMl94ewY9k9xx83k5zTQuDaaQKidJYSbDe6jbSACZxhewxt8H9HWmM Bzx2kxKAUCE9DpGiKE6K8sh4vm669ZOTrIyGaD0DPAyQ2vi2Bs3g3DICaGO+ZJZPnyRE hx0vsi8hg9FPohP3vpA+Im6pvlTQCkVLsyKvh5U8qSIV+al+BBm8dPFQMu42am2EFf18 JuhbsljZweS2kIqgzmTcpGB9QwM4fbGf6QKCnOyctOrlJ3p//+03ZUN+jSMQ+eq8OkcW BEBQ== X-Forwarded-Encrypted: i=1; AJvYcCV16uRXo9VaXA10XgKlQnmsMU1LvX7Q2LPdQuVuYha2h6XCjPOr+6E25Vhcp1Rk0pAbrsV+Oq4EBXre+h30vGi/@lists.infradead.org X-Gm-Message-State: AOJu0YxEJRP+hj7UAVxRXcJ4AEL5CbQQ4Z4ADb5JYywabZX30YV4JX/g KBOssL99ykgWcoVUelT6/2ym8ZQgofSxLZXWh0OIvmKn2jIEx9mhvFTEIAER6H4= X-Google-Smtp-Source: AGHT+IHF2HEzRj6RLICHJMj0My+kwTWQOaRUjHy9OJ1aWJK8tooH9yYqAZuBr0m26WtCehY9rsGeRw== X-Received: by 2002:ac2:4c46:0:b0:52e:9b92:4990 with SMTP id 2adb3069b0e04-53348562455mr4098402e87.32.1724340495855; Thu, 22 Aug 2024 08:28:15 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.177]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a868f484dc5sm134189166b.171.2024.08.22.08.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 08:28:15 -0700 (PDT) From: Claudiu X-Google-Original-From: Claudiu To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, p.zabel@pengutronix.de, geert+renesas@glider.be, magnus.damm@gmail.com, gregkh@linuxfoundation.org, mturquette@baylibre.com, sboyd@kernel.org, yoshihiro.shimoda.uh@renesas.com, biju.das.jz@bp.renesas.com, ulf.hansson@linaro.org Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH 00/16] Add initial USB support for the Renesas RZ/G3S SoC Date: Thu, 22 Aug 2024 18:27:45 +0300 Message-Id: <20240822152801.602318-1-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_082818_924557_CB279802 X-CRM114-Status: GOOD ( 17.00 ) 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 From: Claudiu Beznea Hi, Series adds initial USB support for the Renesas RZ/G3S SoC. Series is split as follows: - patch 01/16 - add clock reset and power domain support for USB - patch 02-04/16 - add reset control support for a USB signal that need to be controlled before/after the power to USB area is turned on/off. Philipp, Ulf, Geert, all, I detailed my approach for this in patch 04/16, please have a look and let me know your input. Thank you! - patch 05/16 - moves SoC identification to SYSC driver - patch 06-08/16 - updates USB PHY control driver for USB support - patch 09/16 - update documentation for USBHS - patch 10-12/16 - updates the USB PHY driver for USB support - patch 13-15/16 - updates the device tree with USB support - patch 16/16 - enables the reset control driver Thank you, Claudiu Beznea Claudiu Beznea (16): clk: renesas: r9a08g045: Add clocks, resets and power domains for USB dt-bindings: soc: renesas: renesas,rzg2l-sysc: Add #reset-cells for RZ/G3S dt-bindings: reset: renesas,r9a08g045-sysc: Add reset IDs for RZ/G3S SYSC reset soc: renesas: Add SYSC driver for Renesas RZ/G3S soc: renesas: sysc: Move RZ/G3S SoC detection on SYSC driver dt-bindings: reset: renesas,rzg2l-usbphy-ctrl: Document RZ/G3S SoC reset: rzg2l-usbphy-ctrl: Get reset control array reset: rzg2l-usbphy-ctrl: Add support for RZ/G3S dt-bindings: usb: renesas,usbhs: Document RZ/G3S SoC phy: renesas: rcar-gen3-usb2: Add support to initialize the bus dt-bindings: phy: renesas,usb2-phy: Document RZ/G3S phy bindings phy: renesas: rcar-gen3-usb2: Add support for the RZ/G3S SoC arm64: dts: renesas: Add #reset-cells to system controller node arm64: dts: renesas: r9a08g045: Add USB support arm64: dts: renesas: rzg3s-smarc: Enable USB support arm64: defconfig: Enable RZ/G3S SYSC reset driver .../bindings/phy/renesas,usb2-phy.yaml | 4 +- .../reset/renesas,rzg2l-usbphy-ctrl.yaml | 35 +++- .../soc/renesas/renesas,rzg2l-sysc.yaml | 16 ++ .../bindings/usb/renesas,usbhs.yaml | 2 + arch/arm64/boot/dts/renesas/r9a08g045.dtsi | 120 +++++++++++++ arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi | 61 +++++++ arch/arm64/configs/defconfig | 1 + drivers/clk/renesas/r9a08g045-cpg.c | 17 ++ drivers/phy/renesas/phy-rcar-gen3-usb2.c | 60 ++++++- drivers/reset/Kconfig | 7 + drivers/reset/Makefile | 1 + drivers/reset/reset-rzg2l-usbphy-ctrl.c | 3 +- drivers/reset/reset-rzg3s-sysc.c | 140 ++++++++++++++++ drivers/soc/renesas/Makefile | 1 + drivers/soc/renesas/renesas-soc.c | 12 -- drivers/soc/renesas/rzg3s-sysc.c | 158 ++++++++++++++++++ .../reset/renesas,r9a08g045-sysc.h | 10 ++ include/linux/soc/renesas/rzg3s-sysc-reset.h | 24 +++ 18 files changed, 648 insertions(+), 24 deletions(-) create mode 100644 drivers/reset/reset-rzg3s-sysc.c create mode 100644 drivers/soc/renesas/rzg3s-sysc.c create mode 100644 include/dt-bindings/reset/renesas,r9a08g045-sysc.h create mode 100644 include/linux/soc/renesas/rzg3s-sysc-reset.h