Skip to contentSkip to conversation

i2c: rcar_i2c: Remove the driver

PATCH New Marek Vasut 2 participants 6 messages May 12, 2018 – May 15, 2018

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

PATCH 1/4 i2c: rcar_i2c: Remove the driver

Remove the rcar_i2c driver, since it's no longer used by any board and will be superseded by a DM and DT capable variant.

Cc Heiko Schocher <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 drivers/i2c/Makefile   |   1 -
 drivers/i2c/rcar_i2c.c | 292 -------------------------------------------------
 2 files changed, 293 deletions(-)
 delete mode 100644 drivers/i2c/rcar_i2c.c
drivers/i2c/Makefile +0 -1
index e8bb6327fb..c48a71ac6f 100644
@@ -28,7 +28,6 @@ obj-$(CONFIG_SYS_I2C_MVTWSI) += mvtwsi.o
 obj-$(CONFIG_SYS_I2C_MXC) += mxc_i2c.o
 obj-$(CONFIG_SYS_I2C_MXS) += mxs_i2c.o
 obj-$(CONFIG_SYS_I2C_OMAP24XX) += omap24xx_i2c.o
-obj-$(CONFIG_SYS_I2C_RCAR) += rcar_i2c.o
 obj-$(CONFIG_SYS_I2C_RCAR_IIC) += rcar_iic.o
 obj-$(CONFIG_SYS_I2C_ROCKCHIP) += rk_i2c.o
 obj-$(CONFIG_SYS_I2C_S3C24X0) += s3c24x0_i2c.o exynos_hs_i2c.o
drivers/i2c/rcar_i2c.c deleted +0 -292

292 lines not on this page · raw message

Signature · 1 line
2.16.2
#1 lore raw

PATCH v2 2/4 i2c: rcar_i2c: Add DM and DT capable I2C driver

Add derivative of the rcar_i2c driver which is capable of probing itself from DM and uses DT.

Cc Heiko Schocher <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 drivers/i2c/Kconfig    |   6 +
 drivers/i2c/Makefile   |   1 +
 drivers/i2c/rcar_i2c.c | 353 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 360 insertions(+)
 create mode 100644 drivers/i2c/rcar_i2c.c

---
V2: Fix the license tag and minor checkpatch issue

drivers/i2c/Kconfig +6 -0
index 7fb201d8e6..5eceab9ea8 100644
@@ -339,6 +339,12 @@ config SYS_OMAP24_I2C_SPEED
 	  OMAP24xx Slave speed channel 0
 endif
 
+config SYS_I2C_RCAR_I2C
+	bool "Renesas RCar I2C driver"
+	depends on (RCAR_GEN3 || RCAR_GEN2) && DM_I2C
+	help
+	  Support for Renesas RCar I2C controller.
+
 config SYS_I2C_RCAR_IIC
 	bool "Renesas RCar Gen3 IIC driver"
 	depends on (RCAR_GEN3 || RCAR_GEN2) && DM_I2C
drivers/i2c/Makefile +1 -0
index c48a71ac6f..8bb3c18b57 100644
@@ -28,6 +28,7 @@ obj-$(CONFIG_SYS_I2C_MVTWSI) += mvtwsi.o
 obj-$(CONFIG_SYS_I2C_MXC) += mxc_i2c.o
 obj-$(CONFIG_SYS_I2C_MXS) += mxs_i2c.o
 obj-$(CONFIG_SYS_I2C_OMAP24XX) += omap24xx_i2c.o
+obj-$(CONFIG_SYS_I2C_RCAR_I2C) += rcar_i2c.o
 obj-$(CONFIG_SYS_I2C_RCAR_IIC) += rcar_iic.o
 obj-$(CONFIG_SYS_I2C_ROCKCHIP) += rk_i2c.o
 obj-$(CONFIG_SYS_I2C_S3C24X0) += s3c24x0_i2c.o exynos_hs_i2c.o
drivers/i2c/rcar_i2c.c new file +353 -0

353 lines not on this page · raw message

Signature · 1 line
2.16.2
#2 lore raw

PATCH v2 2/4 i2c: rcar_i2c: Add DM and DT capable I2C driver

Hello Marek,

Am 12.05.2018 um 23:15 schrieb Marek Vasut:

Quoted 6 lines

Add derivative of the rcar_i2c driver which is capable of probing itself from DM and uses DT.

Cc Heiko Schocher <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
Quoted 8 lines
---
  drivers/i2c/Kconfig    |   6 +
  drivers/i2c/Makefile   |   1 +
  drivers/i2c/rcar_i2c.c | 353 +++++++++++++++++++++++++++++++++++++++++++++++++
  3 files changed, 360 insertions(+)

create mode 100644 drivers/i2c/rcar_i2c.c
---
V2: Fix the license tag and minor checkpatch issue

Thanks!

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de
#3 lore raw

PATCH 3/4 ARM: rmobile: Enable DM capable RCar I2C driver on Lager

In reply to Marek Vasut

Enable the DM capable driver instead of the legacy one.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 configs/lager_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/lager_defconfig +1 -0
index 901b34e1dd..70083bcbfe 100644
@@ -54,6 +54,7 @@ CONFIG_CLK_RENESAS=y
 CONFIG_DM_GPIO=y
 CONFIG_RCAR_GPIO=y
 CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_RCAR_I2C=y
 CONFIG_SYS_I2C_RCAR_IIC=y
 CONFIG_DM_MMC=y
 CONFIG_SH_MMCIF=y
Signature · 1 line
2.16.2
#4 lore raw

PATCH 4/4 ARM: rmobile: Enable DM capable RCar I2C driver on Silk

In reply to Marek Vasut

Enable the DM capable driver instead of the legacy one.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 configs/silk_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/silk_defconfig +1 -0
index c163e823b5..a1c4e5cde3 100644
@@ -54,6 +54,7 @@ CONFIG_CLK_RENESAS=y
 CONFIG_DM_GPIO=y
 CONFIG_RCAR_GPIO=y
 CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_RCAR_I2C=y
 CONFIG_SYS_I2C_RCAR_IIC=y
 CONFIG_DM_MMC=y
 CONFIG_SH_MMCIF=y
Signature · 1 line
2.16.2
#5 lore raw

PATCH 1/4 i2c: rcar_i2c: Remove the driver

In reply to Marek Vasut

Hello Marek,

Am 12.05.2018 um 23:15 schrieb Marek Vasut:

Quoted 11 lines

Remove the rcar_i2c driver, since it's no longer used by any board and will be superseded by a DM and DT capable variant.

Cc Heiko Schocher <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
  drivers/i2c/Makefile   |   1 -
  drivers/i2c/rcar_i2c.c | 292 -------------------------------------------------
  2 files changed, 293 deletions(-)

delete mode 100644 drivers/i2c/rcar_i2c.c

as the patch is delegated to you:

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de