From patchwork Sun Aug 4 21:53:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752727 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 D8267C3DA7F for ; Sun, 4 Aug 2024 21:55:37 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3vZ1xWTNthOfqdTf6Kqe9pV5/FssYjOeNYpE91WbA1Q=; b=PfKanpvhWSzfhB huox6aPRYLtPqeVmmMqR6vi0pYNda5LHqa7rLI9LRlP05Q4gPhll2MZrodewJK9bbVYayaV2STU/z uniKMQ2pKQQANpAq3d0kpMNHq4GmnlsT7O1/L+bGP32O4oLoo44nDpr1gtmFpDdrlSJKKWlMZ09pb cQDF/48nSwwVlCBWcRzwuQEv6J3ftfwTKbGOlC+/fly12qc7zP8Jiho9hWmis3KBEhfnc3IbSagMd 8EHmOAIHHOl6SLUwyA3QfBxQBBLdU+cDoBuft0hLc9wv4MKOa9JczXiVatSB1sBmc4aV58k76+Uqb 8HUn2T9gK7YhJNTEI+UQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCT-0000000DzOO-2QrQ; Sun, 04 Aug 2024 21:55:37 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajC1-0000000DzFv-06M7; Sun, 04 Aug 2024 21:55:10 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a7a94aa5080so359728066b.3; Sun, 04 Aug 2024 14:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808507; x=1723413307; 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=DvYubfbVq4kUCAQhjBGxwtur3JW8+5d4oGvhKNwcNRM=; b=KbpuSijPX2qE3G2iO4c5yAXT9Wu9Y7tNRpjZqLkJIKBgzVDk2TAM2TMBYDOF5orQ/J xe4FY5HLGi1sVwa+Tbw9CbhiLbp6n6SVOxVYKunhi3eH90t/eTExPkQ7jxKJA99n/fDS wwslPbdDz4LitJovVtXbZKwp0l7xhQ4EqpoMry1aJMGdRVH+r9xvSLiK+MWaCbGuEzGt 4WM/52wwq+4SguuX1w5hoB0G63RzGIyVDBogYDCEmZQYFGHlR6f+VbMOLKCfIlv7p0NQ HRPJ9Zcf0z1wrN1xX2rp6ziNeuEhPXcdtIsuLF5CnYgFCnDDsGQhn0iaSFt6UBddNSea smcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808507; x=1723413307; 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=DvYubfbVq4kUCAQhjBGxwtur3JW8+5d4oGvhKNwcNRM=; b=UKlqwhljK2gpBf3hzyzD20rIMsmk1IeDbuJTRuxJossUpqT3ZDEygKxq4GjHK9OFp8 U+k95aFGkz5LA4UND3Z4anVXFs+HvWsCxunHpfYqGQiD19voGbA2/YfgXfnFqx4VeEb2 rDVSct9cZ96Mms+oygu7YV8SAXy8RMdaVkKBg/h/WToZWXClrqg0XrpKIXvW+iVPRSa7 5TjiocUaarqMnbWFn14dsxRoIvLQTRMHWIz0keuR4lxrGSSiSakFUZtfzQpPE2XmmcG+ BlhAl4VPh/LXBRgL+wy5v1c0NovsyX+jPwGAPlF2yzrYrrWyeRYO+ooFPkIUTn/Bgxlq eeXA== X-Forwarded-Encrypted: i=1; AJvYcCVyxtmuCVKf944mQ+I0sHlsgBzMHgmBbwoqo59YGHHuX7d6aMY1g+8dVSZ64SbcwkAMLLcd26uGfhPjeCF7AnFbhB+04dXfPhlMmoE/udR96Np25iI= X-Gm-Message-State: AOJu0YwjeaZIYPwKntEPr6+DctMCo6eLviq6RhsjsnimlKhoNdUNuxK6 p/nrLkwNTjSUh/9Qo7BvXFmal/DlPqDLf7j0Ns3wXMV7dUVQlneO X-Google-Smtp-Source: AGHT+IHZGBuLPIhPXt+S5usbtLF+u2ZCoSWc/lVqgIzNNaYZXnDghzPe7QjeKjQ2UYnp26qAEAvaAw== X-Received: by 2002:a17:906:d54a:b0:a77:c330:ad9d with SMTP id a640c23a62f3a-a7dc51be76emr753902166b.61.1722808506919; Sun, 04 Aug 2024 14:55:06 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:06 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , =?utf-8?q?Andr=C3=A9_Draszik?= , Peter Griffin , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 01/13] dt-bindings: clock: exynos7885: Fix duplicated binding Date: Sun, 4 Aug 2024 23:53:46 +0200 Message-ID: <20240804215458.404085-2-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145509_096864_0494B3D8 X-CRM114-Status: GOOD ( 14.74 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org The numbering in Exynos7885's FSYS CMU bindings has 4 duplicated by accident, with the rest of the bindings continuing with 5. Fix this by moving CLK_MOUT_FSYS_USB30DRD_USER to the end as 11. Since CLK_MOUT_FSYS_USB30DRD_USER is not used in any device tree as of now, and there are no other clocks affected (maybe apart from CLK_MOUT_FSYS_MMC_SDIO_USER which the number was shared with, also not used in a device tree), this is the least impactful way to solve this problem. Fixes: cd268e309c29 ("dt-bindings: clock: Add bindings for Exynos7885 CMU_FSYS") Signed-off-by: David Virag --- include/dt-bindings/clock/exynos7885.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/exynos7885.h b/include/dt-bindings/clock/exynos7885.h index 255e3aa94323..54cfccff8508 100644 --- a/include/dt-bindings/clock/exynos7885.h +++ b/include/dt-bindings/clock/exynos7885.h @@ -136,12 +136,12 @@ #define CLK_MOUT_FSYS_MMC_CARD_USER 2 #define CLK_MOUT_FSYS_MMC_EMBD_USER 3 #define CLK_MOUT_FSYS_MMC_SDIO_USER 4 -#define CLK_MOUT_FSYS_USB30DRD_USER 4 #define CLK_GOUT_MMC_CARD_ACLK 5 #define CLK_GOUT_MMC_CARD_SDCLKIN 6 #define CLK_GOUT_MMC_EMBD_ACLK 7 #define CLK_GOUT_MMC_EMBD_SDCLKIN 8 #define CLK_GOUT_MMC_SDIO_ACLK 9 #define CLK_GOUT_MMC_SDIO_SDCLKIN 10 +#define CLK_MOUT_FSYS_USB30DRD_USER 11 #endif /* _DT_BINDINGS_CLOCK_EXYNOS_7885_H */ From patchwork Sun Aug 4 21:53:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752728 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 DC78AC3DA64 for ; Sun, 4 Aug 2024 21:56:07 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QgCMDIds2MIFzQwCigfR6DJSGOEhKMd6/yJTbDZXZGs=; b=JcVpd1ox+9gPKO zi5K1Bvj5mvcIZC/YMhhAZi5tckyPg2R9gimfNvLJga7UyipFD4j4JNi6C3MQsCmu5i8gnRCYXL84 YaAhChQ4Ikgd3Jo2IzylirBPn/yyW3GrXq2JRdgPhGivrnh/9EYyLHjzHrXv0FIcDD/A4ZFt5KvPG jw6J2P8GPdjeeCXmOtGmQlBKIu3cP6TbE48bVLYsxAwVrMVL0SH4fLDbxzz/VbcGwekcWC9lQuZ/+ 6QBRsptK/IZdUri+K4AcjFmEIO0kK6gU270QnkObuPatpknV1wIWAJt3CkfFJ9yZxcThiTxUqW1cd FrNyQStdaPbwxtbtbgMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCx-0000000DzZJ-2DQW; Sun, 04 Aug 2024 21:56:07 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajC6-0000000DzHE-0wgo; Sun, 04 Aug 2024 21:55:15 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5a10bb7bcd0so14367786a12.3; Sun, 04 Aug 2024 14:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808512; x=1723413312; 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=z5rhR3+v2dU7aRSLZ6OU5clgVv9vaFNsSw8Xkl+ANI8=; b=V+QHFELSs+7OsrHK+ZgDCprBcXpgxdExNV/ELc5QwET0F7onv5rDVKwXYaoLaOtdUN KuHk1rIGGdbt79Vs6bq87IgfuJ85j+A6WqiQ5k1dp8FQlxfhtyx4kiYSfL5qMZQUxYiM pXnIx8pWLYIYhuKkJW3i6Zk/pt2ASdYDMoosbkzaXnjkBv7YsvrWBPpUBVivvlqAQ1cC lWAEsQIqQGvSRPvSfBuZLF3R6NDsUQo5QEP7qDICXDxYxfdWVf1NWQ+qseVrZvlGVh72 QNE26qAYVMpSWFZyNfKSC/0/9j24yR6UzMH6GzS40NMOh2yB4nqqNJGrwsahbOPEKXF6 0YFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808512; x=1723413312; 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=z5rhR3+v2dU7aRSLZ6OU5clgVv9vaFNsSw8Xkl+ANI8=; b=LxlHTgR3gtW+zy73u4hzGFid9o8CQ2/tx+nhjnjm8JHObnztHhuH0lUGTlxtRzQQrL sLr2na73TDqKGcRvSOA6sTT3UG8wFnGNV+XmE6ZmtzAdt5DkFEItBnwW6GX7EXVf6bGH YbRVddXBD4gnsNF2BuYZt33Ljtbmqz+grFOLfvw+FlRTyLCWK9Yiun4ciuL8sKCNUjTV 9jtZlB3tVrehyuniDLnQTtdkQlypfComkgqF2HppOdYtWdLjFWHxa5h1NAhb6MuiLGvf 1tsdT4W+42z5gwathHznQxCUSkLqbxOcpRSKxHmJIPntNok3Az61Ti3fuTlrjz2AJZOE CuRw== X-Forwarded-Encrypted: i=1; AJvYcCX61F33AaguzawoikYEwGhTT09rzSxPrWxiFJsv3hXIf810I/1r8vHtUYYBy0/wgTkdT2JYMe3VLdEBJ8YwVdFlbYF0OfzxaJijAi9NHNaJB3Tw1h8= X-Gm-Message-State: AOJu0YxOZmEfeHhDinZDPJZEHAkfa90srHSfJzvP6mHBCOB/HFLdIcPN 48yTFBb07gzWS18H65RQPlsSNkE34bg3YaxNwmS1pek+T9OC3kNL X-Google-Smtp-Source: AGHT+IGzaq4YPYNj2lalwb5MlAOxdlQf/QYs24OQsJ6f2k6Wa9MSyqE9gN6Oy/V21lb4i0xGRTiEbA== X-Received: by 2002:a17:907:3f8b:b0:a7a:a6e1:2c60 with SMTP id a640c23a62f3a-a7dc5148422mr690105766b.61.1722808512146; Sun, 04 Aug 2024 14:55:12 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:11 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , =?utf-8?q?Andr=C3=A9_Draszik?= , Peter Griffin , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 02/13] dt-bindings: clock: exynos7885: Add CMU_TOP PLL MUX indices Date: Sun, 4 Aug 2024 23:53:47 +0200 Message-ID: <20240804215458.404085-3-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145514_288287_C06129F2 X-CRM114-Status: GOOD ( 10.33 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add indices for missing MUX clocks from PLLs in CMU_TOP. Signed-off-by: David Virag --- include/dt-bindings/clock/exynos7885.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/exynos7885.h b/include/dt-bindings/clock/exynos7885.h index 54cfccff8508..4ce86810b10d 100644 --- a/include/dt-bindings/clock/exynos7885.h +++ b/include/dt-bindings/clock/exynos7885.h @@ -69,6 +69,8 @@ #define CLK_GOUT_FSYS_MMC_EMBD 58 #define CLK_GOUT_FSYS_MMC_SDIO 59 #define CLK_GOUT_FSYS_USB30DRD 60 +#define CLK_MOUT_SHARED0_PLL 61 +#define CLK_MOUT_SHARED1_PLL 62 /* CMU_CORE */ #define CLK_MOUT_CORE_BUS_USER 1 From patchwork Sun Aug 4 21:53:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752773 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 175EBC3DA7F for ; Sun, 4 Aug 2024 21:56:38 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=22MGiwOZaVvvB+mAWWAH4jx43Nml4qSHYlVq1bUyT+g=; b=j4rbIIEUg4wpeJ iu1ueF/eoZg9BhLZTKvYXLieiTDkoT7eWK76orb/hfyiDNBMy9TtpX4GSThUIExvZ5m42HdPCQPp0 Va1FvaeEImrWjeT4yCK1n13swvcyBur+VjR+tt2OToUdkdFcvH0/350kunaWRMIFXWpmRSSAkLPnt Yey493HcwaIu0RO0AcewTa26bGnMqajcR7Rj6hEgusRc9baQQHAuZUjhSBn9kjU541ruoBUpOvuYt n6ZuY3b/ZabGz//L1q8sY3uQNzJVaWo4up7RiRU78nXJ6UDfJoY+a3LJUDYCtaxR7fAJbb81PYSHK rnNyyCF8VCzJHUhUCnJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajDR-0000000Dzjn-30mm; Sun, 04 Aug 2024 21:56:37 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCB-0000000DzIW-0rB0; Sun, 04 Aug 2024 21:55:20 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5b8c2a6135dso2473960a12.1; Sun, 04 Aug 2024 14:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808517; x=1723413317; 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=BnqKBVLkVbPU4IXqUitU7Vb8AZX6hoKEj/nS2/Cpby8=; b=IuR5bPyVQY4awYz2oI07Tk2lM6QFNYn1LZfHIhK515djD+9A8rkrcoeJPFfyMxZ5RI jBbNusQjhk01HkAbF89GDcb3g7jxHlHoPBN62CAsscAjsTqwqGykU9boeiwkstH1qt5c tMdd0qsXAmsfEY3pDalNadQlLHZK+Oz84rLQ3ohXuzF57h4yulAbplnB181Gra8kuJzQ Y3CqD1rZzoD6bOXLbBBO9kUshPcKWwlgDWlgE/hXstO772wEjsi/Khn0VQ6+Pd0vyJNe GrdFu5njduelPhKwKA7LhYieZrR702XdHvAXHfaHcutZzppVMO/9iQeaApTLCGGHZOU8 VwDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808517; x=1723413317; 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=BnqKBVLkVbPU4IXqUitU7Vb8AZX6hoKEj/nS2/Cpby8=; b=pcA2s3Bkf/Fh7jWMSXt6Y/c28ZzXKnOfi9ikz2cFonPFKz3vnOzb2err31jdEW8AcI CrkSrbVB71LoSpO6TbvpnGPutkGWfiJlfPbJ7Uen8GVb7tHtIWmVN0RVMP55JlNCMzFi rZUdImdt3S+VqWMuMYga0DYBD4QTNC63e+ZQDSWT5cXskhKRi1Jl767PPJ3RoWkjfFFN 4yuihoUppXPbRrO1UGyHUSYR9AxFGgcZvBE8D1u5nqe4klD9qihE7yVPauhOV8qynmpo VXm8kuxqX9vLUvKhgCWnMLttL6eHC5+G8tc2vZZrf06OKxcfXM69hdNVIWPaEvUtI4CF TkQg== X-Forwarded-Encrypted: i=1; AJvYcCWkfye3+x7jPFAKIbh6lmaj0vCMaJTMnZjXe5G2MjQYILq5AmrC7augynVVvjxw1gXlsIw7/H2C3hKNHTn93PcQB/tF2tgeQejG9qfvzG1dkClPUvE= X-Gm-Message-State: AOJu0YyIYVlFmZ5+uXXrHTtFYcgE8pBNOOCsQTK2SDtiXT4SsnG908Bw WiPPW07ZB+kGE0RUzYKzMao1471x6s3z+2aX5n1g/2FifL1QxNR+ X-Google-Smtp-Source: AGHT+IFtygrQuiSBintHx5W6ocZLAzQsG+1XvtKEK77LBl6f8+VAzKFjAwdsj0j0dO3Bx/GbHi1UqQ== X-Received: by 2002:a17:907:2d06:b0:a7d:a080:bb7 with SMTP id a640c23a62f3a-a7dc4fdfe6dmr762216066b.36.1722808517365; Sun, 04 Aug 2024 14:55:17 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:17 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , =?utf-8?q?Andr=C3=A9_Draszik?= , Peter Griffin , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 03/13] dt-bindings: clock: exynos7885: Add indices for USB clocks Date: Sun, 4 Aug 2024 23:53:48 +0200 Message-ID: <20240804215458.404085-4-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145519_296346_0DCAB0BC X-CRM114-Status: GOOD ( 12.40 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Exynos7885 SoC has a DWC3 USB Controller with Exynos USB PHY which in theory supports USB3 SuperSpeed, but is only used as USB2 in all known devices. These, of course, need some clocks. Add indices for these clocks. Signed-off-by: David Virag --- include/dt-bindings/clock/exynos7885.h | 30 ++++++++++++++++---------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/include/dt-bindings/clock/exynos7885.h b/include/dt-bindings/clock/exynos7885.h index 4ce86810b10d..cfede84b46b9 100644 --- a/include/dt-bindings/clock/exynos7885.h +++ b/include/dt-bindings/clock/exynos7885.h @@ -134,16 +134,24 @@ #define CLK_GOUT_WDT1_PCLK 43 /* CMU_FSYS */ -#define CLK_MOUT_FSYS_BUS_USER 1 -#define CLK_MOUT_FSYS_MMC_CARD_USER 2 -#define CLK_MOUT_FSYS_MMC_EMBD_USER 3 -#define CLK_MOUT_FSYS_MMC_SDIO_USER 4 -#define CLK_GOUT_MMC_CARD_ACLK 5 -#define CLK_GOUT_MMC_CARD_SDCLKIN 6 -#define CLK_GOUT_MMC_EMBD_ACLK 7 -#define CLK_GOUT_MMC_EMBD_SDCLKIN 8 -#define CLK_GOUT_MMC_SDIO_ACLK 9 -#define CLK_GOUT_MMC_SDIO_SDCLKIN 10 -#define CLK_MOUT_FSYS_USB30DRD_USER 11 +#define CLK_MOUT_FSYS_BUS_USER 1 +#define CLK_MOUT_FSYS_MMC_CARD_USER 2 +#define CLK_MOUT_FSYS_MMC_EMBD_USER 3 +#define CLK_MOUT_FSYS_MMC_SDIO_USER 4 +#define CLK_GOUT_MMC_CARD_ACLK 5 +#define CLK_GOUT_MMC_CARD_SDCLKIN 6 +#define CLK_GOUT_MMC_EMBD_ACLK 7 +#define CLK_GOUT_MMC_EMBD_SDCLKIN 8 +#define CLK_GOUT_MMC_SDIO_ACLK 9 +#define CLK_GOUT_MMC_SDIO_SDCLKIN 10 +#define CLK_MOUT_FSYS_USB30DRD_USER 11 +#define CLK_MOUT_USB_PLL 12 +#define CLK_FOUT_USB_PLL 13 +#define CLK_FSYS_USB20PHY_CLKCORE 14 +#define CLK_FSYS_USB30DRD_ACLK_20PHYCTRL 15 +#define CLK_FSYS_USB30DRD_ACLK_30PHYCTRL_0 16 +#define CLK_FSYS_USB30DRD_ACLK_30PHYCTRL_1 17 +#define CLK_FSYS_USB30DRD_BUS_CLK_EARLY 18 +#define CLK_FSYS_USB30DRD_REF_CLK 19 #endif /* _DT_BINDINGS_CLOCK_EXYNOS_7885_H */ From patchwork Sun Aug 4 21:53:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752774 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 8B966C3DA64 for ; Sun, 4 Aug 2024 21:57:07 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=K+qWWUhUa7Tj2wveqcDMZ3b9vViiE0co71CU9PnSKsw=; b=Bz6z1InTV4rl2V ch2fj7BMStdOTJ4tWLKaXNvc82wRS56u+hI+MO9OuGQlqzY4bASW1BUdtWBVIZ20Ew6VyCDs/HmSY AcI0v0fK6tJsn8drHQjKE+RRW9ElJ9al0XfEce6oAJJLoreGlsh3IyENd8ppEEziIIW623ZLsrJuf Fdm4f4QZ+0jhHF/5nIc2WycNd8hWeaQwWCvF6oNzg1wu/g8Bigj2x0pL9lyt++CV1Bfu91MYKukLX 4obYLiaq3JE/tqCl1B7AZcUQ/dccKRotaC8EmoYGRb7UlULMglcoHBoV5/955ctSXqX18qSkDbcwM /QjI1y59JHl9b2PAkovg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajDv-0000000DztH-16Qg; Sun, 04 Aug 2024 21:57:07 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCG-0000000DzKT-1ZkC; Sun, 04 Aug 2024 21:55:25 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a7aabb71bb2so1240399266b.2; Sun, 04 Aug 2024 14:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808523; x=1723413323; 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=IAWeL7Nun9ZYhbxsfj7pwIcuKQrCXh/qT58VXqHCCDU=; b=c3murwA1VUXTPwKBA2OCeb28twdRfeKEpEKfgNlx2ZYz3A1tsBAMSFjfGQUUXeG875 GAi17D9TrKYsqgpEWyIFuM1wtLOhT2zLLLCiFlFBwXDckeqrkieATnb8HEaoy0FXJ7LU 1mb8cZiaWSjJaI+b3RrBHkZ8/A60Oc3i66CPC3oMNtDCPOWzqF87Zp8fyn0ihxKFeXVr uiu2ztfaSduCqRkytcgRq5UMzPbUmw+QZtVtT01GVSVpipv9Vl190cU6apweXsVrC+eR gOcSdO6/3/1oxBmg9nUk4WSqbbMGvhQAIIjGO/0bh2INW2UJHudicgyBG5gKGDkWBCgo OtWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808523; x=1723413323; 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=IAWeL7Nun9ZYhbxsfj7pwIcuKQrCXh/qT58VXqHCCDU=; b=jghWKAkNMtmG1NweasewN0Rvl4ma8lHIr+851lACNxKg/AcVlUQWdicsMuLo6RVVH+ ym02WZAr1KmkxJp9DG5bdODt0WtqZPs0qmtAC+3o9hfTx8LqENcvZA0tOwNKA26nAxvW hlmDYStbNWd1it67wvvEz7ZtowOOkRC7vBi14HTlIIPP4o1golFb7vhdus/qKapWNAb7 G4Md60Vrf86QpklxEQcMRZrXvJZRp3UpZvZ71wU581ZoJ5Y48fk1lCxaQcNQob3iH1bO Gx9Z55pmM4Nry/Y1fyJZ+FXv2VXDk2keJVtbehm1H/KVknC1nZJt6Pe2uOKmmJztCODf Cy2w== X-Forwarded-Encrypted: i=1; AJvYcCU1uotX5kEbkOF203hFvF2tjGYMOKc7gQuj+iY1kRkb7NQ4IKro7xJjKGedsftVZo2BrAFg6mL7Jxj/xMiq9dczrqD32e4gtQptlSzshR+6Q/wVbuQ= X-Gm-Message-State: AOJu0YyImXOzdUNmxN2BuWpvorf33QJhiwHkemB9YDnz/I99u4DKtaej Tz4hCpVx02bsz+5G9HbSOP6MAELC3aTQ0LTtx4s/erWxEe1TWlTZ X-Google-Smtp-Source: AGHT+IHgEEDrTSF0voUwvDDCfjCGSv0d/UaByu12LrTyy3FIYy3fv13CItLVvOLTPykh2j0xtVTI2w== X-Received: by 2002:a17:907:7207:b0:a7a:bc34:a4c9 with SMTP id a640c23a62f3a-a7dc5101505mr659446366b.69.1722808522604; Sun, 04 Aug 2024 14:55:22 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:22 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , Peter Griffin , =?utf-8?q?Andr=C3=A9_Draszik?= , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 04/13] dt-bindings: phy: samsung,usb3-drd-phy: Add Exynos7885 support Date: Sun, 4 Aug 2024 23:53:49 +0200 Message-ID: <20240804215458.404085-5-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145524_443812_C287053F X-CRM114-Status: GOOD ( 10.75 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Document Exynos7885 compatible. Exynos7885 USB PHY has two clocks (ref and phy) like Exynos850, which are already described in bindings. Signed-off-by: David Virag Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml index 16321cdd4919..bf993d738bce 100644 --- a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml +++ b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml @@ -30,6 +30,7 @@ properties: - samsung,exynos5420-usbdrd-phy - samsung,exynos5433-usbdrd-phy - samsung,exynos7-usbdrd-phy + - samsung,exynos7885-usbdrd-phy - samsung,exynos850-usbdrd-phy clocks: @@ -168,6 +169,7 @@ allOf: enum: - samsung,exynos5250-usbdrd-phy - samsung,exynos5420-usbdrd-phy + - samsung,exynos7885-usbdrd-phy - samsung,exynos850-usbdrd-phy then: properties: From patchwork Sun Aug 4 21:53:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752775 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 60F98C3DA7F for ; Sun, 4 Aug 2024 21:57:38 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MYGuTjjOLlf3V6JbJ2vKx9PAu/KmcTaEh1zsZuqDlMg=; b=cTPqZSCjEWWuum zlOz4ufmmETFNc7/+OQcJK6z/s1H57cCGTMyB1GKiSHNLOLt0iQ4hhTubfRkcBY8T2iF1fQpJHaXi r8u3mJBTAGzyLiioP3BDdVV7mvilXr/VHLiZ53eDNCVZr/INSTZX1P7U8w46gAnbC07FU1TColfDK VE5g/eLjBdG84DYz9w9g7uXAPOcKqVV92eFKh6bQjHQWk1OLwbgg64WjvQb5Cx4zQMll/Smz97GNF OuaITgPnv3sOQzAwFU7VqBZFNH+pCJzQfNY0a26uPTo/mnQHtycK2MalSzUUNj4gEO8HDoRU8PXSx kRSI3jFC9t4s0wXNKyCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajEQ-0000000E05B-0Oaw; Sun, 04 Aug 2024 21:57:38 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCL-0000000DzM7-1MtF; Sun, 04 Aug 2024 21:55:30 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5b391c8abd7so9589654a12.2; Sun, 04 Aug 2024 14:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808528; x=1723413328; 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=BxB3Qv/yoyAeLg7hVfHKYNZIp49LSkeK6anrEzvSYjQ=; b=UH9/7i+YzyD4yMi7jtLfVk1FMvciQUSOWRCedKZwhqE8Y89447vPdvPMRTPQ66APo/ 71EweDUAW0sBqtjGdrhBpE0NJPoOtZrWWR6HXbq2VWu+JDLlzJVlukj7rWbbI3VHtBsL dfS1iFoFe2e0kUdyRUrmysen4wYtcBGaGH1zET3w4hvteih9uN9HHm4W30Ig/cpA6pwr iOBrY3D4rO2MDt9xfRaaVygv5isze5Mr4L94LajWatC7ve5vqW0hEPvy8CL2aiMLuIrM SkUcfRqkIG89fZagzeCGedunZFIG6dPoID+ucBWq/azb5ImMEU60gbeXS9Y9QMZ1DavW gDtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808528; x=1723413328; 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=BxB3Qv/yoyAeLg7hVfHKYNZIp49LSkeK6anrEzvSYjQ=; b=YUVDq/NC/mUtUPosCk7Sn6samOk0yNrK2Y0mo+KIQm3D2qDyyahnVLXvzPXb7JodMh gqKnc0YperUEtFpLqNQBKs7XjXD+wnZHkk3DDjJPm0sAMltJTCxAQlOR9vPR6cMtoFp6 v3x/M0GOYTkXNSgiT+Ti8rJEdF5mDsULsq8ywBpJ2mGVD/lYgmgXdjKnQWmMBX244a8P G9hOTau8F2dY6VnSrUlPdUuPM7lsS856aA9HSZpbIVfmAyjmiBUn1VN2m+f7cWOKZfKy 7vjp6qR7cdNfrYjTSnCH67GGDpg34nQ3IqMDHa72YTnphXeD674WOv15fYO7R384C5iN HMgA== X-Forwarded-Encrypted: i=1; AJvYcCVK5YW2NZ5GGAyckqEOvsruSztOwuf91vRSaJCJy2zLO7dwOyAG8yxA4vqbOkJi+oDDNyFDJOi3HZ1esgh702jCDBOIkOp/d6uLysElV27i0PmEJsE= X-Gm-Message-State: AOJu0Yyk2fHuAR4ooOQf03boHFfbAtG/lvEGQhpJCdIqfJHhbZB6kFBq AnlEYDryEssybZT9lb2zI5gxZFVZxKM5/+hxNhdKbLMdNCgvcWRi X-Google-Smtp-Source: AGHT+IHyAbzAXerxEkx8MrhGM6CW/olnYbonBveOzbLRvGzA8ruC1oS65RHulC1eLDFEDhBwULvQ1w== X-Received: by 2002:a17:907:3204:b0:a72:69e8:f039 with SMTP id a640c23a62f3a-a7dc4da6ef2mr775771366b.12.1722808527755; Sun, 04 Aug 2024 14:55:27 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:27 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , =?utf-8?q?Andr=C3=A9_Draszik?= , Peter Griffin , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 05/13] dt-bindings: usb: samsung,exynos-dwc3: Add Exynos7885 support Date: Sun, 4 Aug 2024 23:53:50 +0200 Message-ID: <20240804215458.404085-6-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145529_520567_8BC81A34 X-CRM114-Status: GOOD ( 12.01 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Exynos7885 SoC has a DWC3 compatible USB controller, so it can reuse the existing Exynos glue layer. Clocks are the same as on Exynos850. Document Exynos7885 compatible. Signed-off-by: David Virag --- .../devicetree/bindings/usb/samsung,exynos-dwc3.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml index 2b3430cebe99..3ec849ef4bdb 100644 --- a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml @@ -16,6 +16,7 @@ properties: - samsung,exynos5250-dwusb3 - samsung,exynos5433-dwusb3 - samsung,exynos7-dwusb3 + - samsung,exynos7885-dwusb3 - samsung,exynos850-dwusb3 '#address-cells': @@ -124,7 +125,9 @@ allOf: properties: compatible: contains: - const: samsung,exynos850-dwusb3 + enum: + - samsung,exynos7885-dwusb3 + - samsung,exynos850-dwusb3 then: properties: clocks: From patchwork Sun Aug 4 21:53:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752776 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 471F7C3DA64 for ; Sun, 4 Aug 2024 21:58:07 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cEUqokCGl+y2zG2U+nSIgTHM74AT/EHGhq8Wwal5gFo=; b=NawkTCK0cU7AVV rwvmz7Jgc2vAfw3OeMcJ8PozGWfNJDgJhe2ahW2VXLx3Sim7Uq2Cp5AUtHYEUwBVU0ojjLapuxkmR RsNJZ56KrPyY90KXfHc4v9sNVBrxFdTx4GvH79MfR31i77uesGQ/7pFaSQtx0pKJj/p6zBd6i8J79 4aRsb2FszkomW7IpCM7wWCEjgRLf/yBWiVzuNvNrtO0d6EGn0EGtLfw96XDyA6zjUZNdQrL57r+Cs tmbInn48MF4RHKLiV2M3/RSw9/dofTLeSZv/4sBibzwMQrgdJTdUqG+TQDv6hSJK0Hk5i7675Tzke SDagRHz59QuBTjvhH9SA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajEs-0000000E0Dy-3eQK; Sun, 04 Aug 2024 21:58:06 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCR-0000000DzMz-1IRx; Sun, 04 Aug 2024 21:55:36 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-52f01b8738dso9448588e87.1; Sun, 04 Aug 2024 14:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808533; x=1723413333; 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=ohIik8tuxkZdOhXKBGYVU1TaY9NMG4VqeNOE6YapqQ4=; b=aEPBLKVJXmZRSRQwid4bkbKsgIcRztOAiNQRHHFFOtL3SGYMtp9KbR4kdqTgeFX2uB aA5SUeZWoVDEqYAOf68kEwfJ2JbnFVKkpPt4gryeXDZ4ttiOAiRVTJn3qQBYMEOAQ+4U 7/uHIqr+42xej129kqAZsp3cxmEnI3+LUc+E5aMMSqNGm9F2rwHpv8JoQZg2BWN0V4TJ ZTWhn9ddZA/ksWK3kVx0bOHAYxeTlRbVmIpvgWyVRT6Bxys1FDYCYTRCwPPaTzY/QB8M 15/W7y8BQNpg2PG8zUT+t1U3MhvaS0hikzUTX0OBOjR/6xXLHPwp44j4mXE3E6saPMgu RnPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808533; x=1723413333; 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=ohIik8tuxkZdOhXKBGYVU1TaY9NMG4VqeNOE6YapqQ4=; b=bHVJwVFo1VxEWaEUxwrTFqq3h5xLJC9S9qljkRyI1WOuVYNTGvVwouEc0DhMuTxEwn QbL7N5Hd74AT/DNhPXecJQfntWy+3aHS3+dmQ+2ncDyvMBrvFN/AGH7NmpnWlRGQYZor uEDrmcGECgpjgJPgl6z2iF+KgVfuXepSKnoSlqTRltRhxjGAKbBZu+IOSEO8w34ozsVx wqAy6+6V39PURjka/LPd60ffvqYpqTUpbwZIuhrebty4RIuxNLciin8SnrZM1iknpu+L Q9z6NXM8jwxiI30Y/iEfJfxrRWIBQ0Nvaf62POc53uoIlA9aBGJRmR7AOWz+7NBnYJxI HOpQ== X-Forwarded-Encrypted: i=1; AJvYcCWVBSfeSKOLhfks2CUjomddeLgnBURpQSsagxAulVqJXQosdLNiw0JaTaRDuIRi07JNxyYXki7L8e3d5266cX+z@lists.infradead.org X-Gm-Message-State: AOJu0Yzopgh12gU9D8U6nw7oVbxMdVxVmOJDc1YSb+RMaWx2MqtBP96B Mk66adtLNaNab5t0cYxZWwlAYtuJVfWOwng8qgjXVrtrkgOBDsUN X-Google-Smtp-Source: AGHT+IGf4XNWbs7YR4aHSGzZXOop9qGrIJwSKWyF5QLUzVLZlUFd//3fW5Z7Dds3H/8T66ieEG+8Fw== X-Received: by 2002:a05:6512:3041:b0:52c:cc38:592c with SMTP id 2adb3069b0e04-530bb30790emr6307202e87.0.1722808533083; Sun, 04 Aug 2024 14:55:33 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:32 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , =?utf-8?q?Andr=C3=A9_Draszik?= , Peter Griffin , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 06/13] clk: samsung: exynos7885: Update CLKS_NR_FSYS after bindings fix Date: Sun, 4 Aug 2024 23:53:51 +0200 Message-ID: <20240804215458.404085-7-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145535_372415_7138A116 X-CRM114-Status: GOOD ( 12.97 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Update CLKS_NR_FSYS to the proper value after a fix in DT bindings. This should always be the last clock in a CMU + 1. Signed-off-by: David Virag --- drivers/clk/samsung/clk-exynos7885.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk-exynos7885.c b/drivers/clk/samsung/clk-exynos7885.c index f7d7427a558b..87387d4cbf48 100644 --- a/drivers/clk/samsung/clk-exynos7885.c +++ b/drivers/clk/samsung/clk-exynos7885.c @@ -20,7 +20,7 @@ #define CLKS_NR_TOP (CLK_GOUT_FSYS_USB30DRD + 1) #define CLKS_NR_CORE (CLK_GOUT_TREX_P_CORE_PCLK_P_CORE + 1) #define CLKS_NR_PERI (CLK_GOUT_WDT1_PCLK + 1) -#define CLKS_NR_FSYS (CLK_GOUT_MMC_SDIO_SDCLKIN + 1) +#define CLKS_NR_FSYS (CLK_MOUT_FSYS_USB30DRD_USER + 1) /* ---- CMU_TOP ------------------------------------------------------------- */ From patchwork Sun Aug 4 21:53:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752777 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 47DB1C3DA64 for ; Sun, 4 Aug 2024 21:58:37 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=orpKex9kc6Bl0rbyt+x+IEtY7jR/9RlB58cpjLkAkBI=; b=O4zTORBKNA4SaF N92pKVHa+Cd0b1MdLhz2YQZxZP66AFsy8ri7EP/LgZX0XVzXSLfyThjP0DXJeGka4OAgq8c21wkUb /2ZqurrJ+21iYVxThj/LoBlF+oSr5HtLhEz91jUmALonYTz0d//k7KpiZu+4IXABcx5nmcesFGbna zA3wcwEzYAuReF7oV2lIc3NljHNS0TxUo5N9Wkp2g2yZlFSpep3jjjCTX6TOgAyueBoit11pJb4U6 MSuB2+17e0KO936zOuBBll07SCJShLnfAgazvZ6pNZGP+eRq+t7W7NKHHb3GiEd0MLviqCZ8Mv9XG Rk2GC11whSv8ykJvvIXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajFM-0000000E0Oj-47sJ; Sun, 04 Aug 2024 21:58:36 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCW-0000000DzP9-1Yfr; Sun, 04 Aug 2024 21:55:41 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a7a8e73b29cso814775966b.3; Sun, 04 Aug 2024 14:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808539; x=1723413339; 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=PylIu4FUXlrxZkJ16yikQYZXRyjRIiQcGN1Zbu3DKVI=; b=mmp+LKDHp3RMWA5GQ6kCyy+VcYL18pmby+9B1SKCgxXOkPg2pWRNYcEG6mfk/+JMs6 dTVPMZkSp9Tg8Idxm+XMK4CX2s6ZAGptWsNmo2clog7YGBSOTf8ZwRFO4BP/kBHnmDmL 9t4jM08Xa5dMuqMZ1de7IDuJ2hPzCMMIjt8+vm5zhiAR45wVovOE5HdjgRJNgSIXvN/z yKhznEubJIyPCkiE3k37osGZIGjCapQSz7/M3lEJfhPETN54eijolEMSZNT6bXCIOvz1 SeAsqhhxMOa03lbNqLssauDkxJDYGXz8Uv2cbk3Dfzs6RE7JCaOQUPYJQsNfuw+Tuz8W kOhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808539; x=1723413339; 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=PylIu4FUXlrxZkJ16yikQYZXRyjRIiQcGN1Zbu3DKVI=; b=pxGQ/CSCKqEU2m+WKIccW6laL2EWB4d6W80scvZGPDnerLsYtQMKNS08kvByT5P47c yN+QnBSwuiE58iKDjfbgPoN9rWXwgweEVT85iQCjUWni/h/RR6Bh3UW9qfwljqlPlmTR Y2/vrFktqBW0I0cPFifys9NAH73IQxsUEcZqM9g0yVqC6z0Nd2acBf26b5KduxKiul3r N8VToTZkaQqIv6OHuTA2Hg6NCnmIaGfobnSpG+jHVAWE9+kLIfZ6C7DIN/+a9l5ASJFU naVmnXxlymwQZUgowuxxqoRXQBqFPvZCgtWRm7cp5jF4D37GM3C+FyNg7yXnoLPNSUkN rNmA== X-Forwarded-Encrypted: i=1; AJvYcCXnUqVLg6u2trI/VkKXCl8Ho84hpsDAHAbGND93l9jvOVz/U8qWlA2WeQqZQN22aH/QJbaGPGGmNlyUsSTRVV40VX2KHyUwF5tunYhsEG0rKH5jGj8= X-Gm-Message-State: AOJu0Yz2khpqrInzIkuzRtftxaBWH5+T4lkDJNLrxdAEajtvh5QfxqIX hM+tz4AIPiI0vawErOhtFr9fmOCzbaXnckUjxTzw2Jx/I8FcYiO6PToTWzEl X-Google-Smtp-Source: AGHT+IFCXWpLgSy0HdFQC/k8f0PkI2xtHfzFl1y3lC9hTOOBbO3phvAsUzemOzvmYEc2XBt/IzotOA== X-Received: by 2002:a17:906:d25f:b0:a7d:391f:17af with SMTP id a640c23a62f3a-a7dc50a47c2mr719346366b.51.1722808538364; Sun, 04 Aug 2024 14:55:38 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:38 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , Peter Griffin , =?utf-8?q?Andr=C3=A9_Draszik?= , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 07/13] clk: samsung: exynos7885: Add missing MUX clocks from PLLs in CMU_TOP Date: Sun, 4 Aug 2024 23:53:52 +0200 Message-ID: <20240804215458.404085-8-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145540_435876_2F269CC8 X-CRM114-Status: GOOD ( 16.56 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org In Exynos7885 (and seemingly all modern Exynos SoCs) all PLLs have a MUX attached to them controlled by bit 4 in the PLL's CON0 register. These MUXes can select between OSCCLK or the PLL's output, essentially making the PLL bypassable. These weren't modeled in the driver because the vendor provided drivers didn't model it properly, instead setting them when updating the PMS values. Not having them modeled didn't cause any problems in this case, since these MUXes were set to the PLL's output by default, but this is not the case everywhere in this SoC. Signed-off-by: David Virag --- drivers/clk/samsung/clk-exynos7885.c | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos7885.c b/drivers/clk/samsung/clk-exynos7885.c index 87387d4cbf48..a0c9b7cc6942 100644 --- a/drivers/clk/samsung/clk-exynos7885.c +++ b/drivers/clk/samsung/clk-exynos7885.c @@ -17,7 +17,7 @@ #include "clk-exynos-arm64.h" /* NOTE: Must be equal to the last clock ID increased by one */ -#define CLKS_NR_TOP (CLK_GOUT_FSYS_USB30DRD + 1) +#define CLKS_NR_TOP (CLK_MOUT_SHARED1_PLL + 1) #define CLKS_NR_CORE (CLK_GOUT_TREX_P_CORE_PCLK_P_CORE + 1) #define CLKS_NR_PERI (CLK_GOUT_WDT1_PCLK + 1) #define CLKS_NR_FSYS (CLK_MOUT_FSYS_USB30DRD_USER + 1) @@ -162,6 +162,10 @@ static const struct samsung_pll_clock top_pll_clks[] __initconst = { NULL), }; +/* List of parent clocks for Muxes in CMU_TOP */ +PNAME(mout_shared0_pll_p) = { "oscclk", "fout_shared0_pll" }; +PNAME(mout_shared1_pll_p) = { "oscclk", "fout_shared1_pll" }; + /* List of parent clocks for Muxes in CMU_TOP: for CMU_CORE */ PNAME(mout_core_bus_p) = { "dout_shared0_div2", "dout_shared1_div2", "dout_shared0_div3", "dout_shared0_div3" }; @@ -189,6 +193,12 @@ PNAME(mout_fsys_mmc_sdio_p) = { "dout_shared0_div2", "dout_shared1_div2" }; PNAME(mout_fsys_usb30drd_p) = { "dout_shared0_div4", "dout_shared1_div4" }; static const struct samsung_mux_clock top_mux_clks[] __initconst = { + /* TOP */ + MUX(CLK_MOUT_SHARED0_PLL, "mout_shared0_pll", mout_shared0_pll_p, + PLL_CON0_PLL_SHARED0, 4, 1), + MUX(CLK_MOUT_SHARED1_PLL, "mout_shared1_pll", mout_shared1_pll_p, + PLL_CON0_PLL_SHARED1, 4, 1), + /* CORE */ MUX(CLK_MOUT_CORE_BUS, "mout_core_bus", mout_core_bus_p, CLK_CON_MUX_MUX_CLKCMU_CORE_BUS, 0, 2), @@ -232,17 +242,17 @@ static const struct samsung_mux_clock top_mux_clks[] __initconst = { static const struct samsung_div_clock top_div_clks[] __initconst = { /* TOP */ - DIV(CLK_DOUT_SHARED0_DIV2, "dout_shared0_div2", "fout_shared0_pll", + DIV(CLK_DOUT_SHARED0_DIV2, "dout_shared0_div2", "mout_shared0_pll", CLK_CON_DIV_PLL_SHARED0_DIV2, 0, 1), - DIV(CLK_DOUT_SHARED0_DIV3, "dout_shared0_div3", "fout_shared0_pll", + DIV(CLK_DOUT_SHARED0_DIV3, "dout_shared0_div3", "mout_shared0_pll", CLK_CON_DIV_PLL_SHARED0_DIV3, 0, 2), DIV(CLK_DOUT_SHARED0_DIV4, "dout_shared0_div4", "dout_shared0_div2", CLK_CON_DIV_PLL_SHARED0_DIV4, 0, 1), - DIV(CLK_DOUT_SHARED0_DIV5, "dout_shared0_div5", "fout_shared0_pll", + DIV(CLK_DOUT_SHARED0_DIV5, "dout_shared0_div5", "mout_shared0_pll", CLK_CON_DIV_PLL_SHARED0_DIV5, 0, 3), - DIV(CLK_DOUT_SHARED1_DIV2, "dout_shared1_div2", "fout_shared1_pll", + DIV(CLK_DOUT_SHARED1_DIV2, "dout_shared1_div2", "mout_shared1_pll", CLK_CON_DIV_PLL_SHARED1_DIV2, 0, 1), - DIV(CLK_DOUT_SHARED1_DIV3, "dout_shared1_div3", "fout_shared1_pll", + DIV(CLK_DOUT_SHARED1_DIV3, "dout_shared1_div3", "mout_shared1_pll", CLK_CON_DIV_PLL_SHARED1_DIV3, 0, 2), DIV(CLK_DOUT_SHARED1_DIV4, "dout_shared1_div4", "dout_shared1_div2", CLK_CON_DIV_PLL_SHARED1_DIV4, 0, 1), From patchwork Sun Aug 4 21:53:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752778 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 40648C3DA7F for ; Sun, 4 Aug 2024 21:59:07 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zUWMAR83QeUkYcDWx4M71lZzrCo68fwuGoKjZAp5Qe8=; b=kbJ7GTAL6m906R GWxJ0cvPM4iZWEvPl7P3jOyAxZUKtccuuTas19YEKLNkn1rNev5E2oQbIIjtYzypRYNz0Jke1fEz9 5jt/PmlqdfOH3FRCVmOGCqBJQ54l38q9dtcIrA9yc1TLXur1dB1/1wad95mlziBYa+OyFLvPfVM/+ GA+RQWuBls0ABmDVEpakBSKzcANWmeHma4bkMzc9IbyGjm2XHOgQOHKhJyqMkwoH8ic/3K1fJQXr7 c9BBZpRoTHQta+kRuLHmyUHDyQyjbFK4mQG6pFLLz4+AgRMTz+sJuCOR0TCjPo2wCxtWwmn6+SyqB wwCpZQ7t3gaoD1sRwuRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajFq-0000000E0Yi-4394; Sun, 04 Aug 2024 21:59:06 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCb-0000000DzRv-2Egz; Sun, 04 Aug 2024 21:55:46 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a7a94aa5080so359749966b.3; Sun, 04 Aug 2024 14:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808544; x=1723413344; 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=/Kr9OUWJu3zpHtEvcQkSwe6meHxvcJJnyUk+tmEInzk=; b=adB+AlLkGlQ50MVIQzCtj4BCrAN/TgLNdrk/sypyYpMni2eCO0BdUNWbq5hsNVeXC1 GRyEScaDZ3cXEjBIo/1MXRvegkEbiU8M8ldSqOiuTIb3uR1IZZQhqpVWej8PCVRo+Suu i80mbSlbWEsNndSWsUgfx+MEK5R8rT4d/J7/f0wxZnbdzgQzmWKAlQ3Yj4m3kGQvHHbB c8KVLPilc8Fy664twkFyANcq36l3VHRLphcW9O0MnyIVctYNuJdmTcdu6xTCjgWuFeqV tbEHNSzwkHtBXGYMutB3EHmjLC2WSRyy4mMzp6JcI3V2bKYdFuQSJ4teo3REW1m081zw ERFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808544; x=1723413344; 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=/Kr9OUWJu3zpHtEvcQkSwe6meHxvcJJnyUk+tmEInzk=; b=qTpX+LKdDT6fa6H0tm1RySVVnihgklXidYvb4TaDBfRJSHDEsqYLYzZkOdr8C6d6P+ +eJogVgGbT023HY6XUJHoyRUPM2rv+DStiPXlPBVyT9bv61+7tXvnXv0tVqTS2JZ4z+N 2uI0WTU8NCp1ssU1uOBrbN/PhzqJCihPWatyZ+JjH1WELNDjRTekGbs4u/c8jgR1XRDU ckLS7X5lLd35Hch85U39OiCnkddVpw3VvVfOY22VhwGCfGJXgAHjSK7bIbfDYzzL8ok1 IEUipdeDdjuvOBs9cOqyrcZbWK2z6zeLxFNeMkU7xKSX59bdXPYdT5R5AdJuArHXftUf fpdA== X-Forwarded-Encrypted: i=1; AJvYcCU5mPG0tXJMv4DwGQLKufqXHDy1f21QyeSOeJ5THLqjpoEYVuRWWPWQdfarovfkThA4obzXv5GMqNgzkrmTp2tfAVFuiHh4opN4HUZ9aqDAFGQ4qdc= X-Gm-Message-State: AOJu0YzKObJm0Ow4wxoAMiXWit2dJeJVrmUnLiJ31HuQPN/Hrr0Zresz btUaT5MGO3bANl+bQckYTlaUed8Yb/4+JjR5w5nM57XSvzGcyKTW X-Google-Smtp-Source: AGHT+IGa5nC1Rod9C1LgjK7SeiNLsR+u3R/s3yoxrcJTPD4mCFyFTsvxjXR/YMhGhKGnpQz0KnmiGQ== X-Received: by 2002:a17:906:fe0c:b0:a77:cf9d:f495 with SMTP id a640c23a62f3a-a7dc508d3e0mr701470466b.40.1722808543592; Sun, 04 Aug 2024 14:55:43 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:43 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , Peter Griffin , =?utf-8?q?Andr=C3=A9_Draszik?= , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 08/13] clk: samsung: clk-pll: Add support for pll_1418x Date: Sun, 4 Aug 2024 23:53:53 +0200 Message-ID: <20240804215458.404085-9-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145545_605436_28CB43CE X-CRM114-Status: GOOD ( 17.03 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org pll1418x is used in Exynos7885 SoC for USB PHY clock. Operation-wise it is very similar to pll0822x, except that MDIV is only 9 bits wide instead of 10, and we use the CON1 register in the PLL macro's "con" parameter instead of CON3 like this: PLL(pll_1418x, CLK_FOUT_USB_PLL, "fout_usb_pll", "oscclk", PLL_LOCKTIME_PLL_USB, PLL_CON0_PLL_USB, pll_usb_rate_table), Technically the PLL should work fine with pll0822x code if the PLL tables are correct, but it's more "correct" to actually update the mask. Signed-off-by: David Virag --- drivers/clk/samsung/clk-pll.c | 20 ++++++++++++++++---- drivers/clk/samsung/clk-pll.h | 1 + 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/drivers/clk/samsung/clk-pll.c b/drivers/clk/samsung/clk-pll.c index 4be879ab917e..c61a2810737c 100644 --- a/drivers/clk/samsung/clk-pll.c +++ b/drivers/clk/samsung/clk-pll.c @@ -430,6 +430,9 @@ static const struct clk_ops samsung_pll36xx_clk_min_ops = { #define PLL0822X_LOCK_STAT_SHIFT (29) #define PLL0822X_ENABLE_SHIFT (31) +/* PLL1418x is similar to PLL0822x, except that MDIV is one bit smaller */ +#define PLL1418X_MDIV_MASK (0x1FF) + static unsigned long samsung_pll0822x_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) { @@ -438,7 +441,10 @@ static unsigned long samsung_pll0822x_recalc_rate(struct clk_hw *hw, u64 fvco = parent_rate; pll_con3 = readl_relaxed(pll->con_reg); - mdiv = (pll_con3 >> PLL0822X_MDIV_SHIFT) & PLL0822X_MDIV_MASK; + if (pll->type != pll_1418x) + mdiv = (pll_con3 >> PLL0822X_MDIV_SHIFT) & PLL0822X_MDIV_MASK; + else + mdiv = (pll_con3 >> PLL0822X_MDIV_SHIFT) & PLL1418X_MDIV_MASK; pdiv = (pll_con3 >> PLL0822X_PDIV_SHIFT) & PLL0822X_PDIV_MASK; sdiv = (pll_con3 >> PLL0822X_SDIV_SHIFT) & PLL0822X_SDIV_MASK; @@ -468,9 +474,14 @@ static int samsung_pll0822x_set_rate(struct clk_hw *hw, unsigned long drate, /* Change PLL PMS values */ pll_con3 = readl_relaxed(pll->con_reg); - pll_con3 &= ~((PLL0822X_MDIV_MASK << PLL0822X_MDIV_SHIFT) | - (PLL0822X_PDIV_MASK << PLL0822X_PDIV_SHIFT) | - (PLL0822X_SDIV_MASK << PLL0822X_SDIV_SHIFT)); + if (pll->type != pll_1418x) + pll_con3 &= ~((PLL0822X_MDIV_MASK << PLL0822X_MDIV_SHIFT) | + (PLL0822X_PDIV_MASK << PLL0822X_PDIV_SHIFT) | + (PLL0822X_SDIV_MASK << PLL0822X_SDIV_SHIFT)); + else + pll_con3 &= ~((PLL1418X_MDIV_MASK << PLL0822X_MDIV_SHIFT) | + (PLL0822X_PDIV_MASK << PLL0822X_PDIV_SHIFT) | + (PLL0822X_SDIV_MASK << PLL0822X_SDIV_SHIFT)); pll_con3 |= (rate->mdiv << PLL0822X_MDIV_SHIFT) | (rate->pdiv << PLL0822X_PDIV_SHIFT) | (rate->sdiv << PLL0822X_SDIV_SHIFT); @@ -1317,6 +1328,7 @@ static void __init _samsung_clk_register_pll(struct samsung_clk_provider *ctx, init.ops = &samsung_pll35xx_clk_ops; break; case pll_1417x: + case pll_1418x: case pll_0818x: case pll_0822x: case pll_0516x: diff --git a/drivers/clk/samsung/clk-pll.h b/drivers/clk/samsung/clk-pll.h index ffd3d52c0dec..1efbe4c446d0 100644 --- a/drivers/clk/samsung/clk-pll.h +++ b/drivers/clk/samsung/clk-pll.h @@ -30,6 +30,7 @@ enum samsung_pll_type { pll_2650x, pll_2650xx, pll_1417x, + pll_1418x, pll_1450x, pll_1451x, pll_1452x, From patchwork Sun Aug 4 21:53:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752779 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 5F139C3DA7F for ; Sun, 4 Aug 2024 21:59:37 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yuRaZYU9Vf9gNOU0ikdrGv32RfrV2NMvOwUWXsa29HM=; b=AsS9SX8dUpyq3M 8g6FnyhLPd4Mjpvh7CnXl7yeSLnjGc3iXVVUoQ+FUSZ250OdYxIiqm2/rEKW1i3sv91Mw3Gt4WK1+ HQU0qFzP/0YKYvYIVT9Vg48i9L1YLulyvyv/ppryahBypdlHlMUFE90cESyuK6mUeEmVqUnULHNkk ePBgwrZD75EOVRB/lJ8RM/Igv8iSv+G85+hAUzA3fgw8/zZRA9PGphNAxDMdyfM2L8NSEYoCnog/+ j+X9xNEjZBOQeztQTNlWloyeS87o17XPnQo8eug7un1ngcSh1ixZTuAR9qcXQMMy1B3+aRQq4Dew8 htuxWeTcR1r6p1PpH6Ag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajGL-0000000E0ib-0DLy; Sun, 04 Aug 2024 21:59:37 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCh-0000000DzT2-015h; Sun, 04 Aug 2024 21:55:52 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a7aac70e30dso330327466b.1; Sun, 04 Aug 2024 14:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808549; x=1723413349; 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=7LiFeuD7Lh8CbdxP7qC+zRPV9T1KjTmFlYXzr7Hej/8=; b=OCqbJCOR8A2+I8Q7rof1a0Cs+ZuWnfAUX0vMTeSY/CamaAaxWfjfwcmn1FG9claoPT 1UFLNzqGOPhx8w1/2CfwxgWclnVKSSYJj10i5jlhCz4a3fIINQ6MncMBAjWR2kb145Xl QjVmwzletCj4ebN6/0JIORdz3V6jQzmT/ygFl5h8LwAlpjbCe12qbhFrghtGIY4+kzEB T1PBHKgs+D2Gctso63L1yiA7/fc74wL2AwKZp3ej3Gh1lUL5XamZF5GMUsjipP6sbXA1 WHh+co+T2kEs/hWZ6XoylXHiJ1CI3DjtOPGzkQt6M3hShRigqHoqkOpxoAS6Zi/wMDMm oElA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808549; x=1723413349; 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=7LiFeuD7Lh8CbdxP7qC+zRPV9T1KjTmFlYXzr7Hej/8=; b=VZj6Wd4WpEt0N8s21yJMr0Ckqb2cQkFGj0f18KkHYZcZVkJpddNfgKCPG3xrBHheaW 3C65F8X5Lch4s1AMLAUNc8DbWJzyJou0t9dNmqflkvEDfFVfKGziWIVs5Pi+noNaanhK pfq1QBJMzZAyDc4DxpCoXD8qtoWNfKGfCGKmgiBS71OjYnSjt8CZF2Tv6Y4OdKp8C/JX ZK1pTXRUoR2jIqik/wq2UNbGJeRKbaizeVmPfylmdU1PfasueZ0exwKLL5hpPDZUljRn /7L4Jm5Bnh2EcrdCackm5W6iCEE5skFU1FptYQM+u9V5ZUcrT0INywZ7Jyew2ntOPWnK i3wA== X-Forwarded-Encrypted: i=1; AJvYcCXPvTnhq8onfZLzzSh3giq+rkpqdFs5oaQk0+jM5bIHhqkWQDdVPO0e4x3pZgVW89AYllfNAdygFBsLGueHDpxjVxtGEMTUbo69bZrnmMbsqNC2yh4= X-Gm-Message-State: AOJu0YwUIlxGfqUQ1GEVNPH+eOoBOrOIBaxsobHHimPU6tRMJSjy9YM9 ergwGKxD95OCrWzZ8U+oKjQ41fRJrUcBniRoWFhYVws52jkpK1wD X-Google-Smtp-Source: AGHT+IEKN70BYeMW7wJVS7P3SD6EXI6/VsIuEQuswfFLL8lEQzYCSy9ZqIS3EMAs+17voEHk2RUS7w== X-Received: by 2002:a17:907:6096:b0:a7a:a892:8e05 with SMTP id a640c23a62f3a-a7dc5070840mr776870966b.33.1722808548962; Sun, 04 Aug 2024 14:55:48 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:48 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , Peter Griffin , =?utf-8?q?Andr=C3=A9_Draszik?= , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 09/13] clk: samsung: exynos7885: Add USB related clocks to CMU_FSYS Date: Sun, 4 Aug 2024 23:53:54 +0200 Message-ID: <20240804215458.404085-10-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145551_076733_AF86EEF1 X-CRM114-Status: GOOD ( 14.33 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Exynos7885 SoC has a DWC3 USB Controller with Exynos USB PHY which in theory supports USB3 SuperSpeed, but is only used as USB2 in all known devices. These clocks are needed for everything related to USB. While at it, also remove the CLK_SET_RATE_PARENT capability of CLK_MOUT_FSYS_USB30DRD_USER, since it's not actually needed. Signed-off-by: David Virag --- drivers/clk/samsung/clk-exynos7885.c | 73 ++++++++++++++++++++++------ 1 file changed, 59 insertions(+), 14 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos7885.c b/drivers/clk/samsung/clk-exynos7885.c index a0c9b7cc6942..637257a6f10e 100644 --- a/drivers/clk/samsung/clk-exynos7885.c +++ b/drivers/clk/samsung/clk-exynos7885.c @@ -20,7 +20,7 @@ #define CLKS_NR_TOP (CLK_MOUT_SHARED1_PLL + 1) #define CLKS_NR_CORE (CLK_GOUT_TREX_P_CORE_PCLK_P_CORE + 1) #define CLKS_NR_PERI (CLK_GOUT_WDT1_PCLK + 1) -#define CLKS_NR_FSYS (CLK_MOUT_FSYS_USB30DRD_USER + 1) +#define CLKS_NR_FSYS (CLK_FSYS_USB30DRD_REF_CLK + 1) /* ---- CMU_TOP ------------------------------------------------------------- */ @@ -686,38 +686,66 @@ static const struct samsung_cmu_info core_cmu_info __initconst = { /* ---- CMU_FSYS ------------------------------------------------------------ */ /* Register Offset definitions for CMU_FSYS (0x13400000) */ -#define PLL_CON0_MUX_CLKCMU_FSYS_BUS_USER 0x0100 -#define PLL_CON0_MUX_CLKCMU_FSYS_MMC_CARD_USER 0x0120 -#define PLL_CON0_MUX_CLKCMU_FSYS_MMC_EMBD_USER 0x0140 -#define PLL_CON0_MUX_CLKCMU_FSYS_MMC_SDIO_USER 0x0160 -#define PLL_CON0_MUX_CLKCMU_FSYS_USB30DRD_USER 0x0180 -#define CLK_CON_GAT_GOUT_FSYS_MMC_CARD_I_ACLK 0x2030 -#define CLK_CON_GAT_GOUT_FSYS_MMC_CARD_SDCLKIN 0x2034 -#define CLK_CON_GAT_GOUT_FSYS_MMC_EMBD_I_ACLK 0x2038 -#define CLK_CON_GAT_GOUT_FSYS_MMC_EMBD_SDCLKIN 0x203c -#define CLK_CON_GAT_GOUT_FSYS_MMC_SDIO_I_ACLK 0x2040 -#define CLK_CON_GAT_GOUT_FSYS_MMC_SDIO_SDCLKIN 0x2044 +#define PLL_LOCKTIME_PLL_USB 0x0000 +#define PLL_CON0_MUX_CLKCMU_FSYS_BUS_USER 0x0100 +#define PLL_CON0_MUX_CLKCMU_FSYS_MMC_CARD_USER 0x0120 +#define PLL_CON0_MUX_CLKCMU_FSYS_MMC_EMBD_USER 0x0140 +#define PLL_CON0_MUX_CLKCMU_FSYS_MMC_SDIO_USER 0x0160 +#define PLL_CON0_MUX_CLKCMU_FSYS_USB30DRD_USER 0x0180 +#define PLL_CON0_PLL_USB 0x01a0 +#define CLK_CON_GAT_CLK_FSYS_USB20PHY_CLKCORE 0x200c +#define CLK_CON_GAT_GOUT_FSYS_MMC_CARD_I_ACLK 0x2030 +#define CLK_CON_GAT_GOUT_FSYS_MMC_CARD_SDCLKIN 0x2034 +#define CLK_CON_GAT_GOUT_FSYS_MMC_EMBD_I_ACLK 0x2038 +#define CLK_CON_GAT_GOUT_FSYS_MMC_EMBD_SDCLKIN 0x203c +#define CLK_CON_GAT_GOUT_FSYS_MMC_SDIO_I_ACLK 0x2040 +#define CLK_CON_GAT_GOUT_FSYS_MMC_SDIO_SDCLKIN 0x2044 +#define CLK_CON_GAT_GOUT_FSYS_USB30DRD_ACLK_20PHYCTRL 0x2068 +#define CLK_CON_GAT_GOUT_FSYS_USB30DRD_ACLK_30PHYCTRL_0 0x206c +#define CLK_CON_GAT_GOUT_FSYS_USB30DRD_ACLK_30PHYCTRL_1 0x2070 +#define CLK_CON_GAT_GOUT_FSYS_USB30DRD_BUS_CLK_EARLY 0x2074 +#define CLK_CON_GAT_GOUT_FSYS_USB30DRD_REF_CLK 0x2078 static const unsigned long fsys_clk_regs[] __initconst = { + PLL_LOCKTIME_PLL_USB, PLL_CON0_MUX_CLKCMU_FSYS_BUS_USER, PLL_CON0_MUX_CLKCMU_FSYS_MMC_CARD_USER, PLL_CON0_MUX_CLKCMU_FSYS_MMC_EMBD_USER, PLL_CON0_MUX_CLKCMU_FSYS_MMC_SDIO_USER, PLL_CON0_MUX_CLKCMU_FSYS_USB30DRD_USER, + PLL_CON0_PLL_USB, + CLK_CON_GAT_CLK_FSYS_USB20PHY_CLKCORE, CLK_CON_GAT_GOUT_FSYS_MMC_CARD_I_ACLK, CLK_CON_GAT_GOUT_FSYS_MMC_CARD_SDCLKIN, CLK_CON_GAT_GOUT_FSYS_MMC_EMBD_I_ACLK, CLK_CON_GAT_GOUT_FSYS_MMC_EMBD_SDCLKIN, CLK_CON_GAT_GOUT_FSYS_MMC_SDIO_I_ACLK, CLK_CON_GAT_GOUT_FSYS_MMC_SDIO_SDCLKIN, + CLK_CON_GAT_GOUT_FSYS_USB30DRD_ACLK_20PHYCTRL, + CLK_CON_GAT_GOUT_FSYS_USB30DRD_ACLK_30PHYCTRL_0, + CLK_CON_GAT_GOUT_FSYS_USB30DRD_ACLK_30PHYCTRL_1, + CLK_CON_GAT_GOUT_FSYS_USB30DRD_BUS_CLK_EARLY, + CLK_CON_GAT_GOUT_FSYS_USB30DRD_REF_CLK, }; +static const struct samsung_pll_rate_table pll_usb_rate_table[] __initconst = { + PLL_35XX_RATE(26 * MHZ, 50000000U, 400, 13, 4), +}; + +static const struct samsung_pll_clock fsys_pll_clks[] __initconst = { + PLL(pll_1418x, CLK_FOUT_USB_PLL, "fout_usb_pll", "oscclk", + PLL_LOCKTIME_PLL_USB, PLL_CON0_PLL_USB, + pll_usb_rate_table), +}; + + /* List of parent clocks for Muxes in CMU_FSYS */ PNAME(mout_fsys_bus_user_p) = { "oscclk", "dout_fsys_bus" }; PNAME(mout_fsys_mmc_card_user_p) = { "oscclk", "dout_fsys_mmc_card" }; PNAME(mout_fsys_mmc_embd_user_p) = { "oscclk", "dout_fsys_mmc_embd" }; PNAME(mout_fsys_mmc_sdio_user_p) = { "oscclk", "dout_fsys_mmc_sdio" }; PNAME(mout_fsys_usb30drd_user_p) = { "oscclk", "dout_fsys_usb30drd" }; +PNAME(mout_usb_pll_p) = { "oscclk", "fout_usb_pll" }; static const struct samsung_mux_clock fsys_mux_clks[] __initconst = { MUX(CLK_MOUT_FSYS_BUS_USER, "mout_fsys_bus_user", mout_fsys_bus_user_p, @@ -731,12 +759,16 @@ static const struct samsung_mux_clock fsys_mux_clks[] __initconst = { MUX_F(CLK_MOUT_FSYS_MMC_SDIO_USER, "mout_fsys_mmc_sdio_user", mout_fsys_mmc_sdio_user_p, PLL_CON0_MUX_CLKCMU_FSYS_MMC_SDIO_USER, 4, 1, CLK_SET_RATE_PARENT, 0), - MUX_F(CLK_MOUT_FSYS_USB30DRD_USER, "mout_fsys_usb30drd_user", + MUX(CLK_MOUT_FSYS_USB30DRD_USER, "mout_fsys_usb30drd_user", mout_fsys_usb30drd_user_p, PLL_CON0_MUX_CLKCMU_FSYS_USB30DRD_USER, - 4, 1, CLK_SET_RATE_PARENT, 0), + 4, 1), + nMUX_F(CLK_MOUT_USB_PLL, "mout_usb_pll", mout_usb_pll_p, + PLL_CON0_PLL_USB, 4, 1, CLK_SET_RATE_PARENT, 0), }; static const struct samsung_gate_clock fsys_gate_clks[] __initconst = { + GATE(CLK_FSYS_USB20PHY_CLKCORE, "clk_fsys_usb20phy_clkcore", "mout_usb_pll", + CLK_CON_GAT_CLK_FSYS_USB20PHY_CLKCORE, 21, CLK_SET_RATE_PARENT, 0), GATE(CLK_GOUT_MMC_CARD_ACLK, "gout_mmc_card_aclk", "mout_fsys_bus_user", CLK_CON_GAT_GOUT_FSYS_MMC_CARD_I_ACLK, 21, 0, 0), GATE(CLK_GOUT_MMC_CARD_SDCLKIN, "gout_mmc_card_sdclkin", @@ -752,9 +784,22 @@ static const struct samsung_gate_clock fsys_gate_clks[] __initconst = { GATE(CLK_GOUT_MMC_SDIO_SDCLKIN, "gout_mmc_sdio_sdclkin", "mout_fsys_mmc_sdio_user", CLK_CON_GAT_GOUT_FSYS_MMC_SDIO_SDCLKIN, 21, CLK_SET_RATE_PARENT, 0), + GATE(CLK_FSYS_USB30DRD_ACLK_20PHYCTRL, "clk_fsys_usb30drd_aclk_20phyctrl", + "mout_fsys_bus_user", CLK_CON_GAT_GOUT_FSYS_USB30DRD_ACLK_20PHYCTRL, 21, 0, 0), + GATE(CLK_FSYS_USB30DRD_ACLK_30PHYCTRL_0, "clk_fsys_usb30drd_aclk_30phyctrl_0", + "mout_fsys_bus_user", CLK_CON_GAT_GOUT_FSYS_USB30DRD_ACLK_30PHYCTRL_0, 21, 0, 0), + GATE(CLK_FSYS_USB30DRD_ACLK_30PHYCTRL_1, "clk_fsys_usb30drd_aclk_30phyctrl_1", + "mout_fsys_bus_user", CLK_CON_GAT_GOUT_FSYS_USB30DRD_ACLK_30PHYCTRL_1, 21, 0, 0), + GATE(CLK_FSYS_USB30DRD_BUS_CLK_EARLY, "clk_fsys_usb30drd_bus_clk_early", + "mout_fsys_bus_user", CLK_CON_GAT_GOUT_FSYS_USB30DRD_BUS_CLK_EARLY, 21, 0, 0), + GATE(CLK_FSYS_USB30DRD_REF_CLK, "clk_fsys_usb30drd_ref_clk", "mout_fsys_usb30drd_user", + CLK_CON_GAT_GOUT_FSYS_USB30DRD_REF_CLK, 21, 0, 0), + }; static const struct samsung_cmu_info fsys_cmu_info __initconst = { + .pll_clks = fsys_pll_clks, + .nr_pll_clks = ARRAY_SIZE(fsys_pll_clks), .mux_clks = fsys_mux_clks, .nr_mux_clks = ARRAY_SIZE(fsys_mux_clks), .gate_clks = fsys_gate_clks, From patchwork Sun Aug 4 21:53:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752780 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 33306C3DA7F for ; Sun, 4 Aug 2024 22:00:07 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nAeAoyaE0qxnVoL7u5tSJQ50nV2ahi9MfBZWHju/pG0=; b=y9srxn+LRlua+5 RMRu8G2I7C564Xd8XW6XFa3ZfLBmYEIfVEgM4gxW7jZ5DPeQwdMo3Oa1QI3ktXz0Y1AWOJV+uCZU1 Xjj/BByKs9hvw1DkDoqXy+eCw+24YCgSPguQCuSurxHqUjPbKxqUfnocj38hT6BB0ugxQswHLy5Js oEBf31ow2uTuzeGxdPEp1saDp3PUNsR20omR/ibErcMkXNzz8sZkVZVDYLxMuezVx4lKYsFcsoenw 9ragtS6SN95eR4JkPWCZYQBhwuUw8qPpwPeZEGjTPSdvPOS1dGViAUjh5ats7dnV2qw8BU8vJ86Ri 4l5DAoPU8UXYHYQyzBEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajGo-0000000E0sA-3mFY; Sun, 04 Aug 2024 22:00:06 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCm-0000000DzUM-3kt4; Sun, 04 Aug 2024 21:55:58 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-52f0277daa5so15446901e87.0; Sun, 04 Aug 2024 14:55:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808554; x=1723413354; 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=2mrhFPOA10bN9OR7jponwlQQntJxF13+NNdEHk1/zbE=; b=XCHkgUNPqol2DlaOnGr2SFjngFCkSeBFhWeY4wqRL3yhiwp6e0f6Z7u8Aj5nYkhRc6 RTRWWAbJ+uOnW0mkNnzLLZNzeOkKVgV4cxEFmHTQMte+yM/txvTsV1f6dmIX1/f84a9q mheVIsRWc5z6rGRkHuVDgBJexOHXx3i2H8zly41y4/HREViM5QlTgiKoOEtx/zgAX+m8 mv0LmjtvtXd2XyvN6/lNRSE2tonpiyU3tRGILstq+3DBgzL2nVPx1YWl3QRvcLPvIcPJ DV8x18vPb1RORo70ZWLtfhLiYlwR9rTEJE+hDyxja8Z8dI+le2fU6v40AaexKn4unVsd rq6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808554; x=1723413354; 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=2mrhFPOA10bN9OR7jponwlQQntJxF13+NNdEHk1/zbE=; b=f/hM8/6RI/m4Ylnlx63BoLgktaYIw36c7+1ITfi7kjZX6RTT1IgOzmf6J2NZsldbje qZiTrC1NowG7/QrLvDY05qmItLorOJGGaJuoAyz8u8cngLfczS3PxqSWm6QdbG8aGcO8 B3coS3J2QA8LA1BTzkrupNvIhfVUEDRx8V7BoSCgLSmxI4BPEhGVAaUNodiARI06e31T U1fLWkHsADBL+T2zUqRuHsX0ao1QU5f73tTbu2y56yvaT7X4N3oRLzBPUeQmcFPnhdeR Xr3wr+Y9tQGT3oa1oV2SiHA9Yu1WMA9iaCQw3NZbwL14oZuMwIQVUSLFY/rKzPw7W/ck dByQ== X-Forwarded-Encrypted: i=1; AJvYcCUNmH+Qls2PexzNZcHjgq7iyyIuU1HbJXBQJNM7ZvbHK3VWNjw4L39W2xYSCSOP+RkyI7FeglVAz5pwBLRKN3cUGKb3IBY96yzYnaHiICdH9OmTO3o= X-Gm-Message-State: AOJu0Ywns5nNYmzjSq0I7PGax7UPF9mO63AhMRHNJSQh6AQg7jzS0MO+ mAPwkJrcqRCDQmrFcOD+eW4hvVqfrP+SjFWDuHx1or0eQXB9DTyV1pW6PFLT X-Google-Smtp-Source: AGHT+IEGWbiEQg/exi1Z48CX1tnMKkyEbNXIAJdnBvBNQOjhcm8r0tNUiJsfxT1egdx0cOSk4VH1ug== X-Received: by 2002:a05:6512:3f27:b0:52e:faf0:410 with SMTP id 2adb3069b0e04-530bb366727mr6856914e87.1.1722808554282; Sun, 04 Aug 2024 14:55:54 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:53 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , =?utf-8?q?Andr=C3=A9_Draszik?= , Peter Griffin , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 10/13] usb: dwc3: exynos: Add support for Exynos7885 Date: Sun, 4 Aug 2024 23:53:55 +0200 Message-ID: <20240804215458.404085-11-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145556_956335_DD7D4CE1 X-CRM114-Status: GOOD ( 12.33 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add Exynos7885 compatible string. As 7885 has the same clocks as 850, it can reuse the data for Exynos850. Signed-off-by: David Virag --- drivers/usb/dwc3/dwc3-exynos.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 9a6e988d165a..5cd4dc2e0a67 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++ b/drivers/usb/dwc3/dwc3-exynos.c @@ -185,6 +185,9 @@ static const struct of_device_id exynos_dwc3_match[] = { }, { .compatible = "samsung,exynos7-dwusb3", .data = &exynos7_drvdata, + }, { + .compatible = "samsung,exynos7885-dwusb3", + .data = &exynos850_drvdata, }, { .compatible = "samsung,exynos850-dwusb3", .data = &exynos850_drvdata, From patchwork Sun Aug 4 21:53:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752781 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 21F97C3DA64 for ; Sun, 4 Aug 2024 22:00: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5G+LsmPUw6FM85AqZOZnrIUDwLBGOsbWtTRBdicHbK8=; b=PWI1/b44mvkADk 99NVhhguz/8K0M9YyAvgJn5Sn5Z+ZQUBT4lqLnMkYn68ia40yn9qqBGQ32LYv3dkZm4gWbWC7qN5e C1ZMxYzINKkD8dX6HIEulc73pRy1PSr0T2eUKGG1/wacV7jwgYedwmiwYtgRlteLFm2/RY6kBjOEi faYoTxVl061iDpQONMr98nEZ8sOu8mqkWLnl3L4Bq/t/T9uL3t/tGKs7csz+qKScW+SO7ldSLomUv WG5x77T/lk2Lp9H+a35KvgRcJLhq3NZwQ9uucYUcoNcG7RYrA26mn1+rsRmkZgwtHH1d88r64dV/a 5GBxs2NyhWhM7iH/cPAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajHH-0000000E0xE-2LUo; Sun, 04 Aug 2024 22:00:35 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCr-0000000DzWO-30D7; Sun, 04 Aug 2024 21:56:03 +0000 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-36bcc168cdaso1360911f8f.0; Sun, 04 Aug 2024 14:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808560; x=1723413360; 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=d4k5kEk4WdJ7BTyBcpyDwtCLf6kDcGSB5mtdTxdCNTM=; b=KgKGYuEolKPqsm+kenI8CC0Mtg2ptHcHDv04cQ8GRkWfReBkA/UVwEcyJZXRXthtoZ LFfhXg2vh+QSKIL2dGwGKzvQmxHgDMnt9NY1Qa16CP4G/OvIJOEdXi5kRKm9nipjwill GAXkOo62PdFgRLQb9byulosl3+VnBPgjJLU6zPpwhR9O28OKi/nEwnIZNvbJIeujb5aF T2IpKVjqlYObUxa8RVNvtvNSABUr682t0qu3BDrIXjClqKq2MgSUuQkFGQ6SHM8zazGS NeawFqwNQcxXDSfi9jJG4iA9V4Sk4NUaCsBpYcbSvsIqgr1VEmYlc8tXUh6fiAHduurs dFFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808560; x=1723413360; 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=d4k5kEk4WdJ7BTyBcpyDwtCLf6kDcGSB5mtdTxdCNTM=; b=rWiZ/8EeGA6p3zg7kdeXr/WWT0GtYKdw4Nsk1NPDCh67dyExSd5V2jRdiTZGirvdkL oI7uEL7pHbCZS7jpdyEca5fVWGop6VA5s3Z01nQksZEEmxQagb9tJB1xp6vl3vOqyPP5 jNajUjrpe1vTKRRcOVKMT9iEZ9OjgtyL9dJdiO+t3aCa4R+wRdzUd4DVQJU8mhQKOQVn s5Jv4BvIwLbb0NIGnCRUf3vhCw/ZdbkeuCT9EQB252zBFy/AhPlwH5OYrqY2QC5rveNL pQjkOI/N+JQVEY0fV0HEHPbbzLbkY5mVelzQqrMOarwY+t4LEbCpM8q3BOHE4fLXC7rk p3FA== X-Forwarded-Encrypted: i=1; AJvYcCWV5i0GmYETMV8bc17AV66XH9hUApIU0bjeGMOK+dx2QQ6ktAAu+66TMp49Dap0Wxasq61HtpHIAoCJwTuGrud7erQDLm4gn1zTjGCvQT2Fre/Vh+k= X-Gm-Message-State: AOJu0YwkBqu81INB5pnc33JOpwrBeGGcyUjdA4knqhWOD0LGcriBKUdv T6tCl6ptA+mi/kKtZqBa8WxjRCBTFvtcKruKLXslq4RCMSAkBnIA X-Google-Smtp-Source: AGHT+IGf9W8CS+wMJJjKQCCJ+OVnp7SviYwepgVgg4+3B6dPNlrnF9LQx7EcXysSlGhIi1PQyxQyOw== X-Received: by 2002:adf:f2ce:0:b0:368:3ef7:3929 with SMTP id ffacd0b85a97d-36bbc0ff3b8mr8121645f8f.22.1722808559625; Sun, 04 Aug 2024 14:55:59 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.55.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:55:59 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , Peter Griffin , =?utf-8?q?Andr=C3=A9_Draszik?= , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 11/13] phy: exynos5-usbdrd: support Exynos7885 USB PHY Date: Sun, 4 Aug 2024 23:53:56 +0200 Message-ID: <20240804215458.404085-12-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145601_862634_216E6626 X-CRM114-Status: GOOD ( 15.51 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org The Exynos7885 SoC has an Exynos USB PHY that theoretically supports USB3 SuperSpeed, but all known devices using it only have USB2 and the vendor driver has USB3 function stubbed out, so we'll only support USB2. Apart from this mysterius USB3 capability, it's the closest to Exynos850 out of those supported. Unlike other SoCs though, this one doesn't set the reference clock by default, so we have to set it manually. For this, create a set_ref_clk_rate property in drvdata that can be set to a predefined value to set the clockrate to. Signed-off-by: David Virag --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 21 +++++++++++++++++++++ include/linux/soc/samsung/exynos-regs-pmu.h | 3 +++ 2 files changed, 24 insertions(+) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index df52b78a120b..466c72d8a93c 100644 --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c @@ -367,6 +367,7 @@ struct exynos5_usbdrd_phy_drvdata { int n_clks; const char * const *core_clk_names; int n_core_clks; + u32 set_ref_clk_rate; const char * const *regulator_names; int n_regulators; u32 pmu_offset_usbdrd0_phy; @@ -1361,6 +1362,10 @@ static int exynos5_usbdrd_phy_clk_handle(struct exynos5_usbdrd_phy *phy_drd) return dev_err_probe(phy_drd->dev, -ENODEV, "failed to find phy reference clock\n"); + /* Exynos7885 SoC has reference clock unset by default */ + if (phy_drd->drv_data->set_ref_clk_rate) + clk_set_rate(ref_clk, phy_drd->drv_data->set_ref_clk_rate); + ref_rate = clk_get_rate(ref_clk); ret = exynos5_rate_to_clk(ref_rate, &phy_drd->extrefclk); if (ret) @@ -1460,6 +1465,19 @@ static const struct exynos5_usbdrd_phy_drvdata exynos7_usbdrd_phy = { .n_regulators = ARRAY_SIZE(exynos5_regulator_names), }; +static const struct exynos5_usbdrd_phy_drvdata exynos7885_usbdrd_phy = { + .phy_cfg = phy_cfg_exynos850, + .phy_ops = &exynos850_usbdrd_phy_ops, + .pmu_offset_usbdrd0_phy = EXYNOS7885_PHY_CTRL_USB20, + .clk_names = exynos5_clk_names, + .n_clks = ARRAY_SIZE(exynos5_clk_names), + .core_clk_names = exynos5_core_clk_names, + .n_core_clks = ARRAY_SIZE(exynos5_core_clk_names), + .regulator_names = exynos5_regulator_names, + .n_regulators = ARRAY_SIZE(exynos5_regulator_names), + .set_ref_clk_rate = 50 * MHZ, +}; + static const struct exynos5_usbdrd_phy_drvdata exynos850_usbdrd_phy = { .phy_cfg = phy_cfg_exynos850, .phy_ops = &exynos850_usbdrd_phy_ops, @@ -1663,6 +1681,9 @@ static const struct of_device_id exynos5_usbdrd_phy_of_match[] = { }, { .compatible = "samsung,exynos7-usbdrd-phy", .data = &exynos7_usbdrd_phy + }, { + .compatible = "samsung,exynos7885-usbdrd-phy", + .data = &exynos7885_usbdrd_phy }, { .compatible = "samsung,exynos850-usbdrd-phy", .data = &exynos850_usbdrd_phy diff --git a/include/linux/soc/samsung/exynos-regs-pmu.h b/include/linux/soc/samsung/exynos-regs-pmu.h index ce1a3790d6fb..04ef93625eab 100644 --- a/include/linux/soc/samsung/exynos-regs-pmu.h +++ b/include/linux/soc/samsung/exynos-regs-pmu.h @@ -657,6 +657,9 @@ #define EXYNOS5433_PAD_RETENTION_UFS_OPTION (0x3268) #define EXYNOS5433_PAD_RETENTION_FSYSGENIO_OPTION (0x32A8) +/* For Exynos7885 */ +#define EXYNOS7885_PHY_CTRL_USB20 (0x674) + /* For Tensor GS101 */ #define GS101_SYSIP_DAT0 (0x810) #define GS101_SYSTEM_CONFIGURATION (0x3A00) From patchwork Sun Aug 4 21:53:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752782 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 CFF43C3DA64 for ; Sun, 4 Aug 2024 22:01:08 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=M7KzH99Cn48/3TrZZGY6biiHK8G1o/0Elg81c032dcM=; b=cdSNYXEVqhluh6 OJh+QaHtMjCBvEYmsQcxKa/JYXm1HYZYlZK5tycdM1RhZ6vRUaZQcsz+KHL3pZb+qnwpqi4gd4I+P oV3pwaCYtn+Ab4ENeJV40HPeACn8vt3LSnksk001c6IRC2/38u2V9LfdylkJWKeGyAkQsY89s/ez3 alaSIIsob/9NUSO2OAshvnz1josRw8U3Nq6kUacllZYJn085srhbKNZke5QqQNGTjUJjlsGakW1iJ BPQTWs35iei13kxQrvbmvp3r6TUASY2bS9LCEFrmQYuRubTmUBTQRz69gGB+acF1to6njkSoo/XH2 03y5hhMk1fwu/hcdV7nQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajHo-0000000E13x-25Em; Sun, 04 Aug 2024 22:01:08 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajCw-0000000DzYb-1pfo; Sun, 04 Aug 2024 21:56:07 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5a79df5af51so8572229a12.0; Sun, 04 Aug 2024 14:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808565; x=1723413365; 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=6nXQrtmAREhYSbuVOCkvwjMA8tJJtTb76+fEkB0V/M0=; b=IzL5N+UP+WTdk1jsxLOj6baSI9PKuHfWGqdZhcCjvYGoNi9PrGk9tjs8V6owZ5g5yS sICAr77GFD5XfjQ/evqAcWvu/0flzmfCEdKPreQcv8lcAT82oDGR6lA8wSo/2UM43AqS j2MJp2r70vBJ6j7dweqpnKsnLQj7/xjXpKimpZ7Q4ZxxieHaAjyezr/GIglrClDB/yLq 5YixQNCMzfE+ch+MhnZi14qY1AMEmUr65dmj8wN0lpWYbufvpcNt/epZ4CpNMDYcf+Vd IHDyWhYhfT6QNd70tnSeoFOuLCb4/xVFeIvv5FeLElCX2u2+Ik+fVoYrl8YfqA1CU6rp hD3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808565; x=1723413365; 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=6nXQrtmAREhYSbuVOCkvwjMA8tJJtTb76+fEkB0V/M0=; b=kzxP51JClf5gwcY6Bi0vuoZ7UNfo4NxJc7YUQtG5jXSwxZuH9Vj7DXJPc3GWJQQtJG q0p8YOqVEbU4VntA4bGdIblBTmhnpbx6zmI8FotdYqFrFIQNnsHlShRBhy1RsJyCBoIt VXsoon5JOcjc/oChCYp4R1zC66u5BMhbhr/QcJSSG8KN7wp4zZM92Do8lvY9FIhMlYLJ evWCjC1uyvST4WzcgfsFZPj34iqa8h0trlFM8wVFE13p16gW8Hns75ZbyRnhNXyjBApr Jp2RDTwCrGaEX/V+T5smS9ttb8c9rPuLDIoOfYlQpjC6dpSxfiTMRLISGECPIlKxBFTz cfOQ== X-Forwarded-Encrypted: i=1; AJvYcCUrzzlknFEHUK7dIMIR7dcKBXbY+mWWwW0KfcZjBeiX0XS9R5hAbAo+qQnyJkUIXPr61yUX6eW4WyURamrPGAOC/1fApq0hMIzRxItEn1aoBn8lQtQ= X-Gm-Message-State: AOJu0Yw+ninF5ahBw3ciDYNoCr2thA49yM0XPk4YdvDvPmnJ4P8kvJUc k1L9P9wp1p0+HQQjtdzWuGXI+JrHsheB/IjH2zt3ZQ4DWCRWB8Ey X-Google-Smtp-Source: AGHT+IFLMViVMBNiStXLwb5mhAcR5sCxw4ogfYSqyoao7B0+bdKb5RDnNdmEhxeKRJdypvs3epTq+Q== X-Received: by 2002:a17:907:5c7:b0:a72:7b17:5d68 with SMTP id a640c23a62f3a-a7dc5f6b5a0mr763569566b.3.1722808564860; Sun, 04 Aug 2024 14:56:04 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:56:04 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , Peter Griffin , =?utf-8?q?Andr=C3=A9_Draszik?= , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 12/13] arm64: dts: exynos: Enable USB in Exynos7885 Date: Sun, 4 Aug 2024 23:53:57 +0200 Message-ID: <20240804215458.404085-13-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145606_498519_25B449A3 X-CRM114-Status: GOOD ( 13.26 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add USB controller and USB PHY controller nodes to Exynos7885 SoC DTSI The SoC theoretically supports USB3 SuperSpeed, but is not implemented in any known device. The vendor kernel also stubs out USB3 functions, so we do not support it. It is though, perfectly capable of USB 2.0 high-speed mode, both as host and device. Signed-off-by: David Virag --- arch/arm64/boot/dts/exynos/exynos7885.dtsi | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos7885.dtsi b/arch/arm64/boot/dts/exynos/exynos7885.dtsi index 008228fb319a..1352c64d132e 100644 --- a/arch/arm64/boot/dts/exynos/exynos7885.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos7885.dtsi @@ -463,6 +463,41 @@ i2c_7: i2c@11cd0000 { clock-names = "i2c"; status = "disabled"; }; + + usbdrd: usb@13600000 { + compatible = "samsung,exynos7885-dwusb3"; + ranges = <0x0 0x13600000 0x10000>; + clocks = <&cmu_fsys CLK_FSYS_USB30DRD_BUS_CLK_EARLY>, + <&cmu_fsys CLK_FSYS_USB30DRD_REF_CLK>; + clock-names = "bus_early", "ref"; + #address-cells = <1>; + #size-cells = <1>; + status = "disabled"; + + usbdrd_dwc3: usb@0 { + compatible = "snps,dwc3"; + reg = <0x0 0x10000>; + interrupts = ; + phys = <&usbdrd_phy 0>; + phy-names = "usb2-phy"; + /* + * SoC in theory supports SS but no device has it. + * Actual capabilities unknown. + */ + maximum-speed = "high-speed"; + }; + }; + + usbdrd_phy: phy@135d0000 { + compatible = "samsung,exynos7885-usbdrd-phy"; + reg = <0x135d0000 0x100>; + clocks = <&cmu_fsys CLK_FSYS_USB30DRD_ACLK_20PHYCTRL>, + <&cmu_fsys CLK_FSYS_USB20PHY_CLKCORE>; + clock-names = "phy", "ref"; + samsung,pmu-syscon = <&pmu_system_controller>; + #phy-cells = <1>; + status = "disabled"; + }; }; }; From patchwork Sun Aug 4 21:53:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Virag X-Patchwork-Id: 13752793 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 68EC0C3DA64 for ; Sun, 4 Aug 2024 22:01:37 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VjdYwxBSnalxB4DhTDfHI8zbcvwPIVIf7PeBSatAjLA=; b=Z4uTdlOcZ4xJiz 6qeCnDUqydeBQGaAZ/6BxbaQqeWuQQvDn9Z8WuTeYG71OTosRj+VgC4lXyvxH5tnrEbV0GObr0tB9 AgcP1yXe8MaXwvEa8BdPOC7OLTH7os2ojL5dXufBCnu3yafZzfgNLxO8m/9saBjAZydXpC85Y6KVN 3kpTASsX+4UPHmLcnWDfo65dIDk3QUnTi47gX9lOOwMa538FnVQMbOX7P5IoWQ1L25DA2K9x1JstC N8aVldGFS5CuAiOVZUzPUUVTm0qcHfcTSiF2JU44dcAxA0oe4Cank2zboSzpE8Ulv6/GSmMdvu0Ri kRms8GA/YV1NSz8/Etag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajIH-0000000E1AB-0WRe; Sun, 04 Aug 2024 22:01:37 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sajD2-0000000DzaV-0yFk; Sun, 04 Aug 2024 21:56:13 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5a1337cfbb5so15113139a12.3; Sun, 04 Aug 2024 14:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722808570; x=1723413370; 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=2+/p7MgZYWM5kh+9ECMA6cWE3o9ZU9hqg6eDjlHC2ns=; b=NQ9/ut7N15C4zPpAezfiUmjpBYQqFOB5TzFEJsVD4hFcpFmpV4eznixhno5E7x7XBv KF5GKmoYl8eos2KxsE1/CLAScaBTdGfZFUJ96tOnasAl0fslKoY9Ewbtvoqt/Pyy/hMJ xlN8W6Hk1vMlHjSyDrz4VkNktiP7UPiqZzB5rrLlhjjrHjNK9WrhvROJFQDjde71RIVj EwXr87WIQ68CUajIUUQD487puVGmR6ZZplXq1J5HcD3vF5YqwBg/W8dg4jxlUMPnmhF2 Ln16sUVUNT0PgUR3nVRHeFims0gFvtm0lZufy5HyHtDF29bV49npV6VsjSFrlMP1+zFs d35A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722808570; x=1723413370; 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=2+/p7MgZYWM5kh+9ECMA6cWE3o9ZU9hqg6eDjlHC2ns=; b=v3GXDTMeXvacGk3fdCkrrwWTV4CSywaxYgLYp8LQv4tZJGg364C+2faxs+X/Qnsx81 DbEmC8PVp17jUjZNxudW0ZK3Fxv8LScCi6cgiZohDPXmuLEFRHgXsK5VU+hFOdvfytIU g/0L3nvG1bxTmFN3qV4tn/e3w2y7hnFkwZlwto3bsnrBr/THnffDFi8MGaYETaAPr1QS wRtoaPGXH22oygiBjVWVFuC5bTvL6zjpJhGs8m/xAyU8EP/yBNn9zvhzhuoxplfeuegc ERExvYfuoAoX+YCW15L+BNhJQb9uVxCSpTrr4q/V03JsVDk6OHuTDg8CXvKV+rcKm8C7 7AmA== X-Forwarded-Encrypted: i=1; AJvYcCVTFJkx69FPkvTljRcQjNcdWfFeNrDSJ0XFHwUDkFezfK9FrPiJvJx5tOJhPVK+1kBEN9Vr9DOiJokyoOxraf1BFrKOUIWorraOj/MIA5reFr3rtuo= X-Gm-Message-State: AOJu0YxsbIkMew+05NWM1bNyO8AoEVdLQsExMX+Bzl3qRHtrqQcYS12M FJspwI9fNB2xl0a1Te1pECidQRuHSqaiNOxESKTPsUDqRNtCe61Y X-Google-Smtp-Source: AGHT+IH8zoNedZrAXYOj7WYBa3ZkPcxPBBxBMYkykvUuk74jILXSIRAvBgxRPdz930MQzYMKOYCdgA== X-Received: by 2002:a17:907:3f13:b0:a77:cc6f:e791 with SMTP id a640c23a62f3a-a7dc4ff1addmr811525166b.38.1722808570071; Sun, 04 Aug 2024 14:56:10 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:3711:c80:e7a7:e025:f1a5:ef78]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a7dc9d45452sm370485066b.111.2024.08.04.14.56.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 14:56:09 -0700 (PDT) From: David Virag To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Alim Akhtar , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Thinh Nguyen , =?utf-8?q?Andr=C3=A9_Draszik?= , Peter Griffin , Sam Protsenko , David Virag , Marek Szyprowski Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 13/13] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support Date: Sun, 4 Aug 2024 23:53:58 +0200 Message-ID: <20240804215458.404085-14-virag.david003@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240804215458.404085-1-virag.david003@gmail.com> References: <20240804215458.404085-1-virag.david003@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_145612_296287_8520C4C8 X-CRM114-Status: GOOD ( 14.08 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org The Samsung Galaxy A8 (2018) has an USB-C port capable of USB 2.0 speeds, used both as host and device, and is used for charging the phone. The physical port is directly connected to an S2MU004 IC, but until we have support for it, we can still use the USB device funtionality. Signed-off-by: David Virag --- .../boot/dts/exynos/exynos7885-jackpotlte.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts b/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts index 47a389d9ff7d..c1902d2f57cf 100644 --- a/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts +++ b/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts @@ -59,6 +59,12 @@ power-key { wakeup-source; }; }; + + /* TODO: Remove this once PMIC is implemented */ + reg_dummy: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "dummy_reg"; + }; }; &mmc_0 { @@ -111,3 +117,17 @@ key_power: key-power-pins { &serial_2 { status = "okay"; }; + +&usbdrd { + status = "okay"; + vdd10-supply = <®_dummy>; + vdd33-supply = <®_dummy>; +}; + +&usbdrd_dwc3 { + dr_mode = "peripheral"; /* Force to peripheral until we have Type-C working */ +}; + +&usbdrd_phy { + status = "okay"; +};