Skip to content

Commit

Permalink
Update nice_nano_v2.overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanaq authored Oct 20, 2024
1 parent 9c9b307 commit 64943ba
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions config/boards/nice_nano_v2.overlay
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
#include <dt-bindings/led/led.h>

&pinctrl {
spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 5)>,
<NRF_PSEL(SPIM_MOSI, 0, 6)>,
<NRF_PSEL(SPIM_MISO, 0, 7)>;
};
};
spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 5)>,
<NRF_PSEL(SPIM_MOSI, 0, 6)>,
<NRF_PSEL(SPIM_MISO, 0, 7)>;
low-power-enable;
};
};
};

&spi1 {
compatible = "nordic,nrf-spim";
status = "okay";
mosi-pin = <6>;
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
// mosi-pin = <6>;
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself.
sck-pin = <5>;
miso-pin = <7>;
// sck-pin = <5>;
// miso-pin = <7>;

led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";
label = "WS2812";
// label = "WS2812";

/* SPI */
reg = <0>; /* ignored, but necessary for SPI bindings */
Expand Down

0 comments on commit 64943ba

Please sign in to comment.