mangokid Posted April 8, 2021 Posted April 8, 2021 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>; }; };
Recommended Posts