Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2134744ybi; Sat, 13 Jul 2019 07:31:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJQ3Qba88LLpW1/VRN/rxZ8dchCGgS/GYEl7EVZgL54MIR3ZVgH3Qwvg0iy0iKojQcLkb9 X-Received: by 2002:a65:6406:: with SMTP id a6mr3977057pgv.393.1563028303045; Sat, 13 Jul 2019 07:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563028303; cv=none; d=google.com; s=arc-20160816; b=KwgLlM5wNIpBc2lymOfGUkvJ0xaLt0jDWtNoNAG+PETmNYSjd74ku+Qb7bE6JChwSr XKnyE0ga0zkxpyemHRjGLsoV1ORaA2sjrvSMIRTcfYALaCkLB/qGM+OawRnrSctCGmHO l8k2xYFw9LPzny2NJ+mbRS6kSIgTs8pRg5xDz/FM415APQX3stgpPRdmyAw3ZPioE/xe tREl97g27Tl25o8Dk8HxPu+t9SgIaleV+3gn7+7qQ1Scg5veTE5nH//ChA2CK/relaAs GCLGIno/PxEXK6N/Q4c4dgmnrCeYpiEi5B7KN/xZ4Jq+ou50zaV/huOvJW9j5P/L4Lvq UFXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zGNT2kod5SMIazN0WtYbxCmy/BTyyviqmB266TP1Jps=; b=A9oCcM1X/e8RH9L+Mtav1gK0TZu879dQzA9Cmo/AA2I01FDR6ZCdx7SrT4q8x4+C9Y FtJ5DjFCfczeQAl4o9fliIeme9lg+goYD4Q4GSry0Y4wNRtPKJBjc2n7b+hGP6o/G6r1 5GfORGG0Oe5hhMxRCBM4DhAPIP8dw24EFnEvXA2VMenVy85/TmYAGilx5kXRzgX0ACVK 79494bijF9WfEC0BvdNMAVlYduL+OjdNPTtcH/ZvQ4Q9a0K386Ih5c4DE+6P1d8Kb3yd nPooI69c020J56jtoRPY+EdhcBwfDTMNwFY4Vh27wKEK+4JR9bJdJXIpNRQjH+pvIgvS fT7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b="mfq2GQ/U"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j95si10538938plb.349.2019.07.13.07.31.26; Sat, 13 Jul 2019 07:31:43 -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=pass (test mode) header.i=@onstation.org header.s=default header.b="mfq2GQ/U"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727837AbfGMObG (ORCPT + 99 others); Sat, 13 Jul 2019 10:31:06 -0400 Received: from onstation.org ([52.200.56.107]:44382 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727504AbfGMObG (ORCPT ); Sat, 13 Jul 2019 10:31:06 -0400 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 473DB3E838; Sat, 13 Jul 2019 14:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1563028265; bh=P3vNE5lNg+thFcJrJjk1r54W7S8rVsGTSQRhlpcn7lc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mfq2GQ/Uy1dSl+lMhqUTDuwoomzGMJmUBucRgJO9OrIqTDUkBCvvXswxW5Ra0EvSt 5abCXCAuBQ0K0wB3LuuTfTSqNS8Qj5AGmeI6Aj40/sgUfn3BXgY9yIJyb7XmouZo/x p3DqIpjDUz12tdHr8ReQnBscfzdApA8Rml3AusO0= Date: Sat, 13 Jul 2019 10:31:04 -0400 From: Brian Masney To: Luca Weiss 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 Message-ID: <20190713143104.GA11154@onstation.org> References: <20190620225824.2845-1-luca@z3ntu.xyz> <4607058.UzJteFJyig@g550jk> <20190622014302.GA20947@onstation.org> <3733253.hEy9q5iLy3@g550jk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3733253.hEy9q5iLy3@g550jk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 13, 2019 at 01:26:45PM +0200, Luca Weiss wrote: > 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 { I think this sounds reasonable. Reviewed-by: Brian Masney You should resend this out with git send-email and see what Bjorn says. Brian