Skip to contentSkip to conversation

i2c-omap: Enable i2c-omap driver for AM654 SoCs

PATCH Applied Vignesh R 2 participants 5 messages Nov 9, 2018

Subsystems (2)
lore
Share & tools
lore

Vignesh R

author
#0 lore raw

v4 cover i2c-omap: Enable i2c-omap driver for AM654 SoCs

Couple of patches to enable i2c-omap driver to be used with TI's new AM654 platforms.

v4:
Add maintainer tag instead of reviewer in patch 3/3.

v3:
Rebase onto v4.20-rc1
Collect Reviewed-by's on v2
Add a patch to MAINTAINERS for i2c-omap.c

Vignesh R (3):
dt-bindings: i2c-omap: Add new compatible for AM654 SoCs
i2c: busses: Kconfig: Enable I2C_OMAP for ARCH_K3
MAINTAINERS: Add entry for i2c-omap driver

 Documentation/devicetree/bindings/i2c/i2c-omap.txt | 8 ++++++--
 MAINTAINERS                                        | 8 ++++++++
 drivers/i2c/busses/Kconfig                         | 2 +-
 3 files changed, 15 insertions(+), 3 deletions(-)
Signature · 1 line
2.19.1
author
#1 lore raw

PATCH v4 1/3 dt-bindings: i2c-omap: Add new compatible for AM654 SoCs

AM654 SoCs have same I2C IP as OMAP SoCs. Add new compatible to handle AM654 SoCs. While at that reformat the existing compatible list for older SoCs to list one valid compatible per line.

---
 Documentation/devicetree/bindings/i2c/i2c-omap.txt | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/i2c/i2c-omap.txt +6 -2
index 7e49839d4124..4b90ba9f31b7 100644
@@ -1,8 +1,12 @@
 I2C for OMAP platforms
 
 Required properties :
-- compatible : Must be "ti,omap2420-i2c", "ti,omap2430-i2c", "ti,omap3-i2c"
-  or "ti,omap4-i2c"
+- compatible : Must be
+	"ti,omap2420-i2c" for OMAP2420 SoCs
+	"ti,omap2430-i2c" for OMAP2430 SoCs
+	"ti,omap3-i2c" for OMAP3 SoCs
+	"ti,omap4-i2c" for OMAP4+ SoCs
+	"ti,am654-i2c", "ti,omap4-i2c" for AM654 SoCs
 - ti,hwmods : Must be "i2c<n>", n being the instance number (1-based)
 - #address-cells = <1>;
 - #size-cells = <0>;
Signature · 1 line
2.19.1
author
#2 lore raw

PATCH v4 2/3 i2c: busses: Kconfig: Enable I2C_OMAP for ARCH_K3

In reply to Vignesh R

Allow I2C_OMAP to be built for K3 platforms.

---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/Kconfig +1 -1
index 56ccb1ea7da5..77dc94b44011 100644
@@ -752,7 +752,7 @@ config I2C_OCORES
 
 config I2C_OMAP
 	tristate "OMAP I2C adapter"
-	depends on ARCH_OMAP
+	depends on ARCH_OMAP || ARCH_K3
 	default y if MACH_OMAP_H3 || MACH_OMAP_OSK
 	help
 	  If you say yes to this option, support will be included for the
Signature · 1 line
2.19.1
author
#3 lore raw

PATCH v4 3/3 MAINTAINERS: Add entry for i2c-omap driver

In reply to Vignesh R

Add separate entry for i2c-omap and add my name as maintainer for this driver.

---
 MAINTAINERS | 8 ++++++++
 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
index c78aca287970..284ffe907b31 100644
@@ -10808,6 +10808,14 @@ L:	[email protected]
 S:	Maintained
 F:	arch/arm/mach-omap2/omap_hwmod.*
 
+OMAP I2C DRIVER
+M:	Vignesh R <[email protected]>
+L:	[email protected]
+L:	[email protected]
+S:	Maintained
+F:	Documentation/devicetree/bindings/i2c/i2c-omap.txt
+F:	drivers/i2c/busses/i2c-omap.c
+
 OMAP IMAGING SUBSYSTEM (OMAP3 ISP and OMAP4 ISS)
 M:	Laurent Pinchart <[email protected]>
 L:	[email protected]
Signature · 1 line
2.19.1
Applied
#4 lore raw
In reply to Vignesh R
Quoted 2 lines · Vignesh R

Couple of patches to enable i2c-omap driver to be used with TI's new AM654 platforms.

Applied to for-current, thanks!