Skip to content

cc2520 SPI Driver support #684

Closed
Closed

Description

@brycejacobs

Please reference commit
torvalds/linux@0da6bc8

What are the chances of having this merged over into this repo?

Thanks,
Bryce Jacobs

Activity

  1. GuacoIV commented on Sep 10, 2014

    @GuacoIV

    I support that idea!

  2. popcornmix commented on Sep 10, 2014

    @popcornmix
    Collaborator

    Have you tried adding the commit to 3.12 tree, building and confirming it works?
    I think we need some evidence that it works, and some evidence of significant demand for it before adding.

  3. brycejacobs commented on Nov 21, 2014

    @brycejacobs
    Author

    @popcornmix So it seems the cc2520 driver landed in the 3.17.y branch.

    I have compiled the kernel with DT support according to the wiki: https://github.com/raspberrypi/linux/wiki/Device-Tree-on-ARCH_BCM2708
    and seem to get a hangup on load when it gets to smsc95xx ....

    If I disable DT support and load a fresh 3.17.y kernel it will work fine, however the cc2520 requires Device Tree support. I am going to try compiling the kernel with the BCM2835 config instead of the default config and see what happens.

    Will attempt to get the dmesg log on the next go around.

  4. popcornmix commented on Nov 21, 2014

    @popcornmix
    Collaborator

    I'm hoping we will push out a BRANCH=next firmware using 3.17 kernel with DT enabled in the next couple of weeks. This is mostly for HAT support, but may make using the cc2520 driver more straightforward.

  5. brycejacobs commented on Nov 21, 2014

    @brycejacobs
    Author

    Maybe there is some confusion on my behalf as far as getting the DT support working. I have the master branch firmware in the raspberrypi/firmware repo, does the firmware compilation version have to match up with my kernel version of 3.17?

    From the wiki link I posted above I was under the assumption that you compile the kernel, add the .dtb & zImage files to boot, then swap the config.txt kernel along with adding the new parameters. (As well as the adding of /lib/{firmware, modules}). Is there something I'm missing here? I have all proper .config variables in place for the DT support, as well as the IEEE802154, CC2520, etc.

    Has anyone had a successful run at making Device Tree support work for 3.17? I was looking on another issue thread at a gentleman who was having a hard time with DT being enabled for 3.16 but came to the understanding that there was a problem in his config.txt file. Is there a chance someone else can check to see if DT support on 3.17 w/ BCM2708 works?

    I am on a deadline so any help whatsoever would be much appreciated. @popcornmix

  6. brycejacobs commented on Nov 21, 2014

    @brycejacobs
    Author

    @matthiasklein Out of curiousity, are you on the 3.17 branch? Also, are you running on BCM2835 or BCM2708?

  7. matthiasklein commented on Nov 21, 2014

    @matthiasklein
    Contributor

    Yes, on pietrushnic's tree I am on the rpi-3.17-y branch. What do you mean with BCM2835 vs BCM2708? Upstream linux uses CONFIG_ARCH_BCM2835=y

  8. brycejacobs commented on Nov 21, 2014

    @brycejacobs
    Author

    The reason I was asking was that the wiki I posted was BCM2708 which seemed like an easier way to go at first. I didn't know if pietrushnic and crew were supporting the BCM2708, didn't see your last part of the post about USB support which is what my initial concern was.

  9. notro commented on Nov 21, 2014

    @notro
    Contributor

    ARCH_BCM2708 vs. ARCH_BCM2835
    ARCH_BCM2708 is the architecture config option used in the Broadcom patches that is used in raspberrypi/linux.
    ARCH_BCM2835 is the architecture used in the upstream kernel which is DT enabled.

    I submitted some patches giving DT support with ARCH_BCM2708. The problem is that it won't build on 3.17 due to changes in the pinctrl subsystem. I haven't bothered with it, since I haven't heard about anyone using this except myself.
    Currently I'm using pietrushnic's tree for my DT based work, but it's is lacking in driver support. I use it for driver development, so that doesn't bother me.

    I'm hoping we will push out a BRANCH=next firmware using 3.17 kernel with DT enabled in the next couple of weeks.

    @popcornmix ARCH_BCM2708 or ARCH_BCM2835?

  10. popcornmix commented on Nov 21, 2014

    @popcornmix
    Collaborator

    @notro this will be ARCH_BCM2708.
    ARCH_BCM2835 is the goal, but longer term.

  11. brycejacobs commented on Nov 21, 2014

    @brycejacobs
    Author

    @notro In order to get the build compiling, the disable option has to be removed from the pinctrl-bcm2708.c similar to what was done in this commit over in pietrushnic's upstream:

    pietrushnic/rpi-dt-linux@2243a87#diff-957df055023a4647f420276b516adaec

    I get the kernel booting, it just hangups when the smsc95xx gets loaded. This is only with DT support enabled, disabling and compiling the kernel will boot. I can't seem to get any useful output in kernel logs to use, haven't any experience with debugging a kernel. I turned on DYNAMIC_DEBUG but haven't had any luck.

  12. brycejacobs commented on Nov 21, 2014

    @brycejacobs
    Author

    I am getting my environment set up at the LSU Hermione cluster so I can have a faster turn around time in compiling the kernel, hopefully can lead to faster turnaround time.

  13. notro commented on Nov 21, 2014

    @notro
    Contributor

    I'm working on a patch...

  14. brycejacobs commented on Nov 21, 2014

    @brycejacobs
    Author

    @notro That's great, is there anything that you need help with? I am not extremely experienced when it comes to kernel experience but can go get some legwork done if needed.

  15. notro commented on Nov 21, 2014

    @notro
    Contributor

    Thanks, but the work is trivial. It just takes some time to turn it into a Pull Request.

  16. notro commented on Nov 22, 2014

    @notro
    Contributor

    A bit more work than I thought, so I started a new thread #728

  17. Ruffio commented on Aug 10, 2016

    @Ruffio

    @popasquat89 has this issue been resolved? If yes, then please close this issue.

  18. P33M commented on May 4, 2017

    @P33M
    Contributor

    Latest shipped kernel is 4.9, the driver has been enabled for ages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions