Skip to content

Commit

Permalink
Switch SPI pins
Browse files Browse the repository at this point in the history
  • Loading branch information
trentrand committed Jun 5, 2024
1 parent 9f8ce68 commit 3710da8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
};

&pinctrl {
spi0_default_alt: spi0_default_alt {
spi0_default: spi0_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 22)>,
<NRF_PSEL(SPIM_MOSI, 0, 24)>,
<NRF_PSEL(SPIM_MISO, 1, 0)>;
<NRF_PSEL(SPIM_MISO, 0, 24)>;
};
};

spi0_sleep_alt: spi0_sleep_alt {
spi0_sleep: spi0_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 22)>,
<NRF_PSEL(SPIM_MOSI, 0, 24)>,
<NRF_PSEL(SPIM_MISO, 1, 0)>;
<NRF_PSEL(SPIM_MISO, 0, 24)>;
low-power-enable;
};
};
Expand All @@ -45,8 +45,8 @@
&spi0 {
status = "okay";
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi0_default_alt>;
pinctrl-1 = <&spi0_sleep_alt>;
pinctrl-0 = <&spi0_default>;
pinctrl-1 = <&spi0_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;

Expand Down

0 comments on commit 3710da8

Please sign in to comment.