summaryrefslogtreecommitdiffstats
path: root/arch/arm/dts/imx7.dtsi
blob: 1c67bdc54620595a8759dcb0f8a73e7bdfff51f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* SPDX-License-Identifier: GPL-2.0-only OR MIT */

#include "imx7d-ddrc.dtsi"

/ {
	aliases {
		gpr.reboot_mode = &reboot_mode_gpr;
	};
};

&src {
	compatible = "fsl,imx7d-src", "syscon", "simple-mfd";

	reboot_mode_gpr: reboot-mode {
		compatible = "barebox,syscon-reboot-mode";
		offset = <0x94>, <0x98>; /* SRC_GPR{9,10} */
		mask = <0xffffffff>, <0x40000000>;
		mode-normal = <0>, <0>;
		mode-serial = <0x00000010>, <0x40000000>;
	};

	ca7_reset: cortex-a7-reboot {
		compatible = "syscon-reboot";
		regmap = <&src>;
		offset = <0x4>;
		mask = <1>;
		value = <1>;
		/* This is not fit for use as general purpose reset */
		restart-priority = <5>;
		/*
		 * Can't use imxwd-warm due to errata e10574:
		 * Watchdog: A watchdog timeout or software trigger will
		 * not reset the SOC
		 */
		barebox,restart-warm-bootrom;
	};
};