Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Replace custom spidev modules #150

Open
lucasdemarchi opened this issue May 16, 2017 · 4 comments
Open

Replace custom spidev modules #150

lucasdemarchi opened this issue May 16, 2017 · 4 comments
Assignees

Comments

@lucasdemarchi
Copy link
Collaborator

Instead of using custom modules to just export spidev, we should rather adopt an ACPI overlay. Currently we have 3 modules:

[    4.197174] spidev CAN registered
[    4.198505] spidev fpga registered
[    4.200892] spidev-imu: spidev registered

An example for similar ACPI override can be found at https://github.com/westeri/meta-acpi/blob/master/recipes-bsp/acpi-tables/samples/minnowboard-max/spidev.asl

@avinash-palleti
Copy link
Contributor

@lucasdemarchi https://lists.yoctoproject.org/pipermail/linux-yocto/2016-February/004604.html

Is this patch required to be under linux-yocto ?

@avinash-palleti
Copy link
Contributor

@lucasdemarchi I made changes as per sample in meta-acpi layer then realized format is little different after looking into intel-aero dsdt acpi table.

Below is my updated patch: avinash-palleti/meta-intel-aero-base@ebe9d15

Still i am not seeing /dev/spidev*. As you mentioned CAN controller is already there as part of DSDT table but even that is also not seen in device.
I referred below link and added a patch to linux, still no luck.
http://gumstix.8.x6.nabble.com/Unable-to-get-dev-spidev-on-yocto-1-8-td4970184.html
linux Patch: https://gist.github.com/avinash-palleti/273fda6e5aafc3ed664b22d6942e1d28
With this patch all the existing acpi tables also not seen with acpidump command.

@whbruce Do you have any suggestion ?

@whbruce
Copy link
Contributor

whbruce commented May 26, 2017

Sorry, don't know about this feature, but it seems the right way to go. Maybe @clsulliv can help.

@whbruce
Copy link
Contributor

whbruce commented Jun 20, 2017

Still on my list. This should be an intel-aero-base issue.

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

No branches or pull requests

4 participants