devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 SLEWCTRL_FAST binding
@ 2015-02-28  1:10 Dave Gerlach
  2015-02-28  1:10 ` [PATCH 1/2] pinctrl: am33xx: dt-bindings: fix " Dave Gerlach
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dave Gerlach @ 2015-02-28  1:10 UTC (permalink / raw)
  To: linux-arm-kernel, linux-omap, devicetree
  Cc: Rob Herring, Tony Lindgren, Mark Rutland, Dave Gerlach

Currently both am33xx and am43xx have the macro for SLEWCTRL_FAST
in pinctrl dt-bindings reversed so that selecting the macro actually
sets SLEWCTRL_SLOW in the pad control registers. These patches
correct the bindings but leave the pinctrl states that use the binding
*UNMODIFIED*. Previously i2c and mdio on am33xx and i2c, mdio, and
uart on am43xx had been using this macro and selecting SLEWCTRL_FAST
while actually programming SLEWCTRL_SLOW in the pad config registers.

Because the intended selection was SLEWCTRL_FAST the macros are
unchanged. I tested on am335x-gp-evm and am437x-gp-evm with no
difference in functionality seen.

Regards,
Dave

Dave Gerlach (2):
  pinctrl: am33xx: dt-bindings: fix SLEWCTRL_FAST binding
  pinctrl: am43xx: dt-bindings: fix SLEWCTRL_FAST binding

 include/dt-bindings/pinctrl/am33xx.h | 3 ++-
 include/dt-bindings/pinctrl/am43xx.h | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.3.0


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

* [PATCH 1/2] pinctrl: am33xx: dt-bindings: fix SLEWCTRL_FAST binding
  2015-02-28  1:10 [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 SLEWCTRL_FAST binding Dave Gerlach
@ 2015-02-28  1:10 ` Dave Gerlach
  2015-02-28  1:10 ` [PATCH 2/2] pinctrl: am43xx: " Dave Gerlach
  2015-03-06 17:13 ` [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 " Tony Lindgren
  2 siblings, 0 replies; 5+ messages in thread
From: Dave Gerlach @ 2015-02-28  1:10 UTC (permalink / raw)
  To: linux-arm-kernel, linux-omap, devicetree
  Cc: Rob Herring, Tony Lindgren, Mark Rutland, Dave Gerlach

According to AM335x TRM, Document spruh73l, Revised February 2015,
Section 9.2.2 Pad Control Registers, setting bit 6 of the pad control
registers actually sets the SLEWCTRL value to slow rather than fast as
the current macro indicates. Introduce a new macro, SLEWCTRL_SLOW, that
sets the bit, and modify SLEWCTRL_FAST to 0 but keep it for
completeness.

Current users of the macro (i2c and mdio) are left unmodified as
SLEWCTRL_FAST was the macro used and actual desired state. Tested on
am335x-gp-evm with no difference in software performance seen.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
---
 include/dt-bindings/pinctrl/am33xx.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/dt-bindings/pinctrl/am33xx.h b/include/dt-bindings/pinctrl/am33xx.h
index 2fbc804..226f772 100644
--- a/include/dt-bindings/pinctrl/am33xx.h
+++ b/include/dt-bindings/pinctrl/am33xx.h
@@ -13,7 +13,8 @@
 
 #define PULL_DISABLE		(1 << 3)
 #define INPUT_EN		(1 << 5)
-#define SLEWCTRL_FAST		(1 << 6)
+#define SLEWCTRL_SLOW		(1 << 6)
+#define SLEWCTRL_FAST		0
 
 /* update macro depending on INPUT_EN and PULL_ENA */
 #undef PIN_OUTPUT
-- 
2.3.0


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

* [PATCH 2/2] pinctrl: am43xx: dt-bindings: fix SLEWCTRL_FAST binding
  2015-02-28  1:10 [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 SLEWCTRL_FAST binding Dave Gerlach
  2015-02-28  1:10 ` [PATCH 1/2] pinctrl: am33xx: dt-bindings: fix " Dave Gerlach
@ 2015-02-28  1:10 ` Dave Gerlach
  2015-03-06 17:13 ` [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 " Tony Lindgren
  2 siblings, 0 replies; 5+ messages in thread
From: Dave Gerlach @ 2015-02-28  1:10 UTC (permalink / raw)
  To: linux-arm-kernel, linux-omap, devicetree
  Cc: Rob Herring, Tony Lindgren, Mark Rutland, Dave Gerlach

According to AM437x TRM, Document SPRUHL7B, Revised December 2014,
Section 7.2.1 Pad Control Registers, setting bit 19 of the pad control
registers actually sets the SLEWCTRL value to slow rather than fast as
the current macro indicates. Introduce a new macro, SLEWCTRL_SLOW, that
sets the bit, and modify SLEWCTRL_FAST to 0 but keep it for
completeness.

Current users of the macro (i2c, mdio, and uart) are left unmodified as
SLEWCTRL_FAST was the macro used and actual desired state. Tested on
am437x-gp-evm with no difference in software performance seen.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
---
 include/dt-bindings/pinctrl/am43xx.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/dt-bindings/pinctrl/am43xx.h b/include/dt-bindings/pinctrl/am43xx.h
index 9c2e4f8..5f4d0189 100644
--- a/include/dt-bindings/pinctrl/am43xx.h
+++ b/include/dt-bindings/pinctrl/am43xx.h
@@ -18,7 +18,8 @@
 #define PULL_DISABLE		(1 << 16)
 #define PULL_UP			(1 << 17)
 #define INPUT_EN		(1 << 18)
-#define SLEWCTRL_FAST		(1 << 19)
+#define SLEWCTRL_SLOW		(1 << 19)
+#define SLEWCTRL_FAST		0
 #define DS0_PULL_UP_DOWN_EN	(1 << 27)
 
 #define PIN_OUTPUT		(PULL_DISABLE)
-- 
2.3.0


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

* Re: [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 SLEWCTRL_FAST binding
  2015-02-28  1:10 [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 SLEWCTRL_FAST binding Dave Gerlach
  2015-02-28  1:10 ` [PATCH 1/2] pinctrl: am33xx: dt-bindings: fix " Dave Gerlach
  2015-02-28  1:10 ` [PATCH 2/2] pinctrl: am43xx: " Dave Gerlach
@ 2015-03-06 17:13 ` Tony Lindgren
  2015-03-06 17:31   ` Dave Gerlach
  2 siblings, 1 reply; 5+ messages in thread
From: Tony Lindgren @ 2015-03-06 17:13 UTC (permalink / raw)
  To: Dave Gerlach
  Cc: linux-arm-kernel, linux-omap, devicetree, Rob Herring,
	Mark Rutland

* Dave Gerlach <d-gerlach@ti.com> [150227 17:14]:
> Currently both am33xx and am43xx have the macro for SLEWCTRL_FAST
> in pinctrl dt-bindings reversed so that selecting the macro actually
> sets SLEWCTRL_SLOW in the pad control registers. These patches
> correct the bindings but leave the pinctrl states that use the binding
> *UNMODIFIED*. Previously i2c and mdio on am33xx and i2c, mdio, and
> uart on am43xx had been using this macro and selecting SLEWCTRL_FAST
> while actually programming SLEWCTRL_SLOW in the pad config registers.
> 
> Because the intended selection was SLEWCTRL_FAST the macros are
> unchanged. I tested on am335x-gp-evm and am437x-gp-evm with no
> difference in functionality seen.

Applying both into omap-for-v4.0/fixes thanks.

Tony

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

* Re: [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 SLEWCTRL_FAST binding
  2015-03-06 17:13 ` [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 " Tony Lindgren
@ 2015-03-06 17:31   ` Dave Gerlach
  0 siblings, 0 replies; 5+ messages in thread
From: Dave Gerlach @ 2015-03-06 17:31 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-arm-kernel, linux-omap, devicetree, Rob Herring,
	Mark Rutland

On 03/06/2015 11:13 AM, Tony Lindgren wrote:
> * Dave Gerlach <d-gerlach@ti.com> [150227 17:14]:
>> Currently both am33xx and am43xx have the macro for SLEWCTRL_FAST
>> in pinctrl dt-bindings reversed so that selecting the macro actually
>> sets SLEWCTRL_SLOW in the pad control registers. These patches
>> correct the bindings but leave the pinctrl states that use the binding
>> *UNMODIFIED*. Previously i2c and mdio on am33xx and i2c, mdio, and
>> uart on am43xx had been using this macro and selecting SLEWCTRL_FAST
>> while actually programming SLEWCTRL_SLOW in the pad config registers.
>>
>> Because the intended selection was SLEWCTRL_FAST the macros are
>> unchanged. I tested on am335x-gp-evm and am437x-gp-evm with no
>> difference in functionality seen.
> 
> Applying both into omap-for-v4.0/fixes thanks.

Thanks!

Regards,
Dave

> 
> Tony
> 


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

end of thread, other threads:[~2015-03-06 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-28  1:10 [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 SLEWCTRL_FAST binding Dave Gerlach
2015-02-28  1:10 ` [PATCH 1/2] pinctrl: am33xx: dt-bindings: fix " Dave Gerlach
2015-02-28  1:10 ` [PATCH 2/2] pinctrl: am43xx: " Dave Gerlach
2015-03-06 17:13 ` [PATCH 0/2] pinctrl: dt-bindings: Fix amx3 " Tony Lindgren
2015-03-06 17:31   ` Dave Gerlach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).