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: 13963023 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 CAC1AC02194 for ; Thu, 6 Feb 2025 13:13:18 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sDAg+ppQjoLROQ6tgZmSgyH+iG6RB5+F1jMAwfLcm78=; b=zd6eTdkEdfdlAMl3Ow08/rULyM nuMJqVgMgbosRKIlDmfbr5P7LY9eaeSFTARdgcp/0NyRIKlSAvedCRLBxFQ5YupMgF4Y7s78wCU5l gKHZq0odvGZa94uWeHKGiFNSh759c5iQJdYSu+etnkMH5/n8MD5Lmi6BPHb7iu0BhvOPipDz/h6kf gO2UjGfVZ7bvAFd360GcPYUbXLFQBaaIwPQlSqm8JaFHCXOIiEKCWxr+iGZ/Nt54o8gRAMa0zq3rJ pmguyM6gZb2QrJ7YqzMRBE6IDeJZS/5YKCxZfKxOwiuCdgnulaV5n65UdayaNmCvHfXX9Ic2hAPFh jW+68I+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tg1gp-00000006N1D-1ZDU; Thu, 06 Feb 2025 13:13:07 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tg1cE-00000006Lzt-0daY for linux-arm-kernel@lists.infradead.org; Thu, 06 Feb 2025 13:08:23 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5de3c29ebaeso75485a12.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=lists.infradead.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=UguGZFtwri+s+ttT5XxUUdCbk79CvFh6Vh93s2y13yeevqjuyFow3T7h0ApXbevQy3 E3taQMshOK88GkhuK6FERtHovyhfGw2fHjFcXqSwSezgzgdQ+8TDbuqJ/wsIceXJEgEW j9b509IHah8N24f86D2NRUENzVtYFkl41W0o0TP90bd52LSMY4Na8Xm3TETB1Fl8zzXE jWYDNw/Q5Pln+CLJHwOwWJ/IzeK0FOFW/yfm4cMv2dUVN8ASu0QSoukyO2tDrFvxR1BS gp+9baNdxfl6LPDMG5g+DjO9CP5VkpEBFJ+RhtrfsxPpaHRcG5qWD/0YmOqSvpQD0usM ZKlQ== 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=hV5q0P2MDZr70hTHrIfjY8cEHdynut5vIRUUPjXlKhi/EYUigU4t3nIzi/BEEnLZiT nwA+LmdFmJ+HUOxfZdu/U6AegxJDb7PzruXly5yustBj8iDH5jPe8eeY//P2cpCPygyH Z3eckSG9q2FkybwoO9gHNqCuzbj0t45TyzfDnNmjItgYajwVo1lTEZqZz5xqgqe2O12E yrbAA6VtQOgXy/AoPDXyvUIj8T0RnIqEQdEUEP5S4nYZCFcaQFONrpKN99Me/cLbkkI+ dEQmJEjvTGxTYap5op9Wb2Xf3GgUrKJt6aUixmrNf4H5gQw2+ooyt2bOOvBX7EUNtv8f Z53g== X-Forwarded-Encrypted: i=1; AJvYcCVqZFkw4xG1Uis1z9Mfz22V9C22Zvknk0ON7Wdku3Mjz5fBqDJOWSLIIcfuctty0vaXUFzTHHCuEa+85LEjaBv7@lists.infradead.org X-Gm-Message-State: AOJu0Yyf5+fMVcxT60BjH3yCJ7rZ2SfswJuTCeiI8mS4rNCNYHo/ZGQ0 vS5AE6SRheYuO5Hm9RHTq/Xnfbf+IqhZWmYsnB8jyvq4V3nPNE5NE2OKl9+sAtY= X-Gm-Gg: ASbGncupt8EzRGVWrJsXyIKJRPw7eNUDkCg5o3fSquCWHvzCKbi9IAYSbVhuSBdgCnL ZuWpSWUlsS+vAA7RAZ0o53AU2/QENFddHpzzzXdWAvD5LZPAaczf7/EdxZlSqjbCyvrOdMUDUcQ VQSZOXAb1leOC+ttjrfnD8QNp8yzms+9Mpat6fSqQlWYMPfvqELak7+XIL8kxZgQtmAy24EmONs Vnp3ivYh4gzUYw08gTO4I9GrqbKaIKw4yu0zJxXfNTTN0S5vk0c/mT7R+j8loMEIy8eWHm0eFED Elm4n5fKD6ACUZynbRo2HsoxsglODp2+S1T1xgnmu/ZNaXBBYLmCjjmShgy8zuk9sQ4X9h5Rpuo = 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250206_050822_189230_CA8D89C7 X-CRM114-Status: GOOD ( 10.91 ) 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 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: 13963024 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 BC33CC02194 for ; Thu, 6 Feb 2025 13:14:41 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2REuoysCPKRak0tj4nVzCn8fUcKqMMqOYeUqp9AjQG0=; b=wIcby/Bpmz48f2Q3TSo8txXDHf T16xtO6dp3ZSqZiPTCpQSNmcqlMF3a7UCD6vg0GyQ8YUmFCwKDtr1kxTCyF/47S8DBAAtraqiVXT3 Ola8cmczwrASvhto8JeY6CkurhICfkq/6Z2jIWUL00og1+e9IAuO28zNPZpQVnDpg+l+3s4ulFwVJ o7S5OW0dDOfQv64yCDZ0n1nm74SGEXlHKGjZvLfE6oyuAA6CWnnuE1DRwt6MxpbjnvaEVEnQzeQFU 1vAd+EWZH75cVGSip63ios/Fbi29hN6ZGvLA/g6/x3lIzrsXB+WsaFyQ4wGkqS3PCMdfj3d4MyrTd JS/DIouA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tg1iB-00000006NLV-0HOO; Thu, 06 Feb 2025 13:14:31 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tg1cE-00000006Lzy-1HbA for linux-arm-kernel@lists.infradead.org; Thu, 06 Feb 2025 13:08:24 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-ab6fb1851d4so177529366b.0 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=lists.infradead.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=ICrOpeXnMAJULw3sy2yFq7zd7GElQqcNxCQVMCTI16E8KUDUmJ2zdQiAA2yS0988iP Szgu66VblnCkUQzF0GuPCo9eKUZR4OLFIrwH7+/uo0DiPYcFQcLElY4TJM3c+mDKH67r 4mGrLBvXCIBdN+xkpQZ5qvARWy4Xl4+/uNjAXvo3Prd/ZpOYvlaJY4u5NJho5RYxclnU EHRVlsW1q5olh1PuWjVp/ueWghYuv5w+pJtvPUf79iAyjye58xbEgbpu4PYJvlFbkpao 10Fpq/M+yFgL4yjiqFXpTu0OS1tjMJYwoVZPoENV9bdaIOXL6eR4JOH/RHqcKOrcuD09 uRFA== 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=XSaz1hmeFNF2HjxyTecx9vy4X8S2buXjNL0AQWCZ5yK/vXY+DUBvq6syxEzGwK+Grd klwjX9HgaU1C6wBa3S67hgZwASjHXg/BTXmlupozWnbgeJL96t1AyVJJwQ2mbcQiUsgX +A1obkot3W9dFGmcRXKJMlukLdJYNb28gzEP+X971Hz1JiTSuJo96kel9WWDCX6hvwTv GRdAuSNDx6D0o4Yzvsz7spAU3uty0xjY4gsFZ46flmp1DiMNZS7DHP1AuroaZhws2cWv clTm/y3/KoLWKydATDk5ieN1XMwUSKmO8pu9EhUK2HP/uhMRi8hc3jy+g891dzPSP9HI zMKg== X-Forwarded-Encrypted: i=1; AJvYcCVOn6YqjuUROMWBPUGFo9pWURN6bcxQ2zkbxDBR9K1yz5S/22Tm+LZ2/TPnBNPrKbmxSvris0yRjjvZG8KnQwP/@lists.infradead.org X-Gm-Message-State: AOJu0Yw5bnryT2lawwRLnCTIOo0cLigreBUhS/zkkMn5dAJSMxFlVByJ g/k5J5qWVXkthP338kE6VBMLV2ek+OBUIhKZ6qLVP9PrYsiddXCM35M3rWBpsAI= X-Gm-Gg: ASbGncvPmqiwcoAYwINxfdFks5iuwcl5e/5/q89ZcDE4UqQoTTAZYguwnCKFLBxiTyD 2jYrz/+FkvOipgwcR4EbOLiPfTFSsftSNmd69Bu1HiNGs83xaO93iUq/3PHqvcJzKWk1nU4Wbr2 0cXUkFlKJt4NAnzogT0T5EPHsEcFrOPbv5PGCDMTh0EhoqW3MIh1+R7X+6xfAlLNgnaA6Z8V9H1 /eLpGqXRHeNYly2zlQsCriWFwwrvh6mTcXIQBg2FETNrbqymhvUlhOqM4bI9Q1RFIvbWy5gz6zZ T5psJgZj3fRSl2AScwYtZznKycTlH70XmYkG6k+nYlrVqVQWb+gXNSvmWdQ930PE8+TDNbRuj/A = 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250206_050822_348776_0FAE019C X-CRM114-Status: GOOD ( 12.21 ) 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 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: 13963042 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 BE3DBC02196 for ; Thu, 6 Feb 2025 13:16:06 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bEWiMUNEqLClrTF3KdKFb4oug1HLJiE4dMnSAetMkog=; b=iAQ2IVLe2BMOBBaqdfdQPUn5xw QFTY7Yb4VVB6YRBSz/RstxPSwXkayUfwcDBBgCTGBUuM+oxmN+NvgDx6eetbeev8Zr4GDlbq1SyZc ZMyT56VkzWeJoJx+gtt5pXbwPmF9Kagrsct5N1dI8BTqS/xZBIawotXcHn3qVAIaaCZVjVmv8VRO6 aW6h2PXFcismEKizvyFsh6ITnJ+Rjft4ghnm01QFMRPJD8LtE/iXo9d8ZF9LrPx+iTxGo1po1R+Sw 0SagF//HAlmBZUKjIBRpbTHHw5dsND84U/dsV0l6K/y0+9iaVgXjWZvTow8eyGnA7Aoslv2E0ZIRY ba9XpsQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tg1jW-00000006NjY-2x4p; Thu, 06 Feb 2025 13:15:54 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tg1cF-00000006M0B-0GOb for linux-arm-kernel@lists.infradead.org; Thu, 06 Feb 2025 13:08:24 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5dce27a72e8so2094420a12.2 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=lists.infradead.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=lpYu3pE2dqnXyh/vGZRwS6JyoGjPXrV6FCFTUp/Tu2ExqY12NoJ6LsKBv0Z5C0HqDi YViOsIbXyobPJmUvFe/2MtjRnTaOvOeYTzQTP2vjV7WQAPjhgDc4rNF52krk3SKV5Rtn BZY2TZdpB947m9CkrTV2DjvNEaxe7IL/rwdXJOxMr2WVIF3Lk2+TNvvMUrWQhFpEJdB2 7O3WZN9tL8KH8Sfo/VJW5hgwa4oIk4hYjmKUbW9vIV7TgxVqH+w7E3pup6GihIH7Jkyz zeSxqA94B9Mp6bhCuRwL/8YB/ZYwTwV7a+e830fx79a0VxoxWTFZljxflCnHC8rNeEWu RQoA== 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=OymWOE2Oy5wquVZZUI9ylqjS3CexX5uLxfZGn+ESjHOMai7/t4uVgfM/aA8bqa4DqY +mDzzLiuZ14ErZS+U+8WnQ1sHi44snC9PNDVdlyPfYHf4yCZk9BQrxYyUDCRe0d/6e83 AePzzmZEAODP3st0eBnbJLmljLAfsVEPhg0r/QtY5hgYha/fbfv3JQMseSxqE1ooSkg1 g7UjZLLxL+CNQ+XkQYlAMG9t0mKpROoPTnCLCfcZ/pWXlHT59779I8Lru5thRJLHOoFL fSBsI9kpb8UkOFTrSnhvhFUUvBhGNlIFGiPYl/Hx7ZYAybCJ28GduoC4mbnGIujQBgTb KAeg== X-Forwarded-Encrypted: i=1; AJvYcCU6wlNiN7oc43Ei3wG19ReY9Gmm3XHsGo4tE96v/C4aTqsBhxpHwtBrgyr1n4kCP8CnsAknVFQM9ZI7j6ZYSKQm@lists.infradead.org X-Gm-Message-State: AOJu0YyowhO/YTbC0Tytu2l4tGNlJp30MPGZ2IeAOeGg4Ul7EFTcotdG 8pTWC3nGh5tAhohmeA80Dq1TceAjiRdQst2I62PyZmzYELG2VK8TGHpxTiL3KI0= X-Gm-Gg: ASbGncusUScn3N787uyIIZNkjV7He7wwH+dwkTtaK0C5ODwloJTHQJgAVGClFXWfca7 j3i4bc/fRXxOItgrvjkROKzNf/QfcAK/1kaTaatY3rPzK9Kz/afKo3lnxUivRSVIFZMjv3VkObg kCa1WTtTdIuwIMyYO+xlUOygh50hBzJVJ3hwvVa6NpY8N+p/hiR1gpZsBmxjANpUKzZr5P5yKY6 b9cf/u/YgTHBa7mdWlX3FLxwh+ZJc/7ZQZ5d2udb5/TH4dODGfPqG6wSdgN8JPMiPQEvRMlntD0 QzXBWX3ptWuCwTHiEwX18HVqdXfIXnwkzDdKdo3hkcXO4h04tneB8Ia56IjJ/BnItJTDQD1VvR8 = 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) 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250206_050823_133138_177241A3 X-CRM114-Status: GOOD ( 16.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 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 {