devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] OMAP: I2C: Add device tree support
@ 2011-06-30 10:07 G, Manjunath Kondaiah
  2011-06-30 10:07 ` [RFC PATCH 1/5] OMAP3:I2C: Add device tree nodes for beagle board G, Manjunath Kondaiah
                   ` (4 more replies)
  0 siblings, 5 replies; 23+ messages in thread
From: G, Manjunath Kondaiah @ 2011-06-30 10:07 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-omap-u79uwXL29TY76Z2rM5mHXA
  Cc: ben-linux-elnMNo+KYs3YtjvyW6yDsg


As a part of arm consolidation activity, the OMAP board files needs to
be converted to use device tree.

To begin with, two board files are selected to use device tree for I2C
device registration. The I2C and it's child devices existing on beagle
and panda boards are modified in order to use device tree nodes created
in device tree blob.

This patch series demonstrates i2c nodes creation and it's usage in i2c
and it's client drivers. Since, current implementation of OMAP I2C driver
uses SoC specific HWMOD framework for clock initilization, enable/disable
and other PM functionalities, the patch series cannot work independently
since device registration through device tree bypasses HWMOD framework.

There should be method to control peripheral level clock and to use 
existing hwmod framework api's and features through device tree.
This might require alignment and suggestions from hwmod maintainers and
contributors so that it can be adapted for other drivers also.

TODO: 
1. The board file changes will move to new file board_dt.c once board file
   is completly migrated to DT.

2. Look up table can be provided if specific device names are required and
   also platform_data can be passed through lookup table while populating
   device nodes.

Applies on top of:
git://git.secretlab.ca/git/linux-2.6
Branch:devicetree/test

Compilation:
Compiles for omap2plus_defconfig

Testing:
Boot testing is done on beagle and panda and in i2c driver, the device tree
node data is verified manually in i2c driver and i2c driver will not work after
the probe due to non availability of clock for I2C controllers(Testing is
exempted for I2C1 since it interfaces with power chip).

G, Manjunath Kondaiah (5):
  OMAP3:I2C: Add device tree nodes for beagle board
  OMAP4:I2C: Add device tree nodes for panda board
  OMAP3: Beagle: Update beagle board file to use DT
  OMAP4: Panda: Update panda board file to use DT
  OMAP: I2C: Convert I2C driver to use device tree

 arch/arm/boot/dts/omap3-beagle-nunchuck.dts |    5 --
 arch/arm/boot/dts/omap3-beagle.dts          |   42 ++++++++++++++++++++
 arch/arm/boot/dts/omap4-panda.dts           |   57 +++++++++++++++++++++++++++
 arch/arm/mach-omap2/board-omap3beagle.c     |   24 +++++++++--
 arch/arm/mach-omap2/board-omap4panda.c      |   22 ++++++++++
 drivers/i2c/busses/i2c-omap.c               |   30 ++++++++++++++-
 6 files changed, 170 insertions(+), 10 deletions(-)

-- 
1.7.4.1

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2011-07-20 23:14 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-30 10:07 [RFC PATCH 0/5] OMAP: I2C: Add device tree support G, Manjunath Kondaiah
2011-06-30 10:07 ` [RFC PATCH 1/5] OMAP3:I2C: Add device tree nodes for beagle board G, Manjunath Kondaiah
2011-06-30 14:27   ` Tony Lindgren
2011-07-06 18:49     ` Grant Likely
2011-07-06 18:55   ` Grant Likely
2011-07-06 23:26     ` Stephen Warren
     [not found]       ` <74CDBE0F657A3D45AFBB94109FB122FF049E21C203-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-07-07  0:12         ` Grant Likely
     [not found]           ` <CACxGe6u8qq7FA7kFXbU5uCk6m_GA8GWLqsdjFCXN+NMJfFKxmA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-07-20 11:04             ` Shawn Guo
     [not found]               ` <20110720110419.GA6999-+NayF8gZjK2ctlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2011-07-20 18:55                 ` Grant Likely
     [not found]                   ` <20110720185513.GI4642-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2011-07-20 22:33                     ` Shawn Guo
     [not found]                       ` <20110720223348.GH6999-+NayF8gZjK2ctlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2011-07-20 23:14                         ` Grant Likely
2011-06-30 10:07 ` [RFC PATCH 2/5] OMAP4:I2C: Add device tree nodes for panda board G, Manjunath Kondaiah
2011-07-06 18:57   ` Grant Likely
2011-07-07 16:59     ` G, Manjunath Kondaiah
2011-06-30 10:07 ` [RFC PATCH 3/5] OMAP3: Beagle: Update beagle board file to use DT G, Manjunath Kondaiah
2011-07-06 19:00   ` Grant Likely
2011-07-07 17:04     ` G, Manjunath Kondaiah
2011-06-30 10:07 ` [RFC PATCH 4/5] OMAP4: Panda: Update panda " G, Manjunath Kondaiah
2011-07-06 19:01   ` Grant Likely
2011-06-30 10:07 ` [RFC PATCH 5/5] OMAP: I2C: Convert I2C driver to use device tree G, Manjunath Kondaiah
2011-07-06 19:08   ` Grant Likely
2011-07-07 17:13     ` G, Manjunath Kondaiah
2011-07-07 18:28       ` Grant Likely

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).