From patchwork Wed Jun 26 19:42:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13713315 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 F1D0DC27C4F for ; Wed, 26 Jun 2024 19:43:31 +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=fnjsauIL/CcAxAa/bQLK55jPhlKZNz6Is4DxauRo/E0=; b=SqET/AaMi1/o1wf0Mg5g+4aX5n RtYLdSk3JfF1B6dfRZ4NMwdidSJeqj0IsnXK7JnHc6h8s9e6iRVdNotaYLZFfQvg07uFEEx6kEyut /eafl5XKNOorFP3Fxyp/6uysge95GzKqJNxPPFiQudK76nBn/sNKtg23orYGMUFanhSA1+9V3HGEy uKltn4lcZJY/BReAgejrUB3Zpu9fO/vhla2u2+R1WrxY5TmWOEnP8J1+7uYXVidY7ej+T0geIrLxf MeJCaJLlx4nwCHz6HxHdGakp3v7Kwjfac3D+eh4cZkY6QEV5li9SK0SROKZP22UgN5FOlM1BkGc2z dHYiIiDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMYY3-000000085HE-1GA1; Wed, 26 Jun 2024 19:43:19 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMYXu-000000085C2-0u4W for linux-arm-kernel@lists.infradead.org; Wed, 26 Jun 2024 19:43:11 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-424720e73e0so60260885e9.0 for ; Wed, 26 Jun 2024 12:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719430987; x=1720035787; 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=fnjsauIL/CcAxAa/bQLK55jPhlKZNz6Is4DxauRo/E0=; b=eLUwqdVEAS2DCQ+czMkw0xUkMeNP6jKU71geTdERl2ch/Z+YQmy1nXkV6JyfaA4rl1 godrt+wRVp+OWGtx92hWqxxhP5cNyzi6PFlUR3IV14iAlBuJSXApgFAWtrI12tl0kQl1 ZtmJHIXV/df9gdLfuD54jLn5QamEQNSU2Ubb9cZDKiWW3JZ9gQOFlNCc6dPUG50bJmOx Kqb8vp9xsE06cmogjb4SzQSwWEtXVZ/gAdgQgUI4tA0vKNCgqzP4iGvYQktogKrqancf NI8oG1zu49kTgYu90OGIa6dtrvwMhHcSzXl+6mF3of1O0Q4if5FaOqPHhAZOK2UOnYLT ylfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719430987; x=1720035787; 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=fnjsauIL/CcAxAa/bQLK55jPhlKZNz6Is4DxauRo/E0=; b=NjewCft/icTYSbsFCjuxvpi6Iwqj+CRGvTDQxwtpQ+vSFP+7CrJ6KvRdmFSH6+OnCn ZgzN1YZFI0IrZOrpWWautlrid+66MDfzDGyQsriaY9gYBWP3o0h5NwmZ8Cz8SkTHredn 2dS33ufMvCEEV75XfpdtIvy40GTboLq8SHoHMaqnJhIVgtFh3v3oZBKs8jUxWCkVO2Al /86TiqK2EEYbbW/HpTBTtxqCAIrgb2xGuxpvVbtvNtHyLhVlh9a43xmY/yxRnrizEvje lFkeM2vUmm2YYa6jPruQxV7kU0wDJIbS9udrc2ScFdRd9cslc5iR4a3USf1QUzbWQ1Vw FR7w== X-Gm-Message-State: AOJu0YzCnbuy+5vU/3Pn8VckA0mv+A1qq1o+FcAhwRzUMkDvQ2sbj+bV JmYQcVlVEAMTnR0IqYMnxH6TmlZyAE9k7qaaNk3jsfLqI8oJmN4/KByDkwz/M9I= X-Google-Smtp-Source: AGHT+IG2LSoOJQA11RV0AZDKvrStmKskCO7Ie8cnMZ0Kw2R/ExVN3FkSauKy1goNEMtUgpFm9FC1NQ== X-Received: by 2002:a05:600c:3510:b0:424:76d7:2cca with SMTP id 5b1f17b1804b1-4248b9363d3mr74795175e9.4.1719430987018; Wed, 26 Jun 2024 12:43:07 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:24d9:a20a:2de5:8eda]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-424c837eb2bsm36728905e9.39.2024.06.26.12.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 12:43:03 -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: Wed, 26 Jun 2024 20:42:57 +0100 Message-ID: <20240626194300.302327-1-peter.griffin@linaro.org> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240626_124310_484811_6D1C9DD8 X-CRM114-Status: GOOD ( 12.83 ) 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/ 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(-)