mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH v1] ARM: add Skov i'MX8MP based board support
Date: Mon, 14 Aug 2023 10:34:41 +0200	[thread overview]
Message-ID: <20230814083441.GC26389@pengutronix.de> (raw)
In-Reply-To: <24507806-3299-67de-966a-9537b21a03d3@pengutronix.de>

Hallo Ahmad,

On Fri, Aug 11, 2023 at 02:50:07PM +0200, Ahmad Fatoum wrote:
> Hello Oleksij,
> 
> On 11.08.23 13:48, Oleksij Rempel wrote:
> > +static const struct of_device_id skov_imx8m_of_match[] = {
> > +	{ .compatible = "skov,imx8mp" },
> 
> Are you sure, you don't want to have a -someboard suffix in case you need
> to differentiate future variants?

Yes, it is same way as it is done for the skov,imx6 boards. There is one
in barebox devicetree which is generic for all. Then board code reads
version from gpio pins and detect precise version.

This patch provide only initial support, version detection will be added
later.

> 
> > +	pmic@25 {
> > +		compatible = "nxp,pca9450c";
> 
> FYI, there is a driver here:
> https://lore.barebox.org/barebox/20230724075258.1840671-1-h.assmann@pengutronix.de/
> 
> That would allow you to get $global.system.reset if that's something that's
> intereting to you.

Yes, this can be added later if needed.

> 
> > +config MACH_SKOV_IMX8M
> > +	bool "Skov IMX8Mx based boards"
> > +	select ARCH_IMX8MP
> > +	select FIRMWARE_IMX_LPDDR4_PMU_TRAIN
> > +	select FIRMWARE_IMX8MP_ATF
> > +	select ARM_SMCCC
> > +	select MCI_IMX_ESDHC_PBL
> > +	select IMX8M_DRAM
> > +	select I2C_IMX_EARLY
> > +	select DSA
> > +	select DRIVER_NET_KSZ9477
> 
> Please drop last two selects. You should only select what's actually required
> for booting. At most, you could do an imply here. Also, please enable in defconfig
> for compile coverage. There you can enable DSA and KSZ9477 support.

Ok.

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



      reply	other threads:[~2023-08-14  8:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-11 11:48 Oleksij Rempel
2023-08-11 12:50 ` Ahmad Fatoum
2023-08-14  8:34   ` Oleksij Rempel [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=20230814083441.GC26389@pengutronix.de \
    --to=o.rempel@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.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