|
4 | 4 | * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
5 | 5 | */ |
6 | 6 |
|
7 | | -&pinctrl { |
8 | | - spi21_default: spi21_default { |
9 | | - group1 { |
10 | | - psels = <NRF_PSEL(SPIM_SCK, 2, 6)>, |
11 | | - <NRF_PSEL(SPIM_MISO, 1, 11)>, |
12 | | - <NRF_PSEL(SPIM_MOSI, 2, 8)>; |
13 | | - }; |
14 | | - }; |
15 | | - |
16 | | - spi21_sleep: spi21_sleep { |
17 | | - group1 { |
18 | | - psels = <NRF_PSEL(SPIM_SCK, 2, 6)>, |
19 | | - <NRF_PSEL(SPIM_MISO, 1, 11)>, |
20 | | - <NRF_PSEL(SPIM_MOSI, 2, 8)>; |
21 | | - low-power-enable; |
22 | | - }; |
23 | | - }; |
24 | | -}; |
25 | | - |
26 | | - sid_semtech: &spi21 { |
27 | | - compatible = "nordic,nrf-spim"; |
28 | | - status = "okay"; |
29 | | - cs-gpios = <&gpio2 0xa GPIO_PULL_UP>; |
30 | | - pinctrl-0 = <&spi21_default>; |
31 | | - pinctrl-1 = <&spi21_sleep>; |
32 | | - pinctrl-names = "default", "sleep"; |
33 | | - clock-frequency = <DT_FREQ_M(8)>; |
34 | | -}; |
35 | | - |
36 | | -/{ |
| 7 | + /{ |
37 | 8 | aliases { |
38 | 9 | state-notifier-connected = &led0; |
39 | 10 | state-notifier-time-sync = &led1; |
|
44 | 15 | semtech_sx1262_gpios{ |
45 | 16 | compatible = "gpio-keys"; |
46 | 17 | semtech_sx1262_reset_gpios: reset { |
47 | | - gpios = <&gpio0 0x2 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>; |
| 18 | + gpios = <&gpio2 8 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>; |
48 | 19 | label = "semtech_sx1262 Reset"; |
49 | 20 | }; |
50 | 21 | semtech_sx1262_busy_gpios: busy { |
51 | | - gpios = <&gpio0 0x0 0x0>; |
| 22 | + gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH)>; |
52 | 23 | label = "semtech_sx1262 Busy"; |
53 | 24 | }; |
54 | 25 | semtech_sx1262_antenna_enable_gpios: antena_enable { |
55 | | - gpios = <&gpio0 0x1 0x0>; |
| 26 | + gpios = <&gpio2 10 (GPIO_ACTIVE_HIGH)>; |
56 | 27 | label = "semtech_sx1262 Antena Enable"; |
57 | 28 | }; |
58 | 29 | semtech_sx1262_dio1_gpios: dio1 { |
59 | | - gpios = <&gpio0 0x3 0x0>; |
| 30 | + gpios = <&gpio1 11 (GPIO_ACTIVE_HIGH|GPIO_PULL_DOWN)>; |
60 | 31 | label = "semtech_sx1262 DIO1"; |
61 | 32 | }; |
62 | | - }; |
| 33 | + }; |
| 34 | +}; |
| 35 | + |
| 36 | +sid_semtech: &spi30 { |
| 37 | + compatible = "nordic,nrf-spim"; |
| 38 | + status = "okay"; |
| 39 | + cs-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
| 40 | + pinctrl-0 = <&spi30_default_alt>; |
| 41 | + pinctrl-1 = <&spi30_sleep_alt>; |
| 42 | + pinctrl-names = "default", "sleep"; |
| 43 | + clock-frequency = <DT_FREQ_M(8)>; |
63 | 44 | }; |
64 | 45 |
|
65 | | -// restore full RRAM and SRAM space - by default some parts are dedicated to FLRP |
66 | 46 | &cpuapp_rram { |
67 | 47 | reg = <0x0 DT_SIZE_K(1524)>; |
68 | 48 | }; |
|
72 | 52 | ranges = <0x0 0x20000000 0x40000>; |
73 | 53 | }; |
74 | 54 |
|
| 55 | +&pinctrl { |
| 56 | + spi30_default_alt: spi30_default_alt { |
| 57 | + group1 { |
| 58 | + psels = <NRF_PSEL(SPIM_SCK, 0, 3)>, |
| 59 | + <NRF_PSEL(SPIM_MISO, 0, 2)>, |
| 60 | + <NRF_PSEL(SPIM_MOSI, 0, 1)>; |
| 61 | + }; |
| 62 | + }; |
| 63 | + |
| 64 | + spi30_sleep_alt: spi30_sleep_alt { |
| 65 | + group1 { |
| 66 | + psels = <NRF_PSEL(SPIM_SCK, 0, 3)>, |
| 67 | + <NRF_PSEL(SPIM_MISO, 0, 2)>, |
| 68 | + <NRF_PSEL(SPIM_MOSI, 0, 1)>; |
| 69 | + low-power-enable; |
| 70 | + }; |
| 71 | + }; |
| 72 | +}; |
| 73 | + |
| 74 | +&adc { |
| 75 | + status = "disabled"; |
| 76 | +}; |
| 77 | +&uart21 { |
| 78 | + status = "disabled"; |
| 79 | +}; |
| 80 | +&pwm20 { |
| 81 | + status = "disabled"; |
| 82 | +}; |
| 83 | +&i2c20 { |
| 84 | + status = "disabled"; |
| 85 | +}; |
| 86 | +&spi20 { |
| 87 | + status = "disabled"; |
| 88 | +}; |
| 89 | +&spi22 { |
| 90 | + status = "disabled"; |
| 91 | +}; |
| 92 | + |
| 93 | +// TODO: re-enable HWFC once it's fixed |
| 94 | +&uart20 { |
| 95 | + /delete-property/ hw-flow-control; |
| 96 | +}; |
| 97 | + |
75 | 98 |
|
76 | 99 | // Change IRQ ids to handle button interrupts. |
77 | 100 |
|
|
0 commit comments