All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: Jack Mitchell <ml@embed.me.uk>
Cc: Yifeng Zhao <yifeng.zhao@rock-chips.com>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	 Kever Yang <kever.yang@rock-chips.com>,
	Peng Fan <peng.fan@nxp.com>,
	 Philipp Tomsich <philipp.tomsich@vrull.eu>,
	u-boot@lists.denx.de
Subject: Re: [PATCH v3 1/3] mmc: rockchip_sdhci: add phy and clock config for rk3399
Date: Wed, 24 Nov 2021 17:12:34 -0700	[thread overview]
Message-ID: <CAPnjgZ0NTtN9BOmsszUt9fzxego_OmSWLj-7FNbfWWYz9SLZzA@mail.gmail.com> (raw)
In-Reply-To: <7c990687-5fb7-d146-5c7e-3036850d7fb1@embed.me.uk>

Hi Jack,

On Fri, 29 Oct 2021 at 09:45, Jack Mitchell <ml@embed.me.uk> wrote:
>
> Hi,
>
> > snip
>
> > +
> > +static int rk3399_emmc_get_phy(struct udevice *dev)
> > +{
> > +     struct rockchip_sdhc *priv = dev_get_priv(dev);
> > +     ofnode phy_node;
> > +     void *grf_base;
> > +     u32 grf_phy_offset, phandle;
> > +
> > +     phandle = dev_read_u32_default(dev, "phys", 0);
> > +     phy_node = ofnode_get_by_phandle(phandle);
> > +     if (!ofnode_valid(phy_node)) {
> > +             debug("Not found emmc phy device\n");
> > +             return -ENODEV;
> > +     }
>
> I've just upgraded u-boot on my 3399 board and the emmc is failing to
> initialise as it can't find this "phys" node. It's a standard board
> setup with the following in the DT.
>
> &sdhci {
>         bus-width = <8>;
>         mmc-hs400-1_8v;
>         mmc-hs400-enhanced-strobe;
>         non-removable;
>         status = "okay";
> };
>
> &emmc_phy {
>         status = "okay";
> };
>
> and a vanilla rk3399.dtsi from 2021.10. Do you have any idea why this
> might be failing?
>
> U-Boot SPL 2021.10-00075-g8db2642c55-dirty (Oct 29 2021 - 16:42:46 +0100)
> Not found emmc phy device
> Trying to boot from MMC1
>
> Has anyone booted a 3399 board sucessfully since these patches went in?

Yes, chromebook_bob works OK for me.

Regards,
Simon

  reply	other threads:[~2021-11-25  0:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-29  8:24 [PATCH v3 0/3] Add hs400 support for rk3399 and rk3568 Yifeng Zhao
2021-06-29  8:24 ` [PATCH v3 1/3] mmc: rockchip_sdhci: add phy and clock config for rk3399 Yifeng Zhao
2021-06-29 21:53   ` Jaehoon Chung
2021-08-11  9:55   ` Kever Yang
2021-10-29 15:44   ` Jack Mitchell
2021-11-25  0:12     ` Simon Glass [this message]
2021-06-29  8:24 ` [PATCH v3 2/3] mmc: rockchip_sdhci: Add support for RK3568 Yifeng Zhao
2021-06-29 21:53   ` Jaehoon Chung
2021-08-11  9:56   ` Kever Yang
2021-08-11 10:23   ` Philipp Tomsich
2021-06-29  8:24 ` [PATCH v3 3/3] rockchip: config: evb-rk3399: add hs400 and SDMA support Yifeng Zhao
2021-08-11  9:56   ` Kever Yang
2021-08-11 10:18   ` Philipp Tomsich

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=CAPnjgZ0NTtN9BOmsszUt9fzxego_OmSWLj-7FNbfWWYz9SLZzA@mail.gmail.com \
    --to=sjg@chromium.org \
    --cc=jh80.chung@samsung.com \
    --cc=kever.yang@rock-chips.com \
    --cc=ml@embed.me.uk \
    --cc=peng.fan@nxp.com \
    --cc=philipp.tomsich@vrull.eu \
    --cc=u-boot@lists.denx.de \
    --cc=yifeng.zhao@rock-chips.com \
    /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.