Skip to content

Commit

Permalink
Merge pull request #13 from petejohanson/zephyr-3-5-support
Browse files Browse the repository at this point in the history
Fix pin setup.
  • Loading branch information
petejohanson authored Feb 22, 2024
2 parents c867bcd + abac5f9 commit a440cbf
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions boards/arm/zaphod/zaphod.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@
#include <nordic/nrf52840_qiaa.dtsi>
#include <dt-bindings/zmk/matrix_transform.h>

&pinctrl {
spi0_default: spi0_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 7)>
, <NRF_PSEL(SPIM_MOSI, 0, 5)>
, <NRF_PSEL(SPIM_MISO, 0, 8)>
;
};
};

spi0_sleep: spi0_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 7)>
, <NRF_PSEL(SPIM_MOSI, 0, 5)>
, <NRF_PSEL(SPIM_MISO, 0, 8)>
;
low-power-enable;
};
};
};

/ {
model = "zaphod";
compatible = "petejohanson,zaphod";
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a440cbf

Please sign in to comment.