1/* 2 * Copyright (c) 2023 Intercreate, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Build test for jedec,spi-nor compatible (drivers/flash/spi_nor.c) wp-gpios and hold-gpios 7 */ 8 9/delete-node/ &mx25r64; 10 11&pinctrl { 12 spi0_default: spi0_default { 13 group1 { 14 psels = <NRF_PSEL(SPIM_SCK, 1, 9)>, 15 <NRF_PSEL(SPIM_MOSI, 0, 11)>, 16 <NRF_PSEL(SPIM_MISO, 0, 12)>; 17 }; 18 }; 19 20 spi0_sleep: spi0_sleep { 21 group1 { 22 psels = <NRF_PSEL(SPIM_SCK, 1, 9)>, 23 <NRF_PSEL(SPIM_MOSI, 0, 11)>, 24 <NRF_PSEL(SPIM_MISO, 0, 12)>; 25 low-power-enable; 26 }; 27 }; 28}; 29 30&spi0 { 31 compatible = "nordic,nrf-spim"; 32 status = "okay"; 33 cs-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; // mx25v16 34 pinctrl-0 = <&spi0_default>; 35 pinctrl-1 = <&spi0_sleep>; 36 pinctrl-names = "default", "sleep"; 37 38 mx25v1635fzui: mx25v1635fzui@0 { 39 compatible = "jedec,spi-nor"; 40 status = "okay"; 41 reg = <0>; 42 spi-max-frequency = <8000000>; // chip supports 80Mhz, SPI0 supports 8MHz 43 size = <0x1000000>; // bits 44 hold-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 45 wp-gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 46 has-dpd; 47 t-enter-dpd = <10000>; 48 t-exit-dpd = <45000>; 49 jedec-id = [ C2 23 15 ]; 50 sfdp-bfp = [ 51 e5 20 f1 ff ff ff ff 00 44 eb 08 6b 08 3b 04 bb 52 ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52 53 10 d8 00 ff 23 72 f1 00 82 ec 04 c2 44 83 48 44 54 30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff 55 ]; 56 }; 57}; 58