From nobody Tue Feb 10 05:45:05 2026 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 164242E64A for ; Thu, 6 Feb 2025 13:08:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738847305; cv=none; b=A9b/INcUjYjCA79BjisOrqcEUnVpBt/MNlfxsak3E13+KDa7dsp1qhhO1BKOuicfo6nQ7k1BgcYJcV4O+fVek0jDJfadvV9UWDtYsuJX+NoPjpj6U7anDkFvhLY/5C3lIqVwl/ptj3TVj93aW7CVeUX2rUl14Oti4dYVoV/ByMg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738847305; c=relaxed/simple; bh=d6foee+YIiHorPvDAYRgPRpXKIHz6BSRVOLUmX7ZVN0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lsnIvdsfcadDv+04ZN3RAHWoerj9z5vWt8F8tAab7peLwI/1Dpb+vCinvy3xs+89hbwmZg5hZAHUiRpNVRo+AZSAVFJxuVIOdAR51wvlMS0ue1VIIO9044zsPI3i1fifT3MqOnaqlrmz/wiP0srUsfWVy9DJomb63PP9T/GMSyQ= 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=AtCOG30l; arc=none smtp.client-ip=209.85.208.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="AtCOG30l" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5dca468c5e4so1903600a12.1 for ; Thu, 06 Feb 2025 05:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738847301; x=1739452101; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bEWiMUNEqLClrTF3KdKFb4oug1HLJiE4dMnSAetMkog=; b=AtCOG30lr3zVIkgB3as3/2EN9HHpWNTWTOlDPokC+DLcpSlL48EkHHRWcPiP0mZCJX T5bV2/KOW1SqXw9SvboytIXZXnTdFxVMXYKpNX56jFPDH+cChXhGaaM44XSTogClyyzI D6a82V7joZgjyQV6YbG4AKQgkHTAPUk7vK9P0fVN+VelgdS2irjRbaCKJAeZgJGO4wFN 2vt5igPYzPABMvMdppv+317KTrbft4lJImcYYfH/UgyeRqjq4CoPr0U2YYew9pvoUeC3 zRGk8F4dVGpj0JpH5tkyXYaR+ByqFGlPpVqJMzSOYXnzm9WUl4Zf37Vf7kL7UVFyrnzQ LrWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738847301; x=1739452101; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bEWiMUNEqLClrTF3KdKFb4oug1HLJiE4dMnSAetMkog=; b=omVUWmjAwT3kvIQgJJsl/GVJD6O8ei42WGjIVuisJVPyKvIjPx60Sv2NAXSqTkut0j GnJjw+6cX4oPVuBNdnYss/WkEJJH60oCdfHobA7bpW8GQ3e5HJb6VSwqXtFuMFTggTaU A1r2Q5LvJyw0nqH0duzb6RReGzj3/bZH0o8vgzB0MpTAe4dsiq0GhSZaxqCcz2LOWa4v jdDmfZDS98ONHrPFt8/t5k2V2nLirjRlowykI9UCAl3L1JbPE4zr815n6zQZoT2RCekJ oV2UF8FVAkIX4jjEnpww/MdchO1GCYaqeR62cMgwNcsm8Jww5c/dRnXjAliozidd4Q+v am/w== X-Forwarded-Encrypted: i=1; AJvYcCV6leTD0R8kcgeu25PRSc9378obdTuV0+beCrMPHM6Efew8VTkgipVlcZRW02PsyjDT0e45AMCktOZfR70=@vger.kernel.org X-Gm-Message-State: AOJu0YwhV8qqLVRaebFpb5Zt6NDt1Jf89O2A1X7WXi4hVss15LPPB6Zd VC7XgMCJqwlYDcFfzrRdXiKQWI3ChCfthuIgaZmVz+4F1nR6V3oqmGxCGNOkVls= X-Gm-Gg: ASbGnctrEsUnSgVj1PMZ1s3viJGUyNY7LwBAP97S4/e1kFE0gz022JVhejDkg6olPdX meLHca9Ta9qBOS3IMr6C5vmwQoJkblZXf/9hFI9UaTvHBqr8ESn3Q6Ns1hNo781bJMUyfTctqoH TITu8g8vm3EM6umpvEz36ZXWc0z7yxawDYowveAZ0PehGpaLBX6vN7pyMHKVHun1y1gCPrZUCqq H4DnTfUt1AAm5+Ava82GyNC9qG24tJizLCPdYIlTGcTnWyyW9ZZpUuC60EKzrdu1v76HfSWHb0u SCwZJ0vGgMxUECqk1pqWtcojVBIsEBmpPP0TLp6dznxeYECX+gbBY93CY5AbEudFB3LjJuWoQJU = X-Google-Smtp-Source: AGHT+IFeO9gqDBs4A+ukV7FG2tWykoGpIb5Yum5uOgYOlnokRh3L3ZP9VDrs1qPmq6hH48wtb1DiLw== X-Received: by 2002:a05:6402:845:b0:5d3:e766:6143 with SMTP id 4fb4d7f45d1cf-5dcdb77fba0mr7904791a12.30.1738847301240; Thu, 06 Feb 2025 05:08:21 -0800 (PST) Received: from puffmais.c.googlers.com (140.20.91.34.bc.googleusercontent.com. [34.91.20.140]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5dcf1b73f8csm830235a12.8.2025.02.06.05.08.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2025 05:08:20 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 06 Feb 2025 13:08:20 +0000 Subject: [PATCH 3/3] arm64: dts: exynos: gs101: add reboot-mode support (SYSIP_DAT0) 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: quoted-printable Message-Id: <20250206-gs101-renppt-dts-v1-3-cdfe993fb3c5@linaro.org> References: <20250206-gs101-renppt-dts-v1-0-cdfe993fb3c5@linaro.org> In-Reply-To: <20250206-gs101-renppt-dts-v1-0-cdfe993fb3c5@linaro.org> To: Peter Griffin , Tudor Ambarus , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: Will McVicker , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 syscon-reboot-mode can be used to indicate the reboot mode for the bootloader. While not sufficient for all boot modes, the boot loader does use SYSIP_DAT0 (PMU + 0x0810) to determine some of the actions it should take. This change helps it deciding what to do in those cases. For complete support, we'll also have to write the boot mode to an NVMEM storage location, but we have no upstream driver for that yet. Nevertheless, this patch is a step towards full support for the boot mode. Note1: Android also uses 'shutdown,thermal' and shutdown,thermal,battery', but that can not be described in DT as ',' is used to denote vendor prefixes. I've left them out from here for that reason. Note2: downstream / bootloader recognizes one more mode: 'dm-verity device corrupted' with value 0x50, but we can not describe that in DT using a property name due to the space, so it's been left out from here as well. This string appears to come from drivers/md/dm-verity-target.c and should probably be changed there in a follow-up patch, so that it can be used in reboot-mode nodes like this one here. Signed-off-by: Andr=C3=A9 Draszik Reviewed-by: Peter Griffin --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot= /dts/exynos/google/gs101.dtsi index 4f45bfeb33c0..f4c098ca9fd2 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -1410,6 +1410,19 @@ reboot: syscon-reboot { offset =3D <0x3a00>; /* SYSTEM_CONFIGURATION */ value =3D <0x2>; /* reset value */ }; + + reboot-mode { + compatible =3D "syscon-reboot-mode"; + offset =3D <0x0810>; /* EXYNOS_PMU_SYSIP_DAT0 */ + mode-bootloader =3D <0xfc>; + mode-charge =3D <0x0a>; + mode-fastboot =3D <0xfa>; + mode-reboot-ab-update =3D <0x52>; + mode-recovery =3D <0xff>; + mode-rescue =3D <0xf9>; + mode-shutdown-thermal =3D <0x51>; + mode-shutdown-thermal-battery =3D <0x51>; + }; }; =20 pinctrl_gpio_alive: pinctrl@174d0000 { --=20 2.48.1.362.g079036d154-goog