1/* 2 * Copyright (c) 2018 Peter Bigot Consulting, LLC 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* Add SPI support on Particle Mesh via nRF52840 SPI1 8 * 9 * NOTE: This file is replicated in particle_{argon,xenon}. 10 * Changes should be made in all instances. */ 11 12&pinctrl { 13 spi1_default: spi1_default { 14 group1 { 15 psels = <NRF_PSEL(SPIM_SCK, 1, 15)>, 16 <NRF_PSEL(SPIM_MOSI, 1, 13)>, 17 <NRF_PSEL(SPIM_MISO, 1, 14)>; 18 }; 19 }; 20 21 spi1_sleep: spi1_sleep { 22 group1 { 23 psels = <NRF_PSEL(SPIM_SCK, 1, 15)>, 24 <NRF_PSEL(SPIM_MOSI, 1, 13)>, 25 <NRF_PSEL(SPIM_MISO, 1, 14)>; 26 low-power-enable; 27 }; 28 }; 29}; 30 31feather_spi: &spi1 { /* feather SPI */ 32 compatible = "nordic,nrf-spim"; 33 status = "okay"; 34 pinctrl-0 = <&spi1_default>; 35 pinctrl-1 = <&spi1_sleep>; 36 pinctrl-names = "default", "sleep"; 37 cs-gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; 38}; 39