Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp639742rdb; Mon, 29 Jan 2024 13:19:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvA+gBVYnSmK1UEjVPE8jncokF2tdDu9F0opVMlGeOwEWWNgiNhpLLiPX82FKGFGmldAad X-Received: by 2002:ac8:5894:0:b0:42a:8af1:4b89 with SMTP id t20-20020ac85894000000b0042a8af14b89mr6465201qta.2.1706563168426; Mon, 29 Jan 2024 13:19:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706563168; cv=pass; d=google.com; s=arc-20160816; b=K2Pr4dkabs0Ekd3Efldz3npUEpGdVsYG5DEkAdS8slGSo7d3nllwXKzQOcoPXlmbZr MNWiR+dODuprZZHeYxGs0c6oRkoMVTUr/KNd9FPUW5vcv2XPL/tsY48Ngbd2DI4ScktM v5b/2zNRqnTUR0+fQB1UE8aTsJty8g6y7MPRgu35sMeJ6OcCwXdtBdMNKdDEVrQWkIer mlwND9KdnsstHjaz4Q5O2F1D7/pKFstEK45woBe4L6DOZqYBXuG3Ouodi5a58ayo/PiC Luv6Vkyb+fN7lBVlT70j7fDZ2EkKrPdbfAKWVg/NTWZJHNlGw5XcX3+yL+eE+oLN/B1w rizQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=SEnDTJQ10cHWohI79qASBVq5CKad4CLufOCIUd//vZk=; fh=CnxxRiqpIWaqV9QPpTBUX7f6pZJMdF4OYQI0H/q83DY=; b=J8Y/IyYV5vPlKfStQJGF1opKOQd8qcJ8ieoyKXvJK3mebOOD/jrqFWHPUEkKuBwsA7 60Baw4U/VuoM5usonmC3kBtdD2fQ7i/9aQP6N6uu7yaROTNn5gugA9QQFbX45RdrmWE7 tjypW9dYvbv8gd0wKWm/BGjTqpyAZAWKY+Ov7i1ufdiUnug5vsgHZF5JZj749tGjpBu0 N10vO6mJdgHGl5R7a4zzV++i82bikrxcRegUX65eRjNw602eyhnelSKBSO15YcXhzf9F Sq/COhxGcpzjVp3fYn1D5bBB+LFWU865CPMxbbm//BGdmnY9NywUw3Yvydh3zjJckDLk ae0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gktJrYIX; 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-43515-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43515-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. [147.75.199.223]) by mx.google.com with ESMTPS id n5-20020a05622a11c500b0042aabf5d26asi1756833qtk.613.2024.01.29.13.19.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 13:19:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43515-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gktJrYIX; 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-43515-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43515-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 2F1CE1C22BD9 for ; Mon, 29 Jan 2024 21:19:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2AF31586DC; Mon, 29 Jan 2024 21:19:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gktJrYIX" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 0C70C157E87 for ; Mon, 29 Jan 2024 21:19:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706563160; cv=none; b=C0oaOq7xcdVLa0+UQPjsYvL+sriRNgmpV/65pVUrQdUSpRs6AuN7f1qWR9PR4qAQLHXI4sIz7N/TyVvFbLy9kXIBBd4tWkHNfeZmEYNqiEu2xW0ifgElIb/KEWTCuHn2upA3TVBzOG0zDaTsupM3oLNc2ToAta1H5+NyFYt5qhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706563160; c=relaxed/simple; bh=S7kUEVYRrtcxtCYQYQOmLM/5DqJ4+ohoiXAUesR5OkM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gikf/xJ6ak2hLHg15vixpQBc8PpkGm3ivxCoZ6D6LmtOekFLwpZ0M9ZuMM+Co6WOSqJ5zHUiKjvpcEGKlI7VnhYBuqO96rXNnyIch+YD3s3v8M5RRCYlrmmBBsZ4oDq/1u8ER1FjaBsM4MQeEYrs//vQJ7w/vHQv6lj0I3LlCbM= 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=gktJrYIX; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-40e80046246so17700895e9.1 for ; Mon, 29 Jan 2024 13:19:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706563157; x=1707167957; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SEnDTJQ10cHWohI79qASBVq5CKad4CLufOCIUd//vZk=; b=gktJrYIXcDrs14PWxar/qjssy6UefN/xKemMjB5f7nQinkbNc8jW21q9yZDZVkQ4fd 7BXeXi+nLL7XbXmq3+aonjbogr4hZbdQESeTRdTMSW6C83IV9mXXDIO/kPl82RsZFbUS rJMY/kY+DaGgaEWwi925YdmV+LlLdUUXYPRD5ALVlaQWXQ15iephk2Vbv1iJ0w300y+s bIEKMoMGHjjzljPH3oPShu2OAzGgAMS2EqADp07Mr/5hDVSC8IimLJXqoYSG1i3GauHk lnLIAZ14CdDNETucWQKg7fnGbAgnnTpyRHEOPle/XMQE4gBhqueBx6tF71GcjSXM3QSx nYsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706563157; x=1707167957; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SEnDTJQ10cHWohI79qASBVq5CKad4CLufOCIUd//vZk=; b=ZYsmiR9hxNyqiLWegMuB5xezNXy8u7GDFndaSuQFd5rYLZH7D07MDzrZW+ZBa/0lEZ qxWz+wu4DiBBYOB4dn4YWkj7ab42JiKEVFJ2DjHWARsABLruHY8p0Zj7PTTmae3B00xs Mhp57dKw530e9voA7ehPXIAEsYPwnvzBo+lLGCn1K73jEpppp9C0GwSaOO5DuDBYUOzD ucQ4ZwCknp16hZ13tyZgObX1/YVKbGtMH7xd1CTio2jXEnVyPRHHVtieanDCWVwvKR7R bhAJKFwfe3MdCCrIgDKg+4th0vbG7eYVBPySPztS3mpuAMX2sfWwnkfshx1RXhpbBDSw BVeA== X-Gm-Message-State: AOJu0Yx8MK3PDnyHqSaqpAbFRbejaE/u0ywkTU1wgeOUsEzw9Fr9LEVT oFf3P03eoDZPR/ea2fAU5UcKPl+/fwd4phdiQJFqY33BE8ieAxMFp2Kd7pm8334= X-Received: by 2002:a05:600c:5186:b0:40e:e516:3b5b with SMTP id fa6-20020a05600c518600b0040ee5163b5bmr6033244wmb.4.1706563157207; Mon, 29 Jan 2024 13:19:17 -0800 (PST) Received: from gpeter-l.lan (host-92-21-139-67.as13285.net. [92.21.139.67]) by smtp.gmail.com with ESMTPSA id iv16-20020a05600c549000b0040e3635ca65sm15126928wmb.2.2024.01.29.13.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 13:19:16 -0800 (PST) From: Peter Griffin To: arnd@arndb.de, krzysztof.kozlowski@linaro.org, linux@roeck-us.net, wim@linux-watchdog.org, alim.akhtar@samsung.com, jaewon02.kim@samsung.com, semen.protsenko@linaro.org Cc: kernel-team@android.com, peter.griffin@linaro.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, linux-fsd@tesla.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 0/2] Add regmap support to exynos-pmu for protected PMU regs Date: Mon, 29 Jan 2024 21:19:10 +0000 Message-ID: <20240129211912.3068411-1-peter.griffin@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi folks, This is a v2 of the series to add support for protected PMU registers found on gs101 and derivative SoCs. In v2 it has been re-worked to be based on a regmap abstraction that I think leads to a much neater overall solution. The advantage of the regmap abstraction is that most leaf drivers that read/write PMU registers need minimal changes. Example of Exynos drivers that require PMU register access are: * watchdog * usb phy * mipi phy * ufs phy This series has been tested on Pixel 6 / gs101. If the various maintainers/ contributors of other Exynos SoCs like exynos850, exynosautov9 etc can test these patches on your respective systems that would be most appreciated! The expectation is this series would be merged via Krzysztofs Samsung Exynos tree. regards, Peter Changes since v1: - Refactor to use custom regmap to abstract SMC register access (Sam / Guenter) - Add deferred probing support (Saravana / Krzysztof) v1 lore: https://lore.kernel.org/all/20240122225710.1952066-1-peter.griffin@linaro.org/ Peter Griffin (2): soc: samsung: exynos-pmu: Add regmap support for SoCs that protect PMU regs watchdog: s3c2410_wdt: use exynos_get_pmu_regmap_by_phandle() for PMU regs drivers/soc/samsung/exynos-pmu.c | 227 ++++++++++++++++++++++++- drivers/watchdog/Kconfig | 1 - drivers/watchdog/s3c2410_wdt.c | 9 +- include/linux/soc/samsung/exynos-pmu.h | 10 ++ 4 files changed, 241 insertions(+), 6 deletions(-) -- 2.43.0.429.g432eaa2c6b-goog