Skip to contentSkip to conversation

i2c: add Marvell 64xxx driver; fix Makefile indentation

PATCH In review Antony Pavlov 3 participants 7 messages Jul 29, 2014 – Jul 31, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 cover i2c: add Marvell 64xxx driver; fix Makefile indentation

Changes since v2:

* drop "allwinner,sun*" stuff;
* make macros shorter (drop MV64XXX_I2C_ prefix);
* rework mv64xxx_write/mv64xxx_read stuff;
* drop mv64xxx_i2c_execute_msg().
* drop unused variables.

Antony Pavlov (2):
i2c: add Marvell 64xxx driver
i2c: busses/Makefile: fix indentation

 drivers/i2c/busses/Kconfig       |   8 +
 drivers/i2c/busses/Makefile      |   5 +-
 drivers/i2c/busses/i2c-mv64xxx.c | 647 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 658 insertions(+), 2 deletions(-)
 create mode 100644 drivers/i2c/busses/i2c-mv64xxx.c
Signature · 7 lines
2.0.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH v3 1/2 i2c: add Marvell 64xxx driver

This driver is also used for Allwinner SoCs I2C controllers.

Ported from linux-3.15.

The most notable barebox driver version changes:

* drop platform device stuff;
* drop "allwinner,sun*" stuff;
* drop message offloading support;
* add reg-io-width devicetree parameter to use driver with byte-oriented controller versions.

Cc Sebastian Hesselbarth <[email protected]>
---
 drivers/i2c/busses/Kconfig       |   8 +
 drivers/i2c/busses/Makefile      |   1 +
 drivers/i2c/busses/i2c-mv64xxx.c | 647 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 656 insertions(+)
drivers/i2c/busses/Kconfig +8 -0
index 370abb0..851556f 100644
@@ -16,6 +16,14 @@ config I2C_IMX
 	bool "MPC85xx/i.MX I2C Master driver"
 	depends on (ARCH_IMX && !ARCH_IMX1) || ARCH_MPC85XX
 
+config I2C_MV64XXX
+	bool "Marvell mv64xxx I2C Controller"
+	depends on HAVE_CLK && OFDEVICE
+	help
+	  If you say yes to this option, support will be included for the
+	  built-in I2C interface on the Marvell 64xxx line of host bridges.
+	  This driver is also used for Allwinner SoCs I2C controllers.
+
 config I2C_OMAP
 	bool "OMAP I2C Master driver"
 	depends on ARCH_OMAP
drivers/i2c/busses/Makefile +1 -0
index 9823d1b..4e4f6ba 100644
@@ -1,5 +1,6 @@
 obj-$(CONFIG_I2C_GPIO)		+= i2c-gpio.o
 obj-$(CONFIG_I2C_IMX) += i2c-imx.o
+obj-$(CONFIG_I2C_MV64XXX)	+= i2c-mv64xxx.o
 obj-$(CONFIG_I2C_OMAP) += i2c-omap.o
 obj-$(CONFIG_I2C_TEGRA)		+= i2c-tegra.o
 obj-$(CONFIG_I2C_VERSATILE)	+= i2c-versatile.o
drivers/i2c/busses/i2c-mv64xxx.c new file +647 -0

647 lines not on this page · raw message

Signature · 7 lines
2.0.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH v3 2/2 i2c: busses/Makefile: fix indentation

In reply to Antony Pavlov
---
 drivers/i2c/busses/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/busses/Makefile +2 -2
index 4e4f6ba..bbd7fee 100644
@@ -1,6 +1,6 @@
 obj-$(CONFIG_I2C_GPIO)		+= i2c-gpio.o
-obj-$(CONFIG_I2C_IMX) += i2c-imx.o
+obj-$(CONFIG_I2C_IMX)		+= i2c-imx.o
 obj-$(CONFIG_I2C_MV64XXX)	+= i2c-mv64xxx.o
-obj-$(CONFIG_I2C_OMAP) += i2c-omap.o
+obj-$(CONFIG_I2C_OMAP)		+= i2c-omap.o
 obj-$(CONFIG_I2C_TEGRA)		+= i2c-tegra.o
 obj-$(CONFIG_I2C_VERSATILE)	+= i2c-versatile.o
Signature · 7 lines
2.0.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
In reply to Antony Pavlov

Sebastian,

I'm fine with the driver. Will you ack it once your fine with it aswell?

Sascha

Quoted 27 lines · Antony Pavlov

Changes since v2:

* drop "allwinner,sun*" stuff;
* make macros shorter (drop MV64XXX_I2C_ prefix);
* rework mv64xxx_write/mv64xxx_read stuff;
* drop mv64xxx_i2c_execute_msg().
* drop unused variables.

Antony Pavlov (2):
i2c: add Marvell 64xxx driver
i2c: busses/Makefile: fix indentation

 drivers/i2c/busses/Kconfig       |   8 +
 drivers/i2c/busses/Makefile      |   5 +-
 drivers/i2c/busses/i2c-mv64xxx.c | 647 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 658 insertions(+), 2 deletions(-)
 create mode 100644 drivers/i2c/busses/i2c-mv64xxx.c
Signature · 7 lines
2.0.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#4 lore raw
Quoted 1 line · Sascha Hauer

I'm fine with the driver. Will you ack it once your fine with it aswell?

Yeah, let me give it a shot on the most obvious platforms again. Will send my Acked-by later today.

Sebastian

Quoted 23 lines · Antony Pavlov
Quoted 22 lines

Changes since v2:

* drop "allwinner,sun*" stuff;
* make macros shorter (drop MV64XXX_I2C_ prefix);
* rework mv64xxx_write/mv64xxx_read stuff;
* drop mv64xxx_i2c_execute_msg().
* drop unused variables.

Antony Pavlov (2):
i2c: add Marvell 64xxx driver
i2c: busses/Makefile: fix indentation

  drivers/i2c/busses/Kconfig       |   8 +
  drivers/i2c/busses/Makefile      |   5 +-
  drivers/i2c/busses/i2c-mv64xxx.c | 647 +++++++++++++++++++++++++++++++++++++++
  3 files changed, 658 insertions(+), 2 deletions(-)

create mode 100644 drivers/i2c/busses/i2c-mv64xxx.c

--
2.0.1

Quoted 6 lines
Quoted 5 lines

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Acked-by Tested-by
#5 lore raw
In reply to Sascha Hauer
Quoted 1 line · Sascha Hauer

I'm fine with the driver. Will you ack it once your fine with it aswell?

Hmm, it still throws a lot of "I2C bus error" on i2c_probe when no device is at that address and it still uses silly interrupt nomenclature.

Anyway, it works and I'll maybe fix above someday, so

and

on Armada XP this time.

Sebastian

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#6 lore raw
Quoted 5 lines · Sebastian Hesselbarth
Quoted 1 line · Sascha Hauer

I'm fine with the driver. Will you ack it once your fine with it aswell?

Hmm, it still throws a lot of "I2C bus error" on i2c_probe when no device is at that address

This message should really be removed as it's expected behaviour on i2c_probe. Anyway, users of this driver should be annoyed enough pretty soon so they send a patch, so: Applied.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox