Skip to content

Series to add device tree naming to i2c

Jon Smirl linuxppc-dev lkml 1 version NAK

Status from this message: Nak.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/7Copy mpc-i2c to preserve support for ARCH=ppc and allow changes on ARCH=powerpcarch/ppc/configs/TQM8540_defconfig arch/ppc/configs/TQM8541_defconfig arch/ppc/configs/TQM8555_defconfig +9 more+443 -101 reply
2/7Implement module aliasing for i2c to translate from device tree namesdrivers/i2c/i2c-core.c include/linux/i2c.h include/linux/mod_devicetable.h +1 more+69 -110 replies
3/7Modify several rtc drivers to use the alias names list property of i2carch/powerpc/sysdev/fsl_soc.c drivers/rtc/rtc-ds1307.c drivers/rtc/rtc-ds1374.c +2 more+85 -610 replies
4/7Clean up error returnsdrivers/i2c/busses/i2c-mpc.c+17 -130 replies
5/7Convert PowerPC MPC i2c to of_platform_driver from platform_driverarch/powerpc/sysdev/fsl_soc.c drivers/i2c/busses/i2c-mpc.c+119 -1440 replies
6/7Convert pfc8563 i2c driver from old style to new styledrivers/rtc/rtc-pcf8563.c+27 -800 replies
7/7MakefileMakefile+3 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Series to add device tree naming to i2c

Another rework of the i2c for powerpc device tree patch. This version implements standard alias naming only on the powerpc platform and only for the device tree names. The old naming mechanism of i2c_client.name,driver_name is left in place and not changed for non-powerpc platforms. This patch is fully capable of dynamically loading the i2c modules. You can modprobe in the i2c-mpc driver and the i2c modules described in the device tree will be automatically loaded. Modules also work if compiled in.

The follow on patch to module-init-tools is also needed since the i2c subsystem has never implemented dynamic loading.

Since the i2c-mpc driver also supports the ppc architecture the i2c-mpc driver was copied to i2c-mpc-ppc before changes were made. The i2c-mpc-ppc driver should be deleted in six months when the rest of the ppc architecture is removed.

The following series implements standard linux module aliasing for i2c modules on arch=powerpc. It then converts the mpc i2c driver from being a platform driver to an open firmware one. I2C device names are picked up from the device tree. Module aliasing is used to translate from device tree names into to linux kernel names. Several i2c drivers are updated to use the new aliasing.

--
Jon Smirl
[email protected]