Jump to content

Recommended Posts

Posted

I am working on getting the MCP251x device running in mainline. So far the SPI and other entries in the device tree are fine. However when I bring the bus up it fails to acquire the interrupt. I think the way I am defining the interupt is incorrect. I had this working in 4.4 so i know the hardware is functioning correctly. Does anyone know how to properly define the interupt and interupt parent in this case?

 

 

        spi1: spi@ff1d0000 {
                compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
                reg = <0x0 0xff1d0000 0x0 0x1000>;
                clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
                clock-names = "spiclk", "apb_pclk";
                interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
                dmas = <&dmac_peri 12>, <&dmac_peri 13>;
                dma-names = "tx", "rx";
                pinctrl-names = "default";
                pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
                #address-cells = <1>;
                #size-cells = <0>;
                status = "okay";

          can@0 {
                  #address-cells = <0x1>;
                  #size-cells = <0x0>;
                  compatible = "microchip,mcp2515";
                  reg = <0x0>;
                  clocks = <&clk8m>;
                  interupt-parent = <@gpio>;
                  interrupts = <1 RK_PC7 2 @pcfg_pull_up>;
                  spi-max-frequency = <10000000>;

                  //vdd-supply = <&spmic_ldo5>;
                  //xceiver-supply = <&spmic_ldo5>;
          };
        };

 

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines