Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ports/zephyr-cp/boards/nordic/nrf54l15dk/circuitpython.toml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
CIRCUITPY_BUILD_EXTENSIONS = ["hex", "signed.bin"]

# QFN48 package pin numbers.
[pins]
# board.UART() pins: P0.00/P0.01, the debugger's VCOM0 serial port.
TX = 23
RX = 24
51 changes: 49 additions & 2 deletions ports/zephyr-cp/boards/nordic/nrf54l15tag/board.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,44 @@
// See "nRF serial instances" in internal-modules/iobroker/README.md for how
// the instances are shared and allocated.
//
// Instance 21 stays with the fixed i2c21 (bme688 and adxl367 hang off it) and
// instance 22 with the fixed spi22 (bmi270). Instance 30 is left alone:
// Instance 21 is i2c21, the bus the bme688 and adxl367 hang off, and instance
// 22 is spi22, the bmi270's bus (its CS is P1.07). Their Zephyr sensor nodes
// are disabled, so both are routed like the others. Instance 30 is left alone:
// uart30 is the console above and i2c30/spi30 share that same peripheral, so
// they must not be enabled. There is no i2c00 on this SoC, so instance 00 can
// only carry spi00 (or uart00).

&pinctrl {
i2c21_dyn_default: i2c21_dyn_default {
group1 {
psels = <NRF_PSEL_DISCONNECTED(TWIM_SDA)>,
<NRF_PSEL_DISCONNECTED(TWIM_SCL)>;
};
};

i2c21_dyn_sleep: i2c21_dyn_sleep {
group1 {
psels = <NRF_PSEL_DISCONNECTED(TWIM_SDA)>,
<NRF_PSEL_DISCONNECTED(TWIM_SCL)>;
};
};

spi22_dyn_default: spi22_dyn_default {
group1 {
psels = <NRF_PSEL_DISCONNECTED(SPIM_SCK)>,
<NRF_PSEL_DISCONNECTED(SPIM_MOSI)>,
<NRF_PSEL_DISCONNECTED(SPIM_MISO)>;
};
};

spi22_dyn_sleep: spi22_dyn_sleep {
group1 {
psels = <NRF_PSEL_DISCONNECTED(SPIM_SCK)>,
<NRF_PSEL_DISCONNECTED(SPIM_MOSI)>,
<NRF_PSEL_DISCONNECTED(SPIM_MISO)>;
};
};

i2c20_dyn_default: i2c20_dyn_default {
group1 {
psels = <NRF_PSEL_DISCONNECTED(TWIM_SDA)>,
Expand Down Expand Up @@ -87,6 +118,22 @@
};
};

&i2c21 {
status = "okay";
zephyr,deferred-init;
pinctrl-0 = <&i2c21_dyn_default>;
pinctrl-1 = <&i2c21_dyn_sleep>;
pinctrl-names = "default", "sleep";
};

&spi22 {
status = "okay";
zephyr,deferred-init;
pinctrl-0 = <&spi22_dyn_default>;
pinctrl-1 = <&spi22_dyn_sleep>;
pinctrl-names = "default", "sleep";
};

&i2c20 {
status = "okay";
zephyr,deferred-init;
Expand Down
10 changes: 10 additions & 0 deletions ports/zephyr-cp/boards/nordic/nrf54l15tag/circuitpython.toml
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
CIRCUITPY_BUILD_EXTENSIONS = ["hex"]

# QFN48 package pin numbers.
[pins]
# board.I2C() pins: the sensor I2C bus, P1.11/P1.12.
SCL = 39
SDA = 40
# board.SPI() pins: the bmi270's bus, P1.08/P1.06/P1.05.
SCK = 9
MOSI = 7
MISO = 6
8 changes: 8 additions & 0 deletions ports/zephyr-cp/boards/nordic/nrf54lm20dk/circuitpython.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ BUTTON1 = "E8"
BUTTON2 = "F8"
BUTTON3 = "H3"

# board.SPI() pins: the expansion header's SPI positions (header D3/D0/D1).
SCK = "H4"
MOSI = "H7"
MISO = "H6"
# board.UART() pins: P0.06/P0.07, the debugger's VCOM0 serial port.
TX = "H2"
RX = "G3"

# Nordic expansion board header (P17), named per the board silkscreen.
# Positions key the gpio-map order (header GPIO 00-21, odd/even columns from
# the A0/B0 end); I0 sits opposite the header's mid GND and has no gpio-map
Expand Down
Loading