From abac5f98b750293ff1b783d7958936a486c6d069 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Wed, 21 Feb 2024 17:11:27 -0800 Subject: [PATCH] Fix pin setup. --- boards/arm/zaphod/zaphod.dts | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/boards/arm/zaphod/zaphod.dts b/boards/arm/zaphod/zaphod.dts index c9810f95..7a0c3930 100644 --- a/boards/arm/zaphod/zaphod.dts +++ b/boards/arm/zaphod/zaphod.dts @@ -8,6 +8,27 @@ #include #include +&pinctrl { + spi0_default: spi0_default { + group1 { + psels = + , + , + ; + }; + }; + + spi0_sleep: spi0_sleep { + group1 { + psels = + , + , + ; + low-power-enable; + }; + }; +}; + / { model = "zaphod"; compatible = "petejohanson,zaphod"; @@ -100,9 +121,11 @@ &spi0 { compatible = "nordic,nrf-spim"; status = "okay"; - sck-pin = <7>; - mosi-pin = <5>; - miso-pin = <8>; + + pinctrl-0 = <&spi0_default>; + pinctrl-1 = <&spi0_default>; + pinctrl-names = "default", "sleep"; + cs-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; ls0xx: ls0xx@0 {