summaryrefslogtreecommitdiff
path: root/zephyr/include/cros/microchip/mec172x.dtsi
blob: e2cb0ff1c2df040c640e580db0b3763c67487023 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* Copyright 2022 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/dts-v1/;

#include <cros/binman.dtsi>
#include <microchip/mec172xnsz.dtsi>

/ {
	chosen {
		cros-ec,adc = &adc0;
		cros-ec,bbram = &bbram;
		cros-ec,espi = &espi0;
		cros-ec,flash = &int_flash;
		cros-ec,flash-controller = &fiu0;
		cros-ec,raw-kb = &cros_kb_raw;
		cros-ec,watchdog = &wdog;
		cros,rtc = &crtc;
	};

	named-bbram-regions {
		compatible = "named-bbram-regions";

		scratchpad {
			offset = <0x00>;
			size = <0x04>;
		};
		saved-reset-flags {
			offset = <0x04>;
			size = <0x04>;
		};
		wake {
			offset = <0x08>;
			size = <0x04>;
		};
		pd0 {
			offset = <0x0c>;
			size = <0x01>;
		};
		pd1 {
			offset = <0x0d>;
			size = <0x01>;
		};
		try_slot {
			offset = <0x0e>;
			size = <0x01>;
		};
		pd2 {
			offset = <0x0f>;
			size = <0x01>;
		};
		ramlog {
			offset = <0x20>;
			size = <0x01>;
		};
		panic_flags {
			offset = <0x23>;
			size = <0x01>;
		};
		panic_bkup {
			offset = <0x24>;
			size = <0x1c>;
		};
		lct_time {
			offset = <0x40>;
			size = <0x04>;
		};
	};

	fiu0: cros-flash {
		compatible = "microchip,xec-cros-flash";
	};

/*
 *	power-states {
 *	suspend_to_idle_instant: suspend_to_idle_instant {
 *	compatible = "zephyr,power-state";
 *	power-state-name = "suspend-to-idle";
 *	substate-id = <0>;
 *	min-residency-us = <500>;
 *	};
 *
 *	suspend_to_idle_normal: suspend_to_idle_normal {
 *	compatible = "zephyr,power-state";
 *	power-state-name = "suspend-to-idle";
 *	substate-id = <1>;
 *	min-residency-us = <200100>;
 *	};
 *	};
 */
};