From patchwork Fri Apr 26 13:10:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13644788 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 49AB5C04FFE for ; Fri, 26 Apr 2024 13:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=WQ1C4eEz7FMYjebIpntTga9fTjLnJ/iDAJ3RsWoIxFY=; b=xUJZmowbfm/trv KjzpP6wHtXrOSJ1dEyf98hKYP8cn6nx4gBQPrmst5X6G+1Z72ekI7WHnM6d+6O8j6oyYAUOgaWOGB UB8iQSHV8F+VBb8VgMFJvQKbcHWDCEkGAqdYRYfyp9Q2iHHhuQu+T7XNNxFF7CtT0+dW6+gIL+PSV pzGxl7lnoQ6GdY9BppxnAn6RP2zm1NecJPIeMowi0UemJLFnbfH3TymipozeiuyYsxG1SfPiqWfjc TcMRJqmYRndoW0DndaGwYZUPZ5AqjoOn2UKEABXo6v0T//GWiSOg2INx+gVztHwpgPQ89tvhs82lQ U021h33ePefpdH8JTD5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0LLw-0000000CabG-0kQG; Fri, 26 Apr 2024 13:11:00 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0LLr-0000000CaZM-1fmX for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2024 13:10:57 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-516d3a470d5so2587013e87.3 for ; Fri, 26 Apr 2024 06:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714137049; x=1714741849; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=up/TvhMZAZY6yPkfNvqYk9mm7CB0BvgIE99o7dPUwOo=; b=zz7a5iaIfTcBZQoo9hhQ+h6Cv961JxACxM7px7k2comkcmqWeeSYf5Q3d+pgUQ1p2l m306VbYmlUGxAal6SSy6rDHkUYzGoUVFpSC/Ni6TJrpsoqjZltCwe8D4caDzSvb/xG3t iX0j0rojDKWplTv9XtHXnJqRADHX37vKLcM54KFt+kSu7dCBJefQTZqJfUpkJUY4lKnz dc6Ua9NqyGbqv/leLEEB5hXUpGTumYtfrsdwpgQ4tZuphdj13sJL6m9ujYvxzlGUZP0d MWcLtlnx8AC8U130pv1P6jFN+P64rK6i3DRFXJ/vRKHBsKOJ0rdVU5YXnVnJ7wlHKPNC ZM2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714137049; x=1714741849; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=up/TvhMZAZY6yPkfNvqYk9mm7CB0BvgIE99o7dPUwOo=; b=Z9recTlSH0HMvE8o9aK+n0nAJFexc6MNQX+1IZ6R9y7iP0KnPNYmr3HueR4KNGeEqK OKCMRZBUQhkotY3CPwpYOymn1dBDLaR5cJjQOXbjXfqKQ1F3unExfxgmMob4TOd5QkcL /LeEYb10mzrpK7Pixa/g2/YEdskjlpJiCMV4gDFSR2AV9f8I0ws5piXwkqK2OF2iaMn7 kdzKYHwhhX4uQPIX/1rPgDMHikd7spS6kaX4JxtMqbRqTcDjuI79ZSuR5ijnjK1NQXFO ZdPQXfPNqdzoiZVqYwz3mRV/V27ThQVche1wuPXDnz8W8OFrVGOvEUYkDGMeMjEc3V1v GQcg== X-Forwarded-Encrypted: i=1; AJvYcCWzbDsHCWyz7WXp2eIcKDV9MSiWlhL1XiYkEKHqLkjUnP1BKLtJYXxagrEVE2HKtHfmD+xU4cz4S/UqFitV9EObzxj0MLkrGCPOwd6HoVsRH1Yw3/E= X-Gm-Message-State: AOJu0Yyv1qsrjOC2h6QSJ3XiSEfH7Ad4gBNhMXpsQfoa5UjUzm/hkdRI yBBTU/8AuhGiOUFaHLxmc3982p47pRW7XKJxfGDARffSuHjdkyd54Xe431NV/HQ0YbMdO6Fkm0y Ohi82Uw== X-Google-Smtp-Source: AGHT+IHL9UxI1NEY1QMkE6e22sU+Za46bYeedUI48dL8mkZVuEGHt9uH/8OUBtMER64Ua4ymrFeFUw== X-Received: by 2002:ac2:4248:0:b0:51a:90dd:698b with SMTP id m8-20020ac24248000000b0051a90dd698bmr1749320lfl.65.1714137049284; Fri, 26 Apr 2024 06:10:49 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id u18-20020a170906c41200b00a58bec2ae2bsm1396948ejz.39.2024.04.26.06.10.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:10:48 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Subject: [PATCH v2 0/2] clock support for Samsung Exynos pin controller (Google Tensor gs101) Date: Fri, 26 Apr 2024 14:10:45 +0100 Message-Id: <20240426-samsung-pinctrl-busclock-v2-0-8dfecaabf020@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIANWnK2YC/42NQQ6CMBBFr0K6dkxbAasr72FYlFJhIrZkBoiG9 O5WTuDyveS/vwn2hJ7FtdgE+RUZY8igD4Vwgw29B+wyCy11KUtdAdsXL6GHCYObaYR2YTdG9wR VKadP3bk2tRR5PpF/4HtP35vMA/Ic6bM/repn/4iuCiSYi7FaStv62txGDJbiMVIvmpTSF6gIH 9fBAAAA To: Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Linus Walleij , Rob Herring , Conor Dooley , Tomasz Figa , Peter Griffin Cc: Tudor Ambarus , Will McVicker , Sam Protsenko , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_061055_471961_5DD32B1E X-CRM114-Status: GOOD ( 11.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series enables clock support on the Samsung Exynos pin controller driver. This is required on Socs like Google Tensor gs101, which implement fine-grained clock control / gating, and as such a running bus clock is required for register access to work. Signed-off-by: André Draszik --- Changes in v2: - propagate clk_enable() errors in samsung_pinmux_setup(), i.e. struct pinmux_ops::set_mux() - move clk_enable()/disable() outside bank->slock lock, to avoid possible deadlocks due to locking inversion (Krzysztof) - fix some comments (Krzysztof) - use 'ret' instead of 'i' in samsung_pinctrl_resume() (Krzysztof) - Link to v1: https://lore.kernel.org/r/20240425-samsung-pinctrl-busclock-v1-0-898a200abe68@linaro.org --- André Draszik (2): dt-bindings: pinctrl: samsung: google,gs101-pinctrl needs a clock pinctrl: samsung: support a bus clock .../bindings/pinctrl/samsung,pinctrl.yaml | 17 ++++ drivers/pinctrl/samsung/pinctrl-exynos.c | 112 +++++++++++++++++++++ drivers/pinctrl/samsung/pinctrl-samsung.c | 95 ++++++++++++++++- drivers/pinctrl/samsung/pinctrl-samsung.h | 2 + 4 files changed, 223 insertions(+), 3 deletions(-) --- base-commit: a59668a9397e7245b26e9be85d23f242ff757ae8 change-id: 20240425-samsung-pinctrl-busclock-151c23d76860 Best regards,