Skip to contentSkip to conversation

PATCH v2] i2c: s3c2410: Add quirk to exclude GPIO config for exynos5440

PATCH Kukjin Kim 3 participants 3 messages Jan 23, 2013 – Jan 24, 2013 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Kukjin Kim

author
#0 lore raw

From: Giridhar Maruthy <[email protected]>

---
Changes since v1:
- added documentation of device tree bindings for i2c-s3c2410, as per Tomasz's suggestion
- changed ordering for of_device_id according to binding ordering of the documentation

 Documentation/devicetree/bindings/i2c/i2c-s3c2410.txt |    2 ++
 drivers/i2c/busses/i2c-s3c2410.c                      |    2 ++
 2 files changed, 4 insertions(+)
(quoted diff) +0 -0

b/Documentation/devicetree/bindings/i2c/i2c-s3c2410.txt index e9611ac..b92bc14 100644

Documentation/devicetree/bindings/i2c/i2c-s3c2410.txt +2 -0
@@ -8,6 +8,8 @@ Required properties:
       (b) "samsung, s3c2440-i2c", for i2c compatible with s3c2440 i2c.
       (c) "samsung, s3c2440-hdmiphy-i2c", for s3c2440-like i2c used
           inside HDMIPHY block found on several samsung SoCs
+      (d) "samsung, exynos5440-i2c", for s3c2440-like i2c used
+	   on EXYNOS5440 which does not need GPIO configuration.
   - reg: physical base address of the controller and length of memory

mapped
region.
- interrupts: interrupt number to the cpu.

(quoted diff) +0 -0

b/drivers/i2c/busses/i2c-s3c2410.c
index a290d08..17c5c37 100644

drivers/i2c/busses/i2c-s3c2410.c +0 -0
@@ -111,6 +111,8 @@ static const struct of_device_id s3c24xx_i2c_match[] = {
 	{ .compatible = "samsung,s3c2440-i2c", .data = (void *)QUIRK_S3C2440

},
{ .compatible = "samsung,s3c2440-hdmiphy-i2c",
.data = (void *)(QUIRK_S3C2440 | QUIRK_HDMIPHY | QUIRK_NO_GPIO) },
+ { .compatible = "samsung,exynos5440-i2c",
+ .data = (void *)(QUIRK_S3C2440 | QUIRK_NO_GPIO) },
{},
};
MODULE_DEVICE_TABLE(of, s3c24xx_i2c_match);

Signature · 1 line
1.7.10.4