All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux
@ 2015-03-27  0:31 Marcel Ziswiler
  2015-03-27  0:31 ` [U-Boot] [PATCH v2 1/2] tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT Marcel Ziswiler
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Marcel Ziswiler @ 2015-03-27  0:31 UTC (permalink / raw)
  To: u-boot

Fix FUNCMUX_NDFLASH_KBC_8_BIT and pingroup ATC clashing.

Please note that the first patch has already been submitted once but
based on feedback from Stephen I now split it up into a generic fix
part plus a board specific ATC pingroup clashing workaround. That's why
I call this series already v2 to avoid any confusion.

Lucas Stach (1):
  tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT

Marcel Ziswiler (1):
  ARM: tegra: colibri_t20: fix nand pinmux

 arch/arm/mach-tegra/tegra20/funcmux.c   | 2 ++
 board/toradex/colibri_t20/colibri_t20.c | 6 ++++++
 2 files changed, 8 insertions(+)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2 1/2] tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT
  2015-03-27  0:31 [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux Marcel Ziswiler
@ 2015-03-27  0:31 ` Marcel Ziswiler
  2015-03-27  0:31 ` [U-Boot] [PATCH v2 2/2] ARM: tegra: colibri_t20: fix nand pinmux Marcel Ziswiler
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Marcel Ziswiler @ 2015-03-27  0:31 UTC (permalink / raw)
  To: u-boot

From: Lucas Stach <dev@lynxeye.de>

Even the 8-bit case needs KBCB configured, as pin D7 is located in this
pingroup.

Please note that pingroup ATC seems to come out of reset with its
config set to NAND so one needs to explicitly configure some other
function to this group in order to avoid clashing settings which is
outside the scope of this patch.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
Tested-by: Marcel Ziswiler <marcel@ziswiler.com>
---
changes in v2:
- based on Stephen's feedback moved ATC pingroup clashing workaround
  into separate board specific patch

 arch/arm/mach-tegra/tegra20/funcmux.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-tegra/tegra20/funcmux.c b/arch/arm/mach-tegra/tegra20/funcmux.c
index 0df4a07..44a85c5 100644
--- a/arch/arm/mach-tegra/tegra20/funcmux.c
+++ b/arch/arm/mach-tegra/tegra20/funcmux.c
@@ -252,12 +252,14 @@ int funcmux_select(enum periph_id id, int config)
 			break;
 		case FUNCMUX_NDFLASH_KBC_8_BIT:
 			pinmux_set_func(PMUX_PINGRP_KBCA, PMUX_FUNC_NAND);
+			pinmux_set_func(PMUX_PINGRP_KBCB, PMUX_FUNC_NAND);
 			pinmux_set_func(PMUX_PINGRP_KBCC, PMUX_FUNC_NAND);
 			pinmux_set_func(PMUX_PINGRP_KBCD, PMUX_FUNC_NAND);
 			pinmux_set_func(PMUX_PINGRP_KBCE, PMUX_FUNC_NAND);
 			pinmux_set_func(PMUX_PINGRP_KBCF, PMUX_FUNC_NAND);
 
 			pinmux_tristate_disable(PMUX_PINGRP_KBCA);
+			pinmux_tristate_disable(PMUX_PINGRP_KBCB);
 			pinmux_tristate_disable(PMUX_PINGRP_KBCC);
 			pinmux_tristate_disable(PMUX_PINGRP_KBCD);
 			pinmux_tristate_disable(PMUX_PINGRP_KBCE);
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2 2/2] ARM: tegra: colibri_t20: fix nand pinmux
  2015-03-27  0:31 [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux Marcel Ziswiler
  2015-03-27  0:31 ` [U-Boot] [PATCH v2 1/2] tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT Marcel Ziswiler
