Skip to content

Commit

Permalink
Switch trackball sensor to SPI0
Browse files Browse the repository at this point in the history
  • Loading branch information
trentrand committed Jun 4, 2024
1 parent 22c0629 commit 9f8ce68
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
};

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

spi1_sleep_alt: spi1_sleep_alt {
spi0_sleep_alt: spi0_sleep_alt {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 22)>,
<NRF_PSEL(SPIM_MOSI, 0, 24)>,
Expand All @@ -42,11 +42,11 @@
};
};

&spi1 {
&spi0 {
status = "okay";
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi1_default_alt>;
pinctrl-1 = <&spi1_sleep_alt>;
pinctrl-0 = <&spi0_default_alt>;
pinctrl-1 = <&spi0_sleep_alt>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;

Expand Down

0 comments on commit 9f8ce68

Please sign in to comment.