[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201105271310.18450.arnd@arndb.de>
Date: Fri, 27 May 2011 13:10:18 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Shawn Guo <shawn.guo@...escale.com>
Cc: linux-arm-kernel@...ts.infradead.org,
Shawn Guo <shawn.guo@...aro.org>, linux-kernel@...r.kernel.org,
patches@...aro.org, linus.walleij@...aro.org,
grant.likely@...retlab.ca, kernel@...gutronix.de
Subject: Re: [PATCH 2/3] ARM: mxs: add gpio-mxs platform devices
On Friday 27 May 2011, Shawn Guo wrote:
> On Fri, May 20, 2011 at 04:23:40PM +0200, Arnd Bergmann wrote:
> [...]
> > No, this would put all gpio devices below the top-level /sys/devices/platform
> > directory, where they certainly don't belong. Please find a proper
> > place and put them there.
> >
> To make it clear, which one is the best to have all gpio devices below?
>
> * /sys/devices/platform/gpio-mxs
> * /sys/devices/platform/mxs
> * /sys/devices/platform/mxs/gpio
I would say the third one is closes to how it should be.
The (sysfs) device tree, like the of device tree, should ideally be
modeled after the high-level block diagram of the machine.
In case of i.MX23, that could look like
/sys/devices/system \
/ahb
/apbh
/gpio0
/gpio1
/gpmi
/usb0
/apbx
/i2c
/uart0
/pwm
/spi
/mmc
/ethernet
/usb
/rtc
/...
You can argue on whether it makes sense to include the top level, or if you
also want to model the various levels of ahb buses, so there is some freedom
here.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists