Skip to content
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

Update to set explicit SPI frequency #23

Merged
merged 2 commits into from
Nov 20, 2017
Merged

Conversation

johan162
Copy link
Contributor

In newer kernels 4.1.+ the default SPI frequency is set to the theoretical maximum based on the clock. This will also become the default frequency unless set specifically.

Since the current code does not set frequency explicit the pifacecaad will not work since the freq is far too high. This patch sets the frequency back to 100kHz and hence allows the board to work with newer kernels.

@knarrff
Copy link

knarrff commented Nov 13, 2017

I can confirm that without this change the piface isn't detected, and the patch fixes it. What I couldn't find was the value used before: I cannot confirm that 100000 is the best value to use. 10000 also seems to work (typo), as does 15000 (as suggested here: https://www.raspberrypi.org/forums/viewtopic.php?t=196248).

@tompreston tompreston merged commit ff3cd93 into piface:master Nov 20, 2017
@tompreston
Copy link
Member

Yeah looks good, thanks.

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.

None yet

4 participants