From patchwork Fri Jun 28 22:35:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13716702 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 46231C2BD09 for ; Fri, 28 Jun 2024 22:35: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=V1FJMdQVhtsVTBsP1IuwFsjq71hMcyI7HyXkWpIvov0=; b=oV7ejBSZeXlKowDh4SDhSpj9MU 99ki73H1UGl0Ru/Tbyeb2kCmw5osFRBQpYqCDs5jhbDVA43In6nqGHfrQFJw+tQVeZWkaFscdC/Uq fBii1W1kkYO4ppH5uh17gka8MhxolCxE/uZWgRwZtXXw0uDedHhUMoigi58RW/TDWB1LDfkHHzQ2L 8QeNIBvVvI8TXIF7lsGR6qAGNWIo29BGy+JTPZmo6FbuuJXuCaBB5+/C+i8uuWq7b202svMPWq2N4 o3Un13aztlMi7FclwfEpIhBUkc0CtsEyGnTrJeKRCPUZdmUsm74HcvabjwlRcImIMDdUlZfQS4Lb8 9veVWHCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNKBe-0000000FBzE-2RVG; Fri, 28 Jun 2024 22:35:22 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNKBU-0000000FBuX-0dpY for linux-arm-kernel@lists.infradead.org; Fri, 28 Jun 2024 22:35:13 +0000 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-36279cf6414so659823f8f.3 for ; Fri, 28 Jun 2024 15:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719614109; x=1720218909; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V1FJMdQVhtsVTBsP1IuwFsjq71hMcyI7HyXkWpIvov0=; b=u9CWY1AgARj+EpLv1OvuzvVY9TZXYqtWVlqLyQx/pRSkd05kCEa8TL50BTY4qdy19g xS4+Y4JBDa2+TSag+AokydnNsxV4MccG/d/ZgT7qXriEAQEAObSbPkt1fq+Gf/vnhJrc s1/Iq69dK1vZqw0nTNPagifyDu+zcXfYFrDDvJIdA1T9YE0o1Po6LWhSGi7QPsfQGTlp niKYG0WfCEky9ww23/d8afvYsHOXXYHueV4zTbDHB7XEazbGU9sMGgM0vbMm0Q0EaAb3 tnoenkTs/PezwRFGSjTnStrcToRZzW1JfPnYE0E0AiUTUyZWAw4gW8vvfFwFl+lMZlr7 AP4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719614109; x=1720218909; 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=V1FJMdQVhtsVTBsP1IuwFsjq71hMcyI7HyXkWpIvov0=; b=BXaoOTtor37yKWIQ2A6S1QiYPevcPjkIwFIVsB6QvgeC55NLaauhBEm3YqK8+HPsZx /+fvT4jRf1uoLHsgd/S8ceLl9bGiCy4TnUi+4vNfBury9ZQERyGGuIM3L+Su0WfMrMaj BvHruB5rEIL/QIJ6svq9a13eZCzjA/NukWcUrVSnWjrg8BTcBnRxF5Zpv8eU7O691D+K V2fcznK4yND0RKMNfwQCzdPMDKyX510vv5udlUqQU7jUudU9Ffc7nwKzi9xfNp6h2nNB E1d4j370UazvUcxBzUr6Api+lD9IRjTsmrrMCtOsxGPsabg9VKNlg35G5GFnJ7+z8lBJ GTdQ== X-Gm-Message-State: AOJu0YyJKSheeW1BwdayGwalM/C2o/rhpUHB0pxDCEKeNRC1wGdhiDBn jLPcWWbJU7my7hS9Q1B1NRYPMV6Thbrsx8hdz3YqA5I5fQ0OH9RxLaRJwbwNpus= X-Google-Smtp-Source: AGHT+IGSqJzC8Dv0ZKSrTzp5xhhumx6Iv2B0brr3AvE+VbFcW5m/di04oRuZDZW7DCMVkBqggSlS2Q== X-Received: by 2002:a05:6000:1448:b0:367:4e17:3ed0 with SMTP id ffacd0b85a97d-3674e17400bmr4705520f8f.64.1719614109349; Fri, 28 Jun 2024 15:35:09 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510::3aa]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3675a043a16sm3496711f8f.0.2024.06.28.15.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jun 2024 15:35:08 -0700 (PDT) From: Peter Griffin To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com, s.nawrocki@samsung.com, cw00.choi@samsung.com, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Peter Griffin Subject: [PATCH 0/3] Add syscon-reboot and syscon-poweroff support for gs101/Pixel 6 Date: Fri, 28 Jun 2024 23:35:02 +0100 Message-ID: <20240628223506.1237523-1-peter.griffin@linaro.org> X-Mailer: git-send-email 2.45.2.803.g4e1b14247a-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240628_153512_221019_8F576A06 X-CRM114-Status: GOOD ( 13.51 ) 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 Hi Krzysztof, This series adds support for syscon-reboot and syscon-poweroff to gs101/Oriole. It has been tested with reboot and poweroff commands respectively. Note the syscon-reboot/poweroff has *runtime* dependencies on the exynos-pmu and clk-gs101 patches in this series, as well as [1] which was just queued by Lee. As you are the maintainer for exynos-pmu and samsung clock drivers I've included those patches in this series. For the moment I have left out syscon-reboot-mode dt node as whilst it uses the same SYSIP_DAT0 register as exynosautov9, and setting this the reboot mode is correctly reported in the Pixel bootloader. The bootloader is also checking a scratch register in max77779 chip that isn't currently enabled upstream, and thus the bootloader doesn't actually enter fastboot. Kind regards, Peter [1] https://lore.kernel.org/linux-arm-kernel/20240621115544.1655458-1-peter.griffin@linaro.org/ Changes in v2: - Move PMUALIVE_MASK check into tensor_is_atomic() (William) - Collect up tags - rebase onto next-20240628 Peter Griffin (3): arm64: dts: exynos: gs101: add syscon-poweroff and syscon-reboot nodes soc: samsung: exynos-pmu: add support for PMU_ALIVE non atomic registers clk: samsung: gs101: mark gout_hsi2_ufs_embd_i_clk_unipro as critical arch/arm64/boot/dts/exynos/google/gs101.dtsi | 15 +++++++++++++++ drivers/clk/samsung/clk-gs101.c | 2 +- drivers/soc/samsung/exynos-pmu.c | 16 ++++++++++++++-- include/linux/soc/samsung/exynos-regs-pmu.h | 4 ++++ 4 files changed, 34 insertions(+), 3 deletions(-)