All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joonyoung Shim <jy0922.shim@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] samsung: board: support eMMC reset using DT
Date: Sat, 10 Jan 2015 15:41:07 +0900	[thread overview]
Message-ID: <54B0C983.8060507@samsung.com> (raw)
In-Reply-To: <1420789819.6075.102.camel@collabora.co.uk>

Hi Sjoerd,

On 01/09/2015 04:50 PM, Sjoerd Simons wrote:
> On Fri, 2015-01-09 at 16:42 +0900, Joonyoung Shim wrote:
>> Hi,
>>
>> On 01/09/2015 01:21 PM, Jaehoon Chung wrote:
>>> On 01/09/2015 08:23 AM, Sjoerd Simons wrote:
>>>> On Thu, 2015-01-08 at 14:44 +0900, Joonyoung Shim wrote:
>>>>> Some exynos boards require special handling of SD4_nRESET_OUT line for
>>>>> eMMC memory to perform complete reboot e.g. Odroid X2/U3/XU3 boards.
>>>>>
>>>>> This will support eMMC reset using DT from reset_misc of samsung common
>>>>> board file and each board files can support eMMC reset on non DT case.
>>>>>
>>>>> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
>>>>
>>>>> diff --git a/doc/device-tree-bindings/exynos/emmc-reset.txt b/doc/device-tree-bindings/exynos/emmc-reset.txt
>>>>> new file mode 100644
>>>>> index 0000000..e48e508
>>>>> --- /dev/null
>>>>> +++ b/doc/device-tree-bindings/exynos/emmc-reset.txt
>>>>> @@ -0,0 +1,15 @@
>>>>> +* Samsung eMMC reset
>>>>> +
>>>>> +Some exynos boards require special handling of SD4_nRESET_OUT line for eMMC
>>>>> +memory to perform complete reboot.
>>>>
>>>> Nitpick, on XU3 the line you apparently need to twiddle is
>>>> SD0_nRESET_OUT.
>>>>
>>
>> Then, i think it's better to omit "SD4_".
>>
>>>> Is this type of usage of this pin specific to the Odroid Exynos boards
>>>> or potentially on more boards? (Sorry for the simple questions, but my
>>>> exynos documentation just says the line exists not what its intended
>>>> usage is). 
>>>
>>> In case of Exynos4, eMMC can be used with sdhci controller or dw-mmc controller.
>>> So Pin name should be used to SD0 or SD4.
>>>
>>> But Exynos5 is only supported the dw-mmc controller.
>>> (So eMMC is used pin-name as "SD0".)
>>>
>>
>> I can find only "SD_4_nRESET_OUT" from exynos4412 user manual and only
>> "SD_0__nRESET_OUT" from exynos5422 user manual.
>>
>>> Best Regards,
>>> Jaehoon Chung
>>>>
>>>> Fwiw, I did a quick check in the linux code and it doesn't seem to be
>>>> using those pins for currently for any boards. However my X2 does
>>>> successfully reset/reboot in u-boot and linux, so it seems optional
>>>> there. The XU3 does fail to reset itself, so it seems required for that
>>>> board.
>>>>
>>
>> I checked upstream u-boot and hardkernel u-boot and i found codes to
>> reset eMMC using gpio.
>>
>> upstream u-boot: reset_misc() of board/samsung/odroid/odroid.c
>> hardkernel u-boot: reset_cpu() of arch/arm/cpu/armv7/exynos/reset.c
> 
> Yeah u-boot does it, but linux upstream kernel does not. Hence wondering
> about the requirements.
> 

I didn't test Odroid X2 board but my Odroid U3 board cannot reboot
without controlling nRESET_OUT gpio on upstream linux kernel.

Thanks.

      reply	other threads:[~2015-01-10  6:41 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-08  5:44 [U-Boot] [PATCH 1/3] samsung: board: support eMMC reset using DT Joonyoung Shim
2015-01-08  5:44 ` [U-Boot] [PATCH 2/3] Odroid: Add eMMC-reset node on DT Joonyoung Shim
2015-01-08 18:20   ` Simon Glass
2015-01-09  7:30     ` Joonyoung Shim
2015-01-08  5:44 ` [U-Boot] [PATCH 3/3] Odroid-XU3: " Joonyoung Shim
2015-01-08 18:18 ` [U-Boot] [PATCH 1/3] samsung: board: support eMMC reset using DT Simon Glass
2015-01-09  7:31   ` Joonyoung Shim
2015-01-09  7:48     ` Minkyu Kang
2015-01-09 11:13     ` Jaehoon Chung
2015-01-10  6:53       ` Joonyoung Shim
2015-01-10 17:46         ` Simon Glass
2015-01-12  1:45           ` Jaehoon Chung
2015-01-12  4:45             ` Joonyoung Shim
2015-01-12 15:54               ` Simon Glass
2015-01-08 23:23 ` Sjoerd Simons
2015-01-09  4:21   ` Jaehoon Chung
2015-01-09  7:42     ` Joonyoung Shim
2015-01-09  7:50       ` Sjoerd Simons
2015-01-10  6:41         ` Joonyoung Shim [this message]

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=54B0C983.8060507@samsung.com \
    --to=jy0922.shim@samsung.com \
    --cc=u-boot@lists.denx.de \
    /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 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.