* [PATCH v3 13/64] sh-pfc: r8a7779: Add USB0 and USB1 PENC pinmux support
@ 2013-03-08 11:01 Laurent Pinchart
2013-05-06 22:43 ` Sergei Shtylyov
2013-05-07 22:18 ` Sergei Shtylyov
0 siblings, 2 replies; 3+ messages in thread
From: Laurent Pinchart @ 2013-03-08 11:01 UTC (permalink / raw)
To: linux-sh
The USB0 and USB1 PENC functions were missing. Add them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
drivers/pinctrl/sh-pfc/pfc-r8a7779.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
index 492832c..4ab7b11 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
@@ -429,7 +429,8 @@ enum {
A0_MARK, SD1_DAT3_MARK, MMC0_D3_MARK, FD3_MARK,
BS_MARK, SD1_DAT2_MARK, MMC0_D2_MARK, FD2_MARK,
ATADIR0_MARK, SDSELF_MARK, HCTS1_MARK, TX4_C_MARK,
- USB_PENC2_MARK, SCK0_MARK, PWM1_MARK, PWMFSW0_MARK,
+ USB_PENC0_MARK, USB_PENC1_MARK, USB_PENC2_MARK,
+ SCK0_MARK, PWM1_MARK, PWMFSW0_MARK,
SCIF_CLK_MARK, TCLK0_C_MARK,
EX_CS0_MARK, RX3_C_IRDA_RX_C_MARK, MMC0_D6_MARK,
@@ -640,6 +641,9 @@ static pinmux_enum_t pinmux_data[] = {
PINMUX_DATA(A18_MARK, FN_A18),
PINMUX_DATA(A19_MARK, FN_A19),
+ PINMUX_DATA(USB_PENC0_MARK, FN_USB_PENC0),
+ PINMUX_DATA(USB_PENC1_MARK, FN_USB_PENC1),
+
PINMUX_IPSR_DATA(IP0_2_0, USB_PENC2),
PINMUX_IPSR_MODSEL_DATA(IP0_2_0, SCK0, SEL_SCIF0_0),
PINMUX_IPSR_DATA(IP0_2_0, PWM1),
--
1.8.1.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v3 13/64] sh-pfc: r8a7779: Add USB0 and USB1 PENC pinmux support
2013-03-08 11:01 [PATCH v3 13/64] sh-pfc: r8a7779: Add USB0 and USB1 PENC pinmux support Laurent Pinchart
@ 2013-05-06 22:43 ` Sergei Shtylyov
2013-05-07 22:18 ` Sergei Shtylyov
1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2013-05-06 22:43 UTC (permalink / raw)
To: linux-sh
Hello.
On 03/08/2013 02:01 PM, Laurent Pinchart wrote:
> The USB0 and USB1 PENC functions were missing. Add them.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
> drivers/pinctrl/sh-pfc/pfc-r8a7779.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
> index 492832c..4ab7b11 100644
> --- a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
> @@ -429,7 +429,8 @@ enum {
> A0_MARK, SD1_DAT3_MARK, MMC0_D3_MARK, FD3_MARK,
> BS_MARK, SD1_DAT2_MARK, MMC0_D2_MARK, FD2_MARK,
> ATADIR0_MARK, SDSELF_MARK, HCTS1_MARK, TX4_C_MARK,
> - USB_PENC2_MARK, SCK0_MARK, PWM1_MARK, PWMFSW0_MARK,
> + USB_PENC0_MARK, USB_PENC1_MARK, USB_PENC2_MARK,
PENCn pins don't have USB_ prefix in the manual, so somebody
deliberately added
it before to FN_USB_PENC. That probably contributed to further confusion
where PENCn
were grouped together with USB_OVCn -- which are usually unused and are
3.3V
alternatives of OVCn 5V pins (which are not multiplexed at all).
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v3 13/64] sh-pfc: r8a7779: Add USB0 and USB1 PENC pinmux support
2013-03-08 11:01 [PATCH v3 13/64] sh-pfc: r8a7779: Add USB0 and USB1 PENC pinmux support Laurent Pinchart
2013-05-06 22:43 ` Sergei Shtylyov
@ 2013-05-07 22:18 ` Sergei Shtylyov
1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2013-05-07 22:18 UTC (permalink / raw)
To: linux-sh
Hello.
On 05/07/2013 02:43 AM, Sergei Shtylyov wrote:
>
>> The USB0 and USB1 PENC functions were missing. Add them.
>>
>> Signed-off-by: Laurent Pinchart
>> <laurent.pinchart+renesas@ideasonboard.com>
>> ---
>> drivers/pinctrl/sh-pfc/pfc-r8a7779.c | 6 +++++-
>> 1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
>> b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
>> index 492832c..4ab7b11 100644
>> --- a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
>> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
>> @@ -429,7 +429,8 @@ enum {
>> A0_MARK, SD1_DAT3_MARK, MMC0_D3_MARK, FD3_MARK,
>> BS_MARK, SD1_DAT2_MARK, MMC0_D2_MARK, FD2_MARK,
>> ATADIR0_MARK, SDSELF_MARK, HCTS1_MARK, TX4_C_MARK,
>> - USB_PENC2_MARK, SCK0_MARK, PWM1_MARK, PWMFSW0_MARK,
>> + USB_PENC0_MARK, USB_PENC1_MARK, USB_PENC2_MARK,
>
> PENCn pins don't have USB_ prefix in the manual, so somebody
> deliberately added
> it before to FN_USB_PENC.
That somebody being Laurent too. :-)
> That probably contributed to further confusion where PENCn
> were grouped together with USB_OVCn -- which are usually unused and
> are 3.3V
> alternatives of OVCn 5V pins (which are not multiplexed at all).
To avoid this confusion, and too match with what we have in
pfc-r8a7778.c, I'd like
to send a patch removing USB_ prefix/infix from PENCn pin/function enums.
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-07 22:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 11:01 [PATCH v3 13/64] sh-pfc: r8a7779: Add USB0 and USB1 PENC pinmux support Laurent Pinchart
2013-05-06 22:43 ` Sergei Shtylyov
2013-05-07 22:18 ` Sergei Shtylyov
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.