fmt: fix Trunk Check lint issues on nrf54l15-port

- extra_scripts/nrf54l15_linker.py: move regular imports above
  Import("env") to silence E402, add trunk-ignore-all(F821) for the
  PIO/SCons SConstruct injection (matches esp32_pre.py / nrf52_extra.py
  convention)
- src/platform/nrf54l15/NRF54L15Bluetooth.cpp: clang-format 16.0.3
- boards/nrf54l15dk.json + variants/nrf54l15/nrf54l15dk/README.md:
  prettier 3.8.3 (also resolves markdownlint MD060 on README tables)

No behavior change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
CValdesS
2026-05-01 12:06:51 +02:00
parent f02a5e316d
commit a2aca32342
4 changed files with 498 additions and 473 deletions

View File

@@ -7,27 +7,19 @@
"variant": "nrf54l15dk/nrf54l15/cpuapp"
}
},
"connectivity": [
"bluetooth"
],
"connectivity": ["bluetooth"],
"debug": {
"default_tools": [
"jlink"
],
"default_tools": ["jlink"],
"jlink_device": "nRF54L15_M33",
"svd_path": "nrf54l15.svd"
},
"frameworks": [
"zephyr"
],
"frameworks": ["zephyr"],
"name": "Nordic nRF54L15-DK (PCA10156)",
"upload": {
"maximum_ram_size": 262144,
"maximum_size": 1572864,
"protocol": "jlink",
"protocols": [
"jlink"
]
"protocols": ["jlink"]
},
"url": "https://www.nordicsemi.com/Products/nRF54L15",
"vendor": "Nordic Semiconductor"

View File

@@ -1,3 +1,7 @@
#!/usr/bin/env python3
# trunk-ignore-all(ruff/F821)
# trunk-ignore-all(flake8/F821): For SConstruct imports
#
# post:extra_scripts/nrf54l15_linker.py
#
# Fix for Zephyr two-pass link on nRF54L15:
@@ -11,11 +15,12 @@
# so we parse the COMMAND line from build.ninja and run just the gcc -E part,
# skipping the cmake_transform_depfile step (only needed for Ninja deps tracking).
Import("env")
import os
import re
import subprocess
Import("env")
if env.get("PIOENV") != "nrf54l15dk":
pass # Only for the nrf54l15dk environment
else:

View File

File diff suppressed because it is too large Load Diff

View File

@@ -25,18 +25,18 @@ therefore live on **P2** and are driven by **SPIM00**.
## Connections — J2 header, P2 bank
| E22-900M30S | GPIO | DK pin | Function |
|-------------|-------|--------|-----------------------------------------------------|
| MISO | P2.04 | 36 | SPIM00 data in |
| NSS / CS | P2.05 | 37 | SPI chip-select (driven by RadioLib as a GPIO) |
| DIO1 | P2.06 | 38 | IRQ — modem interrupt (routed via gpiote30) |
| BUSY | P2.03 | 35 | Module busy (GPIO input) |
| NRESET | P2.00 | 32 | Module reset (GPIO output, active LOW) |
| RXEN | P2.07 | 39 | LNA enable — held HIGH via `SX126X_ANT_SW` |
| MOSI | P2.02 | 34 | SPIM00 data out |
| SCK | P2.01 | 33 | SPIM00 clock |
| GND | — | GND | Common ground |
| VCC | — | VDD | 3.3 V |
| E22-900M30S | GPIO | DK pin | Function |
| ----------- | ----- | ------ | ---------------------------------------------- |
| MISO | P2.04 | 36 | SPIM00 data in |
| NSS / CS | P2.05 | 37 | SPI chip-select (driven by RadioLib as a GPIO) |
| DIO1 | P2.06 | 38 | IRQ — modem interrupt (routed via gpiote30) |
| BUSY | P2.03 | 35 | Module busy (GPIO input) |
| NRESET | P2.00 | 32 | Module reset (GPIO output, active LOW) |
| RXEN | P2.07 | 39 | LNA enable — held HIGH via `SX126X_ANT_SW` |
| MOSI | P2.02 | 34 | SPIM00 data out |
| SCK | P2.01 | 33 | SPIM00 clock |
| GND | — | GND | Common ground |
| VCC | — | VDD | 3.3 V |
> **Numbering convention**: `P0.n = n`, `P1.n = 16+n`, `P2.n = 32+n`.
> Example: `P2.04` → 32 + 4 = **36**.
@@ -65,17 +65,17 @@ the LNA would stay disabled (radio deaf in RX).
## Reserved DK pins — do not reuse
| Pins | Reserved function |
|--------------|-----------------------------------------------------------|
| P0.00P0.03 | IMCU debug UART (uart30, J-Link VCOM — used by RTT host) |
| P0.04 | BTN3 |
| P1.00P1.01 | 32 kHz crystal |
| P1.02P1.03 | NFC antenna |
| P1.10 | LED1 (status LED — kept) |
| P1.13 | BTN0 (only remaining user button) |
| P1.14 | LED3 |
| P2.01P2.05 | SPIM00 / E22 (see connection table above) |
| P2.08P2.10 | Trace ETM / LED2 (avoid) |
| Pins | Reserved function |
| ----------- | -------------------------------------------------------- |
| P0.00P0.03 | IMCU debug UART (uart30, J-Link VCOM — used by RTT host) |
| P0.04 | BTN3 |
| P1.00P1.01 | 32 kHz crystal |
| P1.02P1.03 | NFC antenna |
| P1.10 | LED1 (status LED — kept) |
| P1.13 | BTN0 (only remaining user button) |
| P1.14 | LED3 |
| P2.01P2.05 | SPIM00 / E22 (see connection table above) |
| P2.08P2.10 | Trace ETM / LED2 (avoid) |
---