1/*
2 * Copyright (c) 2021 Nuvoton Technology Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <mem.h>
8#include "npcx/npcx7.dtsi"
9
10/ {
11	flash0: flash@10070000 {
12		/*
13		 * Reallocate the last 64 KB of code RAM for use as data RAM
14		 * because the internal flash size is 512 KB.
15		 */
16		reg = <0x10070000 DT_SIZE_K(256)>;
17	};
18
19	flash1: flash@64000000 {
20		reg = <0x64000000 DT_SIZE_K(512)>;
21	};
22
23	sram0: memory@200b0000 {
24		compatible = "mmio-sram";
25		reg = <0x200B0000 DT_SIZE_K(126)>;
26	};
27
28	/* RAM space used by Booter */
29	bootloader_ram: memory@200cf800 {
30		compatible = "mmio-sram";
31		reg = <0x200CF800 DT_SIZE_K(2)>;
32	};
33
34	soc-id {
35		device-id = <0x20>;
36	};
37};
38
39&qspi_fiu0 {
40	status = "okay";
41
42	int_flash: w25q40@0 {
43		compatible ="nuvoton,npcx-fiu-nor";
44		size = <DT_SIZE_K(512 * 8)>;
45		reg = <0>;
46		status = "okay";
47
48		/* quad spi bus configuration of nor flash device */
49		qspi-flags = <NPCX_QSPI_SW_CS1>;
50		mapped-addr = <0x64000000>;
51		pinctrl-0 = <&int_flash_sl>;
52		pinctrl-names = "default";
53	};
54};
55