Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. MCP2515 CAN device on VOXL2 J10 SPI + gpio

MCP2515 CAN device on VOXL2 J10 SPI + gpio

Scheduled Pinned Locked Moved Ask your questions right here!
2 Posts 2 Posters 400 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Paul HandriganP Offline
    Paul HandriganP Offline
    Paul Handrigan
    wrote on last edited by
    #1

    I have added a MCP2515 CAN controller to the SPI bus on J10 using GPIO_46/CS1 as the interrupt gpio pin. I have added the in tree driver into the kernel. I have requested gpio 46 as the interrupt pin, but it is not taking effect. However, when it does request the gpio, you can see contention on the pin.

    What do I need to do in order to configure GPIO_46 as an input gpio to use as an interrupt for this device? Below is the DT node that I am using.

    +&qupv3_se14_spi {

    •   status = "ok";
      
    •   can_spi: can@0 {
      
    •           compatible = "microchip,mcp2515";
      
    •           reg = <0>;
      
    •           interrupt-parent = <&tlmm>;
      
    •           interrupts = <46 0x8>;
      
    •           clocks = <&clk12M>;
      
    •           spi-max-frequency = <8000000>;
      
    •   };
      

    +};

    Thanks in advance!
    Paul

    Alex KushleyevA 1 Reply Last reply
    0
    • Paul HandriganP Paul Handrigan

      I have added a MCP2515 CAN controller to the SPI bus on J10 using GPIO_46/CS1 as the interrupt gpio pin. I have added the in tree driver into the kernel. I have requested gpio 46 as the interrupt pin, but it is not taking effect. However, when it does request the gpio, you can see contention on the pin.

      What do I need to do in order to configure GPIO_46 as an input gpio to use as an interrupt for this device? Below is the DT node that I am using.

      +&qupv3_se14_spi {

      •   status = "ok";
        
      •   can_spi: can@0 {
        
      •           compatible = "microchip,mcp2515";
        
      •           reg = <0>;
        
      •           interrupt-parent = <&tlmm>;
        
      •           interrupts = <46 0x8>;
        
      •           clocks = <&clk12M>;
        
      •           spi-max-frequency = <8000000>;
        
      •   };
        

      +};

      Thanks in advance!
      Paul

      Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by
      #2

      @Paul-Handrigan , please see this post, depending on which board you have (M0054 or M0154), it may not be possible to use GPIO 46 as input :

      Link Preview Image
      Issue Reading GPIO 1146 (Pin 6 on J10) on VOXL2

      Hi, I'm trying to read values from GPIO 1146 (Pin 6 on J10), but the value always remains the same regardless of whether I connect it to 3.3V (high) or 0V (l...

      favicon

      ModalAI Forum (forum.modalai.com)

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      ModalAI
      Categories Recent Tags ModalAI.com Docs
      © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups