Skip to content

Commit af6bb3b

Browse files
build: fix issue with multiple peripherals on one block
previous shield implementation assigned multiple peripherals into single hardware block which is not valid configuration removed the unused interfaces from arduino adapter. if there is need for them in the future they can be added as needed. Signed-off-by: Robert Gałat <[email protected]>
1 parent 8819643 commit af6bb3b

File tree

1 file changed

+14
-55
lines changed

1 file changed

+14
-55
lines changed

boards/shields/simple_arduino_adapter/boards/nrf54l15dk_common.overlay

Lines changed: 14 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
* Arduino header adapter shield for nrf54l15dk
88
* This shield maps nrf54l15dk pins to Arduino header format
99
* allowing standard Arduino shields to work on nrf54l15dk
10+
*
11+
* IMPORTANT: This implementation avoids serial interface conflicts by using
12+
* separate hardware blocks for I2C, SPI, and UART functions.
1013
*/
1114

1215
/ {
@@ -40,28 +43,24 @@
4043
};
4144
};
4245

46+
/*
47+
* Serial Interface Assignment Strategy (avoiding conflicts):
48+
*
49+
* Address Mapping:
50+
* - 0xc6000 (Serial Interface 20): UART20 (console) - RESERVED
51+
* - 0xc8000 (Serial Interface 22): I2C22 (Arduino I2C)
52+
* - 0x104000 (Serial Interface 30): SPI30 (Arduino SPI)
53+
*
54+
* This assignment ensures no conflicts between console and Arduino functions.
55+
*/
56+
4357
arduino_spi: &spi30 {
4458
status = "okay";
4559
pinctrl-0 = <&spi30_default_alt>;
4660
pinctrl-1 = <&spi30_sleep_alt>;
4761
pinctrl-names = "default", "sleep";
4862
};
4963

50-
arduino_i2c: &i2c20 {
51-
status = "okay";
52-
pinctrl-0 = <&i2c20_default_alt>;
53-
pinctrl-1 = <&i2c20_sleep_alt>;
54-
pinctrl-names = "default", "sleep";
55-
};
56-
57-
arduino_serial: &uart21 {
58-
status = "okay";
59-
current-speed = <115200>;
60-
pinctrl-0 = <&uart21_default_alt>;
61-
pinctrl-1 = <&uart21_sleep_alt>;
62-
pinctrl-names = "default", "sleep";
63-
};
64-
6564
&pinctrl {
6665
spi30_default_alt: spi30_default_alt {
6766
group1 {
@@ -79,44 +78,4 @@ arduino_serial: &uart21 {
7978
low-power-enable;
8079
};
8180
};
82-
i2c20_default_alt: i2c20_default_alt {
83-
group1 {
84-
psels = <NRF_PSEL(TWIM_SDA, 0, 4)>,
85-
<NRF_PSEL(TWIM_SCL, 0, 5)>;
86-
};
87-
};
88-
89-
i2c20_sleep_alt: i2c20_sleep_alt {
90-
group1 {
91-
psels = <NRF_PSEL(TWIM_SDA, 0, 4)>,
92-
<NRF_PSEL(TWIM_SCL, 0, 5)>;
93-
low-power-enable;
94-
};
95-
};
96-
97-
uart21_default_alt: uart21_default_alt {
98-
group1 {
99-
psels = <NRF_PSEL(UART_TX, 0, 6)>,
100-
<NRF_PSEL(UART_RX, 0, 7)>;
101-
};
102-
};
103-
104-
uart21_sleep_alt: uart21_sleep_alt {
105-
group1 {
106-
psels = <NRF_PSEL(UART_TX, 0, 6)>,
107-
<NRF_PSEL(UART_RX, 0, 7)>;
108-
low-power-enable;
109-
};
110-
};
111-
};
112-
113-
/ {
114-
aliases {
115-
smtc-hal-uart = &uart20;
116-
smtc-watchdog = &wdt31;
117-
};
118-
};
119-
120-
&wdt31 {
121-
status = "okay";
12281
};

0 commit comments

Comments
 (0)