@ 2015-03-27  0:31 ` Marcel Ziswiler
  2015-03-27  2:37 ` [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: " Stephen Warren
  2015-03-31 22:46 ` Tom Warren
  3 siblings, 0 replies; 7+ messages in thread
From: Marcel Ziswiler @ 2015-03-27  0:31 UTC (permalink / raw)
  To: u-boot

Pingroup ATC seems to come out of reset with config set to NAND, so we
need to explicitly configure some other function to this group in order
to avoid clashing settings.

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
---
 board/toradex/colibri_t20/colibri_t20.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/board/toradex/colibri_t20/colibri_t20.c b/board/toradex/colibri_t20/colibri_t20.c
index 5d8bdec..8ae9ccf 100644
--- a/board/toradex/colibri_t20/colibri_t20.c
+++ b/board/toradex/colibri_t20/colibri_t20.c
@@ -27,6 +27,12 @@ void pin_mux_mmc(void)
 void pin_mux_nand(void)
 {
 	funcmux_select(PERIPH_ID_NDFLASH, FUNCMUX_NDFLASH_KBC_8_BIT);
+
+	/*
+	 * configure pingroup ATC to something unrelated to
+	 * avoid ATC overriding KBC
+	 */
+	pinmux_set_func(PMUX_PINGRP_ATC, PMUX_FUNC_GMI);
 }
 #endif
 
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux
  2015-03-27  0:31 [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux Marcel Ziswiler
  2015-03-27  0:31 ` [U-Boot] [PATCH v2 1/2] tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT Marcel Ziswiler
  2015-03-27  0:31 ` [U-Boot] [PATCH v2 2/2] ARM: tegra: colibri_t20: fix nand pinmux Marcel Ziswiler
@ 2015-03-27  2:37 ` Stephen Warren
  2015-03-31 22:46 ` Tom Warren
  3 siblings, 0 replies; 7+ messages in thread
From: Stephen Warren @ 2015-03-27  2:37 UTC (permalink / raw)
  To: u-boot

On 03/26/2015 06:31 PM, Marcel Ziswiler wrote:
> Fix FUNCMUX_NDFLASH_KBC_8_BIT and pingroup ATC clashing.
> 
> Please note that the first patch has already been submitted once but
> based on feedback from Stephen I now split it up into a generic fix
> part plus a board specific ATC pingroup clashing workaround. That's why
> I call this series already v2 to avoid any confusion.

The series,
Acked-by: Stephen Warren <swarren@nvidia.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux
  2015-03-27  0:31 [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux Marcel Ziswiler
                   ` (2 preceding siblings ...)
  2015-03-27  2:37 ` [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: " Stephen Warren
@ 2015-03-31 22:46 ` Tom Warren
  2015-04-01 13:24   ` Marcel Ziswiler
  3 siblings, 1 reply; 7+ messages in thread
From: Tom Warren @ 2015-03-31 22:46 UTC (permalink / raw)
  To: u-boot

Marcel,

This series applied to u-boot-tegra/next. I'll push an update today or tomorrow to Denx.de.

Tom

> -----Original Message-----
> From: Marcel Ziswiler [mailto:marcel at ziswiler.com]
> Sent: Thursday, March 26, 2015 5:32 PM
> To: u-boot at lists.denx.de
> Cc: Tom Warren; Albert Aribaud; Tom Rini; Lucas Stach; Stephen Warren;
> Simon Glass; Masahiro Yamada; Marcel Ziswiler
> Subject: [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux
> 
> Fix FUNCMUX_NDFLASH_KBC_8_BIT and pingroup ATC clashing.
> 
> Please note that the first patch has already been submitted once but based
> on feedback from Stephen I now split it up into a generic fix part plus a board
> specific ATC pingroup clashing workaround. That's why I call this series
> already v2 to avoid any confusion.
> 
> Lucas Stach (1):
>   tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT
> 
> Marcel Ziswiler (1):
>   ARM: tegra: colibri_t20: fix nand pinmux
> 
>  arch/arm/mach-tegra/tegra20/funcmux.c   | 2 ++
>  board/toradex/colibri_t20/colibri_t20.c | 6 ++++++
>  2 files changed, 8 insertions(+)
> 
> --
> 1.9.3

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux
  2015-03-31 22:46 ` Tom Warren
@ 2015-04-01 13:24   ` Marcel Ziswiler
  2015-04-01 13:27     ` Marcel Ziswiler
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Ziswiler @ 2015-04-01 13:24 UTC (permalink / raw)
  To: u-boot

On Tue, 2015-03-31 at 22:46 +0000, Tom Warren wrote:
> This series applied to u-boot-tegra/next. I'll push an update today or tomorrow to Denx.de.

Very good. Thanks!

Do you happen to know about the plans for my remaining three patches?

http://article.gmane.org/gmane.comp.boot-loaders.u-boot/216038

http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/216039

http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/216040

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux
  2015-04-01 13:24   ` Marcel Ziswiler
@ 2015-04-01 13:27     ` Marcel Ziswiler
  0 siblings, 0 replies; 7+ messages in thread
From: Marcel Ziswiler @ 2015-04-01 13:27 UTC (permalink / raw)
  To: u-boot

On Wed, 2015-04-01 at 15:24 +0200, Marcel Ziswiler wrote:
> Do you happen to know about the plans for my remaining three patches?
> 
> http://article.gmane.org/gmane.comp.boot-loaders.u-boot/216038
> 
> http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/216039
> 
> http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/216040

Sorry, I just noticed they already made it in there as well.

Thank you very much, Tom.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-01 13:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-27  0:31 [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmux Marcel Ziswiler
2015-03-27  0:31 ` [U-Boot] [PATCH v2 1/2] tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT Marcel Ziswiler
2015-03-27  0:31 ` [U-Boot] [PATCH v2 2/2] ARM: tegra: colibri_t20: fix nand pinmux Marcel Ziswiler
2015-03-27  2:37 ` [U-Boot] [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: " Stephen Warren
2015-03-31 22:46 ` Tom Warren
2015-04-01 13:24   ` Marcel Ziswiler
2015-04-01 13:27     ` Marcel Ziswiler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.