Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1458282

[PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot reason support

From John Stultz <john.stultz@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot reason support
Date 2016-08-09 00:40 +0200
Message-ID <s41nb-7sd-1@gated-at.bofh.it> (permalink)
References <s41nb-7sd-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <robh+dt@kernel.org>
Cc: Andy Gross <agross@codeaurora.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Stephen Boyd <stephen.boyd@linaro.org>
Cc: linux-arm-msm@vger.kernel.org
Cc: devicetree@vger.kernel.org
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

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>;
+			};
+		};
 	};
 };
-- 
1.9.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot reason support John Stultz <john.stultz@linaro.org> - 2016-08-09 00:40 +0200
  Re: [PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot  reason support Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-08-10 06:30 +0200
    Re: [PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot  reason support John Stultz <john.stultz@linaro.org> - 2016-08-10 20:30 +0200
      Re: [PATCH 2/2] device-tree: nexus7: Add IMEM syscon and reboot  reason support Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-08-10 22:00 +0200

csiph-web