U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Patrice CHOTARD <patrice.chotard@foss.st.com>
To: Yannick FERTRE <yannick.fertre@foss.st.com>,
	Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>,
	Tom Rini <trini@konsulko.com>,
	Kamil Lulko <kamil.lulko@gmail.com>,
	Dillon Min <dillon.minfei@gmail.com>,
	"Patrick Delaunay" <patrick.delaunay@foss.st.com>,
	Anatolij Gustschin <ag.dev.uboot@gmail.com>,
	Simon Glass <sjg@chromium.org>,
	Sumit Garg <sumit.garg@kernel.org>,
	Philippe Cornu <philippe.cornu@foss.st.com>
Cc: <u-boot@lists.denx.de>, <uboot-stm32@st-md-mailman.stormreply.com>
Subject: Re: [PATCH v3 4/7] video: stm32: ltdc: support new hardware version for STM32MP25 SoC
Date: Fri, 14 Nov 2025 17:49:06 +0100	[thread overview]
Message-ID: <f36e491d-7c23-4dd9-b2f4-48b5803e515d@foss.st.com> (raw)
In-Reply-To: <218de19e-6145-4207-bfb9-72ff5ae9c050@foss.st.com>



On 10/30/25 08:43, Yannick FERTRE wrote:
> Hi Raphael,
> 
> Thanks for the patch.
> 
> Acked-by: Yannick Fertre<yannick.fertre@foss.st.com>
> 
> Le 04/09/2025 à 14:53, Raphael Gallais-Pou a écrit :
>> STM32MP2 SoCs feature a new version of the LTDC IP.  This new version
>> features a bus clock, as well as a 150MHz pad frequency.  Add its
>> compatible to the list of device to probe and handle quirks.  The new
>> hardware version features a bus clock.
>>
>> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
>> Acked-by: Yannick Fertre <yannick.fertre@foss.st.com>
>> Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
>> ---
>>   drivers/video/stm32/stm32_ltdc.c | 22 ++++++++++++++++++++--
>>   1 file changed, 20 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c
>> index 0a062c8939dbe49b11aa50f5ca9701bdbe5c5b0b..efe9a00996eca0301d2a2b82074ba9690a967a73 100644
>> --- a/drivers/video/stm32/stm32_ltdc.c
>> +++ b/drivers/video/stm32/stm32_ltdc.c
>> @@ -262,6 +262,7 @@ static const u32 layer_regs_a2[] = {
>>   #define HWVER_10300 0x010300
>>   #define HWVER_20101 0x020101
>>   #define HWVER_40100 0x040100
>> +#define HWVER_40101 0x040101
>>     enum stm32_ltdc_pix_fmt {
>>       PF_ARGB8888 = 0,    /* ARGB [32 bits] */
>> @@ -529,7 +530,7 @@ static int stm32_ltdc_probe(struct udevice *dev)
>>       struct udevice *bridge = NULL;
>>       struct udevice *panel = NULL;
>>       struct display_timing timings;
>> -    struct clk pclk;
>> +    struct clk pclk, bclk;
>>       struct reset_ctl rst;
>>       ulong rate;
>>       int ret;
>> @@ -540,7 +541,21 @@ static int stm32_ltdc_probe(struct udevice *dev)
>>           return -EINVAL;
>>       }
>>   -    ret = clk_get_by_index(dev, 0, &pclk);
>> +    ret = clk_get_by_name(dev, "bus", &bclk);
>> +    if (ret) {
>> +        if (ret != -ENODATA) {
>> +            dev_err(dev, "bus clock get error %d\n", ret);
>> +            return ret;
>> +        }
>> +    } else {
>> +        ret = clk_enable(&bclk);
>> +        if (ret) {
>> +            dev_err(dev, "bus clock enable error %d\n", ret);
>> +            return ret;
>> +        }
>> +    }
>> +
>> +    ret = clk_get_by_name(dev, "lcd", &pclk);
>>       if (ret) {
>>           dev_err(dev, "peripheral clock get error %d\n", ret);
>>           return ret;
>> @@ -566,6 +581,7 @@ static int stm32_ltdc_probe(struct udevice *dev)
>>           priv->pix_fmt_hw = pix_fmt_a1;
>>           break;
>>       case HWVER_40100:
>> +    case HWVER_40101:
>>           priv->layer_regs = layer_regs_a2;
>>           priv->pix_fmt_hw = pix_fmt_a2;
>>           break;
>> @@ -688,6 +704,8 @@ static int stm32_ltdc_bind(struct udevice *dev)
>>     static const struct udevice_id stm32_ltdc_ids[] = {
>>       { .compatible = "st,stm32-ltdc" },
>> +    { .compatible = "st,stm32mp251-ltdc" },
>> +    { .compatible = "st,stm32mp255-ltdc" },
>>       { }
>>   };
>>  
Applied to u-boot-stm32/master

Thanks
Patrice

  reply	other threads:[~2025-11-14 16:49 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-04 12:53 [PATCH v3 0/7] Add display support for STM32MP25 Raphael Gallais-Pou
2025-09-04 12:53 ` [PATCH v3 1/7] ofnode: support panel-timings in ofnode_decode_display_timing Raphael Gallais-Pou
2025-10-30  7:35   ` Yannick FERTRE
2025-11-01  9:03   ` Simon Glass
2025-11-02  1:09     ` [Uboot-stm32] " Raphaël Gallais-Pou
2025-11-02 19:53       ` Simon Glass
2025-11-03 14:17         ` Tom Rini
2025-11-04 14:01           ` Raphael Gallais-Pou
2025-11-04 16:21             ` Tom Rini
2025-11-14 16:48               ` Patrice CHOTARD
2025-11-04 16:31           ` Simon Glass
2025-11-04 16:55             ` Tom Rini
2025-11-07 12:23               ` Simon Glass
2025-09-04 12:53 ` [PATCH v3 2/7] video: simple_panel: add support for "panel-lvds" display Raphael Gallais-Pou
2025-10-30  7:41   ` Yannick FERTRE
2025-11-14 16:48   ` Patrice CHOTARD
2025-09-04 12:53 ` [PATCH v3 3/7] video: stm32: STM32 driver support for LVDS Raphael Gallais-Pou
2025-10-30  7:42   ` Yannick FERTRE
2025-11-14 16:48     ` Patrice CHOTARD
2025-09-04 12:53 ` [PATCH v3 4/7] video: stm32: ltdc: support new hardware version for STM32MP25 SoC Raphael Gallais-Pou
2025-09-12 16:41   ` Patrice CHOTARD
2025-09-15 13:05     ` Raphael Gallais-Pou
2025-09-17 15:10       ` Patrice CHOTARD
2025-10-30  7:43   ` Yannick FERTRE
2025-11-14 16:49     ` Patrice CHOTARD [this message]
2025-09-04 12:53 ` [PATCH v3 5/7] video: stm32: ltdc: properly search the first available panel Raphael Gallais-Pou
2025-09-12 16:45   ` Patrice CHOTARD
2025-10-30  7:43   ` Yannick FERTRE
2025-11-14 16:49     ` Patrice CHOTARD
2025-09-04 12:53 ` [PATCH v3 6/7] ARM: dts: stm32: use LTDC and LVDS nodes before relocation in stm32mp25-u-boot Raphael Gallais-Pou
2025-09-12 16:45   ` Patrice CHOTARD
2025-10-30  7:43   ` Yannick FERTRE
2025-11-14 16:49     ` Patrice CHOTARD
2025-11-14 16:54       ` Patrice CHOTARD
2025-11-14 17:30         ` [Uboot-stm32] " Patrice CHOTARD
2025-09-04 12:53 ` [PATCH v3 7/7] configs: stm32mp25: enable LVDS display support Raphael Gallais-Pou
2025-09-12 16:46   ` Patrice CHOTARD
2025-10-30  7:44   ` Yannick FERTRE
2025-11-14 16:48   ` Patrice CHOTARD

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=f36e491d-7c23-4dd9-b2f4-48b5803e515d@foss.st.com \
    --to=patrice.chotard@foss.st.com \
    --cc=ag.dev.uboot@gmail.com \
    --cc=dillon.minfei@gmail.com \
    --cc=kamil.lulko@gmail.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=philippe.cornu@foss.st.com \
    --cc=raphael.gallais-pou@foss.st.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@kernel.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-stm32@st-md-mailman.stormreply.com \
    --cc=yannick.fertre@foss.st.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox