diff --git a/config/boards/nice_nano_v2.overlay b/config/boards/nice_nano_v2.overlay index 01146ff..613f07c 100644 --- a/config/boards/nice_nano_v2.overlay +++ b/config/boards/nice_nano_v2.overlay @@ -1,27 +1,14 @@ #include -&pinctrl { - spi3_default: spi3_default { - group1 { - psels = ; - }; - }; - spi3_sleep: spi3_sleep { - group1 { - psels = ; - low-power-enable; - }; - }; -}; - -&spi3 { +&spi1 { compatible = "nordic,nrf-spim"; + /* Cannot be used together with i2c0. */ status = "okay"; - - pinctrl-0 = <&spi3_default>; - pinctrl-1 = <&spi3_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>; led_strip: ws2812@0 { compatible = "worldsemi,ws2812-spi"; @@ -32,10 +19,9 @@ spi-max-frequency = <4000000>; /* WS2812 */ - chain-length = <26>; /* arbitrary; change at will */ + chain-length = <26>; /* There are per-key RGB, but the first 6 are underglow */ spi-one-frame = <0x70>; spi-zero-frame = <0x40>; - color-mapping = ; }; };