Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp271468lqf; Fri, 26 Apr 2024 06:26:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOm0JNJOjZg7Md68gbhv4+enYOVGycDt1SADL48tqvrnqL6zICRHTGsjeH/H7VE1he1ZDT/3aRcqMtnF+RsJmG21kBu84xGogNtVyMCg== X-Google-Smtp-Source: AGHT+IEUn6JsFDtImHcvEWj/ZKey3MFyktGbbWdi5PlzbnS9EvQt1e97XtHOGT/5kJv4EOxXOMjJ X-Received: by 2002:ae9:e102:0:b0:78d:7509:3321 with SMTP id g2-20020ae9e102000000b0078d75093321mr2510495qkm.20.1714137978801; Fri, 26 Apr 2024 06:26:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714137978; cv=pass; d=google.com; s=arc-20160816; b=rBgHzLiGMbDF1OvjNPcn2ZNL5I5+a9r59gYxewUiRVaEMxaguSuifpMVKnZ175VoSx aRfNRB6aTfAmDAPUQbyHy2wZudsxqIFHXYyUSpldIGb7ra05DnYcps7EV0m+Y5ILU7ZN OowIOmljewDjcyky8Z1J7DeJm9QjvVcic8VpAgHwOVd4Ecc6CE57XLl5soKLOFkM2Znb Ox+tc09WSqkhFvZkFKIEsuaJ9hsc6ZzaUlnf7C0k6WJkT6vs6EayyuiDOhBXnK9EFelk dYfsAhq50xz4APq5eLVyalRyPjioS6yTt0MeFwJrpdTnPsHvS7NVPxI/ncQBek78vs9S MO5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=nBlxUGhcUMlZ1NuXfj9CcDZ/kdBcHgFkVBoMJK3U+jA=; fh=NqJ7yAUwgRCVZ1NxQgwVn5++VFTO6a6ojrpForyghDQ=; b=vZ1PlDnkMGCnTwiGZOEQIqdo9EbQpQZYm8cKPEOraJR8i/HZoE/sHFcVWoekoUoa3G BhpNQ33t4ncv496EXdP8i79ptdDQVmILCaeCVhkeVGiKaNtF4St1eOWbbbF5ejtxgn6u tUbToRV1eDxRMTduv+LL1yqFzOW3pWNJsk9wtVvW/V4bIMo4OrLZAn7gh3DbwK7s7Zsw iN8VxTVLjWn7wuY2F6KdEH05wJu/OE5XoQpEGX5gCZ9VUaHL+sNoCC4j9MXdVIv2mbHX kRTd5/uyEeft6+gvODDDf0fKqcsBHuYfqfPEcwCxwajSvwEX8kuAefO0aFUZv+45aWpT 2dtg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qy8nSZT4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-160052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d18-20020a05620a137200b0078eeff06f62si20006764qkl.378.2024.04.26.06.26.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:26:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qy8nSZT4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-160052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5765C1C2359B for ; Fri, 26 Apr 2024 13:25:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B133C147C90; Fri, 26 Apr 2024 13:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qy8nSZT4" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4E191474CA for ; Fri, 26 Apr 2024 13:25:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714137944; cv=none; b=SQN6IW1tu/7gACx4yMG+GZh7WXNliYhNib1nNPOGrFCMu3QZS3JthJhExMiU1foU5yMp0uLp9Cv3BEDiEqe39WTi1cnhNtvsQbBABR7MbMcvI01kHuuxIt9Q2MtpktoM4OhUFm2pUCfgzXXwUABg3mkwTh+u95Ewx63rnI6JT7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714137944; c=relaxed/simple; bh=PFIYOZg9K9UwEmZAr63Yumid7BZUGpat1tcH693D634=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=d59qDVyh5zcblX3v0IdWiUr3kdeOsxsQ9N+5i3YjV2V+1sjVofesjcrAaO61EObCkckcwzFzuvcGYuyNgWWj9nhkk4fjJ6yUKTFb9R5AIWwunLClc6WYCoXdms556StePPB+MBqctMqcI0iv06Tc9GMTjXXRsMq9mcxE3SiDfbU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qy8nSZT4; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-572347c2ba8so2458550a12.3 for ; Fri, 26 Apr 2024 06:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714137940; x=1714742740; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=nBlxUGhcUMlZ1NuXfj9CcDZ/kdBcHgFkVBoMJK3U+jA=; b=qy8nSZT4O80SLjRgGXoa5d9aDwEEY609wEpDGWUlobTUhjZCI8l/NNXZ7g5c+qVUG4 DuihFJhcu04vX1KDZy7KQ3ZPG+cYrooeE9bNvYYpFWNhB+/xRWrsKr/dQbImIdUMxOEW zGDeTz/eiYhMWGTmhm+PTnesK17ENUKT24BBdGarndx2p8P5fyVDqUk5ZcSWB56eOr/y ujdX2mnNmaIrjXUr20qvZFgeU2054ZfGpY7Mdee8/xH11fiAi3sCZJicw2VZdF1MDvNd 8klZRdjR7IVWexQaT1FUjJB79jy+a0dIAKMowSezDmJzg89kAMlsqdMXQa8FGIOOjIDi mEBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714137940; x=1714742740; 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=nBlxUGhcUMlZ1NuXfj9CcDZ/kdBcHgFkVBoMJK3U+jA=; b=Aal9A5BALEW72U382SbETS1BxVBoar7coA7d0P/FW74g33GISRv96oaUa8dIOQm0DF JNQw2tjyjDoSCssE5OjYTE/Z4QCf2OKiBSAAxU3W7ATwwsUl1Z7T4kBcQC/AoX+mhPPi f+f+pC3epnzYQuH6nf8HTCOapQHvMWiOgt6rmEW50NXf/Ywk/A+JqsBdNwBCcGz4wKes gDyVEJf8rHz2r6IP3YJnualx5EDjKINCBhFaA4yyA3oySAX0DLEF7YnQX0MwRbDxKaLE /JLEqHXQRhUN6lSL9fXJJPN/4ca9Im9NNe3F/ogL2zrTWJn9nw+7tBcCMXumSD+t1a54 GLxg== X-Forwarded-Encrypted: i=1; AJvYcCUVcgs3OAw3FqdZaNMpVGgMQ1Foj299SyvWj1LPKlHoiADh5peMfpEoFG4di0h8OPnmDpdhYkcMn7itxdRLnDn8DFSl1lhLd1BM6SEu X-Gm-Message-State: AOJu0YzZ2ykbgGIuo0LsnXq7WFl7ecbfZmR6i5BA9oFOzb9Sqvpo/Z5w /lSX+x+sIhPFEol73vBYArTOz6RqHfafsApB47ifOgxBONgPt/B2fhdeIhKA3SY= X-Received: by 2002:a50:875c:0:b0:571:fc58:a8dc with SMTP id 28-20020a50875c000000b00571fc58a8dcmr1587037edv.32.1714137940104; Fri, 26 Apr 2024 06:25:40 -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 q25-20020aa7cc19000000b0057203242f31sm6187837edt.11.2024.04.26.06.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:25:39 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Subject: [PATCH v3 0/2] clock support for Samsung Exynos pin controller (Google Tensor gs101) Date: Fri, 26 Apr 2024 14:25:13 +0100 Message-Id: <20240426-samsung-pinctrl-busclock-v3-0-adb8664b8a7e@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIADmrK2YC/43NQQ6CMBCF4auYrq0ZBqjVlfcwLkopMBFb0kKjI dzdwko3xuX/kvlmZsF4MoGddzPzJlIgZ1Pk+x3TnbKt4VSnZghYQIElD+oRJtvygawefc+rKej e6TvPykxjXh+FFMDS+eBNQ8+Nvt5SdxRG51/bp5it6x9ozDhweZIKAVRlhLz0ZJV3B+dbtqoRP yXxQ8JVqhujlaoaQPiSlmV5Azqb0aULAQAA 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 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 v3: - fix binding for non-gs101 platforms (Krzysztof), sorry I missed that initially :-( - Link to v2: https://lore.kernel.org/r/20240426-samsung-pinctrl-busclock-v2-0-8dfecaabf020@linaro.org 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 | 21 ++++ drivers/pinctrl/samsung/pinctrl-exynos.c | 112 +++++++++++++++++++++ drivers/pinctrl/samsung/pinctrl-samsung.c | 95 ++++++++++++++++- drivers/pinctrl/samsung/pinctrl-samsung.h | 2 + 4 files changed, 227 insertions(+), 3 deletions(-) --- base-commit: a59668a9397e7245b26e9be85d23f242ff757ae8 change-id: 20240425-samsung-pinctrl-busclock-151c23d76860 Best regards, -- André Draszik