Hi Kunal Kotecha,
Thank you for your reply.
We apologize for the late reply.
In the build environment, "MACHINE = imx8mmevk" is set,
but is this MACHINE setting good for "RevC" and "RevB"?
In RevC, QSPI is connected and the board is obviously different,
but I don't know the DTS switching between RevB and RevC boards.
■ Additional question (2)
The Makefile has the following description.
Does the meaning below mean that you are using all of the following dtb (= dts)?
build/tmp/work-shared/imx8mmevk/kernel-source/arch/arm64/boot/dts/freescale/Makefile:
---SNIP---
dtb-$(CONFIG_ARCH_FSL_IMX8MM) += fsl-imx8mm-evk.dtb \
fsl-imx8mm-evk-drm.dtb \
fsl-imx8mm-evk-ak4497.dtb \
fsl-imx8mm-evk-m4.dtb \
fsl-imx8mm-evk-ak5558.dtb \
fsl-imx8mm-evk-audio-tdm.dtb \
fsl-imx8mm-ddr3l-val.dtb \
fsl-imx8mm-ddr4-evk.dtb \
fsl-imx8mm-ddr4-val.dtb \
fsl-imx8mm-evk-rm67191.dtb \
fsl-imx8mm-evk-root.dtb \
fsl-imx8mm-evk-inmate.dtb \
fsl-imx8mm-evk-revb.dtb \
fsl-imx8mm-evk-revb-rm67191.dtb \
fsl-imx8mm-ddr4-evk-rm67191.dtb \
fsl-imx8mm-ddr4-qca9377-evk.dtb
---SNIP---
■ Additional question (3)
If you search for uart4, it is defined in the following three files.
It is not defined in fsl-imx8mm-evk.dts. Is uart4 undefined?
Or is it defined in the following 3 files?
I'm confused that status is "okay" or "disabled".
====== fsl-imx8mm.dtsi:
uart4: serial@30a60000 {
compatible = "fsl,imx8mq-uart",
"fsl,imx6q-uart", "fsl,imx21-uart";
reg = <0x0 0x30a60000 0x0 0x10000>;
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MM_CLK_UART4_ROOT>,
<&clk IMX8MM_CLK_UART4_ROOT>;
clock-names = "ipg", "per";
dmas = <&sdma1 28 4 0>, <&sdma1 29 4 0>;
dma-names = "rx", "tx";
status = "disabled";
};
====== fsl-imx8mm-evk-inmate.dts:
&uart4 {
clocks = <&osc_24m>,
<&osc_24m>;
clock-names = "ipg", "per";
/delete-property/ dmas;
/delete-property/ dmas-names;
status = "okay";
};
====== fsl-imx8mm-evk-m4.dts
&uart4 {
status = "disabled";
};
■ Additional question (4)
There were the following notes in fsl-imx8mm-evk-m4.dts.
===============================
* ATTENTION: M4 may use IPs like below
* ECSPI0/ECSPI2, GPIO1/GPIO5, GPT1, I2C3, I2S3, WDOG1, UART4, PWM3, SDMA1
===============================
Where can I find the Cortex M4 program for the i.MX8M Mini EVK?
To disable the M4 program and use UART4, ECSPI2, I2C3 from Linux,
Should I just add the tag to fsl-imx8mm-evk.dts?