1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/delete-node/ &mx25r64;
8
9&pinctrl {
10	qspi_default: qspi_default {
11		group1 {
12			psels = <NRF_PSEL(QSPI_SCK, 0, 30)>,
13				<NRF_PSEL(QSPI_IO0, 0, 29)>,
14				<NRF_PSEL(QSPI_IO1, 0, 28)>,
15				<NRF_PSEL(QSPI_IO2, 0, 04)>,
16				<NRF_PSEL(QSPI_IO3, 0, 03)>,
17				<NRF_PSEL(QSPI_CSN, 0, 31)>;
18		};
19	};
20	qspi_sleep: qspi_sleep {
21		group1 {
22			psels = <NRF_PSEL(QSPI_SCK, 0, 30)>,
23				<NRF_PSEL(QSPI_IO0, 0, 29)>,
24				<NRF_PSEL(QSPI_IO1, 0, 28)>,
25				<NRF_PSEL(QSPI_IO2, 0, 04)>,
26				<NRF_PSEL(QSPI_IO3, 0, 03)>;
27			low-power-enable;
28		};
29		group2 {
30			psels = <NRF_PSEL(QSPI_CSN, 0, 31)>;
31			low-power-enable;
32			bias-pull-up;
33		};
34	};
35};
36
37&qspi {
38	pinctrl-0 = <&qspi_default>;
39	pinctrl-1 = <&qspi_sleep>;
40	pinctrl-names = "default", "sleep";
41
42	mx25l51: mx25l51245g@0 {
43		compatible = "nordic,qspi-nor";
44		reg = <0>;
45		/* MX25L5145G supports only pp and pp4io */
46		writeoc = "pp4io";
47		/* MX25L5145G supports all readoc options */
48		readoc = "read4io";
49		sck-frequency = <2000000>;
50		jedec-id = [c2 20 1A];
51		sfdp-bfp = [
52			e5 20 fb ff  1f ff ff ff  44 eb 08 6b  08 3b 04 bb
53			fe ff ff ff  ff ff 00 ff  ff ff 44 eb  0c 20 0f 52
54			10 d8 00 ff  d6 49 c5 00  81 df 04 e3  44 03 67 38
55			30 b0 30 b0  f7 bd d5 5c  4a 9e 29 ff  f0 50 f9 85
56		];
57		size = <0x20000000>;
58		has-dpd;
59		t-enter-dpd = <10000>;
60		t-exit-dpd = <30000>;
61		enter-4byte-addr = <0x85>;
62		address-size-32;
63	};
64};
65