<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Clock of lpspi6 has wrong duty-cycle in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2091283#M236923</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I was going to test the problem on the NXP i.MX93 EVK. But I failed to boot the latest NXP BSP (Linux 6.6.52_2.2.0) on my EVK. I know that the EVK has the A0 revision of the i.MX93 SOM, so I changed the imx-boot recipe to use the A0 container ("&lt;SPAN class=""&gt;mx93a0-ahab-container.img&lt;/SPAN&gt;").&lt;/P&gt;&lt;P&gt;See my patch below:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;diff --git a/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
index cd42d16b4f..8a10bdab81 100644
--- a/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
+++ b/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
@@ -165,6 +165,7 @@ compile_mx93() {
cp ${DEPLOY_DIR_IMAGE}/${ddr_firmware} ${BOOT_STAGING}
done

+ cp ${S}/../mx93a0-ahab-container.img ${BOOT_STAGING}/
cp ${DEPLOY_DIR_IMAGE}/${SECO_FIRMWARE_NAME} ${BOOT_STAGING}/
cp ${DEPLOY_DIR_IMAGE}/${ATF_MACHINE_NAME} ${BOOT_STAGING}/bl31.bin
cp ${DEPLOY_DIR_IMAGE}/${UBOOT_NAME_EXTRA} ${BOOT_STAGING}/u-boot.bin
diff --git a/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend b/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend
index a68dbfd5ad..57edf81ec8 100644
--- a/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend
+++ b/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend
@@ -1,6 +1,10 @@
# Copyright 2017-2022 NXP
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

+SRC_URI += " file://mx93a0-ahab-container.img "
+
IMX_M4_DEMOS = ""
IMX_M4_DEMOS:mx8-nxp-bsp = "imx-m4-demos:do_deploy"
IMX_M4_DEMOS:mx8m-nxp-bsp = ""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I also set:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT face="arial,helvetica,sans-serif"&gt;REV_OPTION="REV=A0"&lt;/FONT&gt;&lt;BR /&gt;in my loca.config&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I can only see u-boot SPL and BL31 starting on the serial console:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;U-Boot SPL 2024.04-lf_v2024.04+g6c4545203d1+p0 (Nov 15 2024 - 04:02:13 +0000)
SOC: 0xa0009300
LC: 0x40010
PMIC: PCA9451A
PMIC: Over Drive Voltage Mode
Error: ele_volt_change_start_req: ret -5, response 0xf429
Error: ele_volt_change_finish_req: ret -5, response 0xf429
DDR: 3733MTS
M33 prepare ok
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x8000, pagesize 0x200, ivt offset 0x0
Load image from 0x50000 by ROM_API
NOTICE: TRDC init done
NOTICE: BL31: v2.10.0 (release):android-15.0.0_1.0.0-rc3
NOTICE: BL31: Built : 08:52:12, Nov 4 2024&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that the SOC stops to boot.&lt;/P&gt;&lt;P&gt;Do you have any clue whats going wrong? Can you explain me how to use the current NXP BSPs on the i.MX 93 EVK? Or is there a chance to get the EVK replaced with one that has the A1 SOC revision?&lt;BR /&gt;&lt;BR /&gt;Thanks and regards,&lt;BR /&gt;Christoph&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2025 07:57:13 GMT</pubDate>
    <dc:creator>cstoidner</dc:creator>
    <dc:date>2025-05-05T07:57:13Z</dc:date>
    <item>
      <title>Clock of lpspi6 has wrong duty-cycle</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2053766#M234593</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have a problem with the lpspi6 clock on the i.MX 93. When we measure the clock signal with an oscilloscope, we can see that the high-level phase and low-level phase have different lengths. The low-level takes about 66% of the period, and the high-level only 33% of the period (see attached image 'SPI6_QuickPrint60.png'). &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI6_QuickPrint60.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/326267i1695D9BCCFD4C151/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SPI6_QuickPrint60.png" alt="SPI6_QuickPrint60.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We observed that behaviour with NXP BSP version "6.6.52_2.2.0". We measured the lpspi6 clock also with the older BSP version "6.1.55_2.2.0". With that older version we see that the clock signal behaves as we would expect it (50% high and 50% low).&lt;/P&gt;&lt;P&gt;Unfurtunately, with that wrong duty-cycle of version&amp;nbsp;"6.6.52_2.2.0" we miss the limits of the spec of the connected SPI slave.&lt;/P&gt;&lt;P&gt;Find below the snippet from our DTS that enables/configures the lpspi6:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// ...

&amp;amp;lpspi6 {
   pinctrl-names = "default";
   pinctrl-0 = &amp;lt;&amp;amp;pinctrl_lpspi6&amp;gt;;
   cs-gpios = &amp;lt;&amp;amp;gpio2 0 GPIO_ACTIVE_LOW&amp;gt;;
   status = "okay";

   /* TPM */
   tpm@0 {
      compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
      reg = &amp;lt;0&amp;gt;;
      spi-max-frequency = &amp;lt;10000000&amp;gt;;
   };
};

// ...

pinctrl_lpspi6: lpspi6grp {
   fsl,pins = &amp;lt;
      MX93_PAD_GPIO_IO00__GPIO2_IO00 0x3fe
      MX93_PAD_GPIO_IO01__LPSPI6_SIN 0x3fe
      MX93_PAD_GPIO_IO02__LPSPI6_SOUT 0x3fe
      MX93_PAD_GPIO_IO03__LPSPI6_SCK 0x3fe
   &amp;gt;;
};

// ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea which impact the software can have to the duty-cycle of the lpspi6 clock?&lt;BR /&gt;Do you have any idea how we can narrow down the problem?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Christoph&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 11:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2053766#M234593</guid>
      <dc:creator>cstoidner</dc:creator>
      <dc:date>2025-02-28T11:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Clock of lpspi6 has wrong duty-cycle</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2053839#M234596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221639"&gt;@cstoidner&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP Support!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What board are you using?&lt;/P&gt;
&lt;P&gt;Are you using the A1 silicon version of the chip?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is happening only with device that you are connecting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try using the spidev test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 14:56:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2053839#M234596</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2025-02-28T14:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clock of lpspi6 has wrong duty-cycle</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2054632#M234654</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt;&amp;nbsp; ,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; What board are you using?&lt;/P&gt;&lt;P&gt;We have our own custom board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Are you using the A1 silicon version of the chip?&lt;/P&gt;&lt;P&gt;Yes, we have rev A1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; The issue is happening only with device that you are connecting?&lt;BR /&gt;&lt;BR /&gt;I can not answer that, as we have only that device connected. However, what I can say is, that it seems to be somehow related to the software BSP version:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the past, we used NXP BSP version 6.1.55_2.2.0. With that, the spi clock duty-cycle was 50%/50%, as we would expect it.&lt;/LI&gt;&lt;LI&gt;When we updated to NXP BSP version 6.6.23-2.0.0, we saw this wrong spi clock duty-cylce of 33%/66% for the first time.&lt;/LI&gt;&lt;LI&gt;Also with the current latest BSP version 6.6.52_2.2.0 this wrong spi clock duty-cylce of 33%/66% occurs.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Can you try using the spidev test?&lt;/P&gt;&lt;P&gt;The spi slave we have connected is a TPM (Trusted Platform Module) chip. So we just used the shell command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tpm2_getrandom --hex 32&lt;/LI-CODE&gt;&lt;P&gt;on the board, to have some spi communication for measuring the clock signal.&lt;BR /&gt;Do you think "spidev test" would make any difference for the clock?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Christoph&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 10:12:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2054632#M234654</guid>
      <dc:creator>cstoidner</dc:creator>
      <dc:date>2025-03-03T10:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Clock of lpspi6 has wrong duty-cycle</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2054785#M234662</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221639"&gt;@cstoidner&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;I am using the FRDM-iMX93 board and I can´t replicate the issue (see the attached image).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is only happening in LPSPI6?&lt;/P&gt;
&lt;DIV id="tinyMceEditorChavira_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorChavira_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:28:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2054785#M234662</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2025-03-03T14:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Clock of lpspi6 has wrong duty-cycle</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2062932#M235156</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;we tested it also on lpspi1. We had no slave connected, but during the tpm request from the imx93 we can see the clock. It is also other than expected (about &lt;SPAN&gt;61% low and&amp;nbsp;39% high).&lt;BR /&gt;&lt;BR /&gt;Any clue what can impact the SPI clock's duty cycle?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Christoph&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 09:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2062932#M235156</guid>
      <dc:creator>cstoidner</dc:creator>
      <dc:date>2025-03-17T09:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Clock of lpspi6 has wrong duty-cycle</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2063993#M235222</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221639"&gt;@cstoidner&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the problem should be your board or your custom driver since I can´t see that error in NXP boards.&lt;/P&gt;
&lt;P&gt;Please check carefully and compare your results with our boards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Chavira&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 18:12:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2063993#M235222</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2025-03-18T18:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Clock of lpspi6 has wrong duty-cycle</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2091283#M236923</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I was going to test the problem on the NXP i.MX93 EVK. But I failed to boot the latest NXP BSP (Linux 6.6.52_2.2.0) on my EVK. I know that the EVK has the A0 revision of the i.MX93 SOM, so I changed the imx-boot recipe to use the A0 container ("&lt;SPAN class=""&gt;mx93a0-ahab-container.img&lt;/SPAN&gt;").&lt;/P&gt;&lt;P&gt;See my patch below:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;diff --git a/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
index cd42d16b4f..8a10bdab81 100644
--- a/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
+++ b/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
@@ -165,6 +165,7 @@ compile_mx93() {
cp ${DEPLOY_DIR_IMAGE}/${ddr_firmware} ${BOOT_STAGING}
done

+ cp ${S}/../mx93a0-ahab-container.img ${BOOT_STAGING}/
cp ${DEPLOY_DIR_IMAGE}/${SECO_FIRMWARE_NAME} ${BOOT_STAGING}/
cp ${DEPLOY_DIR_IMAGE}/${ATF_MACHINE_NAME} ${BOOT_STAGING}/bl31.bin
cp ${DEPLOY_DIR_IMAGE}/${UBOOT_NAME_EXTRA} ${BOOT_STAGING}/u-boot.bin
diff --git a/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend b/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend
index a68dbfd5ad..57edf81ec8 100644
--- a/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend
+++ b/meta-imx-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend
@@ -1,6 +1,10 @@
# Copyright 2017-2022 NXP
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

+SRC_URI += " file://mx93a0-ahab-container.img "
+
IMX_M4_DEMOS = ""
IMX_M4_DEMOS:mx8-nxp-bsp = "imx-m4-demos:do_deploy"
IMX_M4_DEMOS:mx8m-nxp-bsp = ""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I also set:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT face="arial,helvetica,sans-serif"&gt;REV_OPTION="REV=A0"&lt;/FONT&gt;&lt;BR /&gt;in my loca.config&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I can only see u-boot SPL and BL31 starting on the serial console:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;U-Boot SPL 2024.04-lf_v2024.04+g6c4545203d1+p0 (Nov 15 2024 - 04:02:13 +0000)
SOC: 0xa0009300
LC: 0x40010
PMIC: PCA9451A
PMIC: Over Drive Voltage Mode
Error: ele_volt_change_start_req: ret -5, response 0xf429
Error: ele_volt_change_finish_req: ret -5, response 0xf429
DDR: 3733MTS
M33 prepare ok
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x8000, pagesize 0x200, ivt offset 0x0
Load image from 0x50000 by ROM_API
NOTICE: TRDC init done
NOTICE: BL31: v2.10.0 (release):android-15.0.0_1.0.0-rc3
NOTICE: BL31: Built : 08:52:12, Nov 4 2024&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that the SOC stops to boot.&lt;/P&gt;&lt;P&gt;Do you have any clue whats going wrong? Can you explain me how to use the current NXP BSPs on the i.MX 93 EVK? Or is there a chance to get the EVK replaced with one that has the A1 SOC revision?&lt;BR /&gt;&lt;BR /&gt;Thanks and regards,&lt;BR /&gt;Christoph&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 07:57:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clock-of-lpspi6-has-wrong-duty-cycle/m-p/2091283#M236923</guid>
      <dc:creator>cstoidner</dc:creator>
      <dc:date>2025-05-05T07:57:13Z</dc:date>
    </item>
  </channel>
</rss>

