All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jakub Kiciński" <moorray3-5tc4TXWwyLM@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: "Noralf Trønnes" <noralf-L59+Z2yzLopAfugRpC6u6w@public.gmane.org>,
	"Martin Sperl" <kernel-TqfNSX0MhmxHKSADF0wUEw@public.gmane.org>,
	"linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	"Stephen Warren"
	<swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
Subject: Re: spi: bcm2835: driver for "auxiliar" spi1/spi2
Date: Thu, 25 Jun 2015 19:42:19 +0200	[thread overview]
Message-ID: <20150625194219.4846221d@north> (raw)
In-Reply-To: <20150618105848.GE14071-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>

On Thu, 18 Jun 2015 11:58:48 +0100, Mark Brown wrote:
> On Thu, Jun 18, 2015 at 12:19:04PM +0200, Noralf Trønnes wrote:
> 
> > There is also an aux mini uart that shares interrupt with spi1/2.
> > The AUXIRQ register determines the interrupt source. How should this
> > sharing be done? This uart is really only useful on the Compute Module
> > since it's pins overlap the pl011 uart pins on the other boards.
> > This is how the mini uart is used/setup downstream:
> > https://github.com/raspberrypi/linux/pull/1008
> 
> Linux supports shared interrupts perfectly fine, though it sounds like
> this is actually a cascaded interrupt (the demux is another interrupt
> controller) which we also support just fine.

Mark, could you give us a hint how to best go about this shared IRQ?
I failed to find any generic interrupt controller.  I imagine there
should be some fake irqchip we can instantiate from DT giving it a
irq line and a memory address and it should provide us with 32(bit)
demuxed irqs based on status of bits in specified memory location.
Does this sound reasonable?  Does such fake irqchip driver exist?
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2015-06-25 17:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-18  9:45 spi: bcm2835: driver for "auxiliar" spi1/spi2 Martin Sperl
     [not found] ` <5582933E.1050500-TqfNSX0MhmxHKSADF0wUEw@public.gmane.org>
2015-06-18 10:19   ` Noralf Trønnes
     [not found]     ` <55829B18.4030609-L59+Z2yzLopAfugRpC6u6w@public.gmane.org>
2015-06-18 10:58       ` Mark Brown
     [not found]         ` <20150618105848.GE14071-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-06-18 11:37           ` Martin Sperl
2015-06-25 17:42           ` Jakub Kiciński [this message]
2015-07-07 13:51             ` Mark Brown
2015-06-18 10:38   ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150625194219.4846221d@north \
    --to=moorray3-5tc4txwwylm@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=kernel-TqfNSX0MhmxHKSADF0wUEw@public.gmane.org \
    --cc=linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=noralf-L59+Z2yzLopAfugRpC6u6w@public.gmane.org \
    --cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.