diff options
Diffstat (limited to 'yocto/meta-mikrophone/recipes-bsp')
4 files changed, 166 insertions, 0 deletions
| diff --git a/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex/imx8mp-verdin-mikrophone.dtsi b/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex/imx8mp-verdin-mikrophone.dtsi new file mode 100644 index 0000000..6ce6362 --- /dev/null +++ b/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex/imx8mp-verdin-mikrophone.dtsi @@ -0,0 +1,111 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2025 Uros Majstorovic + */ + +/* Verdin SPI_1 */ +&ecspi1 { +	status = "okay"; +}; + +&eqos { +	status = "disable"; +}; + +&fec { +	status = "disable"; +}; + +&flexcan1 { +	status = "disable"; +}; + +&flexcan2 { +	status = "disable"; +}; + +/* Verdin QSPI_1 */ +&flexspi { +	status = "disable"; +}; + +/* Verdin I2C_2_DSI */ +&i2c2 { +	status = "disabled"; +}; + +&i2c3 { +	status = "disabled"; +}; + +/* Verdin I2C_1 */ +&i2c4 { +	status = "okay"; +}; + +/* Verdin PCIE_1 */ +&pcie { +	status = "okay"; +}; + +&pcie_phy { +	status = "okay"; +}; + +/* Verdin PWM_1 */ +&pwm1 { +	status = "okay"; +}; + +/* Verdin PWM_2 */ +&pwm2 { +	status = "disabled"; +}; + +/* Verdin PWM_3_DSI */ +&pwm3 { +	status = "disabled"; +}; + +®_usdhc2_vmmc { +	vin-supply = <®_3p3v>; +}; + +/* Verdin UART_1 */ +&uart1 { +	status = "disabled"; +}; + +/* Verdin UART_2 */ +&uart2 { +	status = "disabled"; +}; + +/* Verdin UART_3, used as the Linux Console */ +&uart3 { +	status = "okay"; +}; + +/* Verdin USB_1 */ +&usb3_0 { +	status = "okay"; +}; + +&usb3_phy0 { +	status = "okay"; +}; + +/* Verdin USB_2 */ +&usb3_1 { +	fsl,permanently-attached; +	status = "okay"; +}; + +&usb3_phy1 { +	status = "okay"; +}; + +/* Verdin SDCard */ +&usdhc2 { +	status = "okay"; +}; diff --git a/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex/imx8mp-verdin-nonwifi-mikrophone.dts b/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex/imx8mp-verdin-nonwifi-mikrophone.dts new file mode 100644 index 0000000..e8ba274 --- /dev/null +++ b/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex/imx8mp-verdin-nonwifi-mikrophone.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2025 Uros Majstorovic + */ + +/dts-v1/; + +#include "imx8mp-verdin.dtsi" +#include "imx8mp-verdin-nonwifi.dtsi" +#include "imx8mp-verdin-mikrophone.dtsi" + +/ { +	model = "Toradex Verdin iMX8M Plus on mikroPhone"; +	compatible = "toradex,verdin-imx8mp-nonwifi-mikrophone", +		     "toradex,verdin-imx8mp-nonwifi", +		     "toradex,verdin-imx8mp", +		     "fsl,imx8mp"; +}; diff --git a/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex/imx8mp-verdin-wifi-mikrophone.dts b/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex/imx8mp-verdin-wifi-mikrophone.dts new file mode 100644 index 0000000..3b04ab5 --- /dev/null +++ b/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex/imx8mp-verdin-wifi-mikrophone.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2025 Uros Majstorovic + */ + +/dts-v1/; + +#include "imx8mp-verdin.dtsi" +#include "imx8mp-verdin-wifi.dtsi" +#include "imx8mp-verdin-mikrophone.dtsi" + +/ { +	model = "Toradex Verdin iMX8M Plus WB on mikroPhone"; +	compatible = "toradex,verdin-imx8mp-wifi-mikrophone", +		     "toradex,verdin-imx8mp-wifi", +		     "toradex,verdin-imx8mp", +		     "fsl,imx8mp"; +}; diff --git a/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex_%.bbappend b/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex_%.bbappend new file mode 100644 index 0000000..0a6f719 --- /dev/null +++ b/yocto/meta-mikrophone/recipes-bsp/u-boot/u-boot-toradex_%.bbappend @@ -0,0 +1,19 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-toradex:" + +SRC_URI += "\  +    file://imx8mp-verdin-mikrophone.dtsi \ +    file://imx8mp-verdin-wifi-mikrophone.dts \ +    file://imx8mp-verdin-nonwifi-mikrophone.dts \ +    " + +DTS_SRCDIR = "dts/upstream/src/arm64/freescale" + +do_configure:append() { +    cp ${WORKDIR}/imx8mp-verdin-mikrophone.dtsi ${S}/${DTS_SRCDIR} +    cp ${WORKDIR}/imx8mp-verdin-wifi-mikrophone.dts ${S}/${DTS_SRCDIR} +    cp ${WORKDIR}/imx8mp-verdin-nonwifi-mikrophone.dts ${S}/${DTS_SRCDIR} +    # Remove exisiting fdtfile, if there is one +    sed -i '/"fdtfile=.*\\0" \\/d' ${S}/include/configs/verdin-imx8mp.h +    # Add new fdtfile +    sed -i 's/\("fdt_board=.*\\0" \\\)/\0\n\t"fdtfile=imx8mp-verdin-wifi-mikrophone.dtb\\0" \\/' ${S}/include/configs/verdin-imx8mp.h +}
\ No newline at end of file | 
