public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* MMC slots on MS7724
@ 2010-07-26 21:32 Bill Traynor
  2010-07-27  0:46 ` Kuninori Morimoto
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Bill Traynor @ 2010-07-26 21:32 UTC (permalink / raw)
  To: linux-sh

Can someone with an MS7724 ecovec board confirm something for me?  When 
the board is powered on, are the two MMC slot LED power indicators lit?  
The LEDs are right off the back left corner of the slots.  On my board 
only one LED lights up and only blinks sporadically.  I can't get the 
board to recognize any SD cards at all and I suspect the hardware may be 
faulty.

Thanks
Bill

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

* Re: MMC slots on MS7724
  2010-07-26 21:32 MMC slots on MS7724 Bill Traynor
@ 2010-07-27  0:46 ` Kuninori Morimoto
  2010-07-27  4:50 ` Magnus Damm
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Kuninori Morimoto @ 2010-07-27  0:46 UTC (permalink / raw)
  To: linux-sh


Dear Bill

> Can someone with an MS7724 ecovec board confirm something for me?  When 
> the board is powered on, are the two MMC slot LED power indicators lit?  
> The LEDs are right off the back left corner of the slots.  On my board 
> only one LED lights up and only blinks sporadically.  I can't get the 
> board to recognize any SD cards at all and I suspect the hardware may be 
> faulty.

I asked about this to Ecovec hardware engineer.

when power on, LED status are
LED13: right up
LED12: right off

To enable "eMMC boot" on CN12 slot,
card power are applied to LED13 by hardware.

# current ecovec user manual (table 3.4.5.1)
# show you wrong infomation. sorry.

You can control it by PTB[7] and PTB[6].

Best regards
--
Kuninori Morimoto
 

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

* Re: MMC slots on MS7724
  2010-07-26 21:32 MMC slots on MS7724 Bill Traynor
  2010-07-27  0:46 ` Kuninori Morimoto
@ 2010-07-27  4:50 ` Magnus Damm
  2010-07-27 12:15 ` Bill Traynor
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Magnus Damm @ 2010-07-27  4:50 UTC (permalink / raw)
  To: linux-sh

On Tue, Jul 27, 2010 at 6:32 AM, Bill Traynor <wmat@naoi.ca> wrote:
> Can someone with an MS7724 ecovec board confirm something for me?  When the
> board is powered on, are the two MMC slot LED power indicators lit?  The
> LEDs are right off the back left corner of the slots.  On my board only one
> LED lights up and only blinks sporadically.  I can't get the board to
> recognize any SD cards at all and I suspect the hardware may be faulty.

I recognize the case with one LED blinking. For me I think it was
caused by a mismatch in between the kernel configuration and the dip
switch settings. If you still have problems then please post your
kernel configure and I will give it a try.

Cheers,

/ magnus

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

* Re: MMC slots on MS7724
  2010-07-26 21:32 MMC slots on MS7724 Bill Traynor
  2010-07-27  0:46 ` Kuninori Morimoto
  2010-07-27  4:50 ` Magnus Damm
@ 2010-07-27 12:15 ` Bill Traynor
  2010-07-27 12:49 ` Bill Traynor
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Bill Traynor @ 2010-07-27 12:15 UTC (permalink / raw)
  To: linux-sh

On 10-07-26 08:46 PM, Kuninori Morimoto wrote:
> Dear Bill
>
>    
>> Can someone with an MS7724 ecovec board confirm something for me?  When
>> the board is powered on, are the two MMC slot LED power indicators lit?
>> The LEDs are right off the back left corner of the slots.  On my board
>> only one LED lights up and only blinks sporadically.  I can't get the
>> board to recognize any SD cards at all and I suspect the hardware may be
>> faulty.
>>      
> I asked about this to Ecovec hardware engineer.
>
> when power on, LED status are
> LED13: right up
> LED12: right off
>
> To enable "eMMC boot" on CN12 slot,
> card power are applied to LED13 by hardware.
>
> # current ecovec user manual (table 3.4.5.1)
> # show you wrong infomation. sorry.
>
> You can control it by PTB[7] and PTB[6].
>    

Thanks, after changing DS-2[6] to ON and DS-2[7] to OFF, dmesg reports 
the following on insertion of a card in the SD/MMC slot (SDHI1):

mmc1: new SDHC card at address 1234
mmcblk0: mmc1:1234 SA04G 3.68 GiB
  mmcblk0: p1

Oddly, the Android demo still reports no SD card though.  I'll try a few 
more things to try to get that working.

> Best regards
> --
> Kuninori Morimoto
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>    


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

* Re: MMC slots on MS7724
  2010-07-26 21:32 MMC slots on MS7724 Bill Traynor
                   ` (2 preceding siblings ...)
  2010-07-27 12:15 ` Bill Traynor
@ 2010-07-27 12:49 ` Bill Traynor
  2010-07-28  0:28 ` Kuninori Morimoto
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Bill Traynor @ 2010-07-27 12:49 UTC (permalink / raw)
  To: linux-sh

On 10-07-27 12:50 AM, Magnus Damm wrote:
> On Tue, Jul 27, 2010 at 6:32 AM, Bill Traynor<wmat@naoi.ca>  wrote:
>    
>> Can someone with an MS7724 ecovec board confirm something for me?  When the
>> board is powered on, are the two MMC slot LED power indicators lit?  The
>> LEDs are right off the back left corner of the slots.  On my board only one
>> LED lights up and only blinks sporadically.  I can't get the board to
>> recognize any SD cards at all and I suspect the hardware may be faulty.
>>      
> I recognize the case with one LED blinking. For me I think it was
> caused by a mismatch in between the kernel configuration and the dip
> switch settings. If you still have problems then please post your
> kernel configure and I will give it a try.
>    
I'm using the latest ecovec24_defconfig in Paul's git tree.

The blinking LED has stopped when DP2[6] is set to ON, and DP2[7] is set 
to off.  This also enables the top SD slot on the board (CN12).

I've yet to get the bottom slot to show any life.  The user manual seems 
to indicate (Section 4.4) that slot usage is an OR situation setup with 
the DIP switches, that is one can use the MMC interface OR the SD 
interface but not both.

"MMC/ MMC plus/ SD card slot of CN12 is a multi slot that can insert MMC 
/MMC plus card and SD card. MMC/ MMC plus card or the SD card interface 
is selected by setting dip switch DS2-[7:6]."

dmesg does report the following:
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0 at 0xa4ce0000 irq 100
mmc1 at 0xa4cf0000 irq 23

So given that the top slot works now for me, getting the bottom slot to 
work isn't critical.  But I'll continue to poke at it.

> Cheers,
>
> / magnus
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>    


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

* Re: MMC slots on MS7724
  2010-07-26 21:32 MMC slots on MS7724 Bill Traynor
                   ` (3 preceding siblings ...)
  2010-07-27 12:49 ` Bill Traynor
@ 2010-07-28  0:28 ` Kuninori Morimoto
  2010-07-28  8:51 ` Jeremy Baker
  2010-07-28  9:20 ` Magnus Damm
  6 siblings, 0 replies; 8+ messages in thread
From: Kuninori Morimoto @ 2010-07-28  0:28 UTC (permalink / raw)
  To: linux-sh


Dear Bill

> Thanks, after changing DS-2[6] to ON and DS-2[7] to OFF, dmesg reports 
> the following on insertion of a card in the SD/MMC slot (SDHI1):
> 
> mmc1: new SDHC card at address 1234
> mmcblk0: mmc1:1234 SA04G 3.68 GiB
>   mmcblk0: p1
> 
> Oddly, the Android demo still reports no SD card though.  I'll try a few 
> more things to try to get that working.

OK. I asked about Ecovec Android to expert.
I guess you got Android demo from Renesas OSS site.
correct ?

At first, we didn't check CN12 slot for Android demo.
We used CN11 slot.

Please check "mount" command.
Does your card mounted ?

If not, please check
/system/etc/vold.conf

meybe your conf show you "mmc0"
but your card is in "mmc1" now

> I'm using the latest ecovec24_defconfig in Paul's git tree.

Hmm..
When you compile kernel for Android, above defconfig is not enough.
Android setting is needed.

I wounder which kernel are you using ?
Android needs special kernel patches.

Please check here
https://oss.renesas.com/modules/download/index.php?cidf

Best regards
--
Kuninori Morimoto
 

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

* RE: MMC slots on MS7724
  2010-07-26 21:32 MMC slots on MS7724 Bill Traynor
                   ` (4 preceding siblings ...)
  2010-07-28  0:28 ` Kuninori Morimoto
@ 2010-07-28  8:51 ` Jeremy Baker
  2010-07-28  9:20 ` Magnus Damm
  6 siblings, 0 replies; 8+ messages in thread
From: Jeremy Baker @ 2010-07-28  8:51 UTC (permalink / raw)
  To: linux-sh

Morimoto - san, Bill,

> 
> 
> Dear Bill
> 
> > Thanks, after changing DS-2[6] to ON and DS-2[7] to OFF, dmesg reports
> > the following on insertion of a card in the SD/MMC slot (SDHI1):
> >
> > mmc1: new SDHC card at address 1234
> > mmcblk0: mmc1:1234 SA04G 3.68 GiB
> >   mmcblk0: p1
> >
> > Oddly, the Android demo still reports no SD card though.  I'll try a few
> > more things to try to get that working.
> 
> OK. I asked about Ecovec Android to expert.
> I guess you got Android demo from Renesas OSS site.
> correct ?
> 
> At first, we didn't check CN12 slot for Android demo.
> We used CN11 slot.
> 
> Please check "mount" command.
> Does your card mounted ?
> 
> If not, please check
> /system/etc/vold.conf
> 
> meybe your conf show you "mmc0"
> but your card is in "mmc1" now
> 
> > I'm using the latest ecovec24_defconfig in Paul's git tree.
> 
> Hmm..
> When you compile kernel for Android, above defconfig is not enough.
> Android setting is needed.
> 
> I wounder which kernel are you using ?
> Android needs special kernel patches.
> 
> Please check here
> https://oss.renesas.com/modules/download/index.php?cidf
> 
> Best regards
> --
> Kuninori Morimoto
> 
Don't forget that DS2:6 and DS2:7 are only associated with CN12 (and LED13),

If DS2:6 = ON and DS2:7 = Off, SDHI peripheral is connected to CN12, if
DS2:6 = OFF DS2:7 = ON, MMCIF peripheral is connected to CN12. DS2:4 has to
be on for the SDHI peripheral to be connected to CN11, if DS2:4 is off,
MSIOF peripheral is connected to CN11 (MSIOF is used for MMC via SPI).

LED 12 is associated with CN11.

Regards

Jeremy Baker


This message is intended only for the use of the addressee(s) and may
contain confidential and/or legally privileged information.
If you are not the intended recipient, you are hereby notified that
any dissemination of this email (including any attachments thereto)
is strictly prohibited. If you have received this email in
error, please notify the sender immediately by telephone or email
and permanently destroy the original without making any copy.
Please note that any material and advice from this mail is provided
free of charge and shall be used as an example for demonstration
purposes only.
RENESAS MAKES NO WARRANTIES THAT THEIR USAGE WILL NOT INFRINGE ANY
INTELLECTUAL PROPERTY RIGHTS (E.G. PATENTS, COPYRIGHTS).
RENESAS CANNOT GUARANTEE BUG FREE OPERATION AND THE RECIPIENT WILL USE
AND/OR DISTRIBUTE IT ONLY AT HIS OWN RISK. IN NO EVENT SHALL
RENESAS BE LIABLE FOR ANY DAMAGE.
This communication with Renesas Electronics Europe Ltd does not amend
any written agreement in place.
Thank you.
Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

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

* Re: MMC slots on MS7724
  2010-07-26 21:32 MMC slots on MS7724 Bill Traynor
                   ` (5 preceding siblings ...)
  2010-07-28  8:51 ` Jeremy Baker
@ 2010-07-28  9:20 ` Magnus Damm
  6 siblings, 0 replies; 8+ messages in thread
From: Magnus Damm @ 2010-07-28  9:20 UTC (permalink / raw)
  To: linux-sh

Hi Bill,

On Tue, Jul 27, 2010 at 9:49 PM, Bill Traynor <wmat@naoi.ca> wrote:
> On 10-07-27 12:50 AM, Magnus Damm wrote:
>>
>> On Tue, Jul 27, 2010 at 6:32 AM, Bill Traynor<wmat@naoi.ca>  wrote:
>>
>>>
>>> Can someone with an MS7724 ecovec board confirm something for me?  When
>>> the
>>> board is powered on, are the two MMC slot LED power indicators lit?  The
>>> LEDs are right off the back left corner of the slots.  On my board only
>>> one
>>> LED lights up and only blinks sporadically.  I can't get the board to
>>> recognize any SD cards at all and I suspect the hardware may be faulty.
>>>
>>
>> I recognize the case with one LED blinking. For me I think it was
>> caused by a mismatch in between the kernel configuration and the dip
>> switch settings. If you still have problems then please post your
>> kernel configure and I will give it a try.
>>
>
> I'm using the latest ecovec24_defconfig in Paul's git tree.

The ecovec defconfig seems to have the MMCIF driver disabled.
Feel free to try CONFIG_MMC_SH_MMCIF=y.

The MMC stuff on Ecovec is like a big maze. On the hardware side you
have an external bus switch controlled by dip switches. Inside the SoC
you can select between MMCIF or SDHI for one of the slots. On top of
that you can use MSIOF for MMC-over-SPI.

The hardware setting need to be reflected by the kernel configuration.
I recommend you to browse through the platform device comments in
arch/sh/boards/mach-ecovec24/setup.c

Cheers,

/ magnus

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

end of thread, other threads:[~2010-07-28  9:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 21:32 MMC slots on MS7724 Bill Traynor
2010-07-27  0:46 ` Kuninori Morimoto
2010-07-27  4:50 ` Magnus Damm
2010-07-27 12:15 ` Bill Traynor
2010-07-27 12:49 ` Bill Traynor
2010-07-28  0:28 ` Kuninori Morimoto
2010-07-28  8:51 ` Jeremy Baker
2010-07-28  9:20 ` Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox