Skip to content

Commit

Permalink
vulpes majora had a similar issue as pinkies out v3 as they both have…
Browse files Browse the repository at this point in the history
… a SPI device on the same bus as VIK connector
  • Loading branch information
sadekbaroudi committed Jun 18, 2024
1 parent 45a50df commit 7ca6fbf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions boards/arm/pinkies_out_v3/pinkies_out_v3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
};

// Need to define this as 1, since we have an existing SPI device on this board
// Starting point is normally 0, so we need to tell the vik_spi_adapter to start at 1 since
// there is already a 0 on this board for the same bus
// Starting point is normally 0, so we need to tell the vik shield to start at 1 since
// there is already a 0 on this board for the same SPI bus
#define VIK_SPI_REG_START 1
// Need to specify the cs-gpios for this bus, as the same bus is used for VIK, so any SPI
// VIK modules will need to know the existing CS gpios so it can append to them
Expand Down
10 changes: 9 additions & 1 deletion boards/arm/vulpes_majora_v1/vulpes_majora_v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,17 @@
};
};

// Need to define this as 1, since we have an existing SPI device on this board
// Starting point is normally 0, so we need to tell the vik shield to start at 1 since
// there is already a 0 on this board for the same SPI bus
#define VIK_SPI_REG_START 1
// Need to specify the cs-gpios for this bus, as the same bus is used for VIK, so any SPI
// VIK modules will need to know the existing CS gpios so it can append to them
#define VIK_SPI_CS_PREFIX <&gpio0 5 GPIO_ACTIVE_LOW>

&spi0 {
status = "okay";
cs-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
cs-gpios = VIK_SPI_CS_PREFIX;
pinctrl-0 = <&spi0_default>;
pinctrl-names = "default";
clock-frequency = <DT_FREQ_M(2)>;
Expand Down

0 comments on commit 7ca6fbf

Please sign in to comment.