# Enable more CS pins for SPI1

**URL:** <https://forums.developer.nvidia.com/t/enable-more-cs-pins-for-spi1/170969>\
**Category:** Jetson AGX Xavier\
**Tags:** spi\
**Created:** [March 15, 2021, 1:06pm UTC](https://forums.developer.nvidia.com/t/enable-more-cs-pins-for-spi1/170969 "2021-03-15T13:06:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aamir300](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aamir300](https://forums.developer.nvidia.com/u/aamir300)\
**Post date:** [March 15, 2021, 1:06pm UTC](https://forums.developer.nvidia.com/t/enable-more-cs-pins-for-spi1/170969/1 "2021-03-15T13:06:49Z")

</div>

I see that using Jetson-IO configures the board to enable 2 CS pins by default. How can I enable more? My application requires 4 CS pins total. Would I need to manually specify pinmux config or just use any two GPIO pins? Any tips on how to do that are much appreciated

(I’m pretty new to working this closely with these boards)

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [March 16, 2021, 3:40am UTC](https://forums.developer.nvidia.com/t/enable-more-cs-pins-for-spi1/170969/3 "2021-03-16T03:40:10Z")

</div>

You need to add the context that the pinmux modify by the jetson-io and add something like below to use GPIO as chip select.

```auto
cs-gpios = <&gpio TEGRA_GPIO(C, 3) GPIO_ACTIVE_LOW>, <&gpio TEGRA_GPIO(C, 4) GPIO_ACTIVE_LOW>;

```

---

<div class="post-metadata">

**Author:** ![aamir300](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aamir300](https://forums.developer.nvidia.com/u/aamir300)\
**Post date:** [March 18, 2021, 12:12am UTC](https://forums.developer.nvidia.com/t/enable-more-cs-pins-for-spi1/170969/4 "2021-03-18T00:12:12Z")

</div>

Makes sense, thank you! I’ll give this a shot once I get all my hardware.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 18, 2021, 6:20pm UTC](https://forums.developer.nvidia.com/t/enable-more-cs-pins-for-spi1/170969/6 "2021-10-18T18:20:06Z")

</div>


