[RFC PATCH 0/5] OMAP: I2C: Add device tree support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux