From patchwork Thu Aug 22 15:27:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13773886 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 A0791C52D7C for ; Thu, 22 Aug 2024 15:55:36 +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=XSWof3eimbYWdm3Zde2Iz4BDEJwC1Ylc5fdAQ7iNZKY=; b=EZb9FhSq4gxeOVF0S9UmVV5+bS K01LGlReINbGGQD9HyI2UYU2HTClFSe+Dw4KpEQ3O2RLMht3ZFPGPZrhI0HPk84Owf5FkuK0MCr8l xYqwt4g/NJgK6Y9iHXJSBeVrLjT0dhd14gxgmhd7DGnh9h/XDJNboArZG4slBrF7752dQs0KQIeAk qQ6Czw/Y6tiltWiWrOm/JaTDkrBRhao09rRHwVd5qEPvt3gFmg6xnBnvTXVryf52XxeX+bfcv+wzg 2XraS+eOjocACN8EHb9i/O5rmb2wsAtMffUqd9ME9lmcNwkNDF/mJ8aDrtLBU0xm7q1Z0bSvR6Z/s CLbwdqMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shA9k-0000000DSE1-3152; Thu, 22 Aug 2024 15:55:24 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh9ju-0000000DKvg-2j6O for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2024 15:28:43 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a8684c31c60so121164466b.3 for ; Thu, 22 Aug 2024 08:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1724340521; x=1724945321; 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=XSWof3eimbYWdm3Zde2Iz4BDEJwC1Ylc5fdAQ7iNZKY=; b=XhzDtOT5RP/0v5I15+DD1QKeTbFJOKHOfM+Xwan3w0dgXGAn0Ix1WToAbmiFEu3VtC QgBXQHuUtmRzSa+3A6VpcrePNK2VK/FlM0LsJ2JfEAEfJUi5bXznFyUoV/lgNUIX2a9u ZfFSWrSbsCjJAeHKxGFN1S3PIFpRdZxTBjBC9ALsaAStIrjG1lgFSVADD0MYaQbKxmit 7to8qvbKNnvm8ObfQZWMfYs51AwSrcXr/Bd1tGc3nD6kfs1upJpOaORsHbkNOkxfCMN6 3bTgvmQv3IQXaRP4j4BtzrmB52mBvkXiV3Zgr2cdBa8J/FI71fPlBO8tKGqh0rl1mIxR wehg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724340521; x=1724945321; 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=XSWof3eimbYWdm3Zde2Iz4BDEJwC1Ylc5fdAQ7iNZKY=; b=nFK4PMGSKhM3e22gng6ZPvSkt0Sr6xDQbJa+3FnBsI9/X1NooXg54enDdRQOeACppv mxutvOmqEgDGCFwZwc2Xz2Ghn6mAH7FMjc0YMxglLSQEjzlxr8am+D/qoCp480XI5cJf Ud/nxQZyrWef2iMCAP2QJSQzlpujz9f4xntbV/ClMwkdIXIPqi/qcS1PocbVQmA2iKyL nZlVZkq+VwPxZNY+LEW7YvnMkhDtoUNvkl0ak7peNxyS6SKDwWnKkAo4hi9ubCiUz+Kd +7yGIge2O7QW1vthUkvWdHURYMQi6ZqTNqutr3WG+IJRziz7vUbHyuIY8+QYuuB8whYa xOEw== X-Forwarded-Encrypted: i=1; AJvYcCWk5JwO2yv26OBH5vP40N5T6o4oiivWu5yp1nt8Jw5F+0RemfmsVmvMPxCFXwKD0Oh1G3z9lCvHktrVBmaGyptw@lists.infradead.org X-Gm-Message-State: AOJu0YxWBj1YONSJ9r+C0Z44qkUbiGr1touDK6few6krppJ1Oa5GySAY pBRCaYKfF9CEKVznMnKGEQfkjxQaTPOR1kd9IFfETMmmnW+XHg6G6gnpb9UtYUU= X-Google-Smtp-Source: AGHT+IEBQZ1FZ/LXCGsRTtDo2mrL6RRIsqfYVgMxLk7cvYuAGygDFmxNvFc2QDySBzsJWYCvzMOvmg== X-Received: by 2002:a17:907:7214:b0:a86:82e2:8c64 with SMTP id a640c23a62f3a-a8691b5c943mr185347366b.35.1724340521191; Thu, 22 Aug 2024 08:28:41 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 08:28:40 -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 12/16] phy: renesas: rcar-gen3-usb2: Add support for the RZ/G3S SoC Date: Thu, 22 Aug 2024 18:27:57 +0300 Message-Id: <20240822152801.602318-13-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_082842_732214_56345A2D X-CRM114-Status: GOOD ( 12.07 ) 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 Add support for the Renesas RZ/G3S SoC. The support is similar with the rest of RZ/G2 devices with the except that the RZ/G3S needs bus initialization due to hardware limitation. Signed-off-by: Claudiu Beznea Reviewed-by: Geert Uytterhoeven --- drivers/phy/renesas/phy-rcar-gen3-usb2.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/phy/renesas/phy-rcar-gen3-usb2.c b/drivers/phy/renesas/phy-rcar-gen3-usb2.c index cf4299cea579..58e123305152 100644 --- a/drivers/phy/renesas/phy-rcar-gen3-usb2.c +++ b/drivers/phy/renesas/phy-rcar-gen3-usb2.c @@ -583,6 +583,12 @@ static const struct rcar_gen3_phy_drv_data rz_g2l_phy_usb2_data = { .no_adp_ctrl = true, }; +static const struct rcar_gen3_phy_drv_data rz_g3s_phy_usb2_data = { + .phy_usb2_ops = &rcar_gen3_phy_usb2_ops, + .no_adp_ctrl = true, + .init_bus = true, +}; + static const struct of_device_id rcar_gen3_phy_usb2_match_table[] = { { .compatible = "renesas,usb2-phy-r8a77470", @@ -604,6 +610,10 @@ static const struct of_device_id rcar_gen3_phy_usb2_match_table[] = { .compatible = "renesas,rzg2l-usb2-phy", .data = &rz_g2l_phy_usb2_data, }, + { + .compatible = "renesas,usb2-phy-r9a08g045", + .data = &rz_g3s_phy_usb2_data, + }, { .compatible = "renesas,rcar-gen3-usb2-phy", .data = &rcar_gen3_phy_usb2_data,