Skip to contentSkip to conversation

ARM: Keystone: Enable PINCTRL for Keystone ARCH

PATCH Applied Franklin S Cooper Jr 5 participants 14 messages Oct 20, 2015 – Oct 22, 2015

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

PATCH 1/5 ARM: Keystone: Enable PINCTRL for Keystone ARCH

From: Franklin Cooper <[email protected]>

Unlike other Keystone 2 devices, newer Keystone 2 SOCs may utilize pinmuxing which requires PINCTRL to be enabled. Therefore, enable PINCTRL for all Keystone 2 devices.

---
 arch/arm/mach-keystone/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-keystone/Kconfig +1 -0
index ea955f6db..7a432ee 100644
@@ -11,6 +11,7 @@ config ARCH_KEYSTONE
 	select ZONE_DMA if ARM_LPAE
 	select MIGHT_HAVE_PCI
 	select PCI_DOMAINS if PCI
+	select PINCTRL
 	help
 	  Support for boards based on the Texas Instruments Keystone family of
 	  SoCs.
Signature · 1 line
2.6.1
#1 lore raw

PATCH 2/5 mmc: omap_hsmmc: Enable omap_hsmmc for Keystone 2

From: Lokesh Vutla <[email protected]>

Enable omap_hsmmc for Keystone 2 architecture which reuses the HSMMC IP found on OMAP platforms.

---
 drivers/mmc/host/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/Kconfig +1 -1
index 8a1e349..2ccec71 100644
@@ -366,7 +366,7 @@ config MMC_OMAP
 config MMC_OMAP_HS
 	tristate "TI OMAP High Speed Multimedia Card Interface support"
 	depends on HAS_DMA
-	depends on ARCH_OMAP2PLUS || COMPILE_TEST
+	depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST
 	help
 	  This selects the TI OMAP High Speed Multimedia card Interface.
 	  If you have an omap2plus board with a Multimedia Card slot,
Signature · 1 line
2.6.1
#2 lore raw

Re: [PATCH 2/5] mmc: omap_hsmmc: Enable omap_hsmmc for Keystone 2

Quoted 16 lines · Franklin S Cooper Jr

From: Lokesh Vutla <[email protected]>

Enable omap_hsmmc for Keystone 2 architecture which reuses the HSMMC IP found on OMAP platforms.

---
  drivers/mmc/host/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/Kconfig +0 -0
index 8a1e349..2ccec71 100644

drivers/mmc/host/Kconfig config MMC_OMAP · line 372

Quoted 8 lines
drivers/mmc/host/Kconfig +1 -1
@@ -366,7 +366,7 @@ config MMC_OMAP
  config MMC_OMAP_HS
  	tristate "TI OMAP High Speed Multimedia Card Interface support"
  	depends on HAS_DMA
-	depends on ARCH_OMAP2PLUS || COMPILE_TEST
+	depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST
  	help
  	  This selects the TI OMAP High Speed Multimedia card Interface.
  	  If you have an omap2plus board with a Multimedia Card slot,

Please send this to MMC tree.

Regards,
Santosh

#3 lore raw

Re: [PATCH 2/5] mmc: omap_hsmmc: Enable omap_hsmmc for Keystone 2

In reply to Franklin S Cooper Jr
Quoted 16 lines · Franklin S Cooper Jr

From: Lokesh Vutla <[email protected]>

Enable omap_hsmmc for Keystone 2 architecture which reuses the HSMMC IP found on OMAP platforms.

---
 drivers/mmc/host/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/Kconfig +0 -0
index 8a1e349..2ccec71 100644

drivers/mmc/host/Kconfig config MMC_OMAP · line 369

Quoted 5 lines
drivers/mmc/host/Kconfig +1 -1
@@ -366,7 +366,7 @@ config MMC_OMAP
 config MMC_OMAP_HS
        tristate "TI OMAP High Speed Multimedia Card Interface support"
        depends on HAS_DMA
-       depends on ARCH_OMAP2PLUS || COMPILE_TEST
+       depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST

How about:
"depends on ARM || COMPILE_TEST"

Quoted 7 lines
drivers/mmc/host/Kconfig +0 -1
        help
          This selects the TI OMAP High Speed Multimedia card Interface.
          If you have an omap2plus board with a Multimedia Card slot,
--

2.6.1

Kind regards
Uffe

#4 lore raw

Re: [PATCH 2/5] mmc: omap_hsmmc: Enable omap_hsmmc for Keystone 2

Quoted 12 lines · Ulf Hansson
Quoted 11 lines · Franklin S Cooper Jr

From: Lokesh Vutla <[email protected]>

