device-tree: nexus7: Add IMEM syscon and reboot reason support
authorJohn Stultz <john.stultz@linaro.org>
Mon, 8 Aug 2016 22:34:03 +0000 (15:34 -0700)
committerAndy Gross <andy.gross@linaro.org>
Wed, 24 Aug 2016 04:07:14 +0000 (23:07 -0500)
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>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-apq8064-asus-nexus7-flo.dts

index 94e9cbbc61226c7798261764ec682d05bfb7a85c..b72e09506448d40da5f46cc6beee4109bde4def7 100644 (file)
                                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>;
+                       };
+               };
        };
 };
This page took 0.053504 seconds and 5 git commands to generate.