1
linux/Documentation/powerpc/dts-bindings
Albrecht Dreß 0c2daaafcd powerpc/5200/i2c: improve i2c bus error recovery
This patch improves the recovery of the MPC's I2C bus from errors like bus
hangs resulting in timeouts:
1. make the bus timeout configurable, as it depends on the bus clock and
    the attached slave chip(s); default is still 1 second;
2. detect any of the cases indicated by the CF, BB and RXAK MSR flags if a
    timeout occurs, and add a missing (required) MAL reset;
3. use a more reliable method to fixup the bus if a hang has been detected.
    The sequence is sent 9 times which seems to be necessary if a slave
    "misses" more than one clock cycle.  For 400 kHz bus speed, the fixup is
    also ~70us (81us vs. 150us) faster.

Tested on a custom Lite5200b derived board, with a Dallas RTC, AD sensors
and NXP IO expander chips attached to the i2c.

Changes vs. v1:
- use improved bus fixup sequence for all chips (not only the 5200)
- calculate real clock from defaults if no clock is given in the device tree
- better description (I hope) of the changes.

I didn't split the changes in this file into three parts as recommended by
Grant, as they actually belong together (i.e. they address one single
problem, just in three places of one single source file).

Signed-off-by: Albrecht Dreß <albrecht.dress@arcor.de>
[grant.likely@secretlab.ca: fixup for ->node to ->dev.of_node transition]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2010-08-01 17:06:44 -06:00
..
4xx powerpc/4xx: Add optional "reset_type" property to control reboot via dts 2010-05-05 12:51:54 -04:00
can can: sja1000: generic OF platform bus driver 2009-06-01 02:53:35 -07:00
fsl powerpc/5200/i2c: improve i2c bus error recovery 2010-08-01 17:06:44 -06:00
gpio Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds 2009-06-28 11:02:32 -07:00
nintendo powerpc: wii: device tree 2009-12-12 22:24:29 -07:00
ecm.txt powerpc/85xx: Add binding for LAWs and ECM 2009-05-19 00:46:19 -05:00
marvell.txt trivial: fix typo "for for" in multiple files 2009-09-21 15:14:54 +02:00
mmc-spi-slot.txt powerpc: add mmc-spi-slot bindings 2009-04-01 08:59:23 -07:00
mtd-physmap.txt mtd: maps: add mtd-ram support to physmap_of 2009-09-19 13:15:26 -07:00
phy.txt powerpc: Refactor device tree binding 2009-06-23 08:09:58 -05:00
spi-bus.txt powerpc: Refactor device tree binding 2009-06-23 08:09:58 -05:00
usb-ehci.txt powerpc: Refactor device tree binding 2009-06-23 08:09:58 -05:00
xilinx.txt Fix comment and Kconfig typos for 'require' and 'fragment' 2010-03-29 15:41:47 +02:00