From patchwork Tue Apr 23 20:19:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13640622 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 355BEC4345F for ; Tue, 23 Apr 2024 20:20:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RRS2MvGYlxybzlolZHhCBtY7Xt4MN9H6eqRsetcbheg=; b=ZzuYWLtpbc5v8h 9oWsXepKh3JbqDH5nXuY01zTKwgRV+5NmaMa/+G93bda5BlvpCyjYgSWhXCbRyhCBDFmKJJAJJMlk Dp0G5TOHguJpVDTkc/XEq1uuoX3zu/XdPhsmLeVMH/rCOFkcHuG47ROfJ4JIOs8XstJhVXx0nN+Uy nNCDlSwdMFbcUmQAPGoym3pfoxlAxPuoP/I0GDqEbmsgC93vp67epIM6c4XOOOrDbNrrZ2EuMtq+j mpZPYSJja0bPq6xE/Uj5Ti/uxAvp5iofEfOGFPP/7dqDxtd4S0aMYtZEVoPbjZFaoKQuKZ2N+/+6X RIQoVzAt+6WWeBIIvhwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzMcb-00000001OX8-3Pc3; Tue, 23 Apr 2024 20:20:09 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzMcH-00000001OQu-3gXp for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 20:19:52 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-41a7820620dso18055745e9.0 for ; Tue, 23 Apr 2024 13:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713903587; x=1714508387; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=p4vOKvRCallk5kGR2Wbh/Tn3Hl0el0YNKiGA9haFVMA=; b=lR3hl03JlmxStd+GrRQbS8kl+yJ+CrRD7XMHhvuy4SM2+PSuKEy20YM/kTlpUKeO4f 24cd5tsQO0KNMRsg9tWVW6T/hu9HVpotC9osanrqFAA9YmRd7rh2JSPasl1N3sgN+myX VXnRGKuaS5VNDjtD3zmg5kWwA++9mCTRdvQRevEYPF9o53zLmpy2ygspqAp3hTHtGKbh o97CiP+3wNH2wMhOorSbg3/nv45KF/H3FnuxrnYf1xZMyDJzV8JAopM1pKI4I1Uc+DyT DPLgyYng6trRkwGeCHZp8TnBEJd0s7Y449CDlyBD5vGtT8USDt7U2EMLcXfmnor7uIL8 OkYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713903587; x=1714508387; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p4vOKvRCallk5kGR2Wbh/Tn3Hl0el0YNKiGA9haFVMA=; b=Fzkyov8X+cP4tWypuk98VjARx7DF72HFGi6lID3o7uPXvzKXqfBayT/X7EMk/ByWDX mP8rjVRG3+alXpU2EfRdT3rxHhFNbCeN74ShwVxMZlIjFs/4pyXOU695bMCdge4ZtQ5Z ft+iZh5sP9s0AgzKt3HPlX3Lj6Q80oTGKd9wYyNEZbvYVts0yOZ1HYTdYWZlUShl8ZJa sKq2qvWNCE1XamgzbS9rvUzmzTmDcJRo0S90xGzqy34rFSqJ0+tuebIzlQNFNRXaQV1n hamOicKHDTrLpqVtaX3nXNEGpmR8oSRaSDJHX96uvVVUqV1JSt/lZ9QnbzOAgrpTpTAj r/Mg== X-Forwarded-Encrypted: i=1; AJvYcCWwm48TutMq0ywnat26NDNDGwQYd3y7lWR9S7VcKWz491PWfMMn/PyNmLKPklpulOWnfYttlFw5U9VTrmIVgkUSMrr+xQ0ttf880JjlT/n0edQ3ftc= X-Gm-Message-State: AOJu0YxSOGQ8hJWpnBpm2sJcJA95GW8+9Jrh5c79ee0tQPVKk4uVHFYy nr2ZHYVGr6bk9+5SqCfC8/4qmwrW0MWOqO6dPvz/+/7yWWAkkQonz6l7ybkanMs= X-Google-Smtp-Source: AGHT+IFY+ITgeee3a+C5KSYNk4HM3XF4Psq3axU8IwvLxAQYs6W6bvgmAlGVlqcAphnYYBlae8wbfQ== X-Received: by 2002:adf:cc85:0:b0:34a:75f1:c36c with SMTP id p5-20020adfcc85000000b0034a75f1c36cmr179194wrj.61.1713903587154; Tue, 23 Apr 2024 13:19:47 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id i7-20020a1709061e4700b00a52244ab819sm7552431ejj.170.2024.04.23.13.19.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 13:19:46 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Tue, 23 Apr 2024 21:19:46 +0100 Subject: [PATCH 2/2] usb: dwc3: exynos: add support for Google Tensor gs101 MIME-Version: 1.0 Message-Id: <20240423-usb-dwc3-gs101-v1-2-2f331f88203f@linaro.org> References: <20240423-usb-dwc3-gs101-v1-0-2f331f88203f@linaro.org> In-Reply-To: <20240423-usb-dwc3-gs101-v1-0-2f331f88203f@linaro.org> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Peter Griffin , Thinh Nguyen Cc: Krzysztof Kozlowski , Tudor Ambarus , Will McVicker , Roy Luo , kernel-team@android.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240423_131949_996973_D3A2D84F X-CRM114-Status: GOOD ( 11.17 ) 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 The Exynos-based Google Tensor gs101 SoC has a DWC3 compatible USB controller and can reuse the existing Exynos glue. Add the google,gs101-dwusb3 compatible and associated driver data. Four clocks are required for USB for this SoC: * bus clock * suspend clock * Link interface AXI clock * Link interface APB clock Signed-off-by: André Draszik Acked-by: Thinh Nguyen Reviewed-by: Krzysztof Kozlowski Reviewed-by: Peter Griffin --- drivers/usb/dwc3/dwc3-exynos.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 3427522a7c6a..9a6e988d165a 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++ b/drivers/usb/dwc3/dwc3-exynos.c @@ -169,6 +169,12 @@ static const struct dwc3_exynos_driverdata exynos850_drvdata = { .suspend_clk_idx = -1, }; +static const struct dwc3_exynos_driverdata gs101_drvdata = { + .clk_names = { "bus_early", "susp_clk", "link_aclk", "link_pclk" }, + .num_clks = 4, + .suspend_clk_idx = 1, +}; + static const struct of_device_id exynos_dwc3_match[] = { { .compatible = "samsung,exynos5250-dwusb3", @@ -182,6 +188,9 @@ static const struct of_device_id exynos_dwc3_match[] = { }, { .compatible = "samsung,exynos850-dwusb3", .data = &exynos850_drvdata, + }, { + .compatible = "google,gs101-dwusb3", + .data = &gs101_drvdata, }, { } };