From patchwork Mon Aug 8 22:34:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 73477 Delivered-To: patches@linaro.org Received: by 10.140.29.52 with SMTP id a49csp192292qga; Mon, 8 Aug 2016 15:34:11 -0700 (PDT) X-Received: by 10.98.100.67 with SMTP id y64mr166717383pfb.84.1470695651636; Mon, 08 Aug 2016 15:34:11 -0700 (PDT) Return-Path: Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com. [2607:f8b0:400e:c00::235]) by mx.google.com with ESMTPS id u3si39067207pab.162.2016.08.08.15.34.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Aug 2016 15:34:11 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::235 as permitted sender) client-ip=2607:f8b0:400e:c00::235; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::235 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x235.google.com with SMTP id p64so123308080pfb.1 for ; Mon, 08 Aug 2016 15:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q13agEwup7HNA0F9x1cAZJW4HHyJVDZaprAlHt8k/Yk=; b=UUlIMAkHEnM+rw0vxrdbZKgFfb0bwJTGaIRjvskstwBAttyS1RK74uCGh4kp2dHld0 Zwxqptz3OG0ITam3KE5b8gkP+1KsWx2ynYM95kViiFM6pdDYpDkicWWtnxknGZrYI7Qh upuoxPYWoc2ppwgdkEsxLyI/n6NgVadRArHzc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Q13agEwup7HNA0F9x1cAZJW4HHyJVDZaprAlHt8k/Yk=; b=PeI5kHlBqVSfRGhfeKJOnFYN+c2fDl8qiQmiHCU+pXkf5RHAuaGYV6Hq2cbA3pyQ4u jKXa8o0h2gz8zdG5xHOJHfg4EoGTVrAOJecQrV5IN20SdrGAwSTo6zsNlXNpWw0mbPuw F1jD/d+BrzlX4J5Et8Zi7z9URjfu4I0Oqz1/eDw67G8dMYURyIEdBgr5nK/QlZAV/BwG T4wqtJ1sKpBXzwydTxxnFQgVLNqhzA2RlmbJH2Z9g0pyL8bMsLi/uI9KimfV/Pskos8j v/B3jhc7tlnOWggucZbJ/fNrIe25L38yPrQkKs5lxaxSKIGq0S4E3Nd5tXaqNa22nvyB izkg== X-Gm-Message-State: AEkoousdOwyTS8buXvZWpU5D5EZDyE3Ko1f7JuooVfe92ItT3RXSJLYMwoR5kA3EdOrJI7H3Ig8= X-Received: by 10.98.8.142 with SMTP id 14mr167507362pfi.57.1470695651248; Mon, 08 Aug 2016 15:34:11 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id d185sm50430028pfd.80.2016.08.08.15.34.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Aug 2016 15:34:10 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Rob Herring , Andy Gross , Bjorn Andersson , Stephen Boyd , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot reason support Date: Mon, 8 Aug 2016 15:34:03 -0700 Message-Id: <1470695643-32169-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470695643-32169-1-git-send-email-john.stultz@linaro.org> References: <1470695643-32169-1-git-send-email-john.stultz@linaro.org> This patch add the IMEM syscon memory region to the DT, as well as addds support for the magic reboot reason values that are written to the address for each mode. Cc: Rob Herring Cc: Andy Gross Cc: Bjorn Andersson Cc: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: John Stultz --- arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 1.9.1 diff --git a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts index 7b05f07..ff856c3 100644 --- a/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts +++ b/arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts @@ -272,5 +272,19 @@ vqmmc-supply = <&pm8921_s4>; }; }; + + imem@2a03f000 { + compatible = "syscon", "simple-mfd"; + reg = <0x2a03f000 0x1000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x65c>; + + mode-normal = <0x77665501>; + mode-bootloader = <0x77665500>; + mode-recovery = <0x77665502>; + }; + }; }; };