devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Ben Dooks <ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
Cc: Ben Hutchings
	<ben.hutchings-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>,
	linux-kernel-81qHHgoATdFT9dQujB1mzip2UmYkHbXO@public.gmane.org,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Ian Molton <ian-zdned+2MO1+9FHfhHBbuYA@public.gmane.org>,
	linux-mmc <linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Linux-sh list <linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [Linux-kernel] [RFC PATCH 5/7] mmc: sh_mobile_sdhi: Add UHS-I mode support
Date: Tue, 5 May 2015 10:47:10 +0200	[thread overview]
Message-ID: <CAPDyKFpv0BOX0mAvhZx9j5Gnayt__YTiUa8SxvcmsEcuazsg0w@mail.gmail.com> (raw)
In-Reply-To: <554880C9.8080201-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>

On 5 May 2015 at 10:35, Ben Dooks <ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> wrote:
> On 05/05/15 10:56, Ulf Hansson wrote:
>> On 30 April 2015 at 14:32, Ben Hutchings <ben.hutchings-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> wrote:
>>> Implement voltage switch, supporting modes up to SDR-50.
>>>
>>> Based on work by Shinobu Uehara, Rob Taylor, William Towle and Ian Molton.
>>>
>>> This uses two voltage regulators, one external and one on the pfc.
>>
>> Why two? If there is a parent child relation ship, that should be
>> handled through the regulator tree, right!? Please elaborate.
>
> The card main power is separate from the IO line voltages.
>
> To get to the high-speed, card power is left at 3.3V and the IO
> voltage is changed to 1.8V.
>
> In the systems we have the power gate is separate from the controls
> for the IO but not integrated into the MMC controller itself.

Okay, that's what I was expecting and hoping for :-)

Then you need to rework $subject patch according to below.

1) Use mmc_regulator_get_supply() to fetch both the I/O voltage
regulator (vqmmc) and the main power regulator (vmmc).Your "vqmmc_ref"
regulator should thus be renamed to "vmmc".
2) The vmmc regulator should not be handled from the
->start_signal_voltage_switch() callback, since it's only vqmmc
voltage levels that should be changed from there.
3) The voltage levels changes for vmmc shall be handled via the
->set_ios() callback.

I suggest you go and have a look in drivers/mmc/host/mmci.c, that
should provide you with a good inspiration.

Kind regards
Uffe
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2015-05-05  8:47 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30 12:29 [RFC PATCH 0/7] UHS-I support for sh_mobile_sdhi Ben Hutchings
     [not found] ` <1430396995.5802.39.camel-2NU49sBE5Aze9VDwLV8dzJPsBRI6B4nW9dF7HbQ/qKg@public.gmane.org>
2015-04-30 12:30   ` [RFC PATCH 1/7] mmc: tmio: Add UHS-I mode support Ben Hutchings
2015-05-11  3:38     ` Kuninori Morimoto
     [not found]       ` <87egmn4wfo.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2015-05-11 14:04         ` Ben Hutchings
2015-05-11 14:10       ` Ben Hutchings
2015-04-30 12:33   ` [RFC PATCH 7/7] ARM: shmobile: r8a7790-lager.dts: Assert UHS-I SDR-50 capability Ben Hutchings
2015-04-30 16:08     ` Sergei Shtylyov
2015-04-30 12:31 ` [RFC PATCH 2/7] mmc: sh_mobile_sdhi: Add actual clock rate support Ben Hutchings
2015-04-30 16:34   ` Sergei Shtylyov
     [not found]     ` <554259A0.9030307-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-05-06  1:05       ` Ben Hutchings
2015-05-06  1:10         ` Ben Hutchings
2015-04-30 12:31 ` [RFC PATCH 3/7] pinctrl: sh-pfc: r8a7790: Add regulators for SD voltage switch Ben Hutchings
2015-05-05  7:52   ` Ulf Hansson
2015-05-06  1:12     ` Ben Hutchings
2015-04-30 12:31 ` [RFC PATCH 4/7] ARM: shmobile: r8a7790: Add nodes for pfc SD voltage regulators Ben Hutchings
2015-05-01  0:57   ` Simon Horman
2015-05-06  1:18     ` Ben Hutchings
     [not found]       ` <1430875082.4222.28.camel-2NU49sBE5Aze9VDwLV8dzJPsBRI6B4nW9dF7HbQ/qKg@public.gmane.org>
2015-05-07  4:33         ` Simon Horman
2015-04-30 12:32 ` [RFC PATCH 5/7] mmc: sh_mobile_sdhi: Add UHS-I mode support Ben Hutchings
2015-04-30 16:04   ` Sergei Shtylyov
     [not found]     ` <554252A1.6070302-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-05-06  1:41       ` Ben Hutchings
2015-05-05  7:56   ` Ulf Hansson
2015-05-05  8:35     ` [Linux-kernel] " Ben Dooks
     [not found]       ` <554880C9.8080201-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-05-05  8:47         ` Ulf Hansson [this message]
2015-05-06  1:38           ` Ben Hutchings
2015-05-06  8:44             ` Ulf Hansson
2015-05-06 13:49               ` Ben Hutchings
2015-05-11  8:54                 ` Ulf Hansson
2015-05-11 14:01                   ` Ben Hutchings
2015-05-11 14:58                     ` Ulf Hansson
2015-04-30 12:32 ` [RFC PATCH 6/7] ARM: shmobile: r8a7790-lager.dts: Set sdhi and mmcif clock rates Ben Hutchings
2015-04-30 16:06   ` Sergei Shtylyov
2015-05-06  1:44     ` Ben Hutchings
     [not found]   ` <1430397166.5802.45.camel-2NU49sBE5Aze9VDwLV8dzJPsBRI6B4nW9dF7HbQ/qKg@public.gmane.org>
2015-05-01  0:59     ` Simon Horman
     [not found]       ` <20150501005920.GH13754-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2015-05-06  1:46         ` Ben Hutchings
2015-05-07  4:29           ` Simon Horman

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=CAPDyKFpv0BOX0mAvhZx9j5Gnayt__YTiUa8SxvcmsEcuazsg0w@mail.gmail.com \
    --to=ulf.hansson-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
    --cc=ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org \
    --cc=ben.hutchings-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ian-zdned+2MO1+9FHfhHBbuYA@public.gmane.org \
    --cc=linux-kernel-81qHHgoATdFT9dQujB1mzip2UmYkHbXO@public.gmane.org \
    --cc=linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.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;
as well as URLs for NNTP newsgroup(s).