From patchwork Thu Aug 22 15:27:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13773873 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 25B89C3DA4A for ; Thu, 22 Aug 2024 15:55:13 +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:References:In-Reply-To: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:List-Owner; bh=w7FkQHIsvgS8tLvmRvs57rTjX/u1Y5CHinD6jgFXzvM=; b=CjknasKvl22MgprOAvB51z3EC0 1UDBA/5Y1g8cyhFqhAfWeRIunZyz9Fv2TVeqxUik7ut7YHYcheQO16qS3yBNJU7ezjx7lY4SSUn7D OUlzm6t4vNHr28wZhPJx91wjGOk2gKo/gA8mVKz/st6IPP1nYOL4RFL26CJ99o8tah9iT2Vug5Y0h KMo+RH19k1lVqqxjbpfL93Yk8Xryu5gN/xxXng7VJOZY+DQAvmutmO5VTgl5eYrKpRzpzmOGXnrbt lcfH75OFwR7GzpF2sAzjeW6vYdVK7Lw9Lvqtw3ZACiHo16f56R18WJvul6aqt5cxAt7MLRkvjkR0l HF8sAN+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shA9L-0000000DRrT-1hC0; Thu, 22 Aug 2024 15:54:59 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh9jk-0000000DKq8-0jRA for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2024 15:28:33 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a8679f534c3so120049966b.0 for ; Thu, 22 Aug 2024 08:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1724340511; x=1724945311; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=w7FkQHIsvgS8tLvmRvs57rTjX/u1Y5CHinD6jgFXzvM=; b=Z4v94E9q/A3rhleNV8lf8eQM6+eo3q5FXQ3jG7WFaOn3UL2THQ4i5EjslCP+Gq4nZN H8yEv7elCBOEHusCphf7FgeWAQnBqLkKMG2Lr8YobWquP/wWr3ExjHH//u+gxV5kpswk FeutF3/DwIyS/tUHQv4l9zHABKeTRXqBjpC5+oE44GclA1YoK6GRupx9FZHfcZ29mxfh MqzdpToIkX62HQMbXa1YrKFjNH7nLbPBqlAX6INuLn55lhyylTODXgDzmLHNaX94P+sR JOovwjtvVis0NG6BorjlHrraMkyH7/zEvs7XlJJWvF7MvRxDXU3LklZ8L5l+n36Dh2d0 qfpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724340511; x=1724945311; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w7FkQHIsvgS8tLvmRvs57rTjX/u1Y5CHinD6jgFXzvM=; b=jVClJFkp5K2u+KoZUmtwsh1CzJUuTWuuRJEuGe5wAAu5gHtXckMOG4aVHHjL6cn7NQ 0/sBsAC3BImW12oYH226iJiulcbZ5EvZuYQ5Zl7nO8wAkf8PPUwqy/YILB23l9MDFVTC GjDQr0Cxq3ll462LFGWpQ0hjd9jOWzXoKxUqGusk5EPM2ZbkYb3i8IG9qPRJi+z9EE0W NUf8qQTL02lqS08fFKyjKHCym8zEP1l7Nx3c2ZwhqWvoALfemOAFZp/AUmdoLHnPuI9L p0bfisHpp8B9B9FJ9QPc8YcQiDNlhAI7vDo0dzwF/H7ZhV8UeTYa28vldNJjrQJqJN2Z H/ew== X-Forwarded-Encrypted: i=1; AJvYcCV672v2oaXw1vALeFNjCj2ev6QbBUnx6R+OlhAaUHbApnpsSnfXFJk2DMbH8ztnI9mTx1ek9QJmYjUjH59HAgo1@lists.infradead.org X-Gm-Message-State: AOJu0YywSnDd7aT6Ch0wT/E6G1/JB6dKGekPZKspeY+FymAslCh0a4eA 13pqQ2N+XnUdc6R0oypIYFEctn8+q0mw+tx1GxkUrqpiV9AzZrcSKhBLBn1tymM= X-Google-Smtp-Source: AGHT+IGPID6PnpNBLXBTXMtHC4bLo5V7GR8HicFGoYSBbUPtn858dZ2vIoy56QGfOFS6q2WDw3Kkwg== X-Received: by 2002:a17:907:c7dc:b0:a77:d85c:86fa with SMTP id a640c23a62f3a-a8691abe63dmr193992366b.13.1724340510445; Thu, 22 Aug 2024 08:28:30 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 08:28:30 -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 07/16] reset: rzg2l-usbphy-ctrl: Get reset control array Date: Thu, 22 Aug 2024 18:27:52 +0300 Message-Id: <20240822152801.602318-8-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240822152801.602318-1-claudiu.beznea.uj@bp.renesas.com> References: <20240822152801.602318-1-claudiu.beznea.uj@bp.renesas.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_082832_245263_F585230F X-CRM114-Status: GOOD ( 17.56 ) 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 Before accessing the USB area of the RZ/G3S SoC the PWRRDY bit of the SYS_USB_PWRRDY register need to be cleared. When USB area is not used the PWRRDY bit of the SYS_USB_PWRRDY register need to be set. This register is in the SYSC controller address space and the assert/de-assert of the signal handled by SYSC_USB_PWRRDY was implemented as a reset signal. The USB modules available on the RZ/G3S SoC that need this bit set are: - USB ch0 (supporting host and peripheral mode) - USB ch2 (supporting host mode) - USBPHY control As the USBPHY control is the root device for all the other USB channels (USB ch0, USB ch1) add support to set the PWRRDY for the USB area when initializing the USBPHY control. As this is done though reset signals get the reset array in the USBPHY control driver. Signed-off-by: Claudiu Beznea Reviewed-by: Geert Uytterhoeven --- drivers/reset/reset-rzg2l-usbphy-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/reset/reset-rzg2l-usbphy-ctrl.c b/drivers/reset/reset-rzg2l-usbphy-ctrl.c index 1cd157f4f03b..8b64c12f3bec 100644 --- a/drivers/reset/reset-rzg2l-usbphy-ctrl.c +++ b/drivers/reset/reset-rzg2l-usbphy-ctrl.c @@ -132,7 +132,7 @@ static int rzg2l_usbphy_ctrl_probe(struct platform_device *pdev) if (IS_ERR(regmap)) return PTR_ERR(regmap); - priv->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); + priv->rstc = devm_reset_control_array_get_exclusive(&pdev->dev); if (IS_ERR(priv->rstc)) return dev_err_probe(dev, PTR_ERR(priv->rstc), "failed to get reset\n");