From: David Daney <ddaney.cavm@gmail.com>
To: devicetree-discuss@lists.ozlabs.org,
Grant Likely <grant.likely@secretlab.ca>,
Rob Herring <rob.herring@calxeda.com>,
spi-devel-general@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org,
linux-doc@vger.kernel.org, David Daney <david.daney@cavium.com>
Subject: [PATCH 0/3] of/spi/eeprom: Configure at25 from device tree and autoload its driver.
Date: Fri, 11 May 2012 15:05:20 -0700 [thread overview]
Message-ID: <1336773923-17866-1-git-send-email-ddaney.cavm@gmail.com> (raw)
From: David Daney <david.daney@cavium.com>
As per the Subject, given a device tree fragment like this:
spi@1070000001000 {
compatible = "cavium,octeon-3010-spi";
reg = <0x10700 0x00001000 0x0 0x100>;
interrupts = <0 58>;
#address-cells = <1>;
#size-cells = <0>;
eeprom@0 {
compatible = "st,m95256", "atmel,at25";
reg = <0>;
spi-max-frequency = <5000000>;
spi-cpha;
spi-cpol;
pagesize = <64>;
size = <32768>;
address-width = <16>;
};
};
The at25 module is autoloaded and configured from the device tree data.
1/3) Make of_modalias_node() work better for auto loading drivers.
2/3) Use MODALIAS prefixed with "spi:" for SPI drivers so modprobe can
find the proper driver module.
3/3) Use standard eeprom device tree binding to configure at25,
convert MODULE_ALIAS(), to equivalent MODULE_DEVICE_TABLE().
David Daney (3):
of: Add prefix parameter to of_modalias_node().
spi: Use consistent MODALIAS values.
eeprom/of: Add device tree bindings to at25.
drivers/misc/eeprom/at25.c | 61 +++++++++++++++++++++++++++++++++++++++---
drivers/of/base.c | 22 +++++++++++----
drivers/of/of_i2c.c | 2 +-
drivers/of/of_spi.c | 2 +-
drivers/spi/spi.c | 39 +++++++++++++++++++++++---
include/linux/of.h | 3 +-
sound/soc/fsl/mpc8610_hpcd.c | 2 +-
sound/soc/fsl/p1022_ds.c | 2 +-
8 files changed, 113 insertions(+), 20 deletions(-)
--
1.7.2.3
next reply other threads:[~2012-05-11 22:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-11 22:05 David Daney [this message]
[not found] ` <1336773923-17866-1-git-send-email-ddaney.cavm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-05-11 22:05 ` [PATCH 1/3] of: Add prefix parameter to of_modalias_node() David Daney
2012-05-20 5:54 ` Grant Likely
2012-05-20 6:08 ` Grant Likely
2012-05-22 19:45 ` David Daney
2012-05-22 20:09 ` Grant Likely
2012-05-22 22:49 ` David Daney
[not found] ` <4FBC1807.4050402-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-05-22 23:01 ` Grant Likely
2012-05-11 22:05 ` [PATCH 2/3] spi: Use consistent MODALIAS values David Daney
2012-05-11 22:05 ` [PATCH 3/3] eeprom/of: Add device tree bindings to at25 David Daney
2012-05-15 15:47 ` Greg Kroah-Hartman
2012-05-20 6:14 ` Grant Likely
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=1336773923-17866-1-git-send-email-ddaney.cavm@gmail.com \
--to=ddaney.cavm@gmail.com \
--cc=david.daney@cavium.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=rob.herring@calxeda.com \
--cc=spi-devel-general@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).