From: Stefan Kerkmann <s.kerkmann@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>,
Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Subject: Re: [PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support
Date: Mon, 11 Mar 2024 14:32:21 +0100 [thread overview]
Message-ID: <5dd3c20d-26c4-4cd0-89a1-f922d5ddae02@pengutronix.de> (raw)
In-Reply-To: <f1fdc37f-61ce-40e7-a521-9e895dfbc8f9@pengutronix.de>
Hello Ahmad,
On 11.03.24 11:13, Ahmad Fatoum wrote:
> Hello Stefan,
>
> On 11.03.24 10:10, Stefan Kerkmann wrote:
>> From: Marc Kleine-Budde <mkl@pengutronix.de>
>>
>> The Ka-Ro QSXP is a i.MX8M Plus solder down system on module. This
>> commit adds support for the SOM on the QSBASE4 RDK.
>>
>> [1]: https://www.karo-electronics.de/qsxp
>>
>> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
>> Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
>> ---
>> arch/arm/boards/Makefile | 1 +
>> arch/arm/boards/karo-qsxp-ml81/Makefile | 4 +
>> arch/arm/boards/karo-qsxp-ml81/board.c | 35 +
>> .../flash-header-karo-qsxp-ml81.imxcfg | 9 +
>> arch/arm/boards/karo-qsxp-ml81/lowlevel.c | 102 ++
>> arch/arm/boards/karo-qsxp-ml81/lowlevel.h | 8 +
>> arch/arm/boards/karo-qsxp-ml81/lpddr4-timing.c | 1597 ++++++++++++++++++++
>
> If QSXP is the SoM name, rename the folder name to drop ml81.
>
See reply to patch 5/6, the full manufacturer part number is `QSXP-ML81`
therefore I vote to keep the `ml81` part.
>> +
>> + /*
>> + * If we are in EL3 we are running for the first time out of OCRAM,
>> + * we'll need to initialize the DRAM and run TF-A (BL31). The TF-A
>> + * will then jump to DRAM in EL2
>> + */
>> + if (current_el() == 3) {
>> + imx8mp_early_clock_init();
>> +
>> + power_init_board();
>> +
>> + imx8mp_ddr_init(&karo_qsxp_ml81_dram_timing, DRAM_TYPE_LPDDR4);
>> +
>> + imx8mp_load_and_start_image_via_tfa();
>> + }
>> +
>> + /* Standard entry we hit once we initialized both DDR and ATF */
>> + imx8mm_barebox_entry(__dtb_z_imx8mp_karo_qsxp_ml81_qsbase4_start);
>
> s/imx8mm/imx8mp/
>
Ack.
>> +/* ddr phy trained csr */
>> +static struct dram_cfg_param ddr_ddrphy_trained_csr[] = {
>
> This is unused. See commit
> 975acf1bafba ("ARM: i.MX8M: delete unused per-board ddr_ddrphy_trained_csr array")
>
> Unless your value differ from the default, just drop this from here.
>
Ack.
>> +static struct dram_fsp_msg ddr_dram_fsp_msg[] = {
>> + {
>> + /* P0 3200mts 1D */
>> + .drate = 3200,
>> + .fw_type = FW_1D_IMAGE,
>> + .fsp_cfg = ddr_fsp0_cfg,
>> + .fsp_cfg_num = ARRAY_SIZE(ddr_fsp0_cfg),
>> + },
>> + {
>> + /* P0 3200mts 2D */
>> + .drate = 3200,
>> + .fw_type = FW_2D_IMAGE,
>> + .fsp_cfg = ddr_fsp0_2d_cfg,
>> + .fsp_cfg_num = ARRAY_SIZE(ddr_fsp0_2d_cfg),
>> + },
>
> JFYI, if you want to dynamic frequency scaling for DDR, you'll need some
> more entries here.
>
I'm unfamiliar with dynamic frequency scaling, so I'm not sure if we
need/want more for a first support of this SOM?
>> +config MACH_KARO_QSXP_ML81
>
> Please enable this in imx_v8_defconfig and multi_v8_defconfig for CI coverage.
>
Ack.
>
> Cheers,
> Ahmad
>
Cheers,
Stefan
--
Pengutronix e.K. | Stefan Kerkmann |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-128 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
next prev parent reply other threads:[~2024-03-11 13:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-11 9:10 [PATCH 0/6] " Stefan Kerkmann
2024-03-11 9:10 ` [PATCH 1/6] of: introduce of_property_read_s32 Stefan Kerkmann
2024-03-11 9:10 ` [PATCH 2/6] net: phy: micrel: update id table from Linux kernel Stefan Kerkmann
2024-03-11 9:10 ` [PATCH 3/6] net: phy: micrel: add support for ksz9131 phy Stefan Kerkmann
2024-03-11 9:10 ` [PATCH 4/6] arm: dts: karo: import dts for karo-qsxp-ml81 Stefan Kerkmann
2024-03-11 10:02 ` Ahmad Fatoum
2024-03-11 14:23 ` Stefan Kerkmann
2024-03-11 14:33 ` Ahmad Fatoum
2024-03-11 14:48 ` Stefan Kerkmann
2024-03-11 9:10 ` [PATCH 5/6] arm: dts: karo: add karo imx8mp-karo-qsxp-qsbase4 Stefan Kerkmann
2024-03-11 10:05 ` Ahmad Fatoum
2024-03-11 13:25 ` Stefan Kerkmann
2024-03-11 9:10 ` [PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support Stefan Kerkmann
2024-03-11 10:13 ` Ahmad Fatoum
2024-03-11 13:32 ` Stefan Kerkmann [this message]
2024-03-11 13:58 ` Ahmad Fatoum
2024-03-11 14:01 ` Stefan Kerkmann
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=5dd3c20d-26c4-4cd0-89a1-f922d5ddae02@pengutronix.de \
--to=s.kerkmann@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.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