From 3b98e7b6ebd6fd5bf2b49e2c7f1ae9a407b9f171 Mon Sep 17 00:00:00 2001 From: Ramon Imbao Date: Tue, 15 Oct 2024 16:45:13 +0800 Subject: [PATCH] Update to pinctrl definitions --- config/boards/arm/mona_w/mona_w.dts | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/config/boards/arm/mona_w/mona_w.dts b/config/boards/arm/mona_w/mona_w.dts index a6db981..d4162e7 100644 --- a/config/boards/arm/mona_w/mona_w.dts +++ b/config/boards/arm/mona_w/mona_w.dts @@ -100,13 +100,28 @@ status = "okay"; }; +&pinctrl { + spi1_default: spi1_default { + group1 { + psels = ; + }; + }; + + spi1_sleep: spi1_sleep { + group1 { + psels = ; + 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";