Skip to content

Commit

Permalink
Post: A Kernel story VIII
Browse files Browse the repository at this point in the history
Document how to set CS active-high

Signed-off-by: Iker Pedrosa <[email protected]>
  • Loading branch information
ikerexxe committed Dec 18, 2024
1 parent d2f0b53 commit a24f5e6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions _posts/2024-12-18-a-kernel-story8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
layout: post
title: "A Kernel story VIII: Document how to set CS active-high"
date: 2024-12-18 10:00:00 +0100
categories: kernel
---

In my quest to [set SPI CS active-high on a Raspberry Pi with the Linux Kernel](/kernel/2024/11/12/a-kernel-story7.html), I encountered several challenges due to the lack of clear documentation. To address this, I've contributed improvements to the existing documentation and provided practical examples.

* A new overlay example in the Raspberry Pi repository demonstrating how to invert the CS signal using `cs-gpio` with `GPIO_ACTIVE_HIGH` in the SPI controller and `spi-cs-high` in the peripheral property.
* Linux Kernel documentation updates explaining the above method and offering a simple devicetree example.

Find the details here:

* [Raspberry Pi repository PR](https://github.com/raspberrypi/linux/pull/6477)
* [Linux Kernel documentation changes](https://lkml.org/lkml/2024/12/16/476)

<div style="text-align: center;" markdown="1">
![Github Actions](/assets/figures/2024-12-18-Document-how-to-set-CS-active-high.jpg)
| *Generated by Gemini AI* |
</div>

I'm grateful for the assistance I received from the community. By contributing these improvements, I hope to give back and help others facing similar challenges.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a24f5e6

Please sign in to comment.