1/*
2 * Copyright (c) 2021 Nuvoton Technology Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/* Common eSPI Virtual Wire (VW) mapping configurations in npcx family */
8#include <nuvoton/npcx/npcx-espi-vws-map.dtsi>
9
10/*
11 *   Specific eSPI Virtual Wire (VW) mapping configurations in npcx9 series
12 * |--------------------------------------------------------------------------|
13 * | VW idx | SLV reg | Wire Bit 3   | Wire Bit 2   | Wire Bit 1| Wire Bit 0  |
14 * |--------------------------------------------------------------------------|
15 * |       Output (Slave-to-Master) Virtual Wires (High at reset state)       |
16 * |--------------------------------------------------------------------------|
17 * | 50h[P] | VWGPSM0 | SLV_GPIO_3   | SLV_GPIO_2   | SLV_GPIO_1| SLV_GPIO_0  |
18 * | 51h[P] | VWGPSM1 | SLV_GPIO_7   | SLV_GPIO_6   | SLV_GPIO_5| SLV_GPIO_4  |
19 * |--------------------------------------------------------------------------|
20 *  [S] System-/[P] Platform-Specific Virtual Wires
21 */
22
23/ {
24	npcx-espi-vws-map {
25		compatible = "nuvoton,npcx-espi-vw-conf";
26
27		/*
28		 * Virtual wires for platform level usage (High at Reset state)
29		 */
30		/* index 50h (Out) */
31		vw_slv_gpio_0 {
32			vw-reg = <NPCX_VWGPSM0 0x01>;
33		};
34		vw_slv_gpio_1 {
35			vw-reg = <NPCX_VWGPSM0 0x02>;
36		};
37		vw_slv_gpio_2 {
38			vw-reg = <NPCX_VWGPSM0 0x04>;
39		};
40		vw_slv_gpio_3 {
41			vw-reg = <NPCX_VWGPSM0 0x08>;
42		};
43
44		/* index 51h (Out) */
45		vw_slv_gpio_4 {
46			vw-reg = <NPCX_VWGPSM1 0x01>;
47		};
48		vw_slv_gpio_5 {
49			vw-reg = <NPCX_VWGPSM1 0x02>;
50		};
51		vw_slv_gpio_6 {
52			vw-reg = <NPCX_VWGPSM1 0x04>;
53		};
54		vw_slv_gpio_7 {
55			vw-reg = <NPCX_VWGPSM1 0x08>;
56		};
57	};
58};
59