From patchwork Thu Aug 22 15:28:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13773889 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 650D2C3DA4A for ; Thu, 22 Aug 2024 15:55:58 +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=dHeWW2RAWv56keT/WvGpAcv9ZdqYWF6HJpLE3tjHw58=; b=iG+gl6NrX4BELrls8qV/UBwEUb k6I9bbqGmpym4hl9Zxxw+FoLG5dAj+bJY76r6wjE9tSUSoAEVMI+fXdv51spuJA/z5GSwasa4a7Tg NTCAZWBSbLzvodF9t4UnHGdkiiWXyi7OoKwI9qdfqt7s6f0UA2qd07/vdyL4YaNvqYrFy3zxwGI0T CbAvl+v0K+1piEeHzaj7kRkD/9uweOQF5ipUftyG535T/fTb/w4RKQiwEdei0TL+X0Wu6hvxLZocY ITgRvvhO28uldZ7ldPAlMKmBbHP5/x9O8ja1tZJPI+7Ga9rKTarfwd95BR9NXGb0eM5FtZpPxMir1 u0u8ih4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shAA2-0000000DSVA-0RdF; Thu, 22 Aug 2024 15:55:42 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh9k1-0000000DKyg-2nih for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2024 15:28:51 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-428101fa30aso7491625e9.3 for ; Thu, 22 Aug 2024 08:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1724340528; x=1724945328; 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=dHeWW2RAWv56keT/WvGpAcv9ZdqYWF6HJpLE3tjHw58=; b=TP0GrLYswihg+L8Dy4A0+5I+tHUkGlrZsV3Cid4kd74L1GefOKMO4WLpZCLiIXroAR BG3WLrCXx5mwaPBwUyH0Uv+k5DmP11SzsSunjpbZAzF1duWcrJd5ev8yxzhtj3jCe1rA hITHIo3fjlLp1zKyJtDiR8YwMzdbvMDbWNWIKkWfDGdeC6bBYlKsEWdQf1dTlGtOaGPC 18mU6iTQAvrI+URto99h6b6nLtDQWqVRZ5SfIkBdu0HkD0osx3TR6WHgd32/QpIhlk5X MRTFJ+Kdsl5YsP7mY6N3W+nZEvZS+B8t9BKNWJucRJqMwVWXlrDGxS4DTr2dMmy7EAU3 OZuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724340528; x=1724945328; 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=dHeWW2RAWv56keT/WvGpAcv9ZdqYWF6HJpLE3tjHw58=; b=s/KclH0ZnouQcixpTrek1NmpmNN+9ySpD78E24T/jkvG+uKhMrYRl2OdpI9RK5JHk0 gH+/JqqXbQlBQLoDlo5+Dgh0KyziQ/yi/FcB+42Hx3IEP/lU5gHU+w45jCpOn+qXb/C5 CWMDcPtx/Fnp1wmSDq8GIuAapj5HLW4+iqHROAzEiTwurio+T9yH9sH0GUAOm2k73hGq o6pvIt+pmepH0acHOGEzgC5s3afCjm5pTShl9nc9Oy9txEkCt7PLf+O0LWTccoNkAgqC eM6ka88sLlKL82Vldl4zZbFcXp7KJAgOB0zcGqHL6pUD+5MWaFdJdMAyQ9knBnWHn8+v ZtqA== X-Forwarded-Encrypted: i=1; AJvYcCWrobOIQX+E96Hqir/3JL8TZqWDCatwu/kC3HSmaNYVp0f+Yt/uLGJWToRGfb8nfs5bKrD1tdoTsitV8iXa+m6j@lists.infradead.org X-Gm-Message-State: AOJu0YzRC130PMUWAGT5Nt5sUxhEPGoG4HWScJVgtn6y3xWGi11s+eoT 8e6DScnZ28vtaAQ1Hloh0vRf1IdddWmkR03I0M22E+zR7ZwJ3gLYUMQ8hBlUX90= X-Google-Smtp-Source: AGHT+IEpM56P+rOfWzF8q9z39ghmNLCQnzP/RLGHl+du2H4z+ac9zrTbNQqtdYtd7xDVKiZkepmRnQ== X-Received: by 2002:a05:6000:110b:b0:371:8e50:2d08 with SMTP id ffacd0b85a97d-372fd720340mr3982596f8f.38.1724340527530; Thu, 22 Aug 2024 08:28:47 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 08:28:46 -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 15/16] arm64: dts: renesas: rzg3s-smarc: Enable USB support Date: Thu, 22 Aug 2024 18:28:00 +0300 Message-Id: <20240822152801.602318-16-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_082849_716825_0AE0DDBD X-CRM114-Status: GOOD ( 10.80 ) 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 Enable USB support (host, device, USB PHYs and sysc). Signed-off-by: Claudiu Beznea --- arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi | 61 ++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi b/arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi index deb2ad37bb2e..fd9355936803 100644 --- a/arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi +++ b/arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi @@ -66,6 +66,29 @@ vccq_sdhi1: regulator-vccq-sdhi1 { }; }; +&ehci0 { + dr_mode = "otg"; + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&hsusb { + dr_mode = "otg"; + status = "okay"; +}; + +&ohci0 { + dr_mode = "otg"; + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + &pinctrl { key-1-gpio-hog { gpio-hog; @@ -124,6 +147,27 @@ cd { pinmux = ; /* SD1_CD */ }; }; + + usb0_pins: usb0 { + peri { + pinmux = , /* VBUS */ + ; /* OVC */ + }; + + otg { + pinmux = ; /* OTG_ID */ + bias-pull-up; + }; + }; + + usb1_pins: usb1 { + pinmux = , /* OVC */ + ; /* VBUS */ + }; +}; + +&phyrst { + status = "okay"; }; &scif0 { @@ -144,3 +188,20 @@ &sdhi1 { max-frequency = <125000000>; status = "okay"; }; + +&sysc { + status = "okay"; +}; + +&usb2_phy0 { + pinctrl-0 = <&usb0_pins>; + pinctrl-names = "default"; + vbus-supply = <&usb0_vbus_otg>; + status = "okay"; +}; + +&usb2_phy1 { + pinctrl-0 = <&usb1_pins>; + pinctrl-names = "default"; + status = "okay"; +};