Skip to contentSkip to conversation

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

PATCH Superseded Vignesh R 2 participants 5 messages Sep 26, 2018 – Sep 28, 2018

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Vignesh R

author
#0 lore raw

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.

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

 Documentation/devicetree/bindings/i2c/i2c-omap.txt | 1 +
 drivers/i2c/busses/Kconfig                         | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.19.0
author
#1 lore raw

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

AM654 SoCs have similar I2C IP as OMAP SoCs. Add new compatible to handle AM654 SoCs.

---
 Documentation/devicetree/bindings/i2c/i2c-omap.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/i2c/i2c-omap.txt +2 -1
index 7e49839d4124..11ce869d682d 100644
@@ -2,7 +2,8 @@ I2C for OMAP platforms
 
 Required properties :
 - compatible : Must be "ti,omap2420-i2c", "ti,omap2430-i2c", "ti,omap3-i2c"
-  or "ti,omap4-i2c"
+  or "ti,omap4-i2c" for OMAP2+ SoCs
+- compatible : Must "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.0
#2 lore raw

Re: [PATCH 1/2] dt-bindings: i2c-omap: Add new compatible for AM654 SoCs

Quoted 13 lines · Vignesh R

AM654 SoCs have similar I2C IP as OMAP SoCs. Add new compatible to handle AM654 SoCs.

---
 Documentation/devicetree/bindings/i2c/i2c-omap.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/i2c/i2c-omap.txt +0 -0
index 7e49839d4124..11ce869d682d 100644

Documentation/devicetree/bindings/i2c/i2c-omap.txt I2C for OMAP platforms · line 6

Quoted 6 lines
Documentation/devicetree/bindings/i2c/i2c-omap.txt +2 -1
@@ -2,7 +2,8 @@ I2C for OMAP platforms
 
 Required properties :
 - compatible : Must be "ti,omap2420-i2c", "ti,omap2430-i2c", "ti,omap3-i2c"
-  or "ti,omap4-i2c"
+  or "ti,omap4-i2c" for OMAP2+ SoCs
+- compatible : Must "ti,am654-i2c", "ti,omap4-i2c" for AM654 SoCs
                      ^
                     be

Also, it looks bad with two 'compatible' entries in the properties list. I think the trend is to list one valid compatible (plus fallbacks) per line. So, you should consider reformatting, possibly like so:

- compatible : Must be one of

	"ti,omap2420-i2c"
	"ti,omap2430-i2c"
	"ti,omap3-i2c"
        "ti,omap4-i2c"
	"ti,am654-i2c", "ti,omap4-i2c"

Cheers,
Peter

Quoted 4 lines
Documentation/devicetree/bindings/i2c/i2c-omap.txt +0 -0
 - ti,hwmods : Must be "i2c<n>", n being the instance number (1-based)
 - #address-cells = <1>;
 - #size-cells = <0>;
author
#3 lore raw

Re: [PATCH 1/2] dt-bindings: i2c-omap: Add new compatible for AM654 SoCs

Quoted 27 lines · Peter Rosin
Quoted 13 lines · Vignesh R

AM654 SoCs have similar I2C IP as OMAP SoCs. Add new compatible to handle AM654 SoCs.

---
 Documentation/devicetree/bindings/i2c/i2c-omap.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/i2c/i2c-omap.txt +0 -0
index 7e49839d4124..11ce869d682d 100644

Documentation/devicetree/bindings/i2c/i2c-omap.txt I2C for OMAP platforms · line 6

Quoted 6 lines
Documentation/devicetree/bindings/i2c/i2c-omap.txt +2 -1
@@ -2,7 +2,8 @@ I2C for OMAP platforms
 
 Required properties :
 - compatible : Must be "ti,omap2420-i2c", "ti,omap2430-i2c", "ti,omap3-i2c"
-  or "ti,omap4-i2c"
+  or "ti,omap4-i2c" for OMAP2+ SoCs
+- compatible : Must "ti,am654-i2c", "ti,omap4-i2c" for AM654 SoCs
                      ^
                     be

Also, it looks bad with two 'compatible' entries in the properties list. I think the trend is to list one valid compatible (plus fallbacks) per line. So, you should consider reformatting, possibly like so:

Quoted 7 lines

- compatible : Must be one of

	"ti,omap2420-i2c"
	"ti,omap2430-i2c"
	"ti,omap3-i2c"
        "ti,omap4-i2c"
	"ti,am654-i2c", "ti,omap4-i2c"

I have sent v2 with these changes. Thanks for the review!

Signature · 2 lines
Regards
Vignesh
author
#4 lore raw

PATCH 2/2 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 451d4ae50e66..ac4b09642f63 100644
@@ -751,7 +751,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.0