Skip to content

Commit

Permalink
Update to pinctrl definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonimbao committed Oct 15, 2024
1 parent 6446b7c commit 0de06d1
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions config/boards/arm/mona_w/mona_w.dts
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,28 @@
status = "okay";
};

&pinctrl {
spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_MOSI, 0, 5)>;
};
};

spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_MOSI, 0, 5)>;
low-power-enable;
};
};
};

&spi1 {
compatible = "nordic,nrf-spim";
status = "okay";
mosi-pin = <5>;
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself.
sck-pin = <6>;
miso-pin = <8>;

pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";

led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";
Expand Down

0 comments on commit 0de06d1

Please sign in to comment.