Enable omap_hsmmc for Keystone 2 architecture which reuses the HSMMC IP found on OMAP platforms.

---
 drivers/mmc/host/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

drivers/mmc/host/Kconfig config MMC_OMAP · line 369

Quoted 10 lines
drivers/mmc/host/Kconfig +1 -1
index 8a1e349..2ccec71 100644
@@ -366,7 +366,7 @@ config MMC_OMAP
 config MMC_OMAP_HS
        tristate "TI OMAP High Speed Multimedia Card Interface support"
        depends on HAS_DMA
-       depends on ARCH_OMAP2PLUS || COMPILE_TEST
+       depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST

How about:
"depends on ARM || COMPILE_TEST"

I'd much prefer the former actually - it's already hard enough to use the config tools with the kernel due to the number of silly options being presented, there's no need to make it worse.

In fact, I'd like to see more of the former (provided done sensibly) to reduce the number of config options seen for configurations to cut down on the shere noise of useless options. For example, if I've decided I don't want to support TI OMAP platforms, then I shouldn't be offered the TI OMAP MMC driver.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
Applied
#5 lore raw

Re: [PATCH 2/5] mmc: omap_hsmmc: Enable omap_hsmmc for Keystone 2

Quoted 31 lines · Russell King - ARM Linux
Quoted 12 lines · Ulf Hansson
Quoted 11 lines · Franklin S Cooper Jr

From: Lokesh Vutla <[email protected]>

Enable omap_hsmmc for Keystone 2 architecture which reuses the HSMMC IP found on OMAP platforms.

---
 drivers/mmc/host/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

drivers/mmc/host/Kconfig config MMC_OMAP · line 369

Quoted 10 lines
drivers/mmc/host/Kconfig +1 -1
index 8a1e349..2ccec71 100644
@@ -366,7 +366,7 @@ config MMC_OMAP
 config MMC_OMAP_HS
        tristate "TI OMAP High Speed Multimedia Card Interface support"
        depends on HAS_DMA
-       depends on ARCH_OMAP2PLUS || COMPILE_TEST
+       depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST

How about:
"depends on ARM || COMPILE_TEST"

I'd much prefer the former actually - it's already hard enough to use the config tools with the kernel due to the number of silly options being presented, there's no need to make it worse.

Quoted 5 lines

In fact, I'd like to see more of the former (provided done sensibly) to reduce the number of config options seen for configurations to cut down on the shere noise of useless options. For example, if I've decided I don't want to support TI OMAP platforms, then I shouldn't be offered the TI OMAP MMC driver.

Okay, fair enough and I don't have any strong opinions around this.

I queued up the patch for next, thanks!

Kind regards
Uffe

#6 lore raw

PATCH 3/5 ARM: keystone: defconfig: Enable PINCTRL SINGLE for Keystone 2

In reply to Franklin S Cooper Jr

Newer Keystone 2 devices utilize pinmuxing. Enable PINCTRL SINGLE which is used to handle pinmuxing.

---
 arch/arm/configs/keystone_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/keystone_defconfig +1 -0
index 95ce128..e0e0365 100644
@@ -208,3 +208,4 @@ CONFIG_GPIO_SYSCON=y
 CONFIG_TI_DAVINCI_MDIO=y
 CONFIG_MARVELL_PHY=y
 CONFIG_DEVTMPFS=y
+CONFIG_PINCTRL_SINGLE=y
Signature · 1 line
2.6.1
#7 lore raw

PATCH 4/5 ARM: keystone: defconfig: Enable MMC support

In reply to Franklin S Cooper Jr

Newer Keystone 2 devices support MMC and can boot from MMC. Therefore, enable MMC support along with MMC OMAP HS whose driver is reused.

---
 arch/arm/configs/keystone_defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/configs/keystone_defconfig +2 -0
index e0e0365..ed3e83e 100644
@@ -137,6 +137,8 @@ CONFIG_I2C_DAVINCI=y
 CONFIG_SPI=y
 CONFIG_SPI_DAVINCI=y
 CONFIG_SPI_SPIDEV=y
+CONFIG_MMC=y
+CONFIG_MMC_OMAP_HS=y
 # CONFIG_HWMON is not set
 CONFIG_POWER_SUPPLY=y
 CONFIG_POWER_RESET=y
Signature · 1 line
2.6.1
#8 lore raw

Re: [PATCH 4/5] ARM: keystone: defconfig: Enable MMC support

Quoted 5 lines · Franklin S Cooper Jr

Newer Keystone 2 devices support MMC and can boot from MMC. Therefore, enable MMC support along with MMC OMAP HS whose driver is reused.

---

Please notify once MMC patch is accepted and I will this one then.

#9 lore raw

