Skip to content

Commit f3d760b

Browse files
ktaborowskiRobertGalatNordic
authored andcommitted
samples: use semtech shield is samples
Use refactored semtech shields approach. Signed-off-by: Krzysztof Taborowski <[email protected]>
1 parent 78a0d57 commit f3d760b

File tree

8 files changed

+54
-274
lines changed

8 files changed

+54
-274
lines changed

samples/sid_end_device/boards/nrf52840dk_nrf52840.overlay

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
&spi3 {
8-
status = "disabled";
9-
};
10-
11-
&spi2 {
12-
status = "disabled";
13-
};
14-
157
/{
16-
nrfx_spi_gpios{
17-
compatible = "gpio-keys";
18-
nrfx_spi_sck: sck {
19-
gpios = <&gpio1 0xF GPIO_ACTIVE_HIGH>;
20-
label = "spi_sck";
21-
};
22-
nrfx_spi_miso: miso {
23-
gpios = <&gpio1 0xE GPIO_ACTIVE_HIGH>;
24-
label = "spi_miso";
25-
};
26-
nrfx_spi_mosi: mosi {
27-
gpios = <&gpio1 0xD GPIO_ACTIVE_HIGH>;
28-
label = "spi_mosi";
29-
};
30-
nrfx_spi_cs: cs {
31-
gpios = <&gpio1 0x8 GPIO_ACTIVE_LOW>;
32-
label = "spi_cs";
33-
};
34-
};
35-
368
state_notifier_gpios{
379
compatible = "gpio-keys";
3810
state_notifier_error: error {
@@ -64,26 +36,6 @@
6436
state-notifier-receiving = &state_notifier_receiving;
6537
};
6638

67-
semtech_sx1262_gpios{
68-
compatible = "gpio-keys";
69-
semtech_sx1262_reset_gpios: reset {
70-
gpios = <&gpio0 0x3 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
71-
label = "semtech_sx1262 Reset";
72-
};
73-
semtech_sx1262_busy_gpios: busy {
74-
gpios = <&gpio1 0x4 GPIO_ACTIVE_HIGH>;
75-
label = "semtech_sx1262 Busy";
76-
};
77-
semtech_sx1262_antenna_enable_gpios: antena_enable {
78-
gpios = <&gpio1 0xa GPIO_ACTIVE_HIGH>;
79-
label = "semtech_sx1262 Antena Enable";
80-
};
81-
semtech_sx1262_dio1_gpios: dio1 {
82-
gpios = <&gpio1 0x6 (GPIO_ACTIVE_HIGH|GPIO_PULL_DOWN)>;
83-
label = "semtech_sx1262 DIO1";
84-
};
85-
};
86-
8739
chosen {
8840
nordic,pm-ext-flash = &mx25r64;
8941
};

samples/sid_end_device/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
sid_semtech: &spi4 {
8-
compatible = "nordic,nrf-spim";
9-
status = "okay";
10-
cs-gpios = <&gpio1 0x9 GPIO_ACTIVE_LOW>;
11-
pinctrl-0 = <&spi4_default>;
12-
pinctrl-1 = <&spi4_sleep>;
13-
pinctrl-names = "default", "sleep";
14-
clock-frequency = <DT_FREQ_M(8)>;
15-
};
16-
177
/{
188
state_notifier_gpios{
199
compatible = "gpio-keys";
@@ -46,26 +36,6 @@
4636
state-notifier-receiving = &state_notifier_receiving;
4737
};
4838

49-
semtech_sx1262_gpios{
50-
compatible = "gpio-keys";
51-
semtech_sx1262_reset_gpios: reset {
52-
gpios = <&gpio0 0x4 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
53-
label = "semtech_sx1262 Reset";
54-
};
55-
semtech_sx1262_busy_gpios: busy {
56-
gpios = <&gpio1 0x5 GPIO_ACTIVE_HIGH>;
57-
label = "semtech_sx1262 Busy";
58-
};
59-
semtech_sx1262_antenna_enable_gpios: antena_enable {
60-
gpios = <&gpio1 0xa GPIO_ACTIVE_HIGH>;
61-
label = "semtech_sx1262 Antena Enable";
62-
};
63-
semtech_sx1262_dio1_gpios: dio1 {
64-
gpios = <&gpio1 0x7 (GPIO_ACTIVE_HIGH|GPIO_PULL_DOWN)>;
65-
label = "semtech_sx1262 DIO1";
66-
};
67-
};
68-
6939
chosen {
7040
nordic,pm-ext-flash = &mx25r64;
7141
};

samples/sid_end_device/boards/nrf54l15dk_nrf54l10_cpuapp.overlay

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,11 @@
1212
state-notifier-working = &led3;
1313
};
1414

15-
semtech_sx1262_gpios{
16-
compatible = "gpio-keys";
17-
semtech_sx1262_reset_gpios: reset {
18-
gpios = <&gpio2 8 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
19-
label = "semtech_sx1262 Reset";
20-
};
21-
semtech_sx1262_busy_gpios: busy {
22-
gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH)>;
23-
label = "semtech_sx1262 Busy";
24-
};
25-
semtech_sx1262_antenna_enable_gpios: antena_enable {
26-
gpios = <&gpio2 10 (GPIO_ACTIVE_HIGH)>;
27-
label = "semtech_sx1262 Antena Enable";
28-
};
29-
semtech_sx1262_dio1_gpios: dio1 {
30-
gpios = <&gpio1 11 (GPIO_ACTIVE_HIGH|GPIO_PULL_DOWN)>;
31-
label = "semtech_sx1262 DIO1";
32-
};
33-
};
34-
3515
chosen {
3616
nordic,pm-ext-flash = &mx25r64;
3717
};
3818
};
3919

