|
| 1 | +/* |
| 2 | + * Copyright (c) 2025 Nordic Semiconductor ASA |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
| 5 | + */ |
| 6 | + |
| 7 | +/{ |
| 8 | + /* Disable buttons to avoid collision with interrupt and SCK pins for NFC tag reader. */ |
| 9 | + /delete-node/ buttons; |
| 10 | + |
| 11 | + aliases { |
| 12 | + /delete-property/ sw0; |
| 13 | + /delete-property/ sw1; |
| 14 | + /delete-property/ sw2; |
| 15 | + /delete-property/ sw3; |
| 16 | + }; |
| 17 | +}; |
| 18 | + |
| 19 | +&pinctrl { |
| 20 | + spi21_default: spi21_default { |
| 21 | + group1 { |
| 22 | + psels = <NRF_PSEL(SPIM_SCK, 1, 13)>, |
| 23 | + <NRF_PSEL(SPIM_MOSI, 1, 11)>, |
| 24 | + <NRF_PSEL(SPIM_MISO, 1, 12)>; |
| 25 | + }; |
| 26 | + }; |
| 27 | + |
| 28 | + spi21_sleep: spi21_sleep { |
| 29 | + group1 { |
| 30 | + psels = <NRF_PSEL(SPIM_SCK, 1, 13)>, |
| 31 | + <NRF_PSEL(SPIM_MOSI, 1, 11)>, |
| 32 | + <NRF_PSEL(SPIM_MISO, 1, 12)>; |
| 33 | + low-power-enable; |
| 34 | + }; |
| 35 | + }; |
| 36 | +}; |
| 37 | + |
| 38 | +&spi21 { |
| 39 | + compatible = "nordic,nrf-spim"; |
| 40 | + status = "okay"; |
| 41 | + cs-gpios = <&gpio2 8 GPIO_ACTIVE_LOW>; |
| 42 | + |
| 43 | + pinctrl-0 = <&spi21_default>; |
| 44 | + pinctrl-1 = <&spi21_sleep>; |
| 45 | + pinctrl-names = "default", "sleep"; |
| 46 | + nucleo_nfc@0 { |
| 47 | + compatible = "x-nucleo-nfc"; |
| 48 | + reg = <0>; |
| 49 | + spi-max-frequency = <DT_FREQ_M(4)>; |
| 50 | + irq-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; |
| 51 | + }; |
| 52 | +}; |
| 53 | + |
| 54 | +/ { |
| 55 | + nfc_power_switch: nfc_power_switch { |
| 56 | + status = "okay"; |
| 57 | + compatible = "nfc-power-control"; |
| 58 | + gpios = <&gpio2 6 ( GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN )>; |
| 59 | + }; |
| 60 | +}; |
| 61 | + |
| 62 | +&gpio0 { |
| 63 | + status = "okay"; |
| 64 | +}; |
| 65 | + |
| 66 | +&gpio1 { |
| 67 | + status = "okay"; |
| 68 | +}; |
| 69 | + |
| 70 | +&gpio2 { |
| 71 | + status = "okay"; |
| 72 | +}; |
0 commit comments