Hi all, Facing some issues while passing the *irq* property in child node of SPI node. I was trying to enable the SPI based mcp2515 can controller, according to the documentation available in the bindings of mcp251x driver, added the required properties of the node. As per the requirement need to pass an irq of a GPIO, used 'interrupt-parent' and 'interrupts' properties in the child node (mcp251x can node). I had a doubt, how exactly the interrupts property was parsed and taken in the mcp251x driver? In driver the *spi->irq* holds the irq number, in non dt kernels we are passing the irq value directly from platform data. How can we pass the *irq* property required by mcp251x driver from the device tree node?
http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt http://lxr.free-electrons.com/source/drivers/net/can/mcp251x.c?v=2.6.33 spi dt node: &dspi1 { > status = "okay"; > spi-max-frequency = <25000000>; > > can2: can@1 { > compatible = "microchip,mcp2515"; > reg = <0>; > clocks = <&clk16m>; > interrupt-parent = <&gpio2>; > interrupts = <43 0x8>; > spi-max-frequency = <10000000>; > }; > }; Best Regards, Bhuvanchandara DV
_______________________________________________ Kernelnewbies mailing list [email protected] http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
