From patchwork Tue Apr 23 20:19:45 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: 13640621 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 166DFC4345F for ; Tue, 23 Apr 2024 20:20:10 +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=WVFg5E3MR9EBDDpzVFMEfOBtl8UYl7UcY0aKHMlZOH0=; b=MMLbbeAdatnUzM KEQTawYTjzu5FLnTwb0p/Camp6QnFxRiaL/pzm+gV4247ckC43Kp8PTmpPMpkjsOkbRKOTVZwnFCE gDgoVWzbA9hbzz5+v6NHMcGCYtMA0OsCw4LlNFRUeIB6ASGMStlU8jHa6uogsz8Eabv9J5NwVndGe 7FNMxJ5Ru+d8DX4iNtanmo1sbQobh9T/reiwCwUjZ1L2uGhEAx6l9hbsCRK35gBgYoe8bzOrKEUAp 8PAJeFjf4jlb+4PHCGas4bPX+nkPIXeCmMoK9ptFwBI5NvNs8zaFOr0rpmEzms1clA1Gb/nQIV8Ju XNFbTqM5gmwIYknp3o9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzMcK-00000001ORy-36jS; Tue, 23 Apr 2024 20:19:52 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzMcH-00000001OQt-25BE for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 20:19:50 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-345b857d7adso4834274f8f.1 for ; Tue, 23 Apr 2024 13:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713903586; x=1714508386; 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=rZh4v0xh3rOUzx0lgDgNEZWx3gWz2MaFaaSz5XXw27A=; b=qylS4KXXNv1gJN3qdwXyS2uCZxqZdpgf5as7u6ecZnXOOfF/P3dfdBOL05fHgz9Blr SlqImSOFtoD/at4sRODmbrEqA7dCN7XVwHYl8Ml1OSrCc5fEsG/2aU8lPCEz5JoR/GHE qVntIrIvcv57SMtkzEg+tGaWL/mt7wFY73uw72WeEPL0TmlRsXE4N0Sn2+Iv3WxHtIG9 PCONdT2Cw16hJZOGz32Jxv5OAFmr5Ebi9q2sEB5Kxe0NTgZF4UkLYd35nyOvhkR+siWn 0IXbVfzM2krLRRLONA0WRcz7+TJAjFfQlTvAz8a9f/BGYq1BvLoXC0wsBhg+BJQAg0l3 JlsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713903586; x=1714508386; 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=rZh4v0xh3rOUzx0lgDgNEZWx3gWz2MaFaaSz5XXw27A=; b=Wdo8JjhLZNwMeEVbu8h1v7SNAnTdE5wfU6iEgwxKYjBdex1+ksGHYcEXoiGHHfJTRj A2NS+37g8GuvowjZ5wzl1Ayo/s8MRY81yauSxUV5reBssJcmz+TKxF91KrYuHnpeaMAb pxkQNUmibPhlZy9ELFYrx3Dsqgmz0CnUaYYdH/MPmVtr8h7vUQExJBbl6smdXQzjzd9Q 2NpsaPBoR6VbNpoohrY2a+r1nEByC6hWYxTTAE/lD1SjfvkQK151vU64VLiv1q6u89JT hcmBG97//gy+/LZ2M0m2hUIEutUuMgnuHWpJ97gTsQ9SO0fZL3bgpkIfjJg4TkXOqCHm eGRA== X-Forwarded-Encrypted: i=1; AJvYcCWuXn/HUCueWjLtDWl7tm6eNnYTI3o8FiB5qmA4676gd4zlWFTwe8mjWk9dSnf5qs1iJL1ovkaxt5EXP7weAg/2UrQDOyEN+T8D1wCRPmfnxfjqCdM= X-Gm-Message-State: AOJu0Yyw/Jb5I2VsTKUOKJIk0JGr6xzGvIWIpUUvHM2sAbfldnzXEJqT mmlUi5jaHynEBEFMgcvSHCz5hgZCErpulId+MmB7WUm0GwcplZQUU4NNzkXr3OI= X-Google-Smtp-Source: AGHT+IEVk8IdQBDdbt+6eUNjL8ZwuM4GtjoAlH1F78ZTMRMT6v62264S4wc8kya9gMioEKJPj3KZJA== X-Received: by 2002:adf:f18f:0:b0:347:2055:f49e with SMTP id h15-20020adff18f000000b003472055f49emr183121wro.33.1713903586677; Tue, 23 Apr 2024 13:19:46 -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:45 +0100 Subject: [PATCH 1/2] dt-bindings: usb: samsung,exynos-dwc3: add gs101 compatible MIME-Version: 1.0 Message-Id: <20240423-usb-dwc3-gs101-v1-1-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_633612_C809CADF X-CRM114-Status: UNSURE ( 9.18 ) X-CRM114-Notice: Please train this message. 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. Update the dt schema to include the google,gs101-dwusb3 compatible for it. Signed-off-by: André Draszik Reviewed-by: Rob Herring (Arm) Reviewed-by: Krzysztof Kozlowski Reviewed-by: Peter Griffin --- .../devicetree/bindings/usb/samsung,exynos-dwc3.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml index 1ade99e85ba8..2b3430cebe99 100644 --- a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml @@ -12,6 +12,7 @@ maintainers: properties: compatible: enum: + - google,gs101-dwusb3 - samsung,exynos5250-dwusb3 - samsung,exynos5433-dwusb3 - samsung,exynos7-dwusb3 @@ -55,6 +56,23 @@ required: - vdd33-supply allOf: + - if: + properties: + compatible: + contains: + const: google,gs101-dwusb3 + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + items: + - const: bus_early + - const: susp_clk + - const: link_aclk + - const: link_pclk + - if: properties: compatible: 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, }, { } };