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 b4f4147 commit 9a8cebc
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions config/boards/arm/mona_w/mona_w.dts
Original file line number Diff line number Diff line change
Expand Up @@ -101,27 +101,27 @@
};

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

spi3_sleep: spi3_sleep {
group1 {
psels = <NRF_PSEL(SPIM_MOSI, 0, 5)>;
low-power-enable;
};
};
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>;
compatible = "nordic,nrf-spim";
status = "okay";
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 9a8cebc

Please sign in to comment.