1/*
2 * Copyright (c) 2022 Microchip Technology Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <arm/armv7-m.dtsi>
8
9#include <zephyr/dt-bindings/i2c/i2c.h>
10#include <zephyr/dt-bindings/gpio/gpio.h>
11#include <zephyr/dt-bindings/clock/mchp_xec_pcr.h>
12#include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h>
13
14#include "mec172xnsz.dtsi"
15#include "mec172x/mec172x-vw-routing.dtsi"
16#include "mec172x/mec172xnsz-pinctrl.dtsi"
17
18/ {
19	flash1: flash@60000000 {
20		reg = <0x60000000 0x80000>;
21	};
22};
23
24&spi0 {
25	status = "okay";
26	clock-frequency = <12000000>;
27	lines = <2>;
28	chip-select = <0>;
29	pinctrl-0 = < &gpspi_cs_n_gpio116
30		      &gpspi_clk_gpio117
31		      &gpspi_io0_gpio074
32		      &gpspi_io1_gpio075
33		      &gpspi_wp_n_gpio076 >;
34	pinctrl-names = "default";
35
36	int_flash: sst25pf040@0 {
37		compatible ="jedec,spi-nor";
38		/* 4 Mbit Flash */
39		size = <DT_SIZE_M(4)>;
40		reg = <0>;
41		spi-max-frequency = <DT_FREQ_M(40)>;
42		status = "okay";
43		jedec-id = [62 06 13];
44	};
45};
46
47&gpspi_wp_n_gpio076 {
48	output-high;
49};
50