1/*
2 * Copyright (c) 2023 Nuvoton Technology Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <mem.h>
8#include "npcx/npcx9.dtsi"
9
10/ {
11	chosen {
12		zephyr,entropy = &drbg0;
13	};
14
15	flash0: flash@10058000 {
16		reg = <0x10058000 DT_SIZE_K(416)>;
17	};
18
19	flash1: flash@64000000 {
20		reg = <0x64000000 DT_SIZE_K(1024)>;
21	};
22
23	sram0: memory@200c0000 {
24		compatible = "mmio-sram";
25		reg = <0x200C0000 DT_SIZE_K(92)>;
26	};
27
28	/* RAM space used by Booter */
29	bootloader_ram: memory@200d7000 {
30		compatible = "mmio-sram";
31		reg = <0x200D7000 DT_SIZE_K(4)>;
32	};
33
34	soc {
35		drbg0: drbg@110 {
36			compatible = "nuvoton,npcx-drbg";
37			reg = <0x110 0x2c 0x15c 0x04>;
38			context-buffer-size = <240>;
39			status = "disabled";
40		};
41	};
42
43	soc-id {
44		device-id = <0x2b>;
45	};
46};
47
48&qspi_fiu0 {
49	int_flash: w25q80@0 {
50		compatible ="nuvoton,npcx-fiu-nor";
51		size = <DT_SIZE_M(1 * 8)>;
52		reg = <0>;
53		status = "okay";
54
55		/* quad spi bus configuration of nor flash device */
56		qspi-flags = <NPCX_QSPI_SW_CS1>;
57		mapped-addr = <0x64000000>;
58		pinctrl-0 = <&int_flash_sl>;
59		pinctrl-names = "default";
60	};
61};
62