Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2466397ybi; Thu, 20 Jun 2019 15:59:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/YKdLoZ7ysdaKfx6M3ZsD+2ViQ5ldE0lg2HM9qQIIa/bGV5u/7v36nd+qHW0j1OLdMZew X-Received: by 2002:a63:6b0a:: with SMTP id g10mr1551557pgc.295.1561071599798; Thu, 20 Jun 2019 15:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561071599; cv=none; d=google.com; s=arc-20160816; b=WIDW9iqlh9FdBRLeBn/p60gCJH7G47lsrwGTCIpEkV3LV5H4RtCK+JyBaQCJJn+MM/ JX+eTaPaM3YK8SuXO0PMLCKNrMvBwTH3sUuqbESzj9aFice937JiP70/8KqycZlc71vd rkqQ6kusY3c1bDXX71UR39LBODlea56utgX7vpQK5L/tv2K6op0/SjPbAfwBN+9tD6lh S5DMMSajGuKwkFhrAGAE3kGsI2XJ/oTGXov6ob06oxIRc4++ktc1yIjJKr4CeVN8lgWb GACKbkMWCsFwQMyw0uwWuLd6Kzk7B31Q8VX8bJLwl0O3CeyECNQYHP2Ggk1J2gkwGrl2 OD4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ILfK9oKUE/Wkx2Pc3IqnAx476UIKB0Rw3JhQTmKIKvw=; b=GsqsmXLanYTtZc6S2E1ONPXTpoPPyeLy+FiR7z9QpqWgrCD9SOrDu+dotprg9HTBL6 lGNyY6lV8qr3J27c3cQxFzJ24QJTXax8Wn3UUA9PFKedWw+Ab6PqbFmJvGRc0lHPmxfa LiM05diPD+wzjXdWLrnJrEBATT2sWIofxo2j+7xzwJYXl7l0q5HSFrVobehMWagW5v0j HgeUo++/7x0aveGTMZcR4tIbWbnebvEYSDrp8RQsSud/3ptVCF5woEw+GXs1WMSuAUEq gc4GAjf4eQ9zCYEkvdkyjJvYagVAKKYapfUUhujN2/E1f3XQAH2cyDcZYuRV65aLF/GX trzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=NXwWPSsF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d37si899194pla.288.2019.06.20.15.59.42; Thu, 20 Jun 2019 15:59:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=NXwWPSsF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725951AbfFTW7i (ORCPT + 99 others); Thu, 20 Jun 2019 18:59:38 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:42164 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbfFTW7i (ORCPT ); Thu, 20 Jun 2019 18:59:38 -0400 Received: from localhost.localdomain (80-110-121-20.cgn.dynamic.surfer.at [80.110.121.20]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 66645C2A9C; Thu, 20 Jun 2019 22:59:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1561071575; bh=FTGmDnKKypvtndUTsH4/yLMEt9oBVapsz5XGfmtXkW8=; h=From:To:Cc:Subject:Date; b=NXwWPSsFM6BHazsoRnGmTpS4FSl0Jj8sJIkZRKLbACrzEZxIOj8rEywV6txjwcpWt OpZ66lqWMS65jcJZgjHGN1rDHvWrzPMqcleTxLfhjtUMSYL21QTPv63wRxuurvZSIT j/Fap4/+l/w/BCLgTRfxs2z95cnbYkC+ffC7FoPI= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~martijnbraam/pmos-upstream@lists.sr.ht, Luca Weiss , Andy Gross , David Brown , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: msm8974-FP2: add reboot-mode node Date: Fri, 21 Jun 2019 00:58:24 +0200 Message-Id: <20190620225824.2845-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This enables userspace to signal the bootloader to go into the bootloader or recovery mode. The magic values can be found in both the downstream kernel and the LK kernel (bootloader). Signed-off-by: Luca Weiss --- Sidenote: Why are there no userspace tools to be found that support this? Anyways, we have one now in postmarketOS :) arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts index 643c57f84818..f86736a6d77e 100644 --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -338,6 +338,20 @@ }; }; }; + + imem@fe805000 { + compatible = "syscon", "simple-mfd"; + reg = <0xfe805000 0x1000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x65c>; + + mode-normal = <0x77665501>; + mode-bootloader = <0x77665500>; + mode-recovery = <0x77665502>; + }; + }; }; &spmi_bus { -- 2.22.0