1/*
2 * Copyright (c) 2021 Microchip Technology Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#define MSVW 1
8#define SMVW 0
9
10/ {
11	mchp-xec-espi-vw-routing {
12		compatible = "microchip,xec-espi-vw-routing";
13
14		/* eSPI Virtual Vire (VW) routing */
15		vw_slp_s3_n: vw_slp_s3_n {
16			/* Host-index MSVW/SMVW MSVW/SMVW-index source */
17			vw-reg = <0x02 MSVW 0 0>;
18			vw-girq = <24 0>;
19			status = "okay";
20		};
21		vw_slp_s4_n: vw_slp_s4_n {
22			vw-reg = <0x02 MSVW 0 1>;
23			vw-girq = <24 1>;
24			status = "okay";
25		};
26		vw_slp_s5_n: vw_slp_s5_n {
27			vw-reg = <0x02 MSVW 0 2>;
28			vw-girq = <24 2>;
29			status = "okay";
30		};
31		vw_sus_stat_n: vw_sus_stat_n {
32			vw-reg = <0x03 MSVW 1 0>;
33			vw-girq = <24 4>;
34			status = "okay";
35		};
36		vw_pltrst_n: vw_pltrst_n {
37			vw-reg = <0x03 MSVW 1 1>;
38			vw-girq = <24 5>;
39			status = "okay";
40		};
41		vw_oob_rst_warn: vw_oob_rst_warn {
42			vw-reg = <0x03 MSVW 1 2>;
43			vw-girq = <24 6>;
44			status = "okay";
45		};
46		vw_host_rst_warn: vw_host_rst_warn {
47			vw-reg = <0x07 MSVW 2 0>;
48			vw-girq = <24 8>;
49			status = "okay";
50		};
51		vw_smiout_n: vw_smiout_n {
52			vw-reg = <0x07 MSVW 2 1>;
53			vw-girq = <24 9>;
54			status = "disabled";
55		};
56		vw_nmiout_n: vw_nmiout_n {
57			vw-reg = <0x07 MSVW 2 2>;
58			vw-girq = <24 10>;
59			status = "disabled";
60		};
61		vw_sus_warn_n: vw_sus_warn_n {
62			vw-reg = <0x41 MSVW 3 0>;
63			vw-girq = <24 12>;
64			status = "okay";
65		};
66		vw_sus_pwrdn_ack: vw_sus_pwrdn_ack {
67			vw-reg = <0x41 MSVW 3 1>;
68			vw-girq = <24 13>;
69			status = "okay";
70		};
71		vw_slp_a_n: vw_slp_a_n {
72			vw-reg = <0x41 MSVW 3 3>;
73			vw-girq = <24 15>;
74			status = "okay";
75		};
76		vw_slp_lan_n: vw_slp_lan_n {
77			vw-reg = <0x42 MSVW 4 0>;
78			vw-girq = <24 16>;
79			status = "okay";
80		};
81		vw_slp_wlan_n: vw_slp_wlan_n {
82			vw-reg = <0x42 MSVW 4 1>;
83			vw-girq = <24 17>;
84			status = "okay";
85		};
86		vw_host_c10: vw_host_c10 {
87			vw-reg = <0x47 MSVW 7 0>;
88			vw-girq = <25 0>;
89			status = "okay";
90		};
91		vw_dnx_warn: vw_dnx_warn {
92			vw-reg = <0x4a MSVW 8 1>;
93			vw-girq = <25 5>;
94			status = "okay";
95		};
96
97		/* Device to Host (SMVW) do not have SoC interrupts */
98		vw_oob_rst_ack: vw_oob_rst_ack {
99			vw-reg = <0x04 SMVW 0 0>;
100			status = "okay";
101		};
102		vw_wake_n: vw_wake_n {
103			vw-reg = <0x04 SMVW 0 2>;
104			status = "okay";
105		};
106		vw_pme_n: vw_pme_n {
107			vw-reg = <0x04 SMVW 0 3>;
108			status = "okay";
109		};
110		vw_slave_boot_done: vw_slave_boot_done {
111			vw-reg = <0x05 SMVW 1 0>;
112			status = "okay";
113		};
114		vw_error_fatal: vw_error_fatal {
115			vw-reg = <0x05 SMVW 1 1>;
116			status = "okay";
117		};
118		vw_error_non_fatal: vw_error_non_fatal {
119			vw-reg = <0x05 SMVW 1 2>;
120			status = "okay";
121		};
122		vw_slave_boot_status: vw_slave_boot_status {
123			vw-reg = <0x05 SMVW 1 3>;
124			status = "okay";
125		};
126		vw_sci_n: vw_sci_n {
127			vw-reg = <0x06 SMVW 2 0>;
128			status = "okay";
129		};
130		vw_smi_n: vw_smi_n {
131			vw-reg = <0x06 SMVW 2 1>;
132			status = "okay";
133		};
134		vw_rcin_n: vw_rcin_n {
135			vw-reg = <0x06 SMVW 2 2>;
136			status = "okay";
137		};
138		vw_host_rst_ack: vw_host_rst_ack {
139			vw-reg = <0x06 SMVW 2 3>;
140			status = "okay";
141		};
142		vw_sus_ack_n: vw_sus_ack_n {
143			vw-reg = <0x40 SMVW 3 0>;
144			status = "okay";
145		};
146		vw_dnx_ack: vw_dnx_ack {
147			vw-reg = <0x40 SMVW 3 1>;
148			status = "okay";
149		};
150		vw_t2c_gpio_0: vw_t2c_gpio_0 {
151			vw-reg = <0x50 SMVW 6 0>;
152			status = "disabled";
153		};
154		vw_t2c_gpio_1: vw_t2c_gpio_1 {
155			vw-reg = <0x50 SMVW 6 1>;
156			status = "disabled";
157		};
158		vw_t2c_gpio_2: vw_t2c_gpio_2 {
159			vw-reg = <0x50 SMVW 6 2>;
160			status = "disabled";
161		};
162		vw_t2c_gpio_3: vw_t2c_gpio_3 {
163			vw-reg = <0x50 SMVW 6 3>;
164			status = "disabled";
165		};
166		vw_t2c_gpio_4: vw_t2c_gpio_4 {
167			vw-reg = <0x51 SMVW 7 0>;
168			status = "disabled";
169		};
170		vw_t2c_gpio_5: vw_t2c_gpio_5 {
171			vw-reg = <0x51 SMVW 7 1>;
172			status = "disabled";
173		};
174		vw_t2c_gpio_6: vw_t2c_gpio_6 {
175			vw-reg = <0x51 SMVW 7 2>;
176			status = "disabled";
177		};
178		vw_t2c_gpio_7: vw_t2c_gpio_7 {
179			vw-reg = <0x51 SMVW 7 3>;
180			status = "disabled";
181		};
182		vw_t2c_gpio_8: vw_t2c_gpio_8 {
183			vw-reg = <0x52 SMVW 8 0>;
184			status = "disabled";
185		};
186		vw_t2c_gpio_9: vw_t2c_gpio_9 {
187			vw-reg = <0x52 SMVW 8 1>;
188			status = "disabled";
189		};
190		vw_t2c_gpio_10: vw_t2c_gpio_10 {
191			vw-reg = <0x52 SMVW 8 2>;
192			status = "disabled";
193		};
194		vw_t2c_gpio_11: vw_t2c_gpio_11 {
195			vw-reg = <0x52 SMVW 8 3>;
196			status = "disabled";
197		};
198		vw_t2c_gpio_12: vw_t2c_gpio_12 {
199			vw-reg = <0x53 SMVW 9 0>;
200			status = "disabled";
201		};
202		vw_t2c_gpio_13: vw_t2c_gpio_13 {
203			vw-reg = <0x53 SMVW 9 1>;
204			status = "disabled";
205		};
206		vw_t2c_gpio_14: vw_t2c_gpio_14 {
207			vw-reg = <0x53 SMVW 9 2>;
208			status = "disabled";
209		};
210		vw_t2c_gpio_15: vw_t2c_gpio_15 {
211			vw-reg = <0x53 SMVW 9 3>;
212			status = "disabled";
213		};
214		vw_t2c_gpio_16: vw_t2c_gpio_16 {
215			vw-reg = <0x54 SMVW 10 0>;
216			status = "disabled";
217		};
218		vw_t2c_gpio_17: vw_t2c_gpio_17 {
219			vw-reg = <0x54 SMVW 10 1>;
220			status = "disabled";
221		};
222		vw_t2c_gpio_18: vw_t2c_gpio_18 {
223			vw-reg = <0x54 SMVW 10 2>;
224			status = "disabled";
225		};
226		vw_t2c_gpio_19: vw_t2c_gpio_19 {
227			vw-reg = <0x54 SMVW 10 3>;
228			status = "disabled";
229		};
230	};
231};
232