PATCH 5/5 ARM: keystone: defconfig: Enable CAN support

In reply to Franklin S Cooper Jr

Newer Keystone 2 devices support CAN. Enable CAN support as modules.

---
 arch/arm/configs/keystone_defconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/configs/keystone_defconfig +3 -0
index ed3e83e..e9bd825 100644
@@ -137,6 +137,9 @@ CONFIG_I2C_DAVINCI=y
 CONFIG_SPI=y
 CONFIG_SPI_DAVINCI=y
 CONFIG_SPI_SPIDEV=y
+CONFIG_CAN=m
+CONFIG_CAN_C_CAN=m
+CONFIG_CAN_C_CAN_PLATFORM=m
 CONFIG_MMC=y
 CONFIG_MMC_OMAP_HS=y
 # CONFIG_HWMON is not set
Signature · 1 line
2.6.1
#10 lore raw

Re: [PATCH 5/5] ARM: keystone: defconfig: Enable CAN support

Quoted 4 lines · Franklin S Cooper Jr

Newer Keystone 2 devices support CAN. Enable CAN support as modules.

---

Again. Please shown me the usecases before adding config option. DTS nodes have to be there.

Quoted 18 lines
  arch/arm/configs/keystone_defconfig | 3 +++
  1 file changed, 3 insertions(+)
arch/arm/configs/keystone_defconfig +3 -0
index ed3e83e..e9bd825 100644
@@ -137,6 +137,9 @@ CONFIG_I2C_DAVINCI=y
  CONFIG_SPI=y
  CONFIG_SPI_DAVINCI=y
  CONFIG_SPI_SPIDEV=y
+CONFIG_CAN=m
+CONFIG_CAN_C_CAN=m
+CONFIG_CAN_C_CAN_PLATFORM=m
  CONFIG_MMC=y
  CONFIG_MMC_OMAP_HS=y
  # CONFIG_HWMON is not set
#11 lore raw
In reply to Franklin S Cooper Jr
Quoted 11 lines · Franklin S Cooper Jr

From: Franklin Cooper <[email protected]>

Unlike other Keystone 2 devices, newer Keystone 2 SOCs may utilize pinmuxing which requires PINCTRL to be enabled. Therefore, enable PINCTRL for all Keystone 2 devices.

---
  arch/arm/mach-keystone/Kconfig | 1 +
  1 file changed, 1 insertion(+)

I would be happy to add this one when I see pin control data in DTS and its actually going to be used in upstream kernel. Till then I don't want to add this one.

Regards,
Santosh

#12 lore raw
Quoted 12 lines · santosh shilimkar
Quoted 11 lines · Franklin S Cooper Jr

From: Franklin Cooper <[email protected]>

Unlike other Keystone 2 devices, newer Keystone 2 SOCs may utilize pinmuxing which requires PINCTRL to be enabled. Therefore, enable PINCTRL for all Keystone 2 devices.

---
  arch/arm/mach-keystone/Kconfig | 1 +
  1 file changed, 1 insertion(+)
Quoted 5 lines

I would be happy to add this one when I see pin control data in DTS and its actually going to be used in upstream kernel. Till then I don't want to add this one.

Agree. It is too early to add the defconfig update and should be deferred to when the DTS update is made. What if the newer keystone 2 SoC never end up in the tree?

Murali

Quoted 3 lines

Regards,
Santosh

Signature · 2 lines
Murali Karicheri
Linux Kernel, Keystone
#13 lore raw
In reply to Franklin S Cooper Jr
Quoted 17 lines · Franklin S Cooper Jr

From: Franklin Cooper <[email protected]>

Unlike other Keystone 2 devices, newer Keystone 2 SOCs may utilize pinmuxing which requires PINCTRL to be enabled. Therefore, enable PINCTRL for all Keystone 2 devices.

---
  arch/arm/mach-keystone/Kconfig | 1 +
  1 file changed, 1 insertion(+)
arch/arm/mach-keystone/Kconfig +0 -0
index ea955f6db..7a432ee 100644

arch/arm/mach-keystone/Kconfig config ARCH_KEYSTONE · line 17

Quoted 7 lines
arch/arm/mach-keystone/Kconfig +1 -0
@@ -11,6 +11,7 @@ config ARCH_KEYSTONE
  	select ZONE_DMA if ARM_LPAE
  	select MIGHT_HAVE_PCI
  	select PCI_DOMAINS if PCI
+	select PINCTRL
  	help
  	  Support for boards based on the Texas Instruments Keystone family of
  	  SoCs.

Have the Newer SoC base port is sent to the list? Please add these along with that series, not now.

Signature · 2 lines
Murali Karicheri
Linux Kernel, Keystone