1/* 2 * Copyright (c) 2022-2023 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/delete-node/ &mx25r64; 8 9&qspi { 10 status = "disabled"; 11}; 12 13/* The mx25, on nrf52840dk_nrf52840, uses pins for spi0, spi1, spi2 and spi3 14 * to provide quad-spi feature. In individual specifications each of the spi 15 * notes define own clock source (SCK), but spi2 shares the same clock source 16 * as qspi configuration, which is pin (0,19). That is why spi2 is used here 17 * to communicate with mx25, when qspi is not used, to avoid rerouting clock 18 * pin. 19 */ 20&spi2 { 21 compatible = "nordic,nrf-spi"; 22 status = "okay"; 23 cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; 24 pinctrl-0 = <&spi2_default>; 25 pinctrl-1 = <&spi2_sleep>; 26 pinctrl-names = "default", "sleep"; 27 mx25r64: mx25r6435f@0 { 28 compatible = "jedec,spi-nor"; 29 reg = <0>; 30 spi-max-frequency = <8000000>; 31 jedec-id = [c2 28 17]; 32 size = <67108864>; 33 wp-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; 34 hold-gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; 35 }; 36}; 37