From patchwork Thu Feb 6 13:08:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 863232 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 DB7F922DFB7 for ; Thu, 6 Feb 2025 13:08:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738847303; cv=none; b=HYsv1dzvXOLOWwwlPVa9k6dO7SF2nYYaj42LhhB6uH1TiwDtyBCOOiXqXiRzETY6SNjeOoVGP4OvrFu7RN9cpizCM4avCK4LF9BiAtyyzmig9LDqpyFYE90jwZ2LlyF+UdW3iPjpy2bhcm/xZuFpYtwWPqZrxJhUSeh0L3iW1Lk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738847303; c=relaxed/simple; bh=g6CYlgIlCCDTKUM/OG+ZQtKIr6j1sM2JrhXAeW4MFQI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JJkLlp0eEhowapwJkwxABGsq/C97gpTTHhALSYWHa8ld1rqXVUtomC78zOz7BS96APAbsdYKPNwVeHNhwXhDXjgJUxikjQSFK/gi8EZhSpKZvwyastVgmvWeU3YSuWQZMNIYa4vbgpy0eg1BXp1V3PXC+rzjulFgZtN5gycHKxI= 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=dBGxZTMD; arc=none smtp.client-ip=209.85.208.54 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="dBGxZTMD" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5de3c29ebaeso75486a12.3 for ; Thu, 06 Feb 2025 05:08:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738847300; x=1739452100; 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=sDAg+ppQjoLROQ6tgZmSgyH+iG6RB5+F1jMAwfLcm78=; b=dBGxZTMDMDZ5FnAIbPi3/45HoEQGBa54OegsADxddHG+PuhgwsX7Y5YwaLu60L3TVC zVJwVEXrtNHU51Wa8ulDC31IjNQ45ZCTTvVAD3tdtRRxHnBMWAraVH6iBZ5VFxIECqOT LO3oY1JMcoWrC8WVCqx7ks6ODRnR1S+mCE/A/yLtDF2TCfmT0WyPi6wb7qAlY6+3c1we FI63XGb0oAGb/PZ2N8ROmQ1zHPbsGeTjjT9tE998yQIwUeBGdhf3VlX29dhmjKaOgygm u9qadk/mDlkNws+6/hZNI0Z0e2ZcaWZe7GKCUWmfpUS/bmOnCJuhDLNtcrONKPiQbIN1 Retg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738847300; x=1739452100; 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=sDAg+ppQjoLROQ6tgZmSgyH+iG6RB5+F1jMAwfLcm78=; b=wfh84SDml54Lg9jCAR3d2+2Rh9cSbiQEHjy8s3wkbt3ruMSbkJeAmYeuXfz/Ca9m6W 79O/G+eGSahR/ech2ValLSwBATv9UNwEmvPYfIO6OlV9oPQ4mmQY5PqJ+4CkJocrfCPm PBlAy7MdZxq01SgDYbDohd2qYrKsoqPjQSvaXjXKonTGre2IDsfjxUKFZeXJ59LNnhNt NoUJJ1FqDPzxPOrJXEWgF63w8/u6ARfJ6DnhaNlPWGRN21CvJ9NwCjS/i7NMj4Y5aCQy OZnHysXWpxKkhN9pky4gScQTW1crvFBiEPyOHYepJPNbfA5cLqaSSajm0/v1R2w70lkk eaQQ== X-Forwarded-Encrypted: i=1; AJvYcCX+TALuB90Uk9JsIKbo6UAHh/7eA78OetmvaEnQ9TSBI+5HzRnOf328U8EAzRdl1stcWaEXzTzhIUq3XjASIRQzBg==@vger.kernel.org X-Gm-Message-State: AOJu0YyqvshZ2ZFpO/T6u7KGr+6glJkutxlN+qZlXFRV33BcY44xsAbL 8htjwfV76nYu4NjcTl0soM17mzMng/S7tPb1BOGi29iRxzNMTdjXNiTGFB44BFo= X-Gm-Gg: ASbGncvpuHavAnwDggb19vzF20QJ4HfbvVcuYQClMyrxzSNj07F17iOEiVfNwRDHXz5 cOB/DpRvGEqqN2ENn8dd5CSwjdTAl0xvY8eYbZL5acMTaL6veuCdRk6Wg+RtAH74kbj6SKRcCqZ rMKlNwTXIlKdAz0tuqY6ZeMVeU69OpiYNalfYwiLsaU0+wNKVkxjtDIqe0yyIW3Gz8/7dBAl9il a5BnBjSXufGH8NnCmLR4K21NYq/EmFNrFeb4jxLh9qJ5mdZ85x1QrZAZVWiqmYZ/OBwUAo0eL96 MDfcZtmVgSo0hk94pIZk+ml2bknJsT4ePL6+L2cSMdneNEGxGBJ0BmhoKz3umMaaTvcF/bwkv10 = X-Google-Smtp-Source: AGHT+IFTAdVpqgZ0wqgMByKwDevPfkkbqJL1+kBcqsh/Cv6cjwQ8nQLxo1utspkD+w2738TsWHLVKA== X-Received: by 2002:a05:6402:520d:b0:5dc:d34f:a315 with SMTP id 4fb4d7f45d1cf-5dcdb729597mr7450061a12.15.1738847300001; Thu, 06 Feb 2025 05:08:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2025 05:08:19 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 06 Feb 2025 13:08:18 +0000 Subject: [PATCH 1/3] arm64: dts: exynos: gs101: drop explicit regmap from reboot nodes Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250206-gs101-renppt-dts-v1-1-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?= =?utf-8?q?=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The regmap property for syscon-poweroff and syscon-reboot is unneeded here because the poweroff and reboot nodes are children of syscon already. It also is deprecated. We can just drop it to simplify the DT. Signed-off-by: André Draszik Reviewed-by: Peter Griffin --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index 813f96089578..e78dcd506a5c 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -1400,14 +1400,12 @@ pmu_system_controller: system-controller@17460000 { poweroff: syscon-poweroff { compatible = "syscon-poweroff"; - regmap = <&pmu_system_controller>; offset = <0x3e9c>; /* PAD_CTRL_PWR_HOLD */ mask = <0x100>; /* reset value */ }; reboot: syscon-reboot { compatible = "syscon-reboot"; - regmap = <&pmu_system_controller>; offset = <0x3a00>; /* SYSTEM_CONFIGURATION */ mask = <0x2>; /* SWRESET_SYSTEM */ value = <0x2>; /* reset value */ From patchwork Thu Feb 6 13:08:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 862910 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 A555C22DF8F for ; Thu, 6 Feb 2025 13:08:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738847304; cv=none; b=jPvERWMnEKIBwaM960AUosj72I/ZFp2cW8bOwkbOcj65couZ7LxAs+MEuCvtQp49blVEWBsdxIHVE+tUE//36NM4jhV2b1bTTK0m/8rHD4ckNNvfYcbFXGVDiGSeu8jiObwx/XRVKkk9Qf1XUh2imveteclpwtuPnW2olYS5loo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738847304; c=relaxed/simple; bh=YTG9xptoyrfZ+iyT/y9FYepYTHdoDzEqJMV6IaGD2nA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BZpT+75YJG/h/Ew/GFUKalBWaz8trDKJaCkRhzKqqoCHjUcdHqS3abDBMYfFrD7aM4eNR0w0MOCy7FOLNcwWiY6lZG2f8FHTgeuw/1qgn12rPoQQpS4gG4RChfK80FOYdI7n4BlN9/kjox0udad+VIIeXBUjKmS/xk0rnO+XTd0= 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=cOS1BBfY; arc=none smtp.client-ip=209.85.218.41 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="cOS1BBfY" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-ab744d5e567so164516466b.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=2REuoysCPKRak0tj4nVzCn8fUcKqMMqOYeUqp9AjQG0=; b=cOS1BBfYN//KiGLWBufrTnguRCX3wZkZRsbaqke/HyD21ibt0gziHYBRPnjuMUSHDC dpbySd3bexiUIGUr69zRuY1tlOGRDVLlYn24C8bsCvBB7R67pZ8VlN+vA8dXFc+Th5h8 8LPzwTxZQGG/tSgCWMnCKyzWSd027utxJCvxpRERDa6H4vzHtNniDXZ+Mbwb7Ht319zr AP9EnoNLuzLd3bweuTW9vVMvQdNCVhBOFncbZvb7e3wxmoN4nLspYyeUNfin/tWulhg1 BfzAmEGYibBSB7uZHDCwzBoooxIdJ2UJPsKqxi0upN1wTFN2oTF9RGUvYytfYM+vCYC1 9QzA== 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=2REuoysCPKRak0tj4nVzCn8fUcKqMMqOYeUqp9AjQG0=; b=q/MVisAZBtMybH9Cvb+qnj4bJht3YjVmWa7BJWhQgKW90z7s7j4b7ft9xirnva3Uid hPRLnmAN3TZ4yCHGCoEDs0VUypInP3ej4FVbwzTz4ZSyjydVBDDttL1XdxFC400tb3W5 dfimis47azBKtaUMg6+oKO7i28RH8eON1aFyZT5fHV0tVUwWg/PS6YAYkjgjooo0ckqm f8ubeQtgpDJM2RQOLC20pH6CKwmwqp3t0nYmI3AlU+Rr0DqE1XE5jDPuIbFK5UamNSoI o7KcyaE4UZHr4gm1gTB5fEipFK/H1JkVfQmPGaSwBszcKQH8qlrCW4leDT2vJV8175d8 udSQ== X-Forwarded-Encrypted: i=1; AJvYcCUKhd0nlH8fqWPI/zgnuSL6rb7QgWmh3HXf38vL2YJBE6dvnSDQAPHMMrchInehoHd1OOrCDw9rpzqnjgDtuNKGWA==@vger.kernel.org X-Gm-Message-State: AOJu0Yyn6z4NpT7Xnm2QBpE9gIRoEpFyhq3c7Vq2zfd6uWjF/aQX62Xv Fjaqu7keCV1LVDpSd7FWcWPjYN5grWoErucCE0AGdXCVGq3X2aqJUI6qImdhpeg= X-Gm-Gg: ASbGncu26X4g4oVauq0yclMoXZU0R++TLmDN9C5/W122zSIQBXwiGJ0WgvWMzya6+/i c0TcfMtHZxDYll7vaBKji4eXltvpSjQjuOGTPEBuUHWVo6QT6KAgeUhDgbgOJeXeUFOAwT094Ac gFT9NCSWOiggpkUIEpZYselpr97JPl+jZ7KDqqTk8JaxTkpcP3c+cQ3VcXE8Qi6U1xQIvZnvJkX fieYE7dBwFs3/l2YQbkCu9u53J/kYPG4uq1BhRmFN30gvSX15woRYaDTvFq9wwRe5LsjhW32KWQ +egJMj7WmshaoRhaCxnTmjUqUeF7t+PyjWXWAht/qELN9nLprPzQSx5NWm4M7nSXOis2QQH83ZI = X-Google-Smtp-Source: AGHT+IF1BlIvboKtAcfd9MgfY7h0B//QZpwtD6hvZuGWR6NA7xoR+qRJFpfzOckYvT3dhmaj0oJQoA== X-Received: by 2002:a17:907:97d3:b0:ab3:47cb:5327 with SMTP id a640c23a62f3a-ab76e84c45cmr374142766b.5.1738847300776; Thu, 06 Feb 2025 05:08:20 -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:19 +0000 Subject: [PATCH 2/3] arm64: dts: exynos: gs101: align reboot and poweroff writes with downstream Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250206-gs101-renppt-dts-v1-2-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?= =?utf-8?q?=C3=A9_Draszik?= X-Mailer: b4 0.13.0 For power off, downstream only clears bit 8 and leaves all other bits untouched, whereas this here ends up setting bit 8 and clearing all others, due to how sysconf-poweroff parses the DT. For reboot, downstream writes 0x00000002 whereas this here ends up setting bit 1 only and leaving all others untouched. I noticed this discrepancy while debugging some reboot related differences between up- and downstream and it's useful to align the behaviour here. Signed-off-by: André Draszik --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index e78dcd506a5c..4f45bfeb33c0 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -1401,13 +1401,13 @@ pmu_system_controller: system-controller@17460000 { poweroff: syscon-poweroff { compatible = "syscon-poweroff"; offset = <0x3e9c>; /* PAD_CTRL_PWR_HOLD */ - mask = <0x100>; /* reset value */ + mask = <0x00000100>; + value = <0x0>; }; reboot: syscon-reboot { compatible = "syscon-reboot"; offset = <0x3a00>; /* SYSTEM_CONFIGURATION */ - mask = <0x2>; /* SWRESET_SYSTEM */ value = <0x2>; /* reset value */ }; }; From patchwork Thu Feb 6 13:08:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 863231 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 1968222E402 for ; Thu, 6 Feb 2025 13:08:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738847305; cv=none; b=TdJMkmXDU1523tpUmixg/23eu1mxeVyoqUituB28dRKA+NNMEBXm8m7zAnxedVFDGAY41XU83Gsa9begOfKz8x4LX/CQ4/iFoQdHfLDHDRxoBfh5Eo2OvF15aVKzrzCiFASizkxMHqLAcV2GND1ivl1/8lZm2A4KWrAhMzTv70s= 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.51 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-f51.google.com with SMTP id 4fb4d7f45d1cf-5dca468c5e4so1903601a12.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=uvVQxgMjkgm0zSedKtlz36MBdgxZBL6hmY2Snf7XXXesVOIzL9/9BA3umCUNaO+8XS EXdGaZm7lY81Gwg5lfnRnRJd2gT1TmSjMPMbNA+m6ewOI5/RD5jt7PVCFBiwbo515UOe 1yaNw62d0vXcZqjYK1RRVNs1c6+FKBLghZiLc05q/Ap4m8bcNd7oGUTA4/kFKxenot5k 6kRs9xPbwvdeQYM56JyL2cAjuVXo04De/0D7W9vcD9vWBdl6VghRcF1WcE0NM+lboJ+7 Yl7R1kqTibXpqpg7KbGJlieYrAGiG4NxvtSUPcJr9f6opV3fr1yvrMBIiQu/ovzUNzeO 5ikQ== X-Forwarded-Encrypted: i=1; AJvYcCVrlNat2a9nK4a1ys/9xlMU4FY0N2DTOhorqY/6r7ggwCbDwbEYVh0qp7mbOdv5Vr/w/0UltMUyRzGRfQsOzdGCfg==@vger.kernel.org X-Gm-Message-State: AOJu0YzgQos1H5RJ/zs9wH8IZM/HXlLmD8WpvjzXhEd9U8JZMQexOLHr jMpEQLCgDfVOZ5f1h1Id4vW56IlU1XgegSShU58u40F5qbxFeeKKr5L1IGJHUs4= X-Gm-Gg: ASbGncsjagEBb+vthdhyLoz85nB1lD+v+6byIkTJ5zwVHdKEVsMeziJ+BESsPylMPPf FfwVXoAPkdQawCVwmUIhSidK9GKqqfjrWqkETJn+ADeXaiOMFAPWP7USdbzqA2e3egrav/mp5Dk 7dJNWu5DPAoBV2eRf0uTJK6lCrG6DPzxMfHd582s613X5cA1htP3UscX1YTPiQFeh+Rt8avtOji 3/SbQWGg1qpnNBjCcrWT2P5n2tm7A40XLTyaYnSfjh13rn+GE9VOO8yL46rNRDhrRUFCmIqLOoE YMp8UlwesNRF26ftNdLRRn6PaMkFzZjrzaoXpuAHvjNljE2n5vzb574NHgg+RmF1z/bmzlIXV3g = 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-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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?= =?utf-8?q?=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é 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 = <0x3a00>; /* SYSTEM_CONFIGURATION */ value = <0x2>; /* reset value */ }; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x0810>; /* EXYNOS_PMU_SYSIP_DAT0 */ + mode-bootloader = <0xfc>; + mode-charge = <0x0a>; + mode-fastboot = <0xfa>; + mode-reboot-ab-update = <0x52>; + mode-recovery = <0xff>; + mode-rescue = <0xf9>; + mode-shutdown-thermal = <0x51>; + mode-shutdown-thermal-battery = <0x51>; + }; }; pinctrl_gpio_alive: pinctrl@174d0000 {