Hello,
I'm testing nxp_zephyr_4_1_0 code base on MIMXRT1160-EVK .
2. I'd like to know how to output the internal clock, including PLL, to the mco (master clock out) pin. If there's an example related to this, please provide it.
3. The mimxrt1160-evk has a 32.768kHz external clock, and I'd like to know specifically how to enable this RTC clock. * For example, don't I need a dts setting like &rtc?
4. The flax-ram clock of the mimxrt1160-evk is 166MHz. I'd like to know how to change it to 200MHz.
5. I'd like to know how to adjust the lpspi clock to my liking. For example, I want to know what exactly 0x6c and 2 mean in the following lpspi2 clock settings. I want to set the clock of lpspi2 to 100MHz, but I don't know how to do it.
&lpspi2 {
status = "okay";
clocks = <&ccm IMX_CCM_LPSPI2_CLK 0x6c 2>; //< What exactly do 0x6c and 2 mean?
dmas = <&edma0 2 38>, <&edma0 3 39>;
dma-names = "rx", "tx";
};
Please tell me in detail how to set the clock in zephyr as above. Thanks.
Hi,
For RT1160-EVK, there is only one board.
About your questions, my comemnts as the following:
1. Please find the EVK SCH in the RT1160-EVK design resources and make sure you understand it. Before you want to quickly modify the clock frequency through the SW side, you need to analyze the hardware yourself to ensure that "lpspi2", "rtc", and "sdram" can be modified on this board. For specific methods, please refer to the FlexSPI example as below.
2. FlexSPI example: NXP-zsdk v4.1 repo is maintained and developed by NXP, but the dependent Zephyr which maintained by Zephyr community (The thirdpart Open Community). You can directly view the Zephy for the DTS configuration you are consulting. E.g, flexSPI1 (flexSPI1 is used for qspi flash as default on EVK board, PIN setting pinmux_flexspi1 depends on the hardware connection) shows it works on 104MHz. Same hardware connections and EVK board, but FlexSPI1 was configured for 133MhZ in NXP SDK v25.06, and it works fine too.
3. I assume that you can understand the EVK schematic and software DTS configuration, then you know that there is no LPSPI2 on EVK board. Only LPSPI support, and by default, this module is DNP (Diabled)
4. Therefore, it is needed to understand the datasheets of these third-party components and the EVK SW/HW to modify them to a reasonable value, not just assume to change it to 1GHz or 200MHz (Actually, the FlexSPI1 only support 166Mhz with some conditions if we are familiar with NOR Flash and its working mode).
5. About support scope, we support NXP official software and hardware. Due to uncertainties, support for some customized products is limited.
Hi,
I can't get your point based on the information you provided. Can you provide more details before you ask thse questions? Such as EVK board(EVKB or EVKC?), Zephyr verison with dedicated link, etc for understanding.
I tried to search the DTS of MIMXRT1060-EVK from Zephyr, I only confirm it is different with MCUXPresso SDK(NXP offical SDK v24.12, EVKB), and I can't find the code '&lpspi2
' as you mentioned from below.
Hello,
First of all, you're mistaken. I was asking about MIMXRT1160-EVK, not MIMXRT1060-EVK.
As far as I know, there's only one MIMXRT1160-EVK, am I right?
Next, the zephyr version is 4.1.0. Since I said I was using the nxp_zephyr_4_1_0 repository, I assumed you would know that the zephyr version is 4.1.0.
Now, that I have provided the necessary information, please review my questions.