1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7&pinctrl {
8	spi3_default_alt: spi3_default_alt {
9		group1 {
10			psels = <NRF_PSEL(SPIM_SCK, 0, 11)>,
11				<NRF_PSEL(SPIM_MOSI, 0, 12)>,
12				<NRF_PSEL(SPIM_MISO, 0, 13)>;
13		};
14	};
15
16	spi3_sleep_alt: spi3_sleep_alt {
17		group1 {
18			psels = <NRF_PSEL(SPIM_SCK, 0, 11)>,
19				<NRF_PSEL(SPIM_MOSI, 0, 12)>,
20				<NRF_PSEL(SPIM_MISO, 0, 13)>;
21			low-power-enable;
22		};
23	};
24};
25
26&spi3 {
27	pinctrl-0 = <&spi3_default_alt>;
28	pinctrl-1 = <&spi3_sleep_alt>;
29	pinctrl-names = "default", "sleep";
30	cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>,
31		   <&gpio0 10 GPIO_ACTIVE_LOW>;
32
33	at45db0: at45db041e@0 {
34		compatible = "atmel,at45";
35		reg = <0>;
36		spi-max-frequency = <15000000>;
37		jedec-id = [1f 24 00];
38		size = <4194304>;
39		sector-size = <65536>;
40		block-size = <2048>;
41		page-size = <256>;
42		enter-dpd-delay = <2000>;
43		exit-dpd-delay = <35000>;
44		status = "disabled";
45	};
46
47	at45db1: at45db321e@1 {
48		compatible = "atmel,at45";
49		reg = <1>;
50		spi-max-frequency = <15000000>;
51		jedec-id = [1f 27 01];
52		size = <33554432>;
53		sector-size = <65536>;
54		block-size = <4096>;
55		page-size = <512>;
56		use-udpd;
57		enter-dpd-delay = <1000>;
58		exit-dpd-delay = <180000>;
59		status = "okay";
60	};
61};
62
63&uart0 {
64	/*
65	 * Only TX is used in this sample, so disable RX to prevent UART
66	 * receiver from being enabled and consuming power.
67	 */
68	disable-rx;
69};
70