Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp25561lqd; Tue, 23 Apr 2024 13:20:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAruGsZkjrfJRu2KxBdHNIT5OhnNN9bc+T5+Kw9op8QODJcZwLZvTnbayG5AkUKiVLMFQLkhv/8jcAt9fr6ROftbmRA6PEURsrEdmJiw== X-Google-Smtp-Source: AGHT+IGlXIQuO8PhWJZlvQg2FxI3geN0DYx0ryroZ2UQuNYtIaderYCtQGiMaeZlYafVFuYXriu7 X-Received: by 2002:a05:6870:3283:b0:229:faa9:3b35 with SMTP id q3-20020a056870328300b00229faa93b35mr435265oac.21.1713903628239; Tue, 23 Apr 2024 13:20:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713903628; cv=pass; d=google.com; s=arc-20160816; b=wyVON30ELNyFwfA/JoTBnmhU3iHW5pwUuo5IzozUd6hnuEjmrn/3HN6NY5aRm+zgpe Cg8WRF6iR8ieNCqCDJas0wGhmDj6Sly9nMPZ2J/ZhA/7BkeTcwscR3RlaHTqnW2YtXs5 AkypKL5XEgzmqdSN5REqHEHs97ozbOXRK8J0sk6dwCuggb/u5xn90ENgER8iyfeY8P6y MjVlT/mHB+Gi3JLgnyrA4D5sWpMfSzg0SLDnsFHEhRHw9rBvmmSW3CUTYtcTUUONCJU8 X/jBMTTakjvfgDnVrdGl3VAi4cmOIeCEjS20wz5knXjW+89zB5fTfEmjMtd5sA3SanOr MU+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=p4vOKvRCallk5kGR2Wbh/Tn3Hl0el0YNKiGA9haFVMA=; fh=8Ki7uAmJs5DykXs5VDnMouNNZH1HTYFBBB3MTG625fY=; b=KMO16b3WvsYrYzODFVDZMJkvLk/jCIsSqsQ4e0ilGc/XTJuY6pXc+bgPemZENfXsX5 bSZq5fHlX/jff20EQdG+RUChM4fPEeg4/oUz76JRrhBP/ahAvJoZ8uVxW4lxDjHvJmkb C6UCzOU1lFlCPMRbAUC8VyidVJZGEQReYOwPrw+m8uTHWkhsXcdhRUuj5hyXpO4W5P5P WwIwwhy2aZa2lZS542lzVNnMyheBlnoic4KUYsSm6AF5NjKMQm9rCpGHXVAtfBxN0fv3 xv95661jeVAdN96noIcc20i4YLecSO9EQrhah/ZRcKBGDZ0ZzotISIXBEML6yWbcQBEV mUMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pKZsi91W; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-155843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155843-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i123-20020a636d81000000b005f7fdc194f5si7893751pgc.118.2024.04.23.13.20.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 13:20:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pKZsi91W; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-155843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155843-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 946192829D3 for ; Tue, 23 Apr 2024 20:20:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68321142E9A; Tue, 23 Apr 2024 20:19:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pKZsi91W" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A26B6142658 for ; Tue, 23 Apr 2024 20:19:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713903590; cv=none; b=UBRxQDEed4m7274JgkliQAGX5bzRACYM5CwLHym7nY1t44F1NO24tkW4fsNcvj8erUny8no5MjZd2VTkC7aLIIt6i4Bm8TVa3KMAbvQls6gOV3rZ7dJbzX2Ch/W1M0jmaHLFXOuFxnEpsl21gneQrRrPogiYDLDSwOG1DSat3G4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713903590; c=relaxed/simple; bh=O9JbCQMTsEdc3RpE8YdCk//UJvo94xhIq8ZtAtz4OjI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KysDJJZ5h+xe1UvYzfvgIfa6BLdrob3ne0STu1R+gkwBqg6BNdb0t5MELTWM0JJ+2E/XFGgfsP+D54D+5oYd8xemV5RqjdNjms6EEQZ0RVM+I3YToZ6Jl2jxc0Ol8UnrFX7dnTDcUGw0woY+ryQFkNz4HvZmqfoukR0J+DW53wg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=pKZsi91W; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-41a5b68eceeso19776855e9.3 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=vger.kernel.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=pKZsi91WahOATcShIiLRcHGwCci1BbOrkGYAufPHUTR7oNzmUOFKcKticDQ+nh4fds h+6G0FcdyFAeBWUQXhkx6+U4B5sEV2JueVpkTHtDYpFDmkTepdmAVglEShWb5K2Q/wFc VNwmwXHoy+/wXZ1ezD4Myq/sdo6TUaQGpo46JKoLqo+CSxZHRiMYEIGZp5Mevtgw1CH1 DOa4QP1rzoODvjg8O0o0nxEDuLROF6hh1GIXoO4IZrrgreN9e7KD1TkTfc4m45FHEZuP rb5l7ZpG59kuEwLh5ngUjLpgaCKfhEyAzML1pqa30JQ7aCqdryLFmQHDNu7OrSDKGW4H j0pQ== 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=sPwzbj6clHcG36MmvKv4VfG5GY/zUVtW413SQGc41rqJTqjRKE9Xufii2xrwbGkMUK fffpeyJYsyxwtF2hhxef/TIVDcgr9F2Dwh6lUJPhl4mzaZKKwIr+SFsBKQ6IBV9pVlu9 mpmRTI9Z4VZbhO+jpouTRWyB6WHynizKVfTd5YLHdnoZHjXNZ5eZGjzGKYYA6BhH8xrg KDbjlzPA1OiHbhc9b68qP4L8ORAUC2PJxik76L8MxQpvsvHvbm0T8r7psIF0nXMGv/Ho ytLjvqd+TRthf3+Wh0Qf8zlsv0B1rkC/MEc8YA6EDUnnUBQm35Lgis9u2PPAGM9CwpfG bGoA== X-Forwarded-Encrypted: i=1; AJvYcCWEHIpQwyesptezo668scL5n5EMIl3tR2SSSBkyp2W/IN9NGFSw9UTT/ull2hIzy1DGEb9ChoRamHCehf4dR6cZ1Xpy8XRej9+wXZyi X-Gm-Message-State: AOJu0YxCy0q5ydT1NBQiJHd1VILUGY52pY0t2OuEqpiN0m6F6k04BL83 BFlnldzPIJ1vl7onme3SX/WtvHxUYRU/TrWX2Q5R1iIN8QDGmN+JlnvHgxbOt8g= 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 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 --- 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, }, { } }; -- 2.44.0.769.g3c40516874-goog