40-
sid_semtech: &spi30 {
41-
compatible = "nordic,nrf-spim";
42-
status = "okay";
43-
cs-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
44-
pinctrl-0 = <&spi30_default_alt>;
45-
pinctrl-1 = <&spi30_sleep_alt>;
46-
pinctrl-names = "default", "sleep";
47-
clock-frequency = <DT_FREQ_M(8)>;
48-
};
49-
5020
&cpuapp_rram {
5121
reg = <0x0 DT_SIZE_K(1024)>;
5222
};
@@ -56,25 +26,6 @@ sid_semtech: &spi30 {
5626
ranges = <0x0 0x20000000 DT_SIZE_K(192)>;
5727
};
5828

59-
&pinctrl {
60-
spi30_default_alt: spi30_default_alt {
61-
group1 {
62-
psels = <NRF_PSEL(SPIM_SCK, 0, 3)>,
63-
<NRF_PSEL(SPIM_MISO, 0, 2)>,
64-
<NRF_PSEL(SPIM_MOSI, 0, 1)>;
65-
};
66-
};
67-
68-
spi30_sleep_alt: spi30_sleep_alt {
69-
group1 {
70-
psels = <NRF_PSEL(SPIM_SCK, 0, 3)>,
71-
<NRF_PSEL(SPIM_MISO, 0, 2)>,
72-
<NRF_PSEL(SPIM_MOSI, 0, 1)>;
73-
low-power-enable;
74-
};
75-
};
76-
};
77-
7829
&adc {
7930
status = "disabled";
8031
};

samples/sid_end_device/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,6 @@
1212
state-notifier-working = &led3;
1313
};
1414

15-
semtech_sx1262_gpios{
16-
compatible = "gpio-keys";
17-
semtech_sx1262_reset_gpios: reset {
18-
gpios = <&gpio2 8 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
19-
label = "semtech_sx1262 Reset";
20-
};
21-
semtech_sx1262_busy_gpios: busy {
22-
gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH)>;
23-
label = "semtech_sx1262 Busy";
24-
};
25-
semtech_sx1262_antenna_enable_gpios: antena_enable {
26-
gpios = <&gpio2 10 (GPIO_ACTIVE_HIGH)>;
27-
label = "semtech_sx1262 Antena Enable";
28-
};
29-
semtech_sx1262_dio1_gpios: dio1 {
30-
gpios = <&gpio1 11 (GPIO_ACTIVE_HIGH|GPIO_PULL_DOWN)>;
31-
label = "semtech_sx1262 DIO1";
32-
};
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)>;
4415
};
4516

4617
&cpuapp_rram {
@@ -52,25 +23,6 @@ sid_semtech: &spi30 {
5223
ranges = <0x0 0x20000000 0x40000>;
5324
};
5425

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-
7426
&adc {
7527
status = "disabled";
7628
};

samples/sid_end_device/boards/nrf54l15dk_nrf54l15_cpuapp_ns.overlay

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,6 @@
1111
state-notifier-registered = &led2;
1212
state-notifier-working = &led3;
1313
};
14-
15-
semtech_sx1262_gpios{
16-
compatible = "gpio-keys";
17-
semtech_sx1262_reset_gpios: reset {
18-
gpios = <&gpio2 8 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
19-
label = "semtech_sx1262 Reset";
20-
};
21-
semtech_sx1262_busy_gpios: busy {
22-
gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH)>;
23-
label = "semtech_sx1262 Busy";
24-
};
25-
semtech_sx1262_antenna_enable_gpios: antena_enable {
26-
gpios = <&gpio2 10 (GPIO_ACTIVE_HIGH)>;
27-
label = "semtech_sx1262 Antena Enable";
28-
};
29-
semtech_sx1262_dio1_gpios: dio1 {
30-
gpios = <&gpio1 11 (GPIO_ACTIVE_HIGH|GPIO_PULL_DOWN)>;
31-
label = "semtech_sx1262 DIO1";
32-
};
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)>;
4414
};
4515

4616
&cpuapp_rram {
@@ -52,25 +22,6 @@ sid_semtech: &spi30 {
5222
ranges = <0x0 0x20000000 0x40000>;
5323
};
5424

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-
7425
&adc {
7526
status = "disabled";
7627
};

0 commit comments

Comments
 (0)