public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Weijie Gao <weijie.gao@mediatek.com>
To: u-boot@lists.denx.de
Subject: [RFC] Vocore2 MMC needs clock patches
Date: Tue, 21 Jan 2020 11:11:58 +0800	[thread overview]
Message-ID: <1579576318.26858.29.camel@mcddlt001> (raw)
In-Reply-To: <4a029fae-c5f8-bcfa-14e4-c5b636351e32@mclink.it>

On Tue, 2020-01-21 at 00:55 +0100, Mauro Condarelli wrote:
> Hi Weijie,
> I attach my, apparently working, port to VoCore2 SoM.
> 
> These patchsets are on top of Your 21 patch rewrite of MT7628 board,
> 
> While the first patchset is relatively straightforward, but does not include
> MMC handling, to enable it I had to backport from Linux Kernel several
> pieces, essentially clock and interrupt handling.

You are using a superseded patch series (v1) I submitted several months
ago. These patches have already been replaced by v3 and merged into the
mainline.

* "mtmips-clk-gate" from v1 is replaced by "mediatek,mt7628-clk" and the
  function of "mediatek,mt7628-clk" is a superset of "mtmips-clk-gate".
* The node "intc" has no use at all. U-Boot for mips use no interrupts.
* mmc property "hclk" is the gating clock of the SD controller module.
  Using <&clk48m> in the v1 patches was a bad idea. I changed it to
  <&clkctrl CLK_SDXC> in v3 to make sure its clock will be always
  enabled.
* Please move pinctrl properties to your board's dts file.
* pinctrl name "state_uhs" is not used by mtk-sd in U-Boot. MT7628 does
  not support UHS. You should remove it.
* vmmc-supply and vqmmc-supply are not used by mtk-sd in U-Boot because
  UHS support is not added to the driver. Besides you have assigned
  wrong values to them. You should remove it.

> 
> Those drivers appear written by You.
> I am unsure if this is really needed or if there is some other (perhaps
> cleaner)
> way to enable MMC.
> 
> As said this seems to work for me, but I would like to contribute this
> board upstream, in the best possible way.
> 
> Please let me know how I should proceed.

I don't have a board with the "sd_iot_mode" pinmux for SDXC, so I can't
tell you why you can't use it with my v3 patches. But I have tested v3
patches on boards using "sd_router_mode" pinmux and they do work well.

> 
> Best Regards and Thanks in Advance
> 
> 

  reply	other threads:[~2020-01-21  3:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-20 23:55 [RFC] Vocore2 MMC needs clock patches Mauro Condarelli
2020-01-21  3:11 ` Weijie Gao [this message]
2020-01-21 11:27   ` Mauro Condarelli
2020-01-21 12:08     ` Stefan Roese
2020-01-22 20:16       ` Mauro Condarelli
2020-01-22 21:13         ` Mauro Condarelli
2020-01-23  6:00         ` Stefan Roese

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=1579576318.26858.29.camel@mcddlt001 \
    --to=weijie.gao@mediatek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox