All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Neuendorffer <stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
To: John Williams <john.williams-g5w7nrANp4BDPfheJLI6IQ@public.gmane.org>
Cc: John Linn <linnj-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>,
	michal.simek-g5w7nrANp4BDPfheJLI6IQ@public.gmane.org,
	devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
	David DeBonis <ddeboni-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
Subject: RE: Device tree BSP
Date: Sun, 5 Jul 2009 13:43:47 -0700	[thread overview]
Message-ID: <20090705204647.1BBCAB2004B@mail107-dub.bigfish.com> (raw)
In-Reply-To: 1d3f23370907050218l6b2eb9emdbcb7dc321dbab5a@mail.gmail.com


[-- Attachment #1.1: Type: text/plain, Size: 2627 bytes --]


My (limited) understanding from reading other posts is that there is already a GPIO subsystem for handling such misc-GPIO things.
To me the cost of gates for multiple GPIO cores is small compared to the system cost of having
a separate OF binding.  IMHO, this should be exposed the way any other GPIO with such capabilities
is on any other OF/device-tree enabled system.

Steve

-----Original Message-----
From: John Williams [mailto:john.williams-g5w7nrANp4BDPfheJLI6IQ@public.gmane.org]
Sent: Sun 7/5/2009 2:18 AM
To: Stephen Neuendorffer
Cc: michal.simek-g5w7nrANp4BDPfheJLI6IQ@public.gmane.org; John Linn; David DeBonis; devicetree-discuss@ozlabs.org
Subject: Re: Device tree BSP
 
On Sun, Jul 5, 2009 at 4:15 AM, Stephen Neuendorffer <
stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org> wrote:

>
>
> I'm not exactly sure what you're trying to do here, but it doesn't look
> right to me.
> In particular, why would I have to have a separate core for these
> functions?
> Furthermore, I'm sure there must be some generic mechanisms that can/should
> be used for these kind of things.
> In general, we shouldn't reinvent the wheel here..
>

The issue as I see it is that in a hardware design, the GPIO is a very
convenient core to drive a heartbeat LED, and aux input on proc_sys_reset
(for software-driven reset), or whatever.

Clearly you don't want these GPIO cores to enumerate as regular xps_gpio
devices, binding to the standard GPIO driver and appearing in /dev/gpioN

Is your concern the manual override of OF_ binding (the "compatible"
strings), or just the HW overhead of an extra core to drive these HW utility
functions?  Save us from the bad old days of "misc_logic"  IP cores that
drove this stuff in older Xilinx reference designs!

Would you propose to get tricky and allocate specific bits on existing GPIOs
for these "special" functions, and write the GPIO driver/framework to mask
off these bits etc?  Seems like a complicated software solution to a problem
trivially solved with a few extra gates.

Cheers,

John
-- 
John Williams, PhD, B.Eng, B.IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663



This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


[-- Attachment #1.2: Type: text/html, Size: 3387 bytes --]

[-- Attachment #2: Type: text/plain, Size: 194 bytes --]

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org
https://ozlabs.org/mailman/listinfo/devicetree-discuss

  reply	other threads:[~2009-07-05 20:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4A49F472.3030902@petalogix.com>
2009-07-04 18:15 ` Device tree BSP Stephen Neuendorffer
     [not found]   ` <20090704181837.4DC219B0051-AP5P7IoXhpo/OHOHf44ZtvYhGscHeamf@public.gmane.org>
2009-07-05  9:18     ` John Williams
2009-07-05 20:43       ` Stephen Neuendorffer [this message]
     [not found]         ` <20090705204647.1BBCAB2004B-UG8A/UOmamfGqIK/7oNHF6QXxVRGGlT3@public.gmane.org>
2009-07-05 21:53           ` Grant Likely
     [not found]             ` <fa686aa40907051453of20e849gab47e901ced28501-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-05 22:10               ` Benjamin Herrenschmidt
2009-07-05 23:08                 ` Grant Likely
     [not found] ` <20090704181837.6224D13E8056@mail113-va3.bigfish.com>
     [not found]   ` <20090704181837.6224D13E8056-4w96H/B/PjLzgBzxlff1BqQXxVRGGlT3@public.gmane.org>
2009-07-04 18:32     ` Michal Simek

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=20090705204647.1BBCAB2004B@mail107-dub.bigfish.com \
    --to=stephen.neuendorffer-gjffaj9ahvfqt0dzr+alfa@public.gmane.org \
    --cc=ddeboni-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
    --cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
    --cc=john.williams-g5w7nrANp4BDPfheJLI6IQ@public.gmane.org \
    --cc=linnj-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
    --cc=michal.simek-g5w7nrANp4BDPfheJLI6IQ@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.