[meta-xilinx] MIO used as Interrupt Line in Device Tree

Mike Looijmans mike.looijmans at topic.nl
Mon Jul 13 05:03:51 PDT 2015


On 10-07-15 17:55, Joe Nicholson wrote:
> Hi
>
> I've now rebuilt with linux-xlnx kernel master-next branch (4.0 kernel) but still get 'Found IRQ 0' when I try to register an interrupt to the gpio controller.
>
> I've added the following to the gpio controller definition:
> 	interrupt-controller;
> 	interrupt-cells = <2>
>
> Then this to my I2C device:
> 	interrupt-parent = <&ps7_gpio_0>;
>                  interrupts = <9 4>;
> 	(I'm trying to attach to MIO 9)
>
> Does this mean that even the latest linux-xlnx kernel doesn't gpio controller interrupt controller capabilities?

Nah, it oughta work. My DT for the GPIO node looks like this:

	gpio at e000a000 {
		compatible = "xlnx,zynq-gpio-1.0";
		reg = <0xe000a000 0x1000>;
		interrupts = <0 20 4>;
		interrupt-parent = <&gic>;
		clocks = <&clkc 42>;
		gpio-controller;
		#gpio-cells = <2>;
		interrupt-controller;
		#interrupt-cells = <2>;
	};

Maybe you forgot the "#" in #interrupt-cells?




Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijmans at topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail








More information about the meta-xilinx mailing list