Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1448392

Re: DT connectors, thoughts

Path csiph.com!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news.panservice.it!bofh.it!news.nic.it!robomod
From David Gibson <david@gibson.dropbear.id.au>
Newsgroups linux.kernel
Subject Re: DT connectors, thoughts
Date Fri, 22 Jul 2016 06:30:01 +0200
Message-ID <rXAg1-R2-7@gated-at.bofh.it> (permalink)
References <rRj8d-1UJ-7@gated-at.bofh.it> <rWhIw-7l8-57@gated-at.bofh.it> <rX6UG-6zY-7@gated-at.bofh.it> <rXmwp-85l-11@gated-at.bofh.it> <rXmZs-8w7-17@gated-at.bofh.it> <rXrw5-3fM-1@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1469161560; bh=hBpn2G2Wz0+8vRlvdPAdpznrmefq9Stbz2523NmegHQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=afLW5H6tanIRGFYx+WMqqbsC37rvXQQ9rZfQMYA0fCV0SXdDT8onjWhuKGtLCgAft HuMx84w8TbDGq0cgZDPfx7UGMQRR+2admSzuPk/sQAqtcHVHiXvdnoV8yABQd7mF/K P6nJwAIr0cAvkTk4yQ1jMoFO1UcdXkm7DzHKip78=
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5cSRzy0VGBWAML+b"
Content-Disposition inline
User-Agent Mutt/1.6.2 (2016-07-01)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 107
Organization linux.* mail to news gateway
X-Original-Cc Pantelis Antoniou <pantelis.antoniou@konsulko.com>, Frank Rowand <frowand.list@gmail.com>, Stephen Boyd <stephen.boyd@linaro.org>, Mark Brown <broonie@kernel.org>, Grant Likely <grant.likely@secretlab.ca>, Mark Rutland <mark.rutland@arm.com>, Matt Porter <mporter@konsulko.com>, Koen Kooi <koen@dominion.thruhere.net>, Guenter Roeck <linux@roeck-us.net>, Marek Vasut <marex@denx.de>, Wolfram Sang <wsa@the-dreams.de>, devicetree <devicetree@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, "linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>
X-Original-Date Fri, 22 Jul 2016 13:47:15 +1000
X-Original-Message-ID <20160722034715.GJ15941@voom.fritz.box>
X-Original-References <577ACE0D.9050700@gmail.com> <20160718142037.GS16769@voom.fritz.box> <442C02A9-582D-4FD8-8F05-7A6FCD5B6BCA@konsulko.com> <20160721134208.GD12120@voom.fritz.box> <A1018E27-B604-4DD5-ADBA-95EF76F6DDAC@konsulko.com> <CAL_JsqLc0N8o2Nc_dEcZChJqWyN3UtZEgzLd=j6dR=1y3xOvdA@mail.gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1448392

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Jul 21, 2016 at 02:09:18PM -0500, Rob Herring wrote:
> On Thu, Jul 21, 2016 at 9:14 AM, Pantelis Antoniou
> <pantelis.antoniou@konsulko.com> wrote:
> > Hi David,
> >
> >> On Jul 21, 2016, at 16:42 , David Gibson <david@gibson.dropbear.id.au> wrote:
> >>
> >> On Wed, Jul 20, 2016 at 11:59:44PM +0300, Pantelis Antoniou wrote:
> >>> Hi David,
> >>>
> >>> Spent some time looking at this, and it looks like it’s going to the right direction.
> >>>
> >>> Comments inline.
> >>>
> >>>> On Jul 18, 2016, at 17:20 , David Gibson <david@gibson.dropbear.id.au> wrote:
> >>>>
> >>>> Hi,
> >>>>
> >>>> Here's some of my thoughts on how a connector format for the DT could
> >>>> be done.  Sorry it's taken longer than I hoped - I've been pretty
> >>>> swamped in my day job.
> >>>>
> >>>> This is pretty early thoughts, but gives an outline of the approach I
> >>>> prefer.
> 
> [...]
> 
> >>>>             i2c: i2c@... {
> >>>>             };
> >>>>             intc: intc@... {
> >>>>                     #interrupt-cells = <2>;
> >>>>             };
> >>>>     };
> >>>>
> >>>>     connectors {
> >>>>             widget1 {
> >>>>                     compatible = "foo,widget-socket";
> >>>>                     w1_irqs: irqs {
> >>>>                             interrupt-controller;
> >>>>                             #address-cells = <0>;
> >>>>                             #interrupt-cells = <1>;
> >>>>                             interrupt-map-mask = <0xffffffff>;
> >>>>                             interrupt-map = <
> >>>>                                     0 &intc 7 0
> >>>>                                     1 &intc 8 0
> >>>>                             >;
> >>>>                     };
> >>>
> >>> This is fine. We need an interrupt controller node.
> >>
> >> Actually I think we only need an interrupt nexus, not an interrupt
> >> controller (in IEEE1275 terminology).  (An interrupt controller would
> >> generally require it's own driver, to ack/mask irqs, whereas this just
> >> demonstrates the routing to an existing interrupt controller).  Which
> >> makes that example slightly incorrect (it shouldn't have the
> >> interrupt-controller property).
> >
> > Hmm, as far as I can tell we only have a concept of an interrupt controller
> > in the kernel. An interrupt nexus is something new. We should get by without
> > a driver but hacking the interrupt lookup path at DT.
> 
> Interrupt nexus is the interrupt-map property which is fully
> supported. I'd expect we'll end up with a gpio nexus (i.e. gpio-map)
> for connector gpios, too.

Exactly.  I don't know if a gpio-map is already defined, but if it's
not it should be.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

DT connectors, thoughts David Gibson <david@gibson.dropbear.id.au> - 2016-07-18 16:30 +0200
  Re: DT connectors, thoughts Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-07-20 23:00 +0200
  Re: DT connectors, thoughts Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-07-20 23:10 +0200
    Re: DT connectors, thoughts David Gibson <david@gibson.dropbear.id.au> - 2016-07-21 15:50 +0200
      Re: DT connectors, thoughts Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-07-21 16:20 +0200
        Re: DT connectors, thoughts Rob Herring <robh+dt@kernel.org> - 2016-07-21 21:10 +0200
          Re: DT connectors, thoughts Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-07-21 21:20 +0200
            Re: DT connectors, thoughts Rob Herring <robh+dt@kernel.org> - 2016-07-21 21:30 +0200
            Re: DT connectors, thoughts David Gibson <david@gibson.dropbear.id.au> - 2016-07-22 06:30 +0200
          Re: DT connectors, thoughts David Gibson <david@gibson.dropbear.id.au> - 2016-07-22 06:30 +0200
        Re: DT connectors, thoughts David Gibson <david@gibson.dropbear.id.au> - 2016-07-22 06:30 +0200
  Re: DT connectors, thoughts Rob Herring <robh+dt@kernel.org> - 2016-07-21 21:20 +0200
    Re: DT connectors, thoughts David Gibson <david@gibson.dropbear.id.au> - 2016-07-22 06:30 +0200

csiph-web