Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1983743ybi; Sat, 13 Jul 2019 04:28:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBGp6XPikejyhdP4C9VrCe978nKG9LhEXyxupqgijTlb+z8Fz+ouTXE6lZ8dMJIHezadYn X-Received: by 2002:a17:90a:17ab:: with SMTP id q40mr18152245pja.106.1563017289000; Sat, 13 Jul 2019 04:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563017288; cv=none; d=google.com; s=arc-20160816; b=yrDLEZS8exy+wInR/c8zdkSB0bcSdFQgWQKe1cuZiLIe0hKim4j3YRqUbzNJqKceue 09fbRxaPVaRWv+MP6Sftrqd0YbYp7kE7XOIY3YJ4dYG9PUi7bY7UF07y77SfomLbLwcL slnjvSsLt75EM0Vnw+xDSSd/kRwGN5Z0uiF7LTYbcTg3EXRZEzUVNsiDZyXAiAsTsrUN gQYFSrOeZpKB5DEukYV3UX724W/f/gPpH0Fx3jjhHcKu4ymPQ50FTaUhC0hUa0h5Z09x l6MXlS7zAXYAlZJj30IKcyAWR3P3Zo0wg2qA6ScHqBtTdJudl4L4wxRrzVJfk3ttOUeo aYMw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g8L77uUsuPQm2YShM4k3K0Py7ockXsds1fYI9Fj6sXI=; b=uNLQmIBbseXn42akbYKhvF5myj6SwuQErwo/7utQzdFGwigII6Sv0QrvHmYNzEejNw Eo2+T6XMf6cu61GilyRh1eFD7zpgVKONOO9crsTHPsMZq/ShSKiMM8q8KsG6BFCHJtut wSlRf5tc/pS8Ih+bLKwAtwoNmksSlTBz2ZWSuVNm1+J23Et1T+nFooIupq2TnAFbKaSy YKrhYUy2Iag/NBUaLcOd1TJn6AkAl9BVHYejiZBPZA+kYyWjL/zrQ1iNYtNJCox/gPEV v+v18ke5knKQYxTrCElghXJpyNeGwn+MhLES8Vy6IjEszA1jGFdeyGVhtJ9fGBghhkwF jhoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=GuU+64IR; 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 o6si6347637pgv.273.2019.07.13.04.27.38; Sat, 13 Jul 2019 04:28:08 -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=GuU+64IR; 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 S1727656AbfGML0t (ORCPT + 99 others); Sat, 13 Jul 2019 07:26:49 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:37368 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726474AbfGML0t (ORCPT ); Sat, 13 Jul 2019 07:26:49 -0400 Received: from g550jk.localnet (80-123-55-184.adsl.highway.telekom.at [80.123.55.184]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 40FDFC00ED; Sat, 13 Jul 2019 11:26:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1563017206; bh=bSfORFWKc+/pN+2RMX10ijrg8NjEbUNxysCDmNwbQzA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=GuU+64IReyZBxYuFgXPVWS28qbjidsqSYqjpnV+hey5WtfVvEhhU6p01hOFBwp2zO 2roU3HuLCWnOxxX7G3mH64UiBtSFrf0UBORneqZUrWgJoDnCH6VbjXUcHryBo3YY9t 5VVpYgkdFEq2k0WEoXGdtQU3vuC04G50MYNChGLw= From: Luca Weiss To: Brian Masney Cc: linux-arm-msm@vger.kernel.org, ~martijnbraam/pmos-upstream@lists.sr.ht, Andy Gross , David Brown , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dts: msm8974-FP2: add reboot-mode node Date: Sat, 13 Jul 2019 13:26:45 +0200 Message-ID: <3733253.hEy9q5iLy3@g550jk> In-Reply-To: <20190622014302.GA20947@onstation.org> References: <20190620225824.2845-1-luca@z3ntu.xyz> <4607058.UzJteFJyig@g550jk> <20190622014302.GA20947@onstation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Brian, how about something like that (formatting is surely broken because I'm not sending this with git-send-email^^)? I'd says this should be work fine with all devices as all modes are defined in the device-specific dts but the reg and offset values are in the board dts. Should I also add a status = "disabled" to the reboot-mode node in the board dts? diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/ dts/qcom-msm8974-fairphone-fp2.dts index 643c57f84818..ff4a3e0aa746 100644 --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts @@ -338,6 +338,16 @@ }; }; }; + + imem@fe805000 { + status = "okay"; + + reboot-mode { + mode-normal = <0x77665501>; + mode-bootloader = <0x77665500>; + mode-recovery = <0x77665502>; + }; + }; }; &spmi_bus { diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom- msm8974.dtsi index 45b5c8ef0374..1927430bded7 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -1085,6 +1085,17 @@ }; }; }; + + imem@fe805000 { + status = "disabled"; + compatible = "syscon", "simple-mfd"; + reg = <0xfe805000 0x1000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x65c>; + }; + }; }; smd { Regards, Luca