Skip to content

Allow updating display with hardware SPI chip select #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thexa4
Copy link

@thexa4 thexa4 commented Mar 14, 2025

I tried to get the display to work on base Debian Trixie, and I wasn't able to get the kernel to allow manually doing chip selection on the spi controller. It seems that software control of the chip select pin is not necessary, the spidev driver automatically uses the pin correctly. This PR disables the manual chipselect if the chipselect pin is under control of the spirit driver.

If you want to enable the spi device on Debian Trixie, use the following overlay: spi.dts

/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2835";
};

&spi {
	status = "okay";

	spidev@0 {
		compatible = "rohm,dh2228fv";
		reg = <0>;
		status = "okay";
		spi-max-frequency = <100000>;
	};
};
  • Make sure to have the compiler installed: apt install device-tree-compiler
  • Then compile as follows: dtc -I dts -O dtb -o /boot/firmware/overlays/spi.dtbo spi.dts
  • Add it to the config.txt: echo 'dtoverlay=spi' >> /etc/default/raspi-firmware-custom
  • And update the boot partition: DEB_MAINT_PARAMS=configure /etc/kernel/postinst.d/z50-raspi-firmware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant