Hi,
I am truing to build modified device tree for Apalis iMX6Q.
The modification I need, is to setup SPI1 to work without MOSI wire.
MOSI shall be configured as GPIO and used as data strobe due to hardware requirements.
I’ve used GPIO1 from Ixora board to test my software and everything works fine, but I prefer to set MOSI to GPIO in the final version. This will allow me to use the full SPI if hardware is updated one day.
So I found SPI1 pinout configuration is placed in imx6qdl-apalis.dtsi.
Here is the content of original file:
pinctrl_ecspi1: ecspi1grp {
fsl,pins = <
MX6QDL_PAD_CSI0_DAT6__ECSPI1_MISO 0x100b1
MX6QDL_PAD_CSI0_DAT5__ECSPI1_MOSI 0x100b1
MX6QDL_PAD_CSI0_DAT4__ECSPI1_SCLK 0x100b1
/* SPI1 cs */
MX6QDL_PAD_CSI0_DAT7__GPIO5_IO25 0x000b1
>;
};
Here is my modification:
pinctrl_ecspi1: ecspi1grp {
fsl,pins = <
MX6QDL_PAD_CSI0_DAT6__ECSPI1_MISO 0x100b1
/* Set SPI1 MOSI as GPIO */
MX6QDL_PAD_CSI0_DAT5_GPIO5_IO23 0x000b1
MX6QDL_PAD_CSI0_DAT4__ECSPI1_SCLK 0x100b1
/* SPI1 cs */
MX6QDL_PAD_CSI0_DAT7__GPIO5_IO25 0x000b1
>;
};
Unfortunately I was not able to build the dtb.
I am using Ubuntu 18.04LTS build stations with cross compiler for iMX6. All applications for Apalis module were build via QT creator and they works fine.
Here is the result, when I try to build dtb:
~/2.8b_LXDE/linux-toradex/arch/arm/boot/dts$ make imx6q-apalis-eval.dtb
make: *** No rule to make target ‘imx6q-apalis-eval.dtb’. Stop.
The result is the same if I try to build dtbs.
Could you please support me in this task. It’s my first attempt to build dtb.
PS:
Initially kernel was build using bitbake.