From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 16/25 v7][RFC] arm64: renesas: salvator-x: add pfc node and subnodes for usb 2.0
Date: Thu, 27 Aug 2015 01:16:07 +0000 [thread overview]
Message-ID: <55DE64D7.3070600@renesas.com> (raw)
In-Reply-To: <876145776m.wl%kuninori.morimoto.gx@renesas.com>
Hi Geert-san,
(2015/08/26 23:26), Geert Uytterhoeven wrote:
> Hi Shimoda-san, Morimoto-san, Kihara-san,
>
> On Mon, Aug 24, 2015 at 4:30 AM, Kuninori Morimoto
> <kuninori.morimoto.gx@renesas.com> wrote:
>> From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
>
>> --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
>> +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
>> @@ -38,6 +38,23 @@
>> };
>> };
>>
>> +&pfc {
>> + usb0_pins: usb0 {
>> + renesas,groups = "usb0";
>> + renesas,function = "usb0";
>> + };
>> +
>> + usb1_pins: usb1 {
>> + renesas,groups = "usb1";
>> + renesas,function = "usb1";
>> + };
>> +
>> + usb2_pins: usb2 {
>> + renesas,groups = "usb2";
>> + renesas,function = "usb2";
>> + };
>> +};
>
> If CONFIG_PINCTRL=y:
>
> | sh-pfc e6060000.pfc: cannot locate data/mark enum_id for mark 2253
> | phy_rcar_gen3_usb2 ee080200.usb-phy: Error applying setting, reverse
> things back
>
> mark 2253 = USB0_PWEN_MARK
>
> I believe this is due to the IPSR16 section in the pinmux_data[] array in
> drivers/pinctrl/sh-pfc/pfc-r8a7795.c lacking data for IP16_11_8.
> Data for usb1 (IP16_19_16) and usb2 (IP15_3_0) is present.
>
> Unfortunately my pinctrl foo is not strong enough to fill in the missing
> pieces...
Thank you very much for the point.
I have ignored the error message because usb0 worked on my environment :)
However, we should fix it. And then, I found missing pieces for usb0 part as you mentioned.
If I applied the following patch, the error message disappeared and usb0 also worked.
So, Morimoto-san, if possible, would you merge this patch in v8?
Best regards,
Yoshihiro Shimoda
---
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
index 9437e87..1f60f4c 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
@@ -1335,6 +1335,19 @@ static const u16 pinmux_data[] = {
PINMUX_IPSR_DATA(IP15_31_28, SCK5),
/* IPSR16 */
+ PINMUX_IPSR_DATA(IP16_11_8, USB0_PWEN),
+ PINMUX_IPSR_MODSEL_DATA(IP16_11_8, SIM0_RST_C, SEL_SIMCARD_2),
+ PINMUX_IPSR_MODSEL_DATA(IP16_11_8, TS_SCK1_D, SEL_TSIF1_3),
+ PINMUX_IPSR_MODSEL_DATA(IP16_11_8, STP_ISCLK_1_D, SEL_SSP1_1_3),
+ PINMUX_IPSR_MODSEL_DATA(IP16_11_8, BPFCLK_B, SEL_FM_1),
+ PINMUX_IPSR_MODSEL_DATA(IP16_11_8, RIF3_CLK_B, SEL_DRIF3_1),
+
+ PINMUX_IPSR_DATA(IP16_15_12, USB0_OVC),
+ PINMUX_IPSR_MODSEL_DATA(IP16_15_12, SIM0_D_C, SEL_SIMCARD_2),
+ PINMUX_IPSR_MODSEL_DATA(IP16_15_12, TS_SDAT1_D, SEL_TSIF1_3),
+ PINMUX_IPSR_MODSEL_DATA(IP16_15_12, STP_ISD_1_D, SEL_SSP1_1_3),
+ PINMUX_IPSR_MODSEL_DATA(IP16_15_12, RIF3_SYNC_B, SEL_DRIF3_1),
+
PINMUX_IPSR_DATA(IP16_19_16, USB1_PWEN),
PINMUX_IPSR_MODSEL_DATA(IP16_19_16, SIM0_CLK_C, SEL_SIMCARD_2),
PINMUX_IPSR_MODSEL_DATA(IP16_19_16, SSI_SCK1_A, SEL_SSI_0),
next prev parent reply other threads:[~2015-08-27 1:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 2:30 [PATCH 16/25 v7][RFC] arm64: renesas: salvator-x: add pfc node and subnodes for usb 2.0 Kuninori Morimoto
2015-08-24 9:39 ` Geert Uytterhoeven
2015-08-26 14:26 ` Geert Uytterhoeven
2015-08-27 1:16 ` Yoshihiro Shimoda [this message]
2015-08-27 3:13 ` Yoshihiro Shimoda
2015-08-27 8:06 ` Geert Uytterhoeven
2015-08-27 10:42 ` Yoshihiro Shimoda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55DE64D7.3070600@renesas.com \
--to=yoshihiro.shimoda.uh@renesas.com \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox