Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* GPIO IRQ for Meson gxbb
@ 2019-05-31 11:57 Gaurav Pathak
  0 siblings, 0 replies; only message in thread
From: Gaurav Pathak @ 2019-05-31 11:57 UTC (permalink / raw)
  To: kernelnewbies

Hello,

I am currently trying to use GPIO IRQ on Odroid-C2 board.
I have compiled a working image having Linux Kernel 5.0.6. It has
Pin-control driver and Interrupt Controller driver enabled.
However, I am not getting any idea as to how should I request IRQ for
a particular GPIO pin say for e.g. GPIOX.10. The "gpio_to_irq()" call
is not working and it is returning "-6".
I don't want to write a platform driver, I just want to write a simple
out of tree character driver.
I tried to get an idea from "drivers/gpio/", but they all seems to be
platform driver.
I would be really helpful if anyone can point me to a working gpio IRQ
example for Linux 5.0.6 kernel.



Thanks,
Gaurav Pathak

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-31 11:57 GPIO IRQ for Meson gxbb Gaurav Pathak

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox