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

ModalAI Forum

Paul HandriganP

Paul Handrigan

@Paul Handrigan
Unfollow Follow
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MCP2515 CAN device on VOXL2 J10 SPI + gpio
    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

    Ask your questions right here!
  • Login

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