├── LICENSE ├── README.md ├── SCR_meta_nxp_connectivity.txt ├── docs ├── guides │ ├── meta-nxp-connectivity-iwxxx-dualpan.md │ ├── nxp_chip_tool_web_guide.md │ ├── nxp_mpu_matter_Home_Assistant.md │ └── nxp_mpu_matter_demos.md └── images │ ├── chip_tool_web │ ├── chip-tool-web_binding.jpg │ ├── chip-tool-web_blethread.jpg │ ├── chip-tool-web_blewifi.jpg │ ├── chip-tool-web_eevse.jpg │ ├── chip-tool-web_eevseset.jpg │ ├── chip-tool-web_eevsestatus.jpg │ ├── chip-tool-web_getstatus.jpg │ ├── chip-tool-web_home.jpg │ ├── chip-tool-web_mediacontrol.jpg │ ├── chip-tool-web_mediastatus.jpg │ ├── chip-tool-web_multiadmin.jpg │ ├── chip-tool-web_onnetwork.jpg │ ├── chip-tool-web_onoff-report.jpg │ ├── chip-tool-web_onoff.jpg │ ├── chip-tool-web_onoff1.jpg │ ├── chip-tool-web_pairing.jpg │ ├── chip-tool-web_subscribe-report.jpg │ ├── chip-tool-web_subscribe.jpg │ ├── chip-tool-web_writeacl.jpg │ └── chip-tool-web_writebinding.jpg │ ├── home_assistant_demo │ ├── app_1.png │ ├── app_2.png │ ├── app_3.png │ ├── app_4.png │ ├── app_5.png │ ├── app_6.png │ ├── config-matter_server.png │ ├── config-otbr_1.png │ ├── config-otbr_2.png │ ├── config-otbr_3.png │ ├── config-url_1.png │ ├── config-url_2.png │ ├── config-url_3.png │ ├── config-url_newuser.png │ ├── connect_1.png │ ├── connect_2.png │ ├── connect_3.png │ ├── connect_4.png │ ├── home-assistant.png │ ├── imx_1.png │ ├── imx_2.png │ ├── imx_3.png │ ├── imx_4.png │ ├── imx_5.png │ ├── imx_6.png │ ├── imx_7.png │ └── imx_8.png │ ├── matter_demos │ ├── ble-wifi.png │ ├── imx8mm_imx6ull_imx8ulp-otbr.png │ ├── imx9-otbr.png │ ├── onnetwork.png │ └── ota.png │ └── zigbee │ ├── MatterToZigbee-Bridge.png │ └── iwxxx_dualpan_architecture.png ├── meta-nxp-connectivity-examples ├── conf │ └── layer.conf ├── recipes-imx │ └── images │ │ ├── imx-image-sdk.bb │ │ └── packagegroup-sdk.bb └── recipes-zbcoord │ └── zbcoord │ ├── files │ └── 0001-fix-imx-build-error.patch │ └── zigbee_coordinator.bb ├── meta-nxp-matter-advanced ├── conf │ ├── layer.conf │ └── machine │ │ ├── imx8mmevk-matter.conf │ │ ├── imx8mnddr3levk-matter.conf │ │ ├── imx8mnevk-matter.conf │ │ ├── imx8mpevk-matter.conf │ │ ├── imx8n9-sdk.conf │ │ ├── imx8ulpevk-matter.conf │ │ ├── imx91evk-iwxxx-matter.conf │ │ ├── imx91qsb-iwxxx-matter.conf │ │ └── imx93evk-iwxxx-matter.conf ├── recipes-bsp │ └── firmware-imx │ │ ├── files │ │ ├── 0001-Add-IW610-15.4-firmware-calibration-file-and-use-it-.patch │ │ ├── IW610-Q1-25-RC3-p54 │ │ │ ├── sd_iw610.bin.se │ │ │ ├── sduart_iw610.bin.se │ │ │ ├── sduartspi_iw610.bin.se │ │ │ ├── uart_iw610_bt.bin.se │ │ │ └── uartspi_iw610.bin.se │ │ └── IW612-Q1-25-R3-p23.13 │ │ │ ├── sd_w61x_v1.bin.se │ │ │ ├── sduart_nw61x_v1.bin.se │ │ │ └── uartspi_n61x_v1.bin.se │ │ └── firmware-nxp-wifi_%.bbappend ├── recipes-connectivity │ └── bluez5 │ │ ├── bluez5_5.%.bbappend │ │ └── files │ │ ├── gatt_send_notify.patch │ │ └── override.conf ├── recipes-core │ └── systemd │ │ ├── files │ │ └── 80-wifi-station.network │ │ └── systemd_%.bbappend ├── recipes-imx-atf │ └── imx-atf │ │ └── imx-atf_%.bbappend ├── recipes-imx-mkimage │ └── imx-mkimage │ │ ├── files │ │ └── 0001-Add-Trusty-prebuilt-binary-for-project-Matter.patch │ │ ├── imx-boot_%.bbappend │ │ └── imx-mkimage_git.bbappend ├── recipes-kernel │ └── linux │ │ ├── files │ │ ├── 0001-MATTER-3026-1-enable-Trusty-OS-for-matter.patch │ │ ├── 0002-MATTER-3026-2-enable-Trusty-OS-for-matter.patch │ │ └── kernel-config │ │ │ └── Enable-Trusty.cfg │ │ └── linux-imx_%.bbappend ├── recipes-matter │ └── matter │ │ ├── files │ │ └── ota.sh │ │ └── matter.bbappend ├── recipes-multimedia │ └── gstreamer │ │ ├── files │ │ ├── 0001-MATTER-1573-Modify-gplay2-to-support-Matter-media.patch │ │ ├── 0002-MATTER-1573-2-Add-gplay_matter-service.patch │ │ ├── 0003-MATTER-1573-3-set-volume-to-gplay_matter-by-environm.patch │ │ └── 0004-Enhance-the-FIFO-communication.patch │ │ └── imx-gst1.0-plugin_git.bbappend └── recipes-storageproxyd │ └── storageproxyd │ └── storageproxyd.bb ├── meta-nxp-matter-baseline ├── conf │ └── layer.conf └── recipes-matter │ └── matter │ ├── dcldownloader.bb │ ├── files │ ├── 0001-MATTER-1352-2-Add-se_version.h.patch │ └── dcldownloader.tar.gz │ ├── matter.bb │ └── packagegroup-nxp-matter-baseline.bb ├── meta-nxp-openthread ├── conf │ └── layer.conf └── recipes-openthread │ ├── openthread-iwxxx │ ├── files │ │ └── otpatches-082-d31bcee │ │ │ ├── 0001-coex-buff-issue-fix.patch │ │ │ ├── 0002-csl-debug_prints.patch │ │ │ ├── 0003_all_VSC_commands.patch │ │ │ ├── 0006-ot-daemon-release-resources.patch │ │ │ ├── 0019-remove-toggle-reset-pin.patch │ │ │ ├── 0020-lnt-fix-spi-latency.patch │ │ │ ├── 0025-spi-new-design-host.patch │ │ │ ├── 0034-set-default-txpower-on-reset.patch │ │ │ ├── 0036-set-default-rssi-on-reset-for-host.patch │ │ │ ├── 0040-radio-spinel-stream-raw-retry-mechanism.patch │ │ │ ├── 0051-csl-ch-switch-performance-improvement.patch │ │ │ ├── 0057-reset-available-on-rcp-recovery.patch │ │ │ ├── 0060-dualpan-otzb-pan-channel-sense.patch │ │ │ ├── 0062-host-handle-power-save-mode-on-ssp-rxd.patch │ │ │ ├── 0068-generic-mfgcmd-support.patch │ │ │ ├── 0070-Specify-MBEDTLS_COMPILER_IS_GCC-inlibrary-common.h.patch │ │ │ ├── 0071-mfgcmd-spifreq-support.patch │ │ │ └── 0072-Fix-link-error-in-tests-unit-ot-test-ncp-srp_server.patch │ ├── iw612_ot_src_rev_opts_patches.inc │ └── openthread-iwxxx-spi.bb │ ├── openthread │ └── openthread.bb │ └── packagegroup-nxp-openthread.bb ├── meta-nxp-otbr ├── conf │ └── layer.conf ├── recipes-devtools │ └── apt │ │ └── apt_%.bbappend ├── recipes-kernel │ └── linux │ │ ├── files │ │ ├── dts │ │ │ ├── imx8mm-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts │ │ │ ├── imx8mm-evk-IW610-uart3-bt-ffu-gpio-irq.dts │ │ │ ├── imx8mm-evk-uart3-bt-3M-ffu-gpio-irq.dts │ │ │ ├── imx8mm-evk-uart3-bt-ffu-gpio-irq.dts │ │ │ ├── imx8mn-ddr3l-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts │ │ │ ├── imx8mn-ddr3l-evk-IW610-uart3-bt-ffu-gpio-irq.dts │ │ │ ├── imx8mn-ddr3l-evk-uart3-bt-3M-ffu-gpio-irq.dts │ │ │ ├── imx8mn-ddr3l-evk-uart3-bt-ffu-gpio-irq.dts │ │ │ ├── imx8mn-lpddr4-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts │ │ │ ├── imx8mn-lpddr4-evk-IW610-uart3-bt-ffu-gpio-irq.dts │ │ │ ├── imx8mn-lpddr4-evk-uart3-bt-3M-ffu-gpio-irq.dts │ │ │ ├── imx8mn-lpddr4-evk-uart3-bt-ffu-gpio-irq.dts │ │ │ ├── imx8mp-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts │ │ │ ├── imx8mp-evk-IW610-uart3-bt-ffu-gpio-irq.dts │ │ │ ├── imx8mp-evk-uart3-bt-3M-ffu-gpio-irq.dts │ │ │ ├── imx8mp-evk-uart3-bt-ffu-gpio-irq.dts │ │ │ ├── imx91-11x11-evk-ffu_gpio_irq.dts │ │ │ ├── imx91-9x9-qsb-ffu_gpio_irq.dts │ │ │ ├── imx93-11x11-evk-ffu_gpio_irq.dts │ │ │ └── imx93-11x11-frdm.dts │ │ ├── kernel-config │ │ │ └── 0001-Add-Matter-and-OTBR-configs.cfg │ │ └── patches │ │ │ ├── 0002-Enable-otbr-and-firewall-configs-for-imx6-7.patch │ │ │ └── Disable-Power-Save-mode-for-BT.patch │ │ └── linux-imx_%.bbappend ├── recipes-otbr │ ├── otbr-iwxxx │ │ ├── files │ │ │ ├── 0001-build-fix-on-macOS-2269.patch │ │ │ ├── 0002-copy-prebuilt-frontend-files-instead-of-build.patch │ │ │ └── otbrpatches-079-d31bcee │ │ │ │ ├── openthread_patches │ │ │ │ ├── 0001-coex-buff-issue-fix.patch │ │ │ │ ├── 0002-csl-debug_prints.patch │ │ │ │ ├── 0003_all_VSC_commands.patch │ │ │ │ ├── 0006-ot-daemon-release-resources.patch │ │ │ │ ├── 0019-remove-toggle-reset-pin.patch │ │ │ │ ├── 0020-lnt-fix-spi-latency.patch │ │ │ │ ├── 0025-spi-new-design-host.patch │ │ │ │ ├── 0034-set-default-txpower-on-reset.patch │ │ │ │ ├── 0036-set-default-rssi-on-reset-for-host.patch │ │ │ │ ├── 0040-radio-spinel-stream-raw-retry-mechanism.patch │ │ │ │ ├── 0051-csl-ch-switch-performance-improvement.patch │ │ │ │ ├── 0057-reset-available-on-rcp-recovery.patch │ │ │ │ ├── 0060-dualpan-otzb-pan-channel-sense.patch │ │ │ │ ├── 0062-host-handle-power-save-mode-on-ssp-rxd.patch │ │ │ │ ├── 0068-generic-mfgcmd-support.patch │ │ │ │ ├── 0070-Specify-MBEDTLS_COMPILER_IS_GCC-inlibrary-common.h.patch │ │ │ │ ├── 0071-mfgcmd-spifreq-support.patch │ │ │ │ └── 0072-Fix-link-error-in-tests-unit-ot-test-ncp-srp_server.patch │ │ │ │ ├── otbr-0004-firewall-UART-SPI.patch │ │ │ │ ├── otbr-0007-support-ot-fct-UART-SPI.patch │ │ │ │ ├── otbr-0008-Fix-mcpu-cortex-a53-conflicts-with-march-armv8-a-crc-UART-SPI.patch │ │ │ │ └── otbr-0009-systemctl-mdns-otbr-options-set-by-otbr-agent-service-UART-SPI.patch │ │ ├── iw612_otbr_src_rev_opts_patches.inc │ │ └── otbr-iwxxx-spi.bb │ ├── otbr │ │ ├── files │ │ │ ├── 0001-build-fix-on-macOS-2269.patch │ │ │ ├── 0001-correct-otbr-reference-scripts-install-folder.patch │ │ │ ├── 0001-dbus-add-absl-support-for-higher-version-protobuf.patch │ │ │ ├── 0002-copy-prebuilt-frontend-files-instead-of-build.patch │ │ │ ├── 0003-Install-pskc-for-otbr-agent-credentials-generation.patch │ │ │ ├── 0004-Add-service-otbr_fwcfg-to-config-the-firewall-policy.patch │ │ │ └── 0005-web-bump-to-latest-Simple-Web-Server-version-1667.patch │ │ └── otbr.bb │ └── packagegroup-nxp-otbr.bb ├── recipes-systemd │ └── systemd │ │ ├── files │ │ └── 0001-Patch-to-allow-creating-Address-and-Route-when-RA-is.patch │ │ └── systemd_%.bbappend ├── recipes-tayga │ └── tayga │ │ ├── files │ │ └── 0001-Add-missing-header-file.patch │ │ └── tayga.bb └── recipes-u-boot │ └── u-boot │ ├── files │ └── uboot-config │ │ ├── 0001-imx91-11x11-evk-ffu-gpio-irq-dtb.cfg │ │ ├── 0001-imx91-9X9-qsb-ffu-gpio-irq-dtb.cfg │ │ └── 0001-imx93-11x11-evk-ffu-gpio-irq-dtb.cfg │ └── u-boot-imx_%.bbappend ├── meta-nxp-zigbee-rcp ├── README.md ├── conf │ └── layer.conf ├── packagegroup-nxp-zigbee-rcp.bb └── recipes-zigbee-rcp │ ├── recipes-zigbee-rcp-apps │ ├── files │ │ └── zigbee-rcp-apps-IW612-Q1-25-R3.tar │ └── zigbee-rcp-apps.bb │ └── recipes-zigbee-rcp-sdk │ ├── files │ └── zigbee-rcp-sdk-IW612-Q1-25-R3.tar │ └── zigbee-rcp-sdk.bb └── tools ├── imx-matter-setup.sh ├── matter-image-build.sh └── test_attestation ├── cd.bin ├── dac.bin ├── dac_private_key.bin └── pai.bin /LICENSE: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person obtaining 2 | a copy of this software and associated documentation files (the 3 | 'Software'), to deal in the Software without restriction, including 4 | without limitation the rights to use, copy, modify, merge, publish, 5 | distribute, sub license, and/or sell copies of the Software, and to 6 | permit persons to whom the Software is furnished to do so, subject 7 | to the following conditions: 8 | 9 | The above copyright notice and this permission notice (including the 10 | next paragraph) shall be included in all copies or substantial 11 | portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 14 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 15 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 16 | IN NO EVENT SHALL VIVANTE AND/OR ITS SUPPLIERS BE LIABLE FOR ANY 17 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 18 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 19 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /SCR_meta_nxp_connectivity.txt: -------------------------------------------------------------------------------- 1 | NXP Software Content Register 2 | 3 | Release - Matter Solutions 4 | 2025-March 5 | 6 | -------------------------------------------- 7 | NXP Provided Packages 8 | -------------------------------------------- 9 | Package: meta-nxp-connectivity 10 | Outgoing License: MIT 11 | License File: LICENSE 12 | Release Location: https://github.com/nxp-imx/meta-nxp-connectivity 13 | Type of content: Yocto recipe files 14 | Description and comments: Yocto recipe files for Matter solutions. Subproject is connecthomeip and openthread 15 | Origin: NXP (MIT) 16 | -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_binding.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_binding.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_blethread.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_blethread.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_blewifi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_blewifi.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_eevse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_eevse.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_eevseset.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_eevseset.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_eevsestatus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_eevsestatus.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_getstatus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_getstatus.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_home.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_mediacontrol.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_mediacontrol.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_mediastatus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_mediastatus.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_multiadmin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_multiadmin.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_onnetwork.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_onnetwork.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_onoff-report.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_onoff-report.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_onoff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_onoff.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_onoff1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_onoff1.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_pairing.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_pairing.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_subscribe-report.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_subscribe-report.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_subscribe.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_subscribe.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_writeacl.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_writeacl.jpg -------------------------------------------------------------------------------- /docs/images/chip_tool_web/chip-tool-web_writebinding.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/chip_tool_web/chip-tool-web_writebinding.jpg -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/app_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/app_1.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/app_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/app_2.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/app_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/app_3.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/app_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/app_4.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/app_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/app_5.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/app_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/app_6.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/config-matter_server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/config-matter_server.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/config-otbr_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/config-otbr_1.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/config-otbr_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/config-otbr_2.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/config-otbr_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/config-otbr_3.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/config-url_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/config-url_1.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/config-url_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/config-url_2.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/config-url_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/config-url_3.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/config-url_newuser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/config-url_newuser.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/connect_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/connect_1.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/connect_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/connect_2.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/connect_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/connect_3.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/connect_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/connect_4.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/home-assistant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/home-assistant.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/imx_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/imx_1.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/imx_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/imx_2.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/imx_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/imx_3.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/imx_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/imx_4.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/imx_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/imx_5.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/imx_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/imx_6.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/imx_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/imx_7.png -------------------------------------------------------------------------------- /docs/images/home_assistant_demo/imx_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/home_assistant_demo/imx_8.png -------------------------------------------------------------------------------- /docs/images/matter_demos/ble-wifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/matter_demos/ble-wifi.png -------------------------------------------------------------------------------- /docs/images/matter_demos/imx8mm_imx6ull_imx8ulp-otbr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/matter_demos/imx8mm_imx6ull_imx8ulp-otbr.png -------------------------------------------------------------------------------- /docs/images/matter_demos/imx9-otbr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/matter_demos/imx9-otbr.png -------------------------------------------------------------------------------- /docs/images/matter_demos/onnetwork.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/matter_demos/onnetwork.png -------------------------------------------------------------------------------- /docs/images/matter_demos/ota.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/matter_demos/ota.png -------------------------------------------------------------------------------- /docs/images/zigbee/MatterToZigbee-Bridge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/zigbee/MatterToZigbee-Bridge.png -------------------------------------------------------------------------------- /docs/images/zigbee/iwxxx_dualpan_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/docs/images/zigbee/iwxxx_dualpan_architecture.png -------------------------------------------------------------------------------- /meta-nxp-connectivity-examples/conf/layer.conf: -------------------------------------------------------------------------------- 1 | BBPATH .= ":${LAYERDIR}" 2 | 3 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ 4 | ${LAYERDIR}/recipes-*/*/*.bbappend" 5 | 6 | LAYERSERIES_COMPAT_nxp-connectivity-examples = "nanbield scarthgap styhead" 7 | 8 | IMAGE_INSTALL:append = "zigbee-coordinator" 9 | 10 | BBFILE_COLLECTIONS += "nxp-connectivity-examples" 11 | BBFILE_PATTERN_nxp-connectivity-examples = "^${LAYERDIR}/" 12 | BBFILE_PRIORITY_nxp-connectivity-examples = "7" 13 | -------------------------------------------------------------------------------- /meta-nxp-connectivity-examples/recipes-imx/images/imx-image-sdk.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "This is for matter-sdk" 2 | 3 | inherit core-image 4 | 5 | IMAGE_INSTALL += " packagegroup-sdk " 6 | 7 | export IMAGE_BASENAME = "imx-image-sdk" 8 | -------------------------------------------------------------------------------- /meta-nxp-connectivity-examples/recipes-imx/images/packagegroup-sdk.bb: -------------------------------------------------------------------------------- 1 | PACKAGE_ARCH = "${MACHINE_ARCH}" 2 | 3 | inherit packagegroup 4 | 5 | RDEPENDS:${PN} += " matter otbr " 6 | 7 | IMAGE_FEATURES:remove = " ssh-server-dropbear packagegroup-core-weston packagegroup-core-x11 packagegroup-core-x11-sato packagegroup-core-tools-testapps packagegroup-core-nfs-server packagegroup-core-nfs-client packagegroup-core-eclipse-debug" 8 | -------------------------------------------------------------------------------- /meta-nxp-connectivity-examples/recipes-zbcoord/zbcoord/files/0001-fix-imx-build-error.patch: -------------------------------------------------------------------------------- 1 | From 609d4f6a28f5ecadb2265da2372354eaa14e505a Mon Sep 17 00:00:00 2001 2 | From: Haoran Wang 3 | Date: Thu, 21 Nov 2024 18:57:53 +0800 4 | Subject: [PATCH] fix imx build error 5 | 6 | Signed-off-by: Haoran Wang 7 | --- 8 | platform/NCP_HOST/cmake/NxpZbNcpHostConfig.cmake | 3 +-- 9 | 1 file changed, 1 insertion(+), 2 deletions(-) 10 | 11 | Upstream-Status: Inappropriate [platform specific changes] 12 | 13 | diff --git a/platform/NCP_HOST/cmake/NxpZbNcpHostConfig.cmake b/platform/NCP_HOST/cmake/NxpZbNcpHostConfig.cmake 14 | index 5bbac18..548b476 100644 15 | --- a/platform/NCP_HOST/cmake/NxpZbNcpHostConfig.cmake 16 | +++ b/platform/NCP_HOST/cmake/NxpZbNcpHostConfig.cmake 17 | @@ -219,5 +219,4 @@ endif() 18 | # Additional compile options on non-application sources 19 | set_property(SOURCE ${ZB_NCP_HOST_SOURCES} APPEND PROPERTY COMPILE_OPTIONS -Wno-int-to-pointer-cast) 20 | set_property(SOURCE ${ZB_NCP_HOST_SOURCES} APPEND PROPERTY COMPILE_OPTIONS -Wno-pointer-to-int-cast) 21 | -set_property(SOURCE ${ZB_NCP_HOST_SOURCES} APPEND PROPERTY COMPILE_OPTIONS -Wno-format) 22 | -set_property(SOURCE ${ZB_NCP_HOST_SOURCES} APPEND PROPERTY COMPILE_OPTIONS -Wno-stringop-overread) 23 | \ No newline at end of file 24 | +set_property(SOURCE ${ZB_NCP_HOST_SOURCES} APPEND PROPERTY COMPILE_OPTIONS -Wno-stringop-overread) 25 | -- 26 | 2.34.1 27 | 28 | -------------------------------------------------------------------------------- /meta-nxp-connectivity-examples/recipes-zbcoord/zbcoord/zigbee_coordinator.bb: -------------------------------------------------------------------------------- 1 | PN = "zigbee-coordinator" 2 | SUMMARY = "Zigbee Coordinator Application" 3 | DESCRIPTION = "This recipe builds the Zigbee Coordinator application from the specified Git repository." 4 | LICENSE = "MIT" 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 6 | 7 | SRC_URI = "git://github.com/nxp-mcuxpresso/mcuxsdk-middleware-zigbee.git;branch=release/24.12.00-pvw2;protocol=https" 8 | SRC_URI += "file://0001-fix-imx-build-error.patch" 9 | SRCREV = "24281227192e4b2e090c5e1a4bedae55a9a537c4" 10 | 11 | python() { 12 | http_proxy = d.getVar("http_proxy") or "" 13 | https_proxy = d.getVar("https_proxy") or "" 14 | 15 | d.setVar("MY_HTTP_PROXY", http_proxy) 16 | d.setVar("MY_HTTPS_PROXY", https_proxy) 17 | } 18 | 19 | S = "${WORKDIR}/git" 20 | 21 | inherit cmake 22 | 23 | DEPENDS += " mbedtls " 24 | RDEPENDS:${PN} += " mbedtls " 25 | 26 | do_configure() { 27 | local http_proxy="${MY_HTTP_PROXY}" 28 | local https_proxy="${MY_HTTPS_PROXY}" 29 | 30 | if [ -n "$http_proxy" ]; then 31 | export http_proxy 32 | fi 33 | if [ -n "$https_proxy" ]; then 34 | export https_proxy 35 | fi 36 | cd ${S}/examples/zigbee_coordinator/build_linux 37 | cmake ./ -DMACHINE_TYPE=imx8 -DCONFIG_MBEDTLS_SOURCE=GIT -DENABLE_TESTING=OFF -DENABLE_PROGRAMS=OFF 38 | } 39 | 40 | do_compile() { 41 | cd ${S}/examples/zigbee_coordinator/build_linux 42 | oe_runmake 43 | } 44 | 45 | do_install() { 46 | install -d ${D}/usr/bin 47 | install -m 0755 ${S}/examples/zigbee_coordinator/build_linux/zb_coord_linux ${D}/usr/bin/ 48 | } 49 | 50 | FILES_${PN} += "/usr/bin/zb_coord_linux" 51 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/conf/layer.conf: -------------------------------------------------------------------------------- 1 | BBPATH .= ":${LAYERDIR}" 2 | 3 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ 4 | ${LAYERDIR}/recipes-*/*/*.bbappend" 5 | 6 | LAYERSERIES_COMPAT_nxp-matter-advanced = "nanbield scarthgap styhead" 7 | 8 | IMAGE_INSTALL:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'trusty', 'storageproxyd', '', d)} " 9 | 10 | BBFILE_COLLECTIONS += "nxp-matter-advanced" 11 | BBFILE_PATTERN_nxp-matter-advanced = "^${LAYERDIR}/" 12 | BBFILE_PRIORITY_nxp-matter-advanced = "8" 13 | 14 | BBMASK += "/meta-imx/meta-imx-bsp/recipes-bsp/firmware-imx/firmware-nxp-wifi_%.bbappend" 15 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/conf/machine/imx8mmevk-matter.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@NAME: i.MX 8MM Consolidated Machine For Matter 3 | #@DESCRIPTION: A consolidated machine for i.MX 8MM LPDDR4 EVK Matter demos 4 | #@MAINTAINER: Haoran Wang 5 | 6 | MACHINEOVERRIDES =. "imx8mm-lpddr4-evk:" 7 | require conf/machine/imx8mm-lpddr4-evk.conf 8 | 9 | MACHINE_FEATURES:remove:use-nxp-bsp = "optee" 10 | MACHINE_FEATURES:append = " trusty " 11 | 12 | DELTA_KERNEL_DEFCONFIG="${UNPACKDIR}/kernel-config/*" 13 | 14 | UBOOT_CONFIG = "trusty" 15 | UBOOT_CONFIG[trusty] = "imx8mm_evk_matter_trusty_defconfig,sdcard" 16 | 17 | IMAGE_INSTALL:append = " packagegroup-nxp-matter-baseline packagegroup-nxp-openthread packagegroup-nxp-otbr packagegroup-nxp-zigbee-rcp " 18 | 19 | # Include device trees for other boards for internal test 20 | KERNEL_DEVICETREE += " \ 21 | freescale/imx8mm-ddr4-evk.dtb \ 22 | freescale/imx8mm-ddr4-evk-pcie-ep.dtb \ 23 | freescale/imx8mm-ddr4-evk-rm67191.dtb \ 24 | freescale/imx8mm-ddr4-evk-rm67191-cmd-ram.dtb \ 25 | freescale/imx8mm-ddr4-evk-rm67199.dtb \ 26 | freescale/imx8mm-ddr4-evk-rm67199-cmd-ram.dtb \ 27 | freescale/imx8mm-ddr4-evk-revb.dtb \ 28 | freescale/imx8mm-ddr4-evk-revb-rm67191.dtb \ 29 | freescale/imx8mm-ddr4-evk-revb-rm67191-cmd-ram.dtb \ 30 | freescale/imx8mm-ddr4-evk-revb-rm67199.dtb \ 31 | freescale/imx8mm-ddr4-evk-revb-rm67199-cmd-ram.dtb \ 32 | freescale/imx8mm-evk-uart3-bt-ffu-gpio-irq.dtb \ 33 | freescale/imx8mm-evk-uart3-bt-3M-ffu-gpio-irq.dtb \ 34 | freescale/imx8mm-evk-IW610-uart3-bt-ffu-gpio-irq.dtb \ 35 | freescale/imx8mm-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dtb \ 36 | " 37 | DTS_FILE="${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mm-evk-uart3-bt-3M-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mm-evk-uart3-bt-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mm-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mm-evk-IW610-uart3-bt-ffu-gpio-irq.dts" 38 | 39 | UBOOT_DELTA_CONFIG="${UNPACKDIR}/uboot-config/*" 40 | 41 | DISTRO_FEATURES:remove = "ptest" 42 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/conf/machine/imx8mnddr3levk-matter.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@NAME: i.MX 8MN Consolidated Machine For Matter 3 | #@DESCRIPTION: A consolidated machine for i.MX 8MN DDR3L EVK Matter demos 4 | #@MAINTAINER: Haoran Wang 5 | #Machine is renamed from imx8mnul-ddr3l-evk 6 | 7 | MACHINEOVERRIDES =. "imx8mnul-ddr3l-evk:" 8 | require conf/machine/imx8mnul-ddr3l-evk.conf 9 | 10 | KERNEL_DEVICETREE += " \ 11 | freescale/imx8mn-ddr3l-evk-uart3-bt-3M-ffu-gpio-irq.dtb \ 12 | freescale/imx8mn-ddr3l-evk-uart3-bt-ffu-gpio-irq.dtb \ 13 | freescale/imx8mn-ddr3l-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dtb \ 14 | freescale/imx8mn-ddr3l-evk-IW610-uart3-bt-ffu-gpio-irq.dtb \ 15 | " 16 | DELTA_KERNEL_DEFCONFIG="${UNPACKDIR}/kernel-config/*" 17 | 18 | IMAGE_INSTALL:append = " packagegroup-nxp-matter-baseline packagegroup-nxp-openthread packagegroup-nxp-otbr packagegroup-nxp-zigbee-rcp " 19 | 20 | DTS_FILE="${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-ddr3l-evk-uart3-bt-3M-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-ddr3l-evk-uart3-bt-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-ddr3l-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-ddr3l-evk-IW610-uart3-bt-ffu-gpio-irq.dts" 21 | 22 | UBOOT_DELTA_CONFIG="${UNPACKDIR}/uboot-config/*" 23 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/conf/machine/imx8mnevk-matter.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@NAME: i.MX 8MN Consolidated Machine For Matter 3 | #@DESCRIPTION: A consolidated machine for i.MX 8MN LPDDR4 EVK Matter demos 4 | #@MAINTAINER: Haoran Wang 5 | 6 | MACHINEOVERRIDES =. "imx8mn-lpddr4-evk:" 7 | require conf/machine/imx8mn-lpddr4-evk.conf 8 | 9 | DELTA_KERNEL_DEFCONFIG="${UNPACKDIR}/kernel-config/*" 10 | IMAGE_INSTALL:append = " packagegroup-nxp-matter-baseline packagegroup-nxp-openthread packagegroup-nxp-otbr packagegroup-nxp-zigbee-rcp " 11 | 12 | # Include device trees for other boards for internal test 13 | KERNEL_DEVICETREE += " \ 14 | freescale/imx8mn-ddr4-evk.dtb \ 15 | freescale/imx8mn-ddr4-evk-ak5558.dtb \ 16 | freescale/imx8mn-ddr4-evk-lk.dtb \ 17 | freescale/imx8mn-ddr4-evk-rm67191.dtb \ 18 | freescale/imx8mn-ddr4-evk-rm67191-cmd-ram.dtb \ 19 | freescale/imx8mn-ddr4-evk-rm67199.dtb \ 20 | freescale/imx8mn-ddr4-evk-rm67199-cmd-ram.dtb \ 21 | freescale/imx8mn-ddr4-evk-rpmsg.dtb \ 22 | freescale/imx8mn-ddr4-evk-usd-wifi.dtb \ 23 | freescale/imx8mn-ddr3l-evk.dtb \ 24 | freescale/imx8mn-ddr3l-evk-ak5558.dtb \ 25 | freescale/imx8mn-ddr3l-evk-rpmsg.dtb \ 26 | freescale/imx8mn-lpddr4-evk-uart3-bt-ffu-gpio-irq.dtb \ 27 | freescale/imx8mn-lpddr4-evk-uart3-bt-3M-ffu-gpio-irq.dtb \ 28 | freescale/imx8mn-lpddr4-evk-IW610-uart3-bt-ffu-gpio-irq.dtb \ 29 | freescale/imx8mn-lpddr4-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dtb \ 30 | " 31 | 32 | DTS_FILE="${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-lpddr4-evk-uart3-bt-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-lpddr4-evk-uart3-bt-3M-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-lpddr4-evk-IW610-uart3-bt-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-lpddr4-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts" 33 | 34 | UBOOT_DELTA_CONFIG="${UNPACKDIR}/uboot-config/*" 35 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/conf/machine/imx8mpevk-matter.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@NAME: i.MX 8MP Consolidated Machine For Matter 3 | #@DESCRIPTION: A consolidated machine for i.MX 8MP LPDDR4 EVK Matter demos 4 | #@MAINTAINER: Haoran Wang 5 | 6 | MACHINEOVERRIDES =. "imx8mp-lpddr4-evk:" 7 | require conf/machine/imx8mp-lpddr4-evk.conf 8 | 9 | # Include device trees for other boards for internal test 10 | KERNEL_DEVICETREE += " \ 11 | freescale/imx8mp-ddr4-evk.dtb \ 12 | freescale/imx8mp-navq.dtb \ 13 | freescale/imx8mp-navq-ov5640-ov5645.dtb \ 14 | freescale/imx8mp-navq-ov5647-ov5640.dtb \ 15 | freescale/imx8mp-evk-uart3-bt-ffu-gpio-irq.dtb \ 16 | freescale/imx8mp-evk-uart3-bt-3M-ffu-gpio-irq.dtb \ 17 | freescale/imx8mp-evk-IW610-uart3-bt-ffu-gpio-irq.dtb \ 18 | freescale/imx8mp-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dtb \ 19 | " 20 | 21 | DELTA_KERNEL_DEFCONFIG="${UNPACKDIR}/kernel-config/*" 22 | IMAGE_INSTALL:append = " packagegroup-nxp-matter-baseline packagegroup-nxp-openthread packagegroup-nxp-otbr packagegroup-nxp-zigbee-rcp " 23 | 24 | DTS_FILE="${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mp-evk-uart3-bt-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mp-evk-uart3-bt-3M-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mp-evk-IW610-uart3-bt-ffu-gpio-irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mp-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts" 25 | 26 | UBOOT_DELTA_CONFIG="${UNPACKDIR}/uboot-config/*" 27 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/conf/machine/imx8n9-sdk.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@NAME: i.MX 8MM Consolidated Machine For Matter 3 | #@DESCRIPTION: A consolidated machine for i.MX 8MM LPDDR4 EVK Matter demos 4 | #@MAINTAINER: Haoran Wang 5 | 6 | MACHINEOVERRIDES =. "imx8mm-lpddr4-evk:" 7 | require conf/machine/imx8mm-lpddr4-evk.conf 8 | 9 | MACHINE_FEATURES:remove:use-nxp-bsp = "optee" 10 | MACHINE_FEATURES:append = " trusty " 11 | 12 | UBOOT_CONFIG = "trusty" 13 | UBOOT_CONFIG[trusty] = "imx8mm_evk_matter_trusty_defconfig,sdcard" 14 | 15 | # Include device trees for other boards for internal test 16 | KERNEL_DEVICETREE += " \ 17 | freescale/imx8mm-ddr4-evk.dtb \ 18 | freescale/imx8mm-ddr4-evk-pcie-ep.dtb \ 19 | freescale/imx8mm-ddr4-evk-rm67191.dtb \ 20 | freescale/imx8mm-ddr4-evk-rm67191-cmd-ram.dtb \ 21 | freescale/imx8mm-ddr4-evk-rm67199.dtb \ 22 | freescale/imx8mm-ddr4-evk-rm67199-cmd-ram.dtb \ 23 | freescale/imx8mm-ddr4-evk-revb.dtb \ 24 | freescale/imx8mm-ddr4-evk-revb-rm67191.dtb \ 25 | freescale/imx8mm-ddr4-evk-revb-rm67191-cmd-ram.dtb \ 26 | freescale/imx8mm-ddr4-evk-revb-rm67199.dtb \ 27 | freescale/imx8mm-ddr4-evk-revb-rm67199-cmd-ram.dtb \ 28 | " 29 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/conf/machine/imx8ulpevk-matter.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@NAME: i.MX8ULP EVK Matter 3 | #@SOC: i.MX8ULP 4 | #@MAINTAINER: Haoran Wang 5 | 6 | require conf/machine/imx8ulpevk.conf 7 | 8 | DELTA_KERNEL_DEFCONFIG="${UNPACKDIR}/kernel-config/*" 9 | 10 | UBOOT_DELTA_CONFIG="${UNPACKDIR}/uboot-config/*" 11 | 12 | IMAGE_INSTALL:append = " packagegroup-nxp-matter-baseline packagegroup-nxp-openthread packagegroup-nxp-otbr packagegroup-nxp-zigbee-rcp docker-moby " 13 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/conf/machine/imx91evk-iwxxx-matter.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@NAME: A consolidated IW612 MATTER machine for i.MX 91 EVK 3 | #@SOC: i.MX91 4 | #@MAINTAINER: Junmeng Li 5 | 6 | MACHINEOVERRIDES =. "imx91-11x11-lpddr4-evk:" 7 | require conf/machine/imx91-11x11-lpddr4-evk.conf 8 | 9 | DELTA_KERNEL_DEFCONFIG="${UNPACKDIR}/kernel-config/*" 10 | # Include device trees for other boards for internal test 11 | KERNEL_DEVICETREE += " \ 12 | freescale/imx91-11x11-evk-ffu_gpio_irq.dtb \ 13 | " 14 | DTS_FILE="${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx91-11x11-evk-ffu_gpio_irq.dts" 15 | 16 | UBOOT_DELTA_CONFIG="${UNPACKDIR}/uboot-config/*" 17 | 18 | IMAGE_INSTALL:append = " packagegroup-nxp-matter-baseline packagegroup-nxp-openthread packagegroup-nxp-otbr " 19 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/conf/machine/imx91qsb-iwxxx-matter.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@NAME: A consolidated IW612 MATTER machine for i.MX 91 EVK 3 | #@SOC: i.MX91 4 | #@MAINTAINER: Junmeng Li 5 | 6 | MACHINEOVERRIDES =. "imx91-9x9-lpddr4-qsb:" 7 | require conf/machine/imx91-9x9-lpddr4-qsb.conf 8 | 9 | DELTA_KERNEL_DEFCONFIG="${UNPACKDIR}/kernel-config/*" 10 | # Include device trees for other boards for internal test 11 | KERNEL_DEVICETREE += " \ 12 | freescale/imx91-9x9-qsb-ffu_gpio_irq.dtb \ 13 | " 14 | DTS_FILE="${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx91-9x9-qsb-ffu_gpio_irq.dts" 15 | 16 | UBOOT_DELTA_CONFIG="${UNPACKDIR}/uboot-config/*" 17 | 18 | IMAGE_INSTALL:append = " packagegroup-nxp-matter-baseline packagegroup-nxp-openthread packagegroup-nxp-otbr " 19 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/conf/machine/imx93evk-iwxxx-matter.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@NAME: A consolidated IW612 MATTER machine for i.MX 93 EVK 3 | #@SOC: i.MX93 4 | #@MAINTAINER: Jean-Yves Salaün 5 | 6 | MACHINEOVERRIDES =. "imx93-11x11-lpddr4x-evk:" 7 | require conf/machine/imx93-11x11-lpddr4x-evk.conf 8 | 9 | DELTA_KERNEL_DEFCONFIG="${UNPACKDIR}/kernel-config/*" 10 | # Include device trees for other boards for internal test 11 | KERNEL_DEVICETREE += " \ 12 | freescale/imx93-11x11-evk-ffu_gpio_irq.dtb \ 13 | freescale/imx93-11x11-frdm.dtb \ 14 | freescale/imx93-14x14-evk.dtb \ 15 | freescale/imx93-14x14-evk-rm67199.dtb \ 16 | freescale/imx93-9x9-qsb.dtb \ 17 | freescale/imx93-9x9-qsb-can1.dtb \ 18 | freescale/imx93-9x9-qsb-flexspi-m2.dtb \ 19 | freescale/imx93-9x9-qsb-i3c.dtb \ 20 | freescale/imx93-9x9-qsb-lpspi.dtb \ 21 | freescale/imx93-9x9-qsb-lpspi-slave.dtb \ 22 | freescale/imx93-9x9-qsb-mt9m114.dtb \ 23 | freescale/imx93-9x9-qsb-ontat-wvga-panel.dtb \ 24 | " 25 | DTS_FILE="${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx93-11x11-evk-ffu_gpio_irq.dts ${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr/recipes-kernel/linux/files/dts/imx93-11x11-frdm.dts" 26 | 27 | UBOOT_DELTA_CONFIG="${UNPACKDIR}/uboot-config/*" 28 | 29 | IMAGE_INSTALL:append = " packagegroup-nxp-matter-baseline packagegroup-nxp-openthread packagegroup-nxp-otbr packagegroup-nxp-zigbee-rcp docker-moby " 30 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/0001-Add-IW610-15.4-firmware-calibration-file-and-use-it-.patch: -------------------------------------------------------------------------------- 1 | From 019b3de2368f3854e46ed7b1123c32e7d0b00fab Mon Sep 17 00:00:00 2001 2 | From: Junmeng Li 3 | Date: Wed, 27 Nov 2024 18:41:16 +0100 4 | Subject: [PATCH] Add IW610 15.4 firmware calibration file and use it as 5 | default 6 | 7 | Signed-off-by: junmengli 8 | --- 9 | .../sdiw610_WlanCalData_ext.conf | 31 +++++++++++++++++++ 10 | nxp/wifi_mod_para.conf | 4 +-- 11 | 2 files changed, 33 insertions(+), 2 deletions(-) 12 | create mode 100644 nxp/FwImage_IW610_SD/sdiw610_WlanCalData_ext.conf 13 | 14 | Upstream-Status: Inappropriate [platform specific changes] 15 | 16 | diff --git a/nxp/FwImage_IW610_SD/sdiw610_WlanCalData_ext.conf b/nxp/FwImage_IW610_SD/sdiw610_WlanCalData_ext.conf 17 | new file mode 100644 18 | index 0000000..74093e0 19 | --- /dev/null 20 | +++ b/nxp/FwImage_IW610_SD/sdiw610_WlanCalData_ext.conf 21 | @@ -0,0 +1,31 @@ 22 | +01 00 23 | +0F 00 D0 01 24 | + 00 20 DE 0F 00 00 00 20 FF FF 40 00 91 00 26 12 25 | + 00 00 00 10 00 04 4A 06 02 00 00 3F 01 00 00 27 26 | + 00 8C 86 61 00 00 00 AC FF F1 08 00 00 05 01 38 27 | + 3B 2E 14 26 04 30 53 E3 0B 92 7C 72 00 0B 01 3A 28 | + 3B 3E 14 27 04 30 53 E3 0B 82 74 71 44 28 01 0A 29 | + 3A 3D F4 2A 03 60 1B D2 0B 42 24 66 44 38 01 08 30 | + 3A 4D F8 2B 03 40 17 D1 0A E2 1C 63 48 6C 01 00 31 | + 3A 7E 04 2E 03 A0 2B D6 0B 72 34 69 48 84 01 FE 32 | + 3A 7E 04 2F 03 80 27 D6 0A E2 28 65 4C 99 01 F9 33 | + 3A 8E 08 30 03 70 27 D8 0B 02 28 65 4C A5 01 FB 34 | + 3A 7E 04 2D 03 40 1B D5 0A C2 18 62 00 18 A5 53 35 | + 00 00 00 C4 39 06 75 0D BC 55 1F 97 3D 16 3D 21 36 | + 41 49 AE BC 00 70 A7 5A 00 00 01 34 00 07 02 04 37 | + 00 02 00 00 00 02 00 00 00 00 00 00 FF FF 00 02 38 | + 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 02 39 | + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 | + 00 00 00 00 00 00 00 00 FF FF 00 20 00 02 00 02 41 | + 00 02 00 02 00 02 00 02 00 02 00 02 00 02 00 02 42 | + 00 02 00 02 00 02 00 02 00 02 00 02 00 02 00 02 43 | + 00 02 00 02 00 10 31 63 00 00 01 44 F1 11 00 01 44 | + 00 00 0D 08 00 2C 75 4B 00 00 01 70 FF FF 04 00 45 | + 00 C6 C6 03 00 00 00 00 00 DB DB 47 00 00 00 00 46 | + 00 E1 E1 4B 00 00 00 00 00 DD DD 4F 00 00 00 00 47 | + 00 1C 88 62 00 00 01 8C FF FF 04 00 00 00 84 21 48 | + 44 00 84 21 48 00 84 21 4C 00 84 21 00 1C 5D 37 49 | + 00 00 01 A8 04 0D 91 01 00 00 00 28 00 01 C2 00 50 | + 05 7B CE 5F 00 00 78 F5 00 18 A9 68 00 00 01 C0 51 | + 00 00 00 01 FE 7B CE 5E 78 F5 05 FF 00 00 00 00 52 | + 00 10 8B 64 FF FF FF FF 00 02 00 01 00 02 00 01 53 | diff --git a/nxp/wifi_mod_para.conf b/nxp/wifi_mod_para.conf 54 | index cfdc16f..183d9aa 100644 55 | --- a/nxp/wifi_mod_para.conf 56 | +++ b/nxp/wifi_mod_para.conf 57 | @@ -159,11 +159,11 @@ SD8801 = { 58 | SDIW610 = { 59 | cfg80211_wext=0xf 60 | max_vir_bss=1 61 | - cal_data_cfg=none 62 | + cal_data_cfg=nxp/sdiw610_WlanCalData_ext.conf 63 | ps_mode=1 64 | auto_ds=1 65 | host_mlme=1 66 | - fw_name=nxp/sduart_iw610.bin.se 67 | + fw_name=nxp/sduartspi_iw610.bin.se 68 | } 69 | 70 | SDIW612 = { 71 | -- 72 | 2.34.1 73 | 74 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW610-Q1-25-RC3-p54/sd_iw610.bin.se: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW610-Q1-25-RC3-p54/sd_iw610.bin.se -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW610-Q1-25-RC3-p54/sduart_iw610.bin.se: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW610-Q1-25-RC3-p54/sduart_iw610.bin.se -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW610-Q1-25-RC3-p54/sduartspi_iw610.bin.se: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW610-Q1-25-RC3-p54/sduartspi_iw610.bin.se -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW610-Q1-25-RC3-p54/uart_iw610_bt.bin.se: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW610-Q1-25-RC3-p54/uart_iw610_bt.bin.se -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW610-Q1-25-RC3-p54/uartspi_iw610.bin.se: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW610-Q1-25-RC3-p54/uartspi_iw610.bin.se -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW612-Q1-25-R3-p23.13/sd_w61x_v1.bin.se: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW612-Q1-25-R3-p23.13/sd_w61x_v1.bin.se -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW612-Q1-25-R3-p23.13/sduart_nw61x_v1.bin.se: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW612-Q1-25-R3-p23.13/sduart_nw61x_v1.bin.se -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW612-Q1-25-R3-p23.13/uartspi_n61x_v1.bin.se: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-matter-advanced/recipes-bsp/firmware-imx/files/IW612-Q1-25-R3-p23.13/uartspi_n61x_v1.bin.se -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-bsp/firmware-imx/firmware-nxp-wifi_%.bbappend: -------------------------------------------------------------------------------- 1 | # Use the latest revision 2 | 3 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ca53281cc0caa7e320d4945a896fb837" 4 | 5 | IMX_FIRMWARE_SRC ?= "git://github.com/nxp-imx/imx-firmware.git;protocol=https" 6 | SRC_URI = "${IMX_FIRMWARE_SRC};branch=${SRCBRANCH}" 7 | SRCBRANCH = "lf-6.6.52_2.2.0" 8 | SRCREV = "2978f3c88d6bcc5695a7b45f1936f18d31eebfa8" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | SRC_URI += "file://IW612-Q1-25-R3-p23.13/sduart_nw61x_v1.bin.se" 12 | SRC_URI += "file://IW612-Q1-25-R3-p23.13/sd_w61x_v1.bin.se" 13 | SRC_URI += "file://IW612-Q1-25-R3-p23.13/uartspi_n61x_v1.bin.se" 14 | 15 | SRC_URI += "file://IW610-Q1-25-RC3-p54/sd_iw610.bin.se" 16 | SRC_URI += "file://IW610-Q1-25-RC3-p54/sduart_iw610.bin.se" 17 | SRC_URI += "file://IW610-Q1-25-RC3-p54/uart_iw610_bt.bin.se" 18 | SRC_URI += "file://IW610-Q1-25-RC3-p54/uartspi_iw610.bin.se" 19 | SRC_URI += "file://IW610-Q1-25-RC3-p54/sduartspi_iw610.bin.se" 20 | SRC_URI += "file://0001-Add-IW610-15.4-firmware-calibration-file-and-use-it-.patch" 21 | 22 | do_install:prepend() { 23 | rm -f ${S}/nxp/FwImage_IW612_SD/*.se 24 | cp ${UNPACKDIR}/IW612-Q1-25-R3-p23.13/sduart_nw61x_v1.bin.se ${S}/nxp/FwImage_IW612_SD 25 | cp ${UNPACKDIR}/IW612-Q1-25-R3-p23.13/sd_w61x_v1.bin.se ${S}/nxp/FwImage_IW612_SD 26 | cp ${UNPACKDIR}/IW612-Q1-25-R3-p23.13/uartspi_n61x_v1.bin.se ${S}/nxp/FwImage_IW612_SD 27 | 28 | rm -f ${S}/nxp/FwImage_IW610_SD/*.se 29 | cp ${UNPACKDIR}/IW610-Q1-25-RC3-p54/sd_iw610.bin.se ${S}/nxp/FwImage_IW610_SD 30 | cp ${UNPACKDIR}/IW610-Q1-25-RC3-p54/sduart_iw610.bin.se ${S}/nxp/FwImage_IW610_SD 31 | cp ${UNPACKDIR}/IW610-Q1-25-RC3-p54/uart_iw610_bt.bin.se ${S}/nxp/FwImage_IW610_SD 32 | cp ${UNPACKDIR}/IW610-Q1-25-RC3-p54/uartspi_iw610.bin.se ${S}/nxp/FwImage_IW610_SD 33 | cp ${UNPACKDIR}/IW610-Q1-25-RC3-p54/sduartspi_iw610.bin.se ${S}/nxp/FwImage_IW610_SD 34 | } 35 | 36 | do_install() { 37 | install -d ${D}${nonarch_base_libdir}/firmware/nxp 38 | oe_runmake install INSTALLDIR=${D}${nonarch_base_libdir}/firmware/nxp 39 | } 40 | 41 | FILES:${PN}-nxp8997-common = " \ 42 | ${nonarch_base_libdir}/firmware/nxp/ed_mac_ctrl_V3_8997.conf \ 43 | ${nonarch_base_libdir}/firmware/nxp/txpwrlimit_cfg_8997.conf \ 44 | ${nonarch_base_libdir}/firmware/nxp/uart8997_bt_v4.bin \ 45 | " 46 | 47 | FILES:${PN}-nxp9098-common = " \ 48 | ${nonarch_base_libdir}/firmware/nxp/ed_mac_ctrl_V3_909x.conf \ 49 | ${nonarch_base_libdir}/firmware/nxp/txpwrlimit_cfg_9098.conf \ 50 | ${nonarch_base_libdir}/firmware/nxp/uart9098_bt_v1.bin \ 51 | " 52 | 53 | FILES:${PN}-nxpiw610-sdio += " \ 54 | ${nonarch_base_libdir}/firmware/nxp/sd_iw610.bin.se \ 55 | ${nonarch_base_libdir}/firmware/nxp/sduart_iw610.bin.se \ 56 | ${nonarch_base_libdir}/firmware/nxp/uart_iw610_bt.bin.se \ 57 | ${nonarch_base_libdir}/firmware/nxp/uartspi_iw610.bin.se \ 58 | ${nonarch_base_libdir}/firmware/nxp/sduartspi_iw610.bin.se \ 59 | ${nonarch_base_libdir}/firmware/nxp/sdiw610_WlanCalData_ext.conf \ 60 | " 61 | PACKAGES += "${PN}-nxpiw610-sdio ${PN}-all-sdio ${PN}-all-pcie" 62 | 63 | RDEPENDS:${PN}-all-sdio = " \ 64 | ${PN}-nxp8801-sdio \ 65 | ${PN}-nxp8987-sdio \ 66 | ${PN}-nxp8997-sdio \ 67 | ${PN}-nxp9098-sdio \ 68 | ${PN}-nxpiw416-sdio \ 69 | ${PN}-nxpiw610-sdio \ 70 | ${PN}-nxpiw612-sdio \ 71 | " 72 | 73 | RDEPENDS:${PN}-all-pcie = " \ 74 | ${PN}-nxp8997-pcie \ 75 | ${PN}-nxp9098-pcie \ 76 | " 77 | 78 | ALLOW_EMPTY:${PN}-all-sdio = "1" 79 | ALLOW_EMPTY:${PN}-all-pcie = "1" 80 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-connectivity/bluez5/bluez5_5.%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | SRC_URI += "file://override.conf" 4 | SRC_URI += "file://gatt_send_notify.patch" 5 | 6 | do_install:append() { 7 | install -d ${D}${systemd_unitdir}/system/bluetooth.service.d 8 | install -m 0644 ${UNPACKDIR}/override.conf ${D}${systemd_unitdir}/system/bluetooth.service.d/override.conf 9 | } 10 | 11 | FILES:${PN} += "${systemd_unitdir}/system/bluetooth.service.d/override.conf" 12 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-connectivity/bluez5/files/gatt_send_notify.patch: -------------------------------------------------------------------------------- 1 | Upstream-Status: Inappropriate [platform specific changes] 2 | 3 | diff --git a/src/gatt-database.c b/src/gatt-database.c 4 | index 6c84b085c..80977f81d 100644 5 | --- a/src/gatt-database.c 6 | +++ b/src/gatt-database.c 7 | @@ -2607,8 +2607,12 @@ static bool sock_io_read(struct io *io, void *user_data) 8 | if (bytes_read <= 0) 9 | return false; 10 | 11 | - gatt_notify_cb(chrc->attrib, chrc->ccc, buf, bytes_read, client->att, 12 | - client->chrc->service->app->database); 13 | + send_notification_to_devices(chrc->service->app->database, 14 | + gatt_db_attribute_get_handle(chrc->attrib), 15 | + buf, bytes_read, 16 | + gatt_db_attribute_get_handle(chrc->ccc), 17 | + conf_cb, 18 | + chrc->proxy); 19 | 20 | return true; 21 | } 22 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-connectivity/bluez5/files/override.conf: -------------------------------------------------------------------------------- 1 | [Service] 2 | ExecStart= 3 | ExecStart=/usr/libexec/bluetooth/bluetoothd -E -P battery 4 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-core/systemd/files/80-wifi-station.network: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: MIT-0 2 | # 3 | # This example config file is installed as part of systemd. 4 | # It may be freely copied and edited (following the MIT No Attribution license). 5 | # 6 | # To use the file, one of the following methods may be used: 7 | # 1. add a symlink from /etc/systemd/network to the current location of this file, 8 | # 2. copy the file into /etc/systemd/network or one of the other paths checked 9 | # by systemd-networkd and edit it there. 10 | # This file should not be edited in place, because it'll be overwritten on upgrades. 11 | 12 | [Match] 13 | Type=wlan 14 | WLANInterfaceType=station 15 | 16 | [Network] 17 | DHCP=yes 18 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-core/systemd/systemd_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:append := "${THISDIR}/files:" 2 | 3 | SRC_URI += "file://80-wifi-station.network" 4 | 5 | RDEPENDS:${PN} += "bash" 6 | 7 | do_install:append() { 8 | # install network configuration 9 | install -d ${D}${sysconfdir}/systemd/network/ 10 | install -m 0644 ${UNPACKDIR}/80-wifi-station.network ${D}${sysconfdir}/systemd/network/ 11 | } 12 | 13 | FILES:${PN} += "${sysconfdir}/systemd/network/*.network" 14 | 15 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-imx-atf/imx-atf/imx-atf_%.bbappend: -------------------------------------------------------------------------------- 1 | BUILD_TRUSTY = "${@bb.utils.contains('MACHINE_FEATURES', 'trusty', 'true', 'false', d)}" 2 | 3 | do_compile:append() { 4 | if ${BUILD_TRUSTY}; then 5 | oe_runmake clean BUILD_BASE=build-trusty 6 | oe_runmake BUILD_BASE=build-trusty SPD=trusty bl31 7 | fi 8 | } 9 | 10 | do_deploy:append() { 11 | if ${BUILD_TRUSTY}; then 12 | install -m 0644 ${S}/build-trusty/${ATF_PLATFORM}/release/bl31.bin ${DEPLOYDIR}/bl31-${ATF_PLATFORM}.bin-trusty 13 | install -m 0644 ${S}/build-trusty/${ATF_PLATFORM}/release/bl31.bin ${DEPLOYDIR}/${BOOT_TOOLS}/bl31-${ATF_PLATFORM}.bin-trusty 14 | fi 15 | } 16 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-imx-mkimage/imx-mkimage/imx-boot_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | PATCHTOOL = "git" 4 | SRC_URI += "file://0001-Add-Trusty-prebuilt-binary-for-project-Matter.patch" 5 | ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'trusty', '-trusty', '', d)}" 6 | 7 | DEPLOY_TRUSTY = "${@bb.utils.contains('MACHINE_FEATURES', 'trusty', 'true', 'false', d)}" 8 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-imx-mkimage/imx-mkimage/imx-mkimage_git.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | PATCHTOOL = "git" 4 | SRC_URI += "file://0001-Add-Trusty-prebuilt-binary-for-project-Matter.patch" 5 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-kernel/linux/files/0002-MATTER-3026-2-enable-Trusty-OS-for-matter.patch: -------------------------------------------------------------------------------- 1 | From 33fda1fa2d996b01e740400e17be9dd3abd99e1c Mon Sep 17 00:00:00 2001 2 | From: Ji Luo 3 | Date: Thu, 19 Dec 2024 14:09:48 +0800 4 | Subject: [PATCH 2/2] MATTER-3026-2 enable Trusty OS for matter 5 | 6 | Enable Trusty related configs and dts nodes. 7 | 8 | Change-Id: I502234f7be9e2b8113b5ef30ea2e3066ef6a9868 9 | Signed-off-by: Ji Luo 10 | --- 11 | arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 18 ++++++++++++++++++ 12 | 1 files changed, 18 insertions(+) 13 | 14 | Upstream-Status: Inappropriate [platform specific changes] 15 | 16 | diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts 17 | index 8bf784ff8ad85..8d53a4851a2ad 100644 18 | --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts 19 | +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts 20 | @@ -16,6 +16,24 @@ aliases { 21 | spi0 = &flexspi; 22 | }; 23 | 24 | + trusty { 25 | + compatible = "android,trusty-smc-v1"; 26 | + ranges; 27 | + #address-cells = <2>; 28 | + #size-cells = <2>; 29 | + trusty-irq { 30 | + compatible = "android,trusty-irq-v1"; 31 | + interrupt-ranges = < 0 15 0>; 32 | + ipi-range = <8 15 8>; 33 | + }; 34 | + trusty-virtio { 35 | + compatible = "android,trusty-virtio-v1"; 36 | + }; 37 | + trusty-log { 38 | + compatible = "android,trusty-log-v1"; 39 | + }; 40 | + }; 41 | + 42 | reg_usdhc1_vmmc: regulator-usdhc1 { 43 | compatible = "regulator-fixed"; 44 | regulator-name = "WLAN_EN"; 45 | -- 46 | 2.34.1 47 | 48 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-kernel/linux/files/kernel-config/Enable-Trusty.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_LOCALVERSION="-meta-nxp-connectivity" 2 | CONFIG_TRUSTY=y 3 | CONFIG_TRUSTY_CRASH_IS_PANIC=y 4 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-kernel/linux/linux-imx_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | SRC_URI += "${@bb.utils.contains_any('MACHINE', "imx8mmevk-matter imx93evk-iwxxx-matter ", 'file://0001-MATTER-3026-1-enable-Trusty-OS-for-matter.patch', '', d)}" 4 | SRC_URI += "${@bb.utils.contains('MACHINE', "imx8mmevk-matter", 'file://0002-MATTER-3026-2-enable-Trusty-OS-for-matter.patch', '', d)}" 5 | SRC_URI += "${@bb.utils.contains('MACHINE', "imx8mmevk-matter", 'file://kernel-config/Enable-Trusty.cfg', '', d)}" 6 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-multimedia/gstreamer/files/0002-MATTER-1573-2-Add-gplay_matter-service.patch: -------------------------------------------------------------------------------- 1 | From 24cc3e76133ebbb094c7bea886a3256700c5f475 Mon Sep 17 00:00:00 2001 2 | From: Haoran Wang 3 | Date: Mon, 30 Oct 2023 10:06:11 +0800 4 | Subject: [PATCH 2/3] MATTER-1573-2 Add gplay_matter service 5 | 6 | Add systemd service for gplay_matter. To start it, use: 7 | $systemctl start --user gplay_matter 8 | 9 | Signed-off-by: Haoran Wang 10 | Change-Id: Ibbab8b791f1177a1792f6e7c982548aa529769e6 11 | --- 12 | tools/gplay2/gplay_matter.service | 8 ++++++++ 13 | tools/gplay2/meson.build | 2 ++ 14 | 2 files changed, 10 insertions(+) 15 | create mode 100644 tools/gplay2/gplay_matter.service 16 | 17 | Upstream-Status: Inappropriate [platform specific changes] 18 | 19 | diff --git a/tools/gplay2/gplay_matter.service b/tools/gplay2/gplay_matter.service 20 | new file mode 100644 21 | index 0000000..072dddc 22 | --- /dev/null 23 | +++ b/tools/gplay2/gplay_matter.service 24 | @@ -0,0 +1,8 @@ 25 | +[Unit] 26 | +Description=Gplay Matter Music Player 27 | + 28 | +[Service] 29 | +ExecStart=/bin/bash -c "/usr/bin/gplay_matter-1.0 --repeat /home/root/media/*.mp3" 30 | + 31 | +[Install] 32 | +WantedBy=multi-user.target 33 | diff --git a/tools/gplay2/meson.build b/tools/gplay2/meson.build 34 | index 47f0aee..dca851f 100644 35 | --- a/tools/gplay2/meson.build 36 | +++ b/tools/gplay2/meson.build 37 | @@ -14,3 +14,5 @@ executable('gplay_matter-' + api_version, 38 | install: true, 39 | dependencies : [gst_dep, gstplay_dep, gstfsl_dep], 40 | ) 41 | +systemd_user_dir = get_option('prefix') / get_option('datadir') / 'systemd' / 'user' 42 | +install_data('gplay_matter.service', install_dir: systemd_user_dir) 43 | -- 44 | 2.34.1 45 | 46 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-multimedia/gstreamer/files/0003-MATTER-1573-3-set-volume-to-gplay_matter-by-environm.patch: -------------------------------------------------------------------------------- 1 | From 2543a905a5be1332dfc2a3c40850824b27ec95e2 Mon Sep 17 00:00:00 2001 2 | From: Haoran Wang 3 | Date: Mon, 30 Oct 2023 15:51:05 +0800 4 | Subject: [PATCH 3/3] MATTER-1573-3 set volume to gplay_matter by environment 5 | variables 6 | 7 | In the gplay_matter service, add ENV_GPLAY_VOLUME=0.2 to make the 8 | default volume smaller due Matter speaker API didn't ready to tuning the 9 | volume. 10 | 11 | Signed-off-by: Haoran Wang 12 | Change-Id: I2b2ba22d366161da6b546befe56512555578f612 13 | --- 14 | tools/gplay2/gplay2.c | 12 ++++++++++++ 15 | tools/gplay2/gplay_matter.service | 2 +- 16 | 2 files changed, 13 insertions(+), 1 deletion(-) 17 | 18 | Upstream-Status: Inappropriate [platform specific changes] 19 | 20 | diff --git a/tools/gplay2/gplay2.c b/tools/gplay2/gplay2.c 21 | index 6841933..31cfd98 100755 22 | --- a/tools/gplay2/gplay2.c 23 | +++ b/tools/gplay2/gplay2.c 24 | @@ -1879,6 +1879,16 @@ main (int argc, char *argv[]) 25 | &sPlay); 26 | } 27 | //gst_play_play (play); 28 | +#ifdef MATTER_MEDIA 29 | + char* env_value = getenv("ENV_GPLAY_VOLUME"); 30 | + if (env_value == NULL) { 31 | + gst_play_set_volume (play, 1.0); 32 | + } else { 33 | + float gplay_volume = atof(env_value); 34 | + gst_play_set_volume (play, gplay_volume); 35 | + } 36 | + gst_play_pause_sync (sPlay.play, options.timeout); 37 | +#endif 38 | gst_play_play_sync (play, options.timeout); 39 | 40 | /* for auto test script */ 41 | @@ -1899,7 +1909,9 @@ main (int argc, char *argv[]) 42 | gst_play_pause (play); 43 | gst_play_set_mute (play, ismute); 44 | } 45 | +#ifndef MATTER_MEDIA 46 | gst_play_set_volume (play, 1.0); 47 | +#endif 48 | 49 | /* for auto test script */ 50 | // g_print ("FSL_PLAYENGINE_UI_MSG_EXIT\n"); 51 | diff --git a/tools/gplay2/gplay_matter.service b/tools/gplay2/gplay_matter.service 52 | index 072dddc..6409d28 100644 53 | --- a/tools/gplay2/gplay_matter.service 54 | +++ b/tools/gplay2/gplay_matter.service 55 | @@ -2,7 +2,7 @@ 56 | Description=Gplay Matter Music Player 57 | 58 | [Service] 59 | -ExecStart=/bin/bash -c "/usr/bin/gplay_matter-1.0 --repeat /home/root/media/*.mp3" 60 | +ExecStart=/bin/bash -c "ENV_GPLAY_VOLUME=0.2 /usr/bin/gplay_matter-1.0 --repeat /home/root/media/*.mp3" 61 | 62 | [Install] 63 | WantedBy=multi-user.target 64 | -- 65 | 2.34.1 66 | 67 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-multimedia/gstreamer/files/0004-Enhance-the-FIFO-communication.patch: -------------------------------------------------------------------------------- 1 | From 131572a6ce8cf5fe5c8917b67502133d9edfdf3b Mon Sep 17 00:00:00 2001 2 | From: Haoran Wang 3 | Date: Tue, 18 Jun 2024 16:49:19 +0800 4 | Subject: [PATCH] Enhance the FIFO communication 5 | 6 | Add 1 second delay to make sure the fifo message transfer. 7 | This is a workaround for make the nxp-media-app demo stable. 8 | 9 | Signed-off-by: Haoran Wang 10 | Change-Id: I25ce159abfab7d8770a64df38fa664524e219010 11 | --- 12 | tools/gplay2/gplay2.c | 1 + 13 | 1 file changed, 1 insertion(+) 14 | 15 | Upstream-Status: Inappropriate [platform specific changes] 16 | 17 | diff --git a/tools/gplay2/gplay2.c b/tools/gplay2/gplay2.c 18 | index 31cfd98..72a373a 100755 19 | --- a/tools/gplay2/gplay2.c 20 | +++ b/tools/gplay2/gplay2.c 21 | @@ -124,6 +124,7 @@ ack_matter(const gchar * ack) 22 | { 23 | int fd = open(media_fifo_ack, O_WRONLY); 24 | write(fd, ack, strlen(ack)+1); 25 | + sleep(1); 26 | close(fd); 27 | } 28 | #endif 29 | -- 30 | 2.34.1 31 | 32 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | FILES:${PN} += "${sysconfdir}/systemd/system/gplay_matter.service" 4 | FILES:${PN} += "${bindir}/gplay_matter-1.0" 5 | 6 | SRC_URI += "file://0001-MATTER-1573-Modify-gplay2-to-support-Matter-media.patch" 7 | SRC_URI += "file://0002-MATTER-1573-2-Add-gplay_matter-service.patch" 8 | SRC_URI += "file://0003-MATTER-1573-3-set-volume-to-gplay_matter-by-environm.patch" 9 | SRC_URI += "file://0004-Enhance-the-FIFO-communication.patch" 10 | -------------------------------------------------------------------------------- /meta-nxp-matter-advanced/recipes-storageproxyd/storageproxyd/storageproxyd.bb: -------------------------------------------------------------------------------- 1 | PN = "storageproxyd" 2 | SUMMARY = "NXP i.MX Securestorage proxy daemon" 3 | DESCRIPTION = "This layer loads the securestorageproxy dameon" 4 | LICENSE = "Apache-2.0" 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 6 | 7 | SRCBRANCH = "master" 8 | SRC_URI = "gitsm://github.com/nxp-imx/libtrustymatter.git;protocol=https;branch=${SRCBRANCH}" 9 | SRCREV = "95f8b30d83da8bf05f3e6b776919511f58766540" 10 | 11 | S = "${WORKDIR}/git" 12 | FILES:${PN} += "/usr/lib/systemd/system/storageproxyd.service" 13 | 14 | DEPENDS += " pkgconfig-native systemd " 15 | 16 | inherit cmake 17 | -------------------------------------------------------------------------------- /meta-nxp-matter-baseline/conf/layer.conf: -------------------------------------------------------------------------------- 1 | BBPATH .= ":${LAYERDIR}" 2 | 3 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ 4 | ${LAYERDIR}/recipes-*/*/*.bbappend" 5 | 6 | LAYERSERIES_COMPAT_nxp-matter-baseline = "nanbield scarthgap styhead" 7 | 8 | BBFILE_COLLECTIONS += "nxp-matter-baseline" 9 | BBFILE_PATTERN_nxp-matter-baseline = "^${LAYERDIR}/" 10 | BBFILE_PRIORITY_nxp-matter-baseline = "7" 11 | -------------------------------------------------------------------------------- /meta-nxp-matter-baseline/recipes-matter/matter/dcldownloader.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "DCL Downloader" 2 | SECTION = "utils" 3 | PRIORITY = "optional" 4 | LICENSE = "MIT" 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 6 | 7 | python () { 8 | distro_version = d.getVar('DISTRO_VERSION') 9 | if "scarthgap" in distro_version: 10 | d.setVar('WORKPATH', '${WORKDIR}') 11 | elif "nanbield" in distro_version: 12 | d.setVar('WORKPATH', '${WORKDIR}') 13 | else: 14 | d.setVar('WORKPATH', '${UNPACKDIR}') 15 | d.setVar('S', '${UNPACKDIR}') 16 | } 17 | 18 | 19 | SRC_URI = "file://dcldownloader.tar.gz" 20 | SRC_URI[sha256sum] = "ada4ecc67e807614256bad84f49cad732d35cd8991958c0c3a999c61e0caf97b" 21 | 22 | DEPENDS += " jsoncpp curl " 23 | 24 | do_compile() { 25 | cd ${WORKPATH} 26 | oe_runmake 27 | } 28 | 29 | do_install() { 30 | install -d ${D}${bindir} 31 | install -m 0755 ${WORKPATH}/dcldownloader ${D}${bindir} 32 | } 33 | -------------------------------------------------------------------------------- /meta-nxp-matter-baseline/recipes-matter/matter/files/0001-MATTER-1352-2-Add-se_version.h.patch: -------------------------------------------------------------------------------- 1 | From fc921db56ec06903e8fd758966e5f2a3f84e0e5c Mon Sep 17 00:00:00 2001 2 | From: Ji Luo 3 | Date: Thu, 13 Jun 2024 10:50:15 +0900 4 | Subject: [PATCH] MATTER-2389-4 add se_version.h 5 | 6 | update the se_version.h to sync with lf-6.6.23-2.0.0-rc2. 7 | 8 | Upstream-Status: Inappropriate [build generated file only] 9 | Change-Id: I80d75dc2e71e1a6af471f0c1c9a8cc5e9f1b13e3 10 | Signed-off-by: Ji Luo 11 | --- 12 | include/hsm/internal/se_version.h | 10 ++++++++++ 13 | 1 file changed, 10 insertions(+) 14 | create mode 100644 include/hsm/internal/se_version.h 15 | 16 | diff --git a/include/hsm/internal/se_version.h b/include/hsm/internal/se_version.h 17 | new file mode 100644 18 | index 0000000..f67f3d6 19 | --- /dev/null 20 | +++ b/include/hsm/internal/se_version.h 21 | @@ -0,0 +1,10 @@ 22 | +#ifndef SE_VERSION_H 23 | +#define SE_VERSION_H 24 | +#define LIB_COMMIT_ID "7340cabd767cedd5980e3335968a577bb3909e6d" 25 | +#define LIB_NEWNESS_VER 1 26 | +#define LIB_MAJOR_VER 1 27 | +#define LIB_MINOR_VER 1 28 | +#define NVM_NEWNESS_VER 1 29 | +#define NVM_MAJOR_VER 1 30 | +#define NVM_MINOR_VER 1 31 | +#endif 32 | -- 33 | 2.34.1 34 | 35 | -------------------------------------------------------------------------------- /meta-nxp-matter-baseline/recipes-matter/matter/files/dcldownloader.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-matter-baseline/recipes-matter/matter/files/dcldownloader.tar.gz -------------------------------------------------------------------------------- /meta-nxp-matter-baseline/recipes-matter/matter/packagegroup-nxp-matter-baseline.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2024 NXP 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "Add packages for i.MX Matter baseline components" 5 | LICENSE = "MIT" 6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 7 | 8 | inherit packagegroup 9 | 10 | RDEPENDS:${PN} = " \ 11 | matter \ 12 | dcldownloader \ 13 | " 14 | -------------------------------------------------------------------------------- /meta-nxp-openthread/conf/layer.conf: -------------------------------------------------------------------------------- 1 | BBPATH .= ":${LAYERDIR}" 2 | 3 | BBFILES += "${LAYERDIR}/recipes-*/*.bb \ 4 | ${LAYERDIR}/recipes-*/*/*.bb \ 5 | ${LAYERDIR}/recipes-*/*/*.bbappend" 6 | 7 | LAYERSERIES_COMPAT_nxp-openthread = "nanbield scarthgap styhead" 8 | 9 | BBFILE_COLLECTIONS += "nxp-openthread" 10 | BBFILE_PATTERN_nxp-openthread = "^${LAYERDIR}/" 11 | BBFILE_PRIORITY_nxp-openthread = "7" 12 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0001-coex-buff-issue-fix.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Message buffer size (OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS) 33 | * increased from 44 to 200 to account for host system latency 34 | * under coex scenarios involving Wi-Fi and/or BT/BLE concurrently 35 | * with Thread. 36 | * Version : v002 37 | * Mandatory/Optional : Mandatory 38 | * Impact if not applied : Message Buffer outage will occur under heavy loaded coex scenario 39 | * involving Wi-Fi and/or BT/BLE concurrently with Thread. 40 | */ 41 | 42 | Upstream-Status: Inappropriate [platform specific changes] 43 | 44 | diff --git a/src/core/config/misc.h b/src/core/config/misc.h 45 | index 5dc48d648..36f3caa80 100644 46 | --- a/src/core/config/misc.h 47 | +++ b/src/core/config/misc.h 48 | @@ -193,7 +193,7 @@ 49 | * The number of message buffers in the buffer pool. 50 | */ 51 | #ifndef OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 52 | -#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 44 53 | +#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 200 54 | #endif 55 | 56 | /** 57 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0002-csl-debug_prints.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Added debug prints related to CSL timestamp for debug purpose. 33 | * Version : v004 34 | * Mandatory/Optional : Optional 35 | * Impact if not applied : CSL timestamps won't be logged. Limited debug capabilities. 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/src/core/thread/csl_tx_scheduler.cpp b/src/core/thread/csl_tx_scheduler.cpp 41 | index fdaed9791..51e3f2003 100644 42 | --- a/src/core/thread/csl_tx_scheduler.cpp 43 | +++ b/src/core/thread/csl_tx_scheduler.cpp 44 | @@ -149,6 +149,7 @@ uint32_t CslTxScheduler::GetNextCslTransmissionDelay(const CslNeighbor &aCslNeig 45 | 46 | aDelayFromLastRx = static_cast(nextTxWindow - aCslNeighbor.GetLastRxTimestamp()); 47 | 48 | + otLogInfoPlat("CSL radioNow = %lu, periodInUS = %hu,firstTXWindow = %lu, nextTxWindow = %lu, aDelayFromLastRx = %u, lastRxTimeStamp = %lu", radioNow, periodInUs, firstTxWindow, nextTxWindow, aDelayFromLastRx, aCslNeighbor.GetLastRxTimestamp()); 49 | return static_cast(nextTxWindow - radioNow - aAheadUs); 50 | } 51 | 52 | diff --git a/src/lib/spinel/radio_spinel.cpp b/src/lib/spinel/radio_spinel.cpp 53 | index f467c1f28..6e4ae4eef 100644 54 | --- a/src/lib/spinel/radio_spinel.cpp 55 | +++ b/src/lib/spinel/radio_spinel.cpp 56 | @@ -1985,7 +1985,12 @@ exit: 57 | LogIfFail("Error calculating RCP time offset: %s", error); 58 | } 59 | 60 | -uint64_t RadioSpinel::GetNow(void) { return (mIsTimeSynced) ? (otPlatTimeGet() + mRadioTimeOffset) : UINT64_MAX; } 61 | +uint64_t RadioSpinel::GetNow(void) 62 | +{ 63 | + otLogDebgPlat("mIsTimeSynced = %d, otPlatTimeGet = %llu, mRadioTimeOffset = %llu",mIsTimeSynced, static_cast(otPlatTimeGet()), static_cast(mRadioTimeOffset)); 64 | + 65 | + return (mIsTimeSynced) ? (otPlatTimeGet() + mRadioTimeOffset) : UINT64_MAX; 66 | +} 67 | 68 | uint32_t RadioSpinel::GetBusSpeed(void) const { return GetSpinelDriver().GetSpinelInterface()->GetBusSpeed(); } 69 | 70 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0019-remove-toggle-reset-pin.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2024 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Prevent reset pin toggling in case of error recovery. Required when 33 | * Independant Reset from OOB GPIO is enabled as in this case, the GPIO 34 | * passed as parameter to ot-daemon at start-up, will trigger an independant 35 | * reset which then requires to redownload the RCP FW image. (note : IW612 has 36 | * no SW reset input pin for 15.4). 37 | * Version : v001 38 | * Mandatory/Optional : Optional 39 | * Impact if not applied : Independant reset from OOB GPIO can't be enabled, unless another available dummy 40 | * pin can be passed as SW reset GPIO when ot-daemon is started. 41 | */ 42 | 43 | Upstream-Status: Inappropriate [platform specific changes] 44 | 45 | diff --git a/src/posix/platform/spi_interface.cpp b/src/posix/platform/spi_interface.cpp 46 | index 752dd44c1..d074cf8f0 100644 47 | --- a/src/posix/platform/spi_interface.cpp 48 | +++ b/src/posix/platform/spi_interface.cpp 49 | @@ -265,10 +265,11 @@ int SpiInterface::SetupGpioEvent(int aFd, 50 | 51 | void SpiInterface::SetGpioValue(int aFd, uint8_t aValue) 52 | { 53 | - struct gpiohandle_data data; 54 | - 55 | - data.values[0] = aValue; 56 | - VerifyOrDie(ioctl(aFd, GPIOHANDLE_SET_LINE_VALUES_IOCTL, &data) != -1, OT_EXIT_ERROR_ERRNO); 57 | + OT_UNUSED_VARIABLE(aFd); 58 | + OT_UNUSED_VARIABLE(aValue); 59 | + // struct gpiohandle_data data; 60 | + // data.values[0] = aValue; 61 | + // VerifyOrDie(ioctl(aFd, GPIOHANDLE_SET_LINE_VALUES_IOCTL, &data) != -1, OT_EXIT_ERROR_ERRNO); 62 | } 63 | 64 | uint8_t SpiInterface::GetGpioValue(int aFd) 65 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0020-lnt-fix-spi-latency.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2024 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Fix a race condition in ot-host when SPI_INT GPIO changes between 33 | * CheckInterrupt() and FD_SET. 34 | * Version : v001 35 | * Mandatory/Optional : Mandatory 36 | * Impact if not applied : SPI transaction requested by the RCP will occasionally be significantly delayed. 37 | */ 38 | 39 | Upstream-Status: Inappropriate [platform specific changes] 40 | 41 | diff --git a/src/posix/platform/spi_interface.cpp b/src/posix/platform/spi_interface.cpp 42 | index 844e28afb..d8c5611b3 100644 43 | --- a/src/posix/platform/spi_interface.cpp 44 | +++ b/src/posix/platform/spi_interface.cpp 45 | @@ -663,6 +663,17 @@ void SpiInterface::UpdateFdSet(void *aMainloopContext) 46 | // The interrupt pin was not asserted, so we wait for the interrupt pin to be asserted by adding it to the 47 | // read set. 48 | FD_SET(mIntGpioValueFd, &context->mReadFdSet); 49 | + 50 | + if (CheckInterrupt()) 51 | + { 52 | + // Interrupt pin was not asserted before FD_SET 53 | + // but it is after. 54 | + // set the timeout to zero else the select will not detect the falling edge 55 | + // and will wait until the end of the timeout 56 | + timeout.tv_sec = 0; 57 | + timeout.tv_usec = 0; 58 | + otLogDebgPlat("UpdateFdSet(): Interrupt after FD_SET."); 59 | + } 60 | } 61 | } 62 | else if (timercmp(&pollingTimeout, &timeout, <)) 63 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0034-set-default-txpower-on-reset.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2024 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Restore default TX power upon factory reset. 33 | * Version : v001 34 | * Mandatory/Optional : Optional 35 | * Impact if not applied : Previously configured TX power level remains after factory reset command. 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/src/core/instance/instance.cpp b/src/core/instance/instance.cpp 41 | index 3519fd57f..d062cb991 100644 42 | --- a/src/core/instance/instance.cpp 43 | +++ b/src/core/instance/instance.cpp 44 | @@ -448,6 +448,7 @@ void Instance::FactoryReset(void) 45 | Get().DestroyTemporaryKeys(); 46 | Get().DestroyPersistentKeys(); 47 | #endif 48 | + otPlatRadioSetTransmitPower(this,0); 49 | otPlatReset(this); 50 | } 51 | 52 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0036-set-default-rssi-on-reset-for-host.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Set default RSSI on reset. 33 | * Version : v004 34 | * Mandatory/Optional : Optional 35 | * Impact if not applied : Previously latched RSSI value will be used even after a reset. 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/src/lib/spinel/radio_spinel.cpp b/src/lib/spinel/radio_spinel.cpp 41 | index c4b405d92..9075c050a 100644 42 | --- a/src/lib/spinel/radio_spinel.cpp 43 | +++ b/src/lib/spinel/radio_spinel.cpp 44 | @@ -1890,6 +1890,7 @@ otError RadioSpinel::Enable(otInstance *aInstance) 45 | SuccessOrExit(error = Set(SPINEL_PROP_MAC_15_4_PANID, SPINEL_DATATYPE_UINT16_S, mPanId)); 46 | SuccessOrExit(error = Set(SPINEL_PROP_MAC_15_4_SADDR, SPINEL_DATATYPE_UINT16_S, mShortAddress)); 47 | SuccessOrExit(error = Get(SPINEL_PROP_PHY_RX_SENSITIVITY, SPINEL_DATATYPE_INT8_S, &mRxSensitivity)); 48 | + SuccessOrExit(error = Set(SPINEL_PROP_PHY_RSSI, SPINEL_DATATYPE_INT8_S)); 49 | 50 | mState = kStateSleep; 51 | 52 | 53 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0040-radio-spinel-stream-raw-retry-mechanism.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Retry mechanism if mTxRadioTid is expected and current command failed 33 | * with OT_ERROR_BUSY. 34 | * Version : v004 35 | * Mandatory/Optional : Mandatory 36 | * Impact if not applied : Under corner scenario, OT host SW may crash. 37 | */ 38 | 39 | Upstream-Status: Inappropriate [platform specific changes] 40 | 41 | diff --git a/src/lib/spinel/radio_spinel.cpp b/src/lib/spinel/radio_spinel.cpp 42 | index 9075c050a..f4bea3f66 100644 43 | --- a/src/lib/spinel/radio_spinel.cpp 44 | +++ b/src/lib/spinel/radio_spinel.cpp 45 | @@ -1571,6 +1571,19 @@ otError RadioSpinel::RequestV(uint32_t command, spinel_prop_key_t aKey, const ch 46 | VerifyOrExit(tid > 0, error = OT_ERROR_BUSY); 47 | 48 | error = GetSpinelDriver().SendCommand(command, aKey, tid, aFormat, aArgs); 49 | + 50 | + if( mTxRadioTid && (error == OT_ERROR_BUSY) ) 51 | + { 52 | + // Handle RETRY mechanism in case of VALUE_SET / STREAM_RAW failed transaction 53 | + error = WaitResponse(); 54 | + 55 | + if( error == OT_ERROR_NONE ) 56 | + { 57 | + // Call again the current command. SPI interface shall be available now ! 58 | + error = GetSpinelDriver().SendCommand(command, aKey, tid, aFormat, aArgs); 59 | + } 60 | + } 61 | + 62 | SuccessOrExit(error); 63 | 64 | if (aKey == SPINEL_PROP_STREAM_RAW) 65 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0057-reset-available-on-rcp-recovery.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2024-2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Reset shall be available on RCP recovery mechanism (when multipan feature disabled) 33 | * Version : v003 34 | * Mandatory/Optional : Mandatory 35 | * Impact if not applied : ot-daemon might not recover 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/src/lib/spinel/spinel_driver.cpp b/src/lib/spinel/spinel_driver.cpp 41 | index b953d2969..d88d55df9 100644 42 | --- a/src/lib/spinel/spinel_driver.cpp 43 | +++ b/src/lib/spinel/spinel_driver.cpp 44 | @@ -124,8 +124,10 @@ void SpinelDriver::ResetCoprocessor(bool aSoftwareReset) 45 | bool hardwareReset; 46 | bool resetDone = false; 47 | 48 | +#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE 49 | // Avoid resetting the device twice in a row in Multipan RCP architecture 50 | VerifyOrExit(!mIsCoprocessorReady, resetDone = true); 51 | +#endif 52 | 53 | mWaitingKey = SPINEL_PROP_LAST_STATUS; 54 | 55 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0070-Specify-MBEDTLS_COMPILER_IS_GCC-inlibrary-common.h.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2024 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Fix MbedTls build errors 33 | * Version : v001 34 | * Mandatory/Optional : Mandatory from 6.12.3 BSP 35 | * Impact if not applied : can't build 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/third_party/mbedtls/repo/library/common.h b/third_party/mbedtls/repo/library/common.h 41 | index 3936ffdfe..d8c407319 100644 42 | --- a/third_party/mbedtls/repo/library/common.h 43 | +++ b/third_party/mbedtls/repo/library/common.h 44 | @@ -199,7 +199,7 @@ static inline void mbedtls_xor(unsigned char *r, 45 | uint8x16_t x = veorq_u8(v1, v2); 46 | vst1q_u8(r + i, x); 47 | } 48 | -#if defined(__IAR_SYSTEMS_ICC__) 49 | +#if defined(__IAR_SYSTEMS_ICC__) || defined(MBEDTLS_COMPILER_IS_GCC) 50 | /* This if statement helps some compilers (e.g., IAR) optimise out the byte-by-byte tail case 51 | * where n is a constant multiple of 16. 52 | * For other compilers (e.g. recent gcc and clang) it makes no difference if n is a compile-time 53 | -- 54 | 2.43.0 55 | 56 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0071-mfgcmd-spifreq-support.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Add in MFG Get/Set SPI FREQ MODE 33 | * Version : v001 34 | * Mandatory/Optional : Optional 35 | * Impact if not applied : MFG cannot change the SOC SPI frequency mode 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/src/posix/platform/daemon.cpp b/src/posix/platform/daemon.cpp 41 | index a96c3c2e3..3daf139da 100644 42 | --- a/src/posix/platform/daemon.cpp 43 | +++ b/src/posix/platform/daemon.cpp 44 | @@ -82,6 +82,7 @@ extern "C" 45 | #define MFG_CMD_ACTION_GET 0 46 | #define MFG_CMD_ACTION_SET 1 47 | 48 | +#define MFG_CMD_GET_SET_SPI_FREQUENCY 0x9 // 1 49 | #define MFG_CMD_GET_SET_CHANNEL 0x0b // 11 50 | #define MFG_CMD_GET_SET_TXPOWER 0x0f // 15 51 | #define MFG_CMD_CONTINUOUS_TX 0x11 // 17 52 | @@ -379,6 +380,14 @@ otError ProcessMfgCommands(void *aContext, uint8_t aArgsLength, char *aArgs[]) 53 | 54 | switch (cmdId) 55 | { 56 | + case MFG_CMD_GET_SET_SPI_FREQUENCY: // get spi freq mode ( 0 => ] 100kHz ; 3.8MHz] ; 1 => ] MIN ; 10MHz] ; not supported ) 57 | + error = ProcessMfgGetInt8((otInstance*)aContext, MFG_CMD_GET_SET_SPI_FREQUENCY, aArgsLength); 58 | + break; 59 | + 60 | + case MFG_CMD_GET_SET_SPI_FREQUENCY + 1: // set spi freq ( 0 => ] 100kHz ; 3.8MHz] ; 1 => ] MIN ; 10MHz] ) 61 | + error = ProcessMfgSetInt8((otInstance*)aContext, MFG_CMD_GET_SET_SPI_FREQUENCY, aArgsLength, aArgs, 0, 1); 62 | + break; 63 | + 64 | case MFG_CMD_GET_SET_CHANNEL: // get channel 65 | error = ProcessMfgGetInt8((otInstance*)aContext, MFG_CMD_GET_SET_CHANNEL, aArgsLength); 66 | break; 67 | -------------------------------------------------------------------------------- /meta-nxp-openthread/recipes-openthread/openthread-iwxxx/files/otpatches-082-d31bcee/0072-Fix-link-error-in-tests-unit-ot-test-ncp-srp_server.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : This patch fixes a link error when building ot-daemon 33 | * tests/unit/ot-test-ncp-srp_server: Undefined reference to otChannelManagerRequestChannelSelect 34 | * otChannelManagerRequestChannelSelect is only implemented if OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE=1 35 | * Version : v001 36 | * Mandatory/Optional : Mandatory 37 | * Impact if not applied : tests/unit/ot-test-ncp-srp_server can't be built 38 | */ 39 | 40 | Upstream-Status: Inappropriate [platform specific changes] 41 | 42 | diff --git a/src/ncp/ncp_base_ftd.cpp b/src/ncp/ncp_base_ftd.cpp 43 | index cd1957ccb..d0a223b8c 100644 44 | --- a/src/ncp/ncp_base_ftd.cpp 45 | +++ b/src/ncp/ncp_base_ftd.cpp 46 | @@ -1323,7 +1323,9 @@ template <> otError NcpBase::HandlePropertySet ${D}${sysconfdir}/apt/apt.conf.sample << EOF 5 | Dir "${STAGING_DIR_NATIVE}/" 6 | { 7 | State "var/lib/apt/" 8 | { 9 | Lists "#APTCONF#/lists/"; 10 | status "#ROOTFS#/var/lib/dpkg/status"; 11 | }; 12 | Cache "var/cache/apt/" 13 | { 14 | Archives "archives/"; 15 | pkgcache ""; 16 | srcpkgcache ""; 17 | }; 18 | Bin "${STAGING_BINDIR_NATIVE}/" 19 | { 20 | methods "${STAGING_LIBDIR}/apt/methods/"; 21 | gzip "/bin/gzip"; 22 | dpkg "dpkg"; 23 | dpkg-source "dpkg-source"; 24 | dpkg-buildpackage "dpkg-buildpackage"; 25 | apt-get "apt-get"; 26 | apt-cache "apt-cache"; 27 | }; 28 | Etc "#APTCONF#" 29 | { 30 | Preferences "preferences"; 31 | }; 32 | Log "var/log/apt"; 33 | }; 34 | 35 | APT 36 | { 37 | Install-Recommends "true"; 38 | Immediate-Configure "false"; 39 | Architecture "i586"; 40 | Get 41 | { 42 | Assume-Yes "true"; 43 | }; 44 | }; 45 | 46 | Acquire 47 | { 48 | AllowInsecureRepositories "true"; 49 | }; 50 | 51 | DPkg::Options {"--root=#ROOTFS#";"--admindir=#ROOTFS#/var/lib/dpkg";"--force-all";"--no-debsig"}; 52 | DPkg::Path ""; 53 | EOF 54 | } 55 | 56 | do_install:append:class-native() { 57 | customize_apt_conf_sample_matter 58 | } 59 | 60 | do_install:append:class-nativesdk() { 61 | customize_apt_conf_sample_matter 62 | rm -rf ${D}${localstatedir}/log 63 | } 64 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mm-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | 8 | #include "imx8mm-evk-usd-wifi.dts" 9 | 10 | / { 11 | // Patch for IW61x: 12 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible), bluetooth at 3M 13 | // v2: gpio naming and options description in model 14 | // v3: IW610 RD hardware board only 15 | model = "NXP i.MX8M Mini EVK board for IW610-RD-v3: IW610 SPI INT enabled, BT at 3M"; 16 | }; 17 | 18 | &uart1 { 19 | /delete-node/ bluetooth; 20 | }; 21 | 22 | &uart3 { 23 | bluetooth { 24 | compatible = "nxp,88w8987-bt"; 25 | fw-init-baudrate = <3000000>; 26 | }; 27 | }; 28 | 29 | &i2c3 { 30 | pca6416: gpio@20 { 31 | compatible = "ti,tca6416"; 32 | reg = <0x20>; 33 | gpio-controller; 34 | #gpio-cells = <2>; 35 | interrupt-parent = <&gpio1>; 36 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 37 | pinctrl-names = "default"; 38 | pinctrl-0 = <&pinctrl_pca6416_irq>; 39 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "IWxxx_NB_IND_RST_15_4"; 40 | }; 41 | }; 42 | 43 | &ecspi2 { 44 | #address-cells = <1>; 45 | #size-cells = <0>; 46 | fsl,spi-num-chipselects = <1>; 47 | pinctrl-names = "default"; 48 | pinctrl-0 = <&pinctrl_espi2>; 49 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 50 | status = "okay"; 51 | 52 | spidev0: spi@0 { 53 | reg = <0>; 54 | compatible = "rohm,dh2228fv"; 55 | spi-max-frequency = <500000>; 56 | label="IWxxx_SPIDEV"; 57 | }; 58 | 59 | }; 60 | 61 | &iomuxc { 62 | pinctrl_pca6416_irq: pca6416irq { 63 | fsl,pins = < 64 | MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 65 | >; 66 | }; 67 | 68 | pinctrl_espi2: espi2grp { 69 | fsl,pins = < 70 | MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 71 | MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 72 | MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 73 | MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 74 | >; 75 | }; 76 | 77 | trusty { 78 | compatible = "android,trusty-smc-v1"; 79 | ranges; 80 | #address-cells = <2>; 81 | #size-cells = <2>; 82 | trusty-irq { 83 | compatible = "android,trusty-irq-v1"; 84 | interrupt-ranges = < 0 15 0>; 85 | ipi-range = <8 15 8>; 86 | }; 87 | trusty-virtio { 88 | compatible = "android,trusty-virtio-v1"; 89 | }; 90 | trusty-log { 91 | compatible = "android,trusty-log-v1"; 92 | }; 93 | }; 94 | }; 95 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mm-evk-IW610-uart3-bt-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | 8 | #include "imx8mm-evk-usd-wifi.dts" 9 | 10 | / { 11 | // Patch for IW61x: 12 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 13 | // v2: gpio naming and options description in model 14 | // v3: IW610 RD hardware board only 15 | model = "NXP i.MX8M Mini EVK board for IW610-RD-v3: IW610 SPI INT enabled"; 16 | }; 17 | 18 | &uart1 { 19 | /delete-node/ bluetooth; 20 | }; 21 | 22 | &uart3 { 23 | bluetooth { 24 | compatible = "nxp,88w8987-bt"; 25 | }; 26 | }; 27 | 28 | &i2c3 { 29 | pca6416: gpio@20 { 30 | compatible = "ti,tca6416"; 31 | reg = <0x20>; 32 | gpio-controller; 33 | #gpio-cells = <2>; 34 | interrupt-parent = <&gpio1>; 35 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 36 | pinctrl-names = "default"; 37 | pinctrl-0 = <&pinctrl_pca6416_irq>; 38 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "IWxxx_NB_IND_RST_15_4"; 39 | }; 40 | }; 41 | 42 | &ecspi2 { 43 | #address-cells = <1>; 44 | #size-cells = <0>; 45 | fsl,spi-num-chipselects = <1>; 46 | pinctrl-names = "default"; 47 | pinctrl-0 = <&pinctrl_espi2>; 48 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 49 | status = "okay"; 50 | 51 | spidev0: spi@0 { 52 | reg = <0>; 53 | compatible = "rohm,dh2228fv"; 54 | spi-max-frequency = <500000>; 55 | label="IWxxx_SPIDEV"; 56 | }; 57 | 58 | }; 59 | 60 | &iomuxc { 61 | pinctrl_pca6416_irq: pca6416irq { 62 | fsl,pins = < 63 | MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 64 | >; 65 | }; 66 | 67 | pinctrl_espi2: espi2grp { 68 | fsl,pins = < 69 | MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 70 | MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 71 | MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 72 | MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 73 | >; 74 | }; 75 | 76 | trusty { 77 | compatible = "android,trusty-smc-v1"; 78 | ranges; 79 | #address-cells = <2>; 80 | #size-cells = <2>; 81 | trusty-irq { 82 | compatible = "android,trusty-irq-v1"; 83 | interrupt-ranges = < 0 15 0>; 84 | ipi-range = <8 15 8>; 85 | }; 86 | trusty-virtio { 87 | compatible = "android,trusty-virtio-v1"; 88 | }; 89 | trusty-log { 90 | compatible = "android,trusty-log-v1"; 91 | }; 92 | }; 93 | }; 94 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mm-evk-uart3-bt-3M-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | 8 | #include "imx8mm-evk-usd-wifi.dts" 9 | 10 | / { 11 | // Patch for IW61x: 12 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible), bluetooth at 3M 13 | // v2: gpio naming and options description in model 14 | // v3: IW612 RD hardware board only 15 | model = "NXP i.MX8M Mini EVK board for IW612-RD-v3: IW612 SPI INT enabled, BT at 3M"; 16 | }; 17 | 18 | &uart1 { 19 | /delete-node/ bluetooth; 20 | }; 21 | 22 | &uart3 { 23 | bluetooth { 24 | compatible = "nxp,88w8987-bt"; 25 | fw-init-baudrate = <3000000>; 26 | }; 27 | }; 28 | 29 | &i2c3 { 30 | pca6416: gpio@20 { 31 | compatible = "ti,tca6416"; 32 | reg = <0x20>; 33 | gpio-controller; 34 | #gpio-cells = <2>; 35 | interrupt-parent = <&gpio1>; 36 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 37 | pinctrl-names = "default"; 38 | pinctrl-0 = <&pinctrl_pca6416_irq>; 39 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "IWxxx_NB_IND_RST_15_4"; 40 | }; 41 | }; 42 | 43 | &ecspi2 { 44 | #address-cells = <1>; 45 | #size-cells = <0>; 46 | fsl,spi-num-chipselects = <1>; 47 | pinctrl-names = "default"; 48 | pinctrl-0 = <&pinctrl_espi2>; 49 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 50 | status = "okay"; 51 | 52 | spidev0: spi@0 { 53 | reg = <0>; 54 | compatible = "rohm,dh2228fv"; 55 | spi-max-frequency = <500000>; 56 | label="IWxxx_SPIDEV"; 57 | }; 58 | 59 | }; 60 | 61 | &iomuxc { 62 | pinctrl_pca6416_irq: pca6416irq { 63 | fsl,pins = < 64 | MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 65 | >; 66 | }; 67 | 68 | pinctrl_espi2: espi2grp { 69 | fsl,pins = < 70 | MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 71 | MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 72 | MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 73 | MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 74 | >; 75 | }; 76 | 77 | trusty { 78 | compatible = "android,trusty-smc-v1"; 79 | ranges; 80 | #address-cells = <2>; 81 | #size-cells = <2>; 82 | trusty-irq { 83 | compatible = "android,trusty-irq-v1"; 84 | interrupt-ranges = < 0 15 0>; 85 | ipi-range = <8 15 8>; 86 | }; 87 | trusty-virtio { 88 | compatible = "android,trusty-virtio-v1"; 89 | }; 90 | trusty-log { 91 | compatible = "android,trusty-log-v1"; 92 | }; 93 | }; 94 | }; 95 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mm-evk-uart3-bt-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | 8 | #include "imx8mm-evk-usd-wifi.dts" 9 | 10 | / { 11 | // Patch for IW61x: 12 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 13 | // v2: gpio naming and options description in model 14 | // v3: IW612 RD hardware board only 15 | model = "NXP i.MX8M Mini EVK board for IW612-RD-v3: IW612 SPI INT enabled"; 16 | }; 17 | 18 | &uart1 { 19 | /delete-node/ bluetooth; 20 | }; 21 | 22 | &uart3 { 23 | bluetooth { 24 | compatible = "nxp,88w8987-bt"; 25 | }; 26 | }; 27 | 28 | &i2c3 { 29 | pca6416: gpio@20 { 30 | compatible = "ti,tca6416"; 31 | reg = <0x20>; 32 | gpio-controller; 33 | #gpio-cells = <2>; 34 | interrupt-parent = <&gpio1>; 35 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 36 | pinctrl-names = "default"; 37 | pinctrl-0 = <&pinctrl_pca6416_irq>; 38 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "IWxxx_NB_IND_RST_15_4"; 39 | }; 40 | }; 41 | 42 | &ecspi2 { 43 | #address-cells = <1>; 44 | #size-cells = <0>; 45 | fsl,spi-num-chipselects = <1>; 46 | pinctrl-names = "default"; 47 | pinctrl-0 = <&pinctrl_espi2>; 48 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 49 | status = "okay"; 50 | 51 | spidev0: spi@0 { 52 | reg = <0>; 53 | compatible = "rohm,dh2228fv"; 54 | spi-max-frequency = <500000>; 55 | label="IWxxx_SPIDEV"; 56 | }; 57 | 58 | }; 59 | 60 | &iomuxc { 61 | pinctrl_pca6416_irq: pca6416irq { 62 | fsl,pins = < 63 | MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 64 | >; 65 | }; 66 | 67 | pinctrl_espi2: espi2grp { 68 | fsl,pins = < 69 | MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 70 | MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 71 | MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 72 | MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 73 | >; 74 | }; 75 | 76 | trusty { 77 | compatible = "android,trusty-smc-v1"; 78 | ranges; 79 | #address-cells = <2>; 80 | #size-cells = <2>; 81 | trusty-irq { 82 | compatible = "android,trusty-irq-v1"; 83 | interrupt-ranges = < 0 15 0>; 84 | ipi-range = <8 15 8>; 85 | }; 86 | trusty-virtio { 87 | compatible = "android,trusty-virtio-v1"; 88 | }; 89 | trusty-log { 90 | compatible = "android,trusty-log-v1"; 91 | }; 92 | }; 93 | }; 94 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-ddr3l-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mn-ddr3l-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible), bluetooth at 3M 12 | // v2: gpio naming and options description in model 13 | // v3: IW610 RD hardware board only 14 | model = "NXP i.MX8M Nano DDR3L EVK board for IW610-RD-v3: IW610 SPI INT enabled, BT at 3M"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | fw-init-baudrate = <3000000>; 25 | }; 26 | }; 27 | 28 | &i2c3 { 29 | pca6416: gpio@20 { 30 | compatible = "ti,tca6416"; 31 | reg = <0x20>; 32 | gpio-controller; 33 | #gpio-cells = <2>; 34 | interrupt-parent = <&gpio1>; 35 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 36 | pinctrl-names = "default"; 37 | pinctrl-0 = <&pinctrl_pca6416_irq>; 38 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "IWxxx_NB_IND_RST_15_4"; 39 | }; 40 | }; 41 | 42 | &ecspi2 { 43 | #address-cells = <1>; 44 | #size-cells = <0>; 45 | fsl,spi-num-chipselects = <1>; 46 | pinctrl-names = "default"; 47 | pinctrl-0 = <&pinctrl_espi2>; 48 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 49 | status = "okay"; 50 | 51 | spidev0: spi@0 { 52 | reg = <0>; 53 | compatible = "rohm,dh2228fv"; 54 | spi-max-frequency = <500000>; 55 | label="IWxxx_SPIDEV"; 56 | }; 57 | 58 | }; 59 | 60 | &iomuxc { 61 | pinctrl_pca6416_irq: pca6416irq { 62 | fsl,pins = < 63 | MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 64 | >; 65 | }; 66 | 67 | pinctrl_espi2: espi2grp { 68 | fsl,pins = < 69 | MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 70 | MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 71 | MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 72 | MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 73 | >; 74 | }; 75 | }; 76 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-ddr3l-evk-IW610-uart3-bt-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mn-ddr3l-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 12 | // v2: gpio naming and options description in model 13 | // v3: IW610 RD hardware board only 14 | model = "NXP i.MX8M Nano DDR3L EVK board for IW610-RD-v3: IW610 SPI INT enabled"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | }; 25 | }; 26 | 27 | &i2c3 { 28 | pca6416: gpio@20 { 29 | compatible = "ti,tca6416"; 30 | reg = <0x20>; 31 | gpio-controller; 32 | #gpio-cells = <2>; 33 | interrupt-parent = <&gpio1>; 34 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 35 | pinctrl-names = "default"; 36 | pinctrl-0 = <&pinctrl_pca6416_irq>; 37 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "IWxxx_NB_IND_RST_15_4"; 38 | }; 39 | }; 40 | 41 | &ecspi2 { 42 | #address-cells = <1>; 43 | #size-cells = <0>; 44 | fsl,spi-num-chipselects = <1>; 45 | pinctrl-names = "default"; 46 | pinctrl-0 = <&pinctrl_espi2>; 47 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 48 | status = "okay"; 49 | 50 | spidev0: spi@0 { 51 | reg = <0>; 52 | compatible = "rohm,dh2228fv"; 53 | spi-max-frequency = <500000>; 54 | label="IWxxx_SPIDEV"; 55 | }; 56 | 57 | }; 58 | 59 | &iomuxc { 60 | pinctrl_pca6416_irq: pca6416irq { 61 | fsl,pins = < 62 | MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 63 | >; 64 | }; 65 | 66 | pinctrl_espi2: espi2grp { 67 | fsl,pins = < 68 | MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 69 | MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 70 | MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 71 | MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 72 | >; 73 | }; 74 | }; 75 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-ddr3l-evk-uart3-bt-3M-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mn-ddr3l-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible), bluetooth at 3M 12 | // v2: gpio naming and options description in model 13 | // v3: IW612 RD hardware board only 14 | model = "NXP i.MX8M Nano DDR3L EVK board for IW612-RD-v3: IW612 SPI INT enabled, BT at 3M"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | fw-init-baudrate = <3000000>; 25 | }; 26 | }; 27 | 28 | &i2c3 { 29 | pca6416: gpio@20 { 30 | compatible = "ti,tca6416"; 31 | reg = <0x20>; 32 | gpio-controller; 33 | #gpio-cells = <2>; 34 | interrupt-parent = <&gpio1>; 35 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 36 | pinctrl-names = "default"; 37 | pinctrl-0 = <&pinctrl_pca6416_irq>; 38 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "IWxxx_NB_IND_RST_15_4"; 39 | }; 40 | }; 41 | 42 | &ecspi2 { 43 | #address-cells = <1>; 44 | #size-cells = <0>; 45 | fsl,spi-num-chipselects = <1>; 46 | pinctrl-names = "default"; 47 | pinctrl-0 = <&pinctrl_espi2>; 48 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 49 | status = "okay"; 50 | 51 | spidev0: spi@0 { 52 | reg = <0>; 53 | compatible = "rohm,dh2228fv"; 54 | spi-max-frequency = <500000>; 55 | label="IWxxx_SPIDEV"; 56 | }; 57 | 58 | }; 59 | 60 | &iomuxc { 61 | pinctrl_pca6416_irq: pca6416irq { 62 | fsl,pins = < 63 | MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 64 | >; 65 | }; 66 | 67 | pinctrl_espi2: espi2grp { 68 | fsl,pins = < 69 | MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 70 | MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 71 | MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 72 | MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 73 | >; 74 | }; 75 | }; 76 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-ddr3l-evk-uart3-bt-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mn-ddr3l-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 12 | // v2: gpio naming and options description in model 13 | // v3: IW612 RD hardware board only 14 | model = "NXP i.MX8M Nano DDR3L EVK board for IW612-RD-v3: IW612 SPI INT enabled"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | }; 25 | }; 26 | 27 | &i2c3 { 28 | pca6416: gpio@20 { 29 | compatible = "ti,tca6416"; 30 | reg = <0x20>; 31 | gpio-controller; 32 | #gpio-cells = <2>; 33 | interrupt-parent = <&gpio1>; 34 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 35 | pinctrl-names = "default"; 36 | pinctrl-0 = <&pinctrl_pca6416_irq>; 37 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "IWxxx_NB_IND_RST_15_4"; 38 | }; 39 | }; 40 | 41 | &ecspi2 { 42 | #address-cells = <1>; 43 | #size-cells = <0>; 44 | fsl,spi-num-chipselects = <1>; 45 | pinctrl-names = "default"; 46 | pinctrl-0 = <&pinctrl_espi2>; 47 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 48 | status = "okay"; 49 | 50 | spidev0: spi@0 { 51 | reg = <0>; 52 | compatible = "rohm,dh2228fv"; 53 | spi-max-frequency = <500000>; 54 | label="IWxxx_SPIDEV"; 55 | }; 56 | 57 | }; 58 | 59 | &iomuxc { 60 | pinctrl_pca6416_irq: pca6416irq { 61 | fsl,pins = < 62 | MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 63 | >; 64 | }; 65 | 66 | pinctrl_espi2: espi2grp { 67 | fsl,pins = < 68 | MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 69 | MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 70 | MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 71 | MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 72 | >; 73 | }; 74 | }; 75 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-lpddr4-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mn-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible), bluetooth at 3M 12 | // v2: gpio naming and options description in model 13 | // v3: IW610 RD hardware board only 14 | model = "NXP i.MX8M Nano LPDDR4 EVK board for IW610-RD-v3: IW610 SPI INT enabled, BT at 3M"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | fw-init-baudrate = <3000000>; 25 | }; 26 | }; 27 | 28 | &i2c3 { 29 | pca6416: gpio@20 { 30 | compatible = "ti,tca6416"; 31 | reg = <0x20>; 32 | gpio-controller; 33 | #gpio-cells = <2>; 34 | interrupt-parent = <&gpio1>; 35 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 36 | pinctrl-names = "default"; 37 | pinctrl-0 = <&pinctrl_pca6416_irq>; 38 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "IWxxx_NB_IND_RST_15_4"; 39 | }; 40 | }; 41 | 42 | &ecspi2 { 43 | #address-cells = <1>; 44 | #size-cells = <0>; 45 | fsl,spi-num-chipselects = <1>; 46 | pinctrl-names = "default"; 47 | pinctrl-0 = <&pinctrl_espi2>; 48 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 49 | status = "okay"; 50 | 51 | spidev0: spi@0 { 52 | reg = <0>; 53 | compatible = "rohm,dh2228fv"; 54 | spi-max-frequency = <500000>; 55 | label="IWxxx_SPIDEV"; 56 | }; 57 | 58 | }; 59 | 60 | &iomuxc { 61 | pinctrl_pca6416_irq: pca6416irq { 62 | fsl,pins = < 63 | MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 64 | >; 65 | }; 66 | 67 | pinctrl_espi2: espi2grp { 68 | fsl,pins = < 69 | MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 70 | MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 71 | MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 72 | MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 73 | >; 74 | }; 75 | }; 76 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-lpddr4-evk-IW610-uart3-bt-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mn-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 12 | // v2: gpio naming and options description in model 13 | // v3: IW610 RD hardware board only 14 | model = "NXP i.MX8M Nano LPDDR4 EVK board for IW610-RD-v3: IW610 SPI INT enabled"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | }; 25 | }; 26 | 27 | &i2c3 { 28 | pca6416: gpio@20 { 29 | compatible = "ti,tca6416"; 30 | reg = <0x20>; 31 | gpio-controller; 32 | #gpio-cells = <2>; 33 | interrupt-parent = <&gpio1>; 34 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 35 | pinctrl-names = "default"; 36 | pinctrl-0 = <&pinctrl_pca6416_irq>; 37 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "IWxxx_NB_IND_RST_15_4"; 38 | }; 39 | }; 40 | 41 | &ecspi2 { 42 | #address-cells = <1>; 43 | #size-cells = <0>; 44 | fsl,spi-num-chipselects = <1>; 45 | pinctrl-names = "default"; 46 | pinctrl-0 = <&pinctrl_espi2>; 47 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 48 | status = "okay"; 49 | 50 | spidev0: spi@0 { 51 | reg = <0>; 52 | compatible = "rohm,dh2228fv"; 53 | spi-max-frequency = <500000>; 54 | label="IWxxx_SPIDEV"; 55 | }; 56 | 57 | }; 58 | 59 | &iomuxc { 60 | pinctrl_pca6416_irq: pca6416irq { 61 | fsl,pins = < 62 | MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 63 | >; 64 | }; 65 | 66 | pinctrl_espi2: espi2grp { 67 | fsl,pins = < 68 | MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 69 | MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 70 | MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 71 | MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 72 | >; 73 | }; 74 | }; 75 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-lpddr4-evk-uart3-bt-3M-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mn-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible), bluetooth at 3M 12 | // v2: gpio naming and options description in model 13 | // v3: IW612 RD hardware board only 14 | model = "NXP i.MX8M Nano LPDDR4 EVK board for IW612-RD-v3: IW612 SPI INT enabled, BT at 3M"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | fw-init-baudrate = <3000000>; 25 | }; 26 | }; 27 | 28 | &i2c3 { 29 | pca6416: gpio@20 { 30 | compatible = "ti,tca6416"; 31 | reg = <0x20>; 32 | gpio-controller; 33 | #gpio-cells = <2>; 34 | interrupt-parent = <&gpio1>; 35 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 36 | pinctrl-names = "default"; 37 | pinctrl-0 = <&pinctrl_pca6416_irq>; 38 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "IWxxx_NB_IND_RST_15_4"; 39 | }; 40 | }; 41 | 42 | &ecspi2 { 43 | #address-cells = <1>; 44 | #size-cells = <0>; 45 | fsl,spi-num-chipselects = <1>; 46 | pinctrl-names = "default"; 47 | pinctrl-0 = <&pinctrl_espi2>; 48 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 49 | status = "okay"; 50 | 51 | spidev0: spi@0 { 52 | reg = <0>; 53 | compatible = "rohm,dh2228fv"; 54 | spi-max-frequency = <500000>; 55 | label="IWxxx_SPIDEV"; 56 | }; 57 | 58 | }; 59 | 60 | &iomuxc { 61 | pinctrl_pca6416_irq: pca6416irq { 62 | fsl,pins = < 63 | MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 64 | >; 65 | }; 66 | 67 | pinctrl_espi2: espi2grp { 68 | fsl,pins = < 69 | MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 70 | MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 71 | MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 72 | MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 73 | >; 74 | }; 75 | }; 76 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mn-lpddr4-evk-uart3-bt-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mn-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 12 | // v2: gpio naming and options description in model 13 | // v3: IW612 RD hardware board only 14 | model = "NXP i.MX8M Nano LPDDR4 EVK board for IW612-RD-v3: IW612 SPI INT enabled"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | }; 25 | }; 26 | 27 | &i2c3 { 28 | pca6416: gpio@20 { 29 | compatible = "ti,tca6416"; 30 | reg = <0x20>; 31 | gpio-controller; 32 | #gpio-cells = <2>; 33 | interrupt-parent = <&gpio1>; 34 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 35 | pinctrl-names = "default"; 36 | pinctrl-0 = <&pinctrl_pca6416_irq>; 37 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "IWxxx_NB_IND_RST_15_4"; 38 | }; 39 | }; 40 | 41 | &ecspi2 { 42 | #address-cells = <1>; 43 | #size-cells = <0>; 44 | fsl,spi-num-chipselects = <1>; 45 | pinctrl-names = "default"; 46 | pinctrl-0 = <&pinctrl_espi2>; 47 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 48 | status = "okay"; 49 | 50 | spidev0: spi@0 { 51 | reg = <0>; 52 | compatible = "rohm,dh2228fv"; 53 | spi-max-frequency = <500000>; 54 | label="IWxxx_SPIDEV"; 55 | }; 56 | 57 | }; 58 | 59 | &iomuxc { 60 | pinctrl_pca6416_irq: pca6416irq { 61 | fsl,pins = < 62 | MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 63 | >; 64 | }; 65 | 66 | pinctrl_espi2: espi2grp { 67 | fsl,pins = < 68 | MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x082 69 | MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x082 70 | MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x082 71 | MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x000 72 | >; 73 | }; 74 | }; 75 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mp-evk-IW610-uart3-bt-3M-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mp-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible), bluetooth at 3M 12 | // v2: gpio naming and options description in model 13 | // v3: IW610 RD hardware board only 14 | model = "NXP i.MX8M Plus EVK board for IW610-RD-v3: IW610 SPI INT enabled, BT at 3M"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | fw-init-baudrate = <3000000>; 25 | }; 26 | }; 27 | 28 | &i2c3 { 29 | pca6416: gpio@20 { 30 | compatible = "ti,tca6416"; 31 | reg = <0x20>; 32 | gpio-controller; 33 | #gpio-cells = <2>; 34 | interrupt-parent = <&gpio1>; 35 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 36 | pinctrl-names = "default"; 37 | pinctrl-0 = <&pinctrl_pca6416_irq>; 38 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "IWxxx_NB_IND_RST_15_4"; 39 | }; 40 | }; 41 | 42 | &ecspi2 { 43 | #address-cells = <1>; 44 | #size-cells = <0>; 45 | fsl,spi-num-chipselects = <1>; 46 | pinctrl-names = "default"; 47 | pinctrl-0 = <&pinctrl_espi2>; 48 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 49 | status = "okay"; 50 | 51 | spidev0: spi@0 { 52 | reg = <0>; 53 | compatible = "rohm,dh2228fv"; 54 | spi-max-frequency = <500000>; 55 | label="IWxxx_SPIDEV"; 56 | }; 57 | 58 | }; 59 | 60 | &iomuxc { 61 | pinctrl_pca6416_irq: pca6416irq { 62 | fsl,pins = < 63 | MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x141 64 | >; 65 | }; 66 | 67 | pinctrl_espi2: espi2grp { 68 | fsl,pins = < 69 | MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK 0x082 70 | MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI 0x082 71 | MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO 0x082 72 | MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13 0x000 73 | >; 74 | }; 75 | }; 76 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mp-evk-IW610-uart3-bt-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mp-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 12 | // v2: gpio naming and options description in model 13 | // v3: IW610 RD hardware board only 14 | model = "NXP i.MX8M Plus EVK board for IW610-RD-v3: IW610 SPI INT enabled"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | }; 25 | }; 26 | 27 | &i2c3 { 28 | pca6416: gpio@20 { 29 | compatible = "ti,tca6416"; 30 | reg = <0x20>; 31 | gpio-controller; 32 | #gpio-cells = <2>; 33 | interrupt-parent = <&gpio1>; 34 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 35 | pinctrl-names = "default"; 36 | pinctrl-0 = <&pinctrl_pca6416_irq>; 37 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "IWxxx_NB_IND_RST_15_4"; 38 | }; 39 | }; 40 | 41 | &ecspi2 { 42 | #address-cells = <1>; 43 | #size-cells = <0>; 44 | fsl,spi-num-chipselects = <1>; 45 | pinctrl-names = "default"; 46 | pinctrl-0 = <&pinctrl_espi2>; 47 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 48 | status = "okay"; 49 | 50 | spidev0: spi@0 { 51 | reg = <0>; 52 | compatible = "rohm,dh2228fv"; 53 | spi-max-frequency = <500000>; 54 | label="IWxxx_SPIDEV"; 55 | }; 56 | 57 | }; 58 | 59 | &iomuxc { 60 | pinctrl_pca6416_irq: pca6416irq { 61 | fsl,pins = < 62 | MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x141 63 | >; 64 | }; 65 | 66 | pinctrl_espi2: espi2grp { 67 | fsl,pins = < 68 | MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK 0x082 69 | MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI 0x082 70 | MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO 0x082 71 | MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13 0x000 72 | >; 73 | }; 74 | }; 75 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mp-evk-uart3-bt-3M-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mp-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible), bluetooth at 3M 12 | // v2: gpio naming and options description in model 13 | // v3: IW612 RD hardware board only 14 | model = "NXP i.MX8M Plus EVK board for IW612-RD-v3: IW612 SPI INT enabled, BT at 3M"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | fw-init-baudrate = <3000000>; 25 | }; 26 | }; 27 | 28 | &i2c3 { 29 | pca6416: gpio@20 { 30 | compatible = "ti,tca6416"; 31 | reg = <0x20>; 32 | gpio-controller; 33 | #gpio-cells = <2>; 34 | interrupt-parent = <&gpio1>; 35 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 36 | pinctrl-names = "default"; 37 | pinctrl-0 = <&pinctrl_pca6416_irq>; 38 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "IWxxx_NB_IND_RST_15_4"; 39 | }; 40 | }; 41 | 42 | &ecspi2 { 43 | #address-cells = <1>; 44 | #size-cells = <0>; 45 | fsl,spi-num-chipselects = <1>; 46 | pinctrl-names = "default"; 47 | pinctrl-0 = <&pinctrl_espi2>; 48 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 49 | status = "okay"; 50 | 51 | spidev0: spi@0 { 52 | reg = <0>; 53 | compatible = "rohm,dh2228fv"; 54 | spi-max-frequency = <500000>; 55 | label="IWxxx_SPIDEV"; 56 | }; 57 | 58 | }; 59 | 60 | &iomuxc { 61 | pinctrl_pca6416_irq: pca6416irq { 62 | fsl,pins = < 63 | MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x141 64 | >; 65 | }; 66 | 67 | pinctrl_espi2: espi2grp { 68 | fsl,pins = < 69 | MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK 0x082 70 | MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI 0x082 71 | MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO 0x082 72 | MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13 0x000 73 | >; 74 | }; 75 | }; 76 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx8mp-evk-uart3-bt-ffu-gpio-irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | /dts-v1/; 7 | #include "imx8mp-evk.dts" 8 | 9 | / { 10 | // Patch for IW61x: 11 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 12 | // v2: gpio naming and options description in model 13 | // v3: IW612 RD hardware board only 14 | model = "NXP i.MX8M Plus EVK board for IW612-RD-v3: IW612 SPI INT enabled"; 15 | }; 16 | 17 | &uart1 { 18 | /delete-node/ bluetooth; 19 | }; 20 | 21 | &uart3 { 22 | bluetooth { 23 | compatible = "nxp,88w8987-bt"; 24 | }; 25 | }; 26 | 27 | &i2c3 { 28 | pca6416: gpio@20 { 29 | compatible = "ti,tca6416"; 30 | reg = <0x20>; 31 | gpio-controller; 32 | #gpio-cells = <2>; 33 | interrupt-parent = <&gpio1>; 34 | interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 35 | pinctrl-names = "default"; 36 | pinctrl-0 = <&pinctrl_pca6416_irq>; 37 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "IWxxx_NB_IND_RST_15_4"; 38 | }; 39 | }; 40 | 41 | &ecspi2 { 42 | #address-cells = <1>; 43 | #size-cells = <0>; 44 | fsl,spi-num-chipselects = <1>; 45 | pinctrl-names = "default"; 46 | pinctrl-0 = <&pinctrl_espi2>; 47 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; 48 | status = "okay"; 49 | 50 | spidev0: spi@0 { 51 | reg = <0>; 52 | compatible = "rohm,dh2228fv"; 53 | spi-max-frequency = <500000>; 54 | label="IWxxx_SPIDEV"; 55 | }; 56 | 57 | }; 58 | 59 | &iomuxc { 60 | pinctrl_pca6416_irq: pca6416irq { 61 | fsl,pins = < 62 | MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x141 63 | >; 64 | }; 65 | 66 | pinctrl_espi2: espi2grp { 67 | fsl,pins = < 68 | MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK 0x082 69 | MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI 0x082 70 | MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO 0x082 71 | MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13 0x000 72 | >; 73 | }; 74 | }; 75 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx91-11x11-evk-ffu_gpio_irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | #include "imx91-11x11-evk.dts" 7 | 8 | / { 9 | // Patch for IW61x: 10 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 11 | // v2: make gpio IW61x_PD_N, M2 Murata_SPI_ENABLE, IW61x_IND_RST_15_4 drivable from userspace 12 | // v3: make gpio IW61x_PD_N, IW61x_IND_RST_15_4 drivable from userspace 13 | // v4: gpio naming and options description in model 14 | model = "NXP i.MX91 11X11 EVK board for IW61x-v4: M2 IWxxx SPI INT enabled, PDN in user space"; 15 | }; 16 | 17 | ®_usdhc3_vmmc { 18 | // Remap gpio to P1_0 which is not used AND not connected (R131: DNP) to leave pcal6524 20 free for the user space 19 | gpio = <&pcal6524 9 GPIO_ACTIVE_HIGH>; 20 | //gpio = <&pcal6524 20 GPIO_ACTIVE_HIGH>; 21 | }; 22 | 23 | &lpuart5 { 24 | /* BT */ 25 | pinctrl-names = "default"; 26 | pinctrl-assert-gpios = <&pcal6524 19 GPIO_ACTIVE_HIGH>; 27 | pinctrl-0 = <&pinctrl_uart5>; 28 | status = "okay"; 29 | 30 | bluetooth { 31 | compatible = "nxp,88w8987-bt"; 32 | fw-init-baudrate = <3000000>; 33 | }; 34 | }; 35 | 36 | &flexcan2 { 37 | status = "disabled"; 38 | }; 39 | 40 | &lpuart7 { 41 | status = "disabled"; 42 | }; 43 | 44 | &lpi2c2 { 45 | pcal5424: gpio@22 { 46 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "", "", "", "", "", "", "", "", "IWxxx_PD_N"; 47 | }; 48 | }; 49 | 50 | &lpi2c1 { 51 | pcal6408: gpio@20 { 52 | compatible = "nxp,pcal9554b"; 53 | reg = <0x20>; 54 | gpio-controller; 55 | #gpio-cells = <2>; 56 | status = "okay"; 57 | gpio-line-names = "IWxxx_NB_SPI_ENA", "IWxxx_NB_IND_RST_15_4"; 58 | }; 59 | }; 60 | &lpspi3 { 61 | fsl,spi-num-chipselects = <1>; 62 | pinctrl-names = "default", "sleep"; 63 | pinctrl-0 = <&pinctrl_lpspi3>; 64 | pinctrl-1 = <&pinctrl_lpspi3>; 65 | cs-gpios = <&gpio2 8 GPIO_ACTIVE_LOW>; 66 | pinctrl-assert-gpios = <&adp5585gpio 4 GPIO_ACTIVE_LOW>; 67 | pinctrl-assert-gpios = <&pcal6408 0 GPIO_ACTIVE_HIGH>; 68 | status = "okay"; 69 | 70 | spidev0: spi@0 { 71 | reg = <0>; 72 | compatible = "lwn,bk4"; 73 | spi-max-frequency = <1000000>; 74 | label="IWxxx_SPIDEV"; 75 | }; 76 | }; 77 | 78 | &iomuxc { 79 | pinctrl_lpspi3: lpspi3grp { 80 | fsl,pins = < 81 | MX91_PAD_GPIO_IO08__GPIO2_IO8 0x3fe 82 | MX91_PAD_GPIO_IO09__LPSPI3_SIN 0x3fe 83 | MX91_PAD_GPIO_IO10__LPSPI3_SOUT 0x3fe 84 | MX91_PAD_GPIO_IO11__LPSPI3_SCK 0x3fe 85 | >; 86 | }; 87 | }; 88 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx91-9x9-qsb-ffu_gpio_irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 | /* 3 | * Copyright 2025 NXP 4 | */ 5 | 6 | #include "imx91-9x9-qsb.dts" 7 | 8 | / { 9 | // Patch for IW61x: 10 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 11 | // v2: make gpio IW61x_PD_N, M2 Murata_SPI_ENABLE, IW61x_IND_RST_15_4 drivable from userspace 12 | // v3: make gpio IW61x_PD_N, IW61x_IND_RST_15_4 drivable from userspace 13 | // v4: gpio naming and options description in model 14 | model = "NXP i.MX91 9X9 QSB board for IW61x-v4: M2 IWxxx SPI INT enabled, PDN in user space"; 15 | }; 16 | 17 | ®_usdhc3_vmmc { 18 | // Remap gpio to P1_0 which is not used AND not connected (R131: DNP) to leave pcal6524 20 free for the user space 19 | gpio = <&pcal6524 9 GPIO_ACTIVE_HIGH>; 20 | //gpio = <&pcal6524 20 GPIO_ACTIVE_HIGH>; 21 | }; 22 | 23 | &lpuart5 { 24 | /* BT */ 25 | pinctrl-names = "default"; 26 | pinctrl-0 = <&pinctrl_uart5>; 27 | status = "okay"; 28 | 29 | bluetooth { 30 | compatible = "nxp,88w8987-bt"; 31 | fw-init-baudrate = <3000000>; 32 | }; 33 | }; 34 | 35 | &lpuart7 { 36 | status = "disabled"; 37 | }; 38 | 39 | &lpi2c2 { 40 | pcal5424: gpio@22 { 41 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "", "", "", "", "", "", "", "", "IWxxx_PD_N"; 42 | }; 43 | }; 44 | 45 | &lpi2c1 { 46 | pcal6408: gpio@20 { 47 | compatible = "nxp,pcal9554b"; 48 | reg = <0x20>; 49 | gpio-controller; 50 | #gpio-cells = <2>; 51 | status = "okay"; 52 | gpio-line-names = "IWxxx_NB_SPI_ENA", "IWxxx_NB_IND_RST_15_4"; 53 | }; 54 | }; 55 | &lpspi3 { 56 | fsl,spi-num-chipselects = <1>; 57 | pinctrl-names = "default", "sleep"; 58 | pinctrl-0 = <&pinctrl_lpspi3>; 59 | pinctrl-1 = <&pinctrl_lpspi3>; 60 | cs-gpios = <&gpio2 8 GPIO_ACTIVE_LOW>; 61 | pinctrl-assert-gpios = <&pcal6524 22 GPIO_ACTIVE_HIGH>, 62 | <&pcal6408 0 GPIO_ACTIVE_HIGH>; 63 | status = "okay"; 64 | 65 | spidev0: spi@0 { 66 | reg = <0>; 67 | compatible = "lwn,bk4"; 68 | spi-max-frequency = <1000000>; 69 | label="IWxxx_SPIDEV"; 70 | }; 71 | }; 72 | 73 | &iomuxc { 74 | pinctrl_lpspi3: lpspi3grp { 75 | fsl,pins = < 76 | MX91_PAD_GPIO_IO08__GPIO2_IO8 0x3fe 77 | MX91_PAD_GPIO_IO09__LPSPI3_SIN 0x3fe 78 | MX91_PAD_GPIO_IO10__LPSPI3_SOUT 0x3fe 79 | MX91_PAD_GPIO_IO11__LPSPI3_SCK 0x3fe 80 | >; 81 | }; 82 | }; 83 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/dts/imx93-11x11-evk-ffu_gpio_irq.dts: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 | /* 3 | * Copyright 2024 NXP 4 | */ 5 | 6 | #include "imx93-11x11-evk.dts" 7 | 8 | / { 9 | // Patch for IW61x: 10 | // v1: ffu_gpio_irq (make GPIO_SPI_INT interruptible) 11 | // v2: make gpio IW61x_PD_N, M2 Murata_SPI_ENABLE, IW61x_IND_RST_15_4 drivable from userspace 12 | // v3: make gpio IW61x_PD_N, IW61x_IND_RST_15_4 drivable from userspace 13 | // v4: gpio naming and options description in model 14 | model = "NXP i.MX93 11X11 EVK board for IW61x-v4: M2 IWxxx SPI INT enabled, PDN in user space"; 15 | }; 16 | 17 | ®_usdhc3_vmmc { 18 | // Remap gpio to P1_0 which is not used AND not connected (R131: DNP) to leave pcal6524 20 free for the user space 19 | gpio = <&pcal6524 9 GPIO_ACTIVE_HIGH>; 20 | //gpio = <&pcal6524 20 GPIO_ACTIVE_HIGH>; 21 | }; 22 | 23 | &flexcan2 { 24 | status = "disabled"; 25 | }; 26 | 27 | &lpuart7 { 28 | status = "disabled"; 29 | }; 30 | 31 | &lpi2c2 { 32 | pcal5424: gpio@22 { 33 | gpio-line-names = "", "", "", "", "", "", "", "", "", "", "IWxxx_NB_SPI_INT", "", "", "", "", "", "", "", "", "", "IWxxx_PD_N"; 34 | }; 35 | }; 36 | 37 | &lpi2c1 { 38 | pcal6408: gpio@20 { 39 | compatible = "nxp,pcal9554b"; 40 | reg = <0x20>; 41 | gpio-controller; 42 | #gpio-cells = <2>; 43 | status = "okay"; 44 | gpio-line-names = "IWxxx_NB_SPI_ENA", "IWxxx_NB_IND_RST_15_4"; 45 | }; 46 | }; 47 | &lpspi3 { 48 | fsl,spi-num-chipselects = <1>; 49 | pinctrl-names = "default", "sleep"; 50 | pinctrl-0 = <&pinctrl_lpspi3>; 51 | pinctrl-1 = <&pinctrl_lpspi3>; 52 | cs-gpios = <&gpio2 8 GPIO_ACTIVE_LOW>; 53 | pinctrl-assert-gpios = <&adp5585gpio 4 GPIO_ACTIVE_LOW>; 54 | pinctrl-assert-gpios = <&pcal6408 0 GPIO_ACTIVE_HIGH>; 55 | status = "okay"; 56 | 57 | spidev0: spi@0 { 58 | reg = <0>; 59 | compatible = "lwn,bk4"; 60 | spi-max-frequency = <1000000>; 61 | label="IWxxx_SPIDEV"; 62 | }; 63 | }; 64 | 65 | &iomuxc { 66 | pinctrl_lpspi3: lpspi3grp { 67 | fsl,pins = < 68 | MX93_PAD_GPIO_IO08__GPIO2_IO08 0x3fe 69 | MX93_PAD_GPIO_IO09__LPSPI3_SIN 0x3fe 70 | MX93_PAD_GPIO_IO10__LPSPI3_SOUT 0x3fe 71 | MX93_PAD_GPIO_IO11__LPSPI3_SCK 0x3fe 72 | >; 73 | }; 74 | }; 75 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/files/patches/Disable-Power-Save-mode-for-BT.patch: -------------------------------------------------------------------------------- 1 | From d82ee386affc38fe3c9f67b0dc82b969e8e67c9d Mon Sep 17 00:00:00 2001 2 | From: Haoran Wang 3 | Date: Thu, 29 Aug 2024 16:46:23 +0800 4 | Subject: [PATCH] Disable Power Save mode for BT 5 | 6 | With Power Save mode enabled, the IW612 cannot support 15.4 feature. So 7 | disable it. 8 | 9 | Signed-off-by: Haoran Wang 10 | --- 11 | drivers/bluetooth/btnxpuart.c | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | Upstream-Status: Inappropriate [platform specific changes] 15 | 16 | diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c 17 | index 17750fbf03bf..68cbf39c5528 100644 18 | --- a/drivers/bluetooth/btnxpuart.c 19 | +++ b/drivers/bluetooth/btnxpuart.c 20 | @@ -310,7 +310,7 @@ static u8 crc8_table[CRC8_TABLE_SIZE]; 21 | 22 | /* Default configurations */ 23 | #define DEFAULT_H2C_WAKEUP_MODE WAKEUP_METHOD_BREAK 24 | -#define DEFAULT_PS_MODE PS_MODE_ENABLE 25 | +#define DEFAULT_PS_MODE PS_MODE_DISABLE 26 | #define FW_INIT_BAUDRATE HCI_NXP_PRI_BAUDRATE 27 | 28 | static struct sk_buff *nxp_drv_send_cmd(struct hci_dev *hdev, u16 opcode, 29 | -- 30 | 2.34.1 31 | 32 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-kernel/linux/linux-imx_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | def get_arm_arch(d): 4 | for arg in (d.getVar('TUNE_FEATURES') or '').split(): 5 | if arg == "cortexa7": 6 | return '' 7 | if arg == "armv8a": 8 | return "file://kernel-config/0001-Add-Matter-and-OTBR-configs.cfg" 9 | return "file://kernel-config/0001-Add-Matter-and-OTBR-configs.cfg" 10 | 11 | SRC_URI += "file://patches/0002-Enable-otbr-and-firewall-configs-for-imx6-7.patch" 12 | SRC_URI += "file://patches/Disable-Power-Save-mode-for-BT.patch" 13 | 14 | SRC_URI += "${@get_arm_arch(d)}" 15 | 16 | do_patch:append() { 17 | echo "Starting to copy DTS files after patching." 18 | if [ -n "${DTS_FILE}" ]; then 19 | for i in ${DTS_FILE}; do 20 | if [ -f ${i} ]; then 21 | echo "Copying ${i} to ${S}/arch/arm64/boot/dts/freescale" 22 | cp ${i} ${S}/arch/arm64/boot/dts/freescale/ 23 | fi 24 | done 25 | fi 26 | } 27 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/0001-build-fix-on-macOS-2269.patch: -------------------------------------------------------------------------------- 1 | From e916bcb6ef7d504c4442bb887c201cfb6d76b9d8 Mon Sep 17 00:00:00 2001 2 | From: Yakun Xu 3 | Date: Wed, 1 May 2024 00:01:32 +0800 4 | Subject: [PATCH] [build] fix on macOS (#2269) 5 | 6 | boost::filesystem::extension() is deprecated in new boost versions 7 | --- 8 | src/web/web-service/web_server.cpp | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | Upstream-Status: Inappropriate [platform specific changes] 12 | 13 | diff --git a/src/web/web-service/web_server.cpp b/src/web/web-service/web_server.cpp 14 | index 08cef0ebff5..ff823748788 100644 15 | --- a/src/web/web-service/web_server.cpp 16 | +++ b/src/web/web-service/web_server.cpp 17 | @@ -239,7 +239,7 @@ void WebServer::DefaultHttpResponse(void) 18 | 19 | auto ifs = std::make_shared(); 20 | ifs->open(path.string(), std::ifstream::in | std::ios::binary | std::ios::ate); 21 | - std::string extension = boost::filesystem::extension(path.string()); 22 | + std::string extension = path.extension().string(); 23 | std::string header = ""; 24 | if (extension == ".css") 25 | { 26 | -- 27 | 2.34.1 28 | 29 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0001-coex-buff-issue-fix.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Message buffer size (OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS) 33 | * increased from 44 to 200 to account for host system latency 34 | * under coex scenarios involving Wi-Fi and/or BT/BLE concurrently 35 | * with Thread. 36 | * Version : v002 37 | * Mandatory/Optional : Mandatory 38 | * Impact if not applied : Message Buffer outage will occur under heavy loaded coex scenario 39 | * involving Wi-Fi and/or BT/BLE concurrently with Thread. 40 | */ 41 | 42 | Upstream-Status: Inappropriate [platform specific changes] 43 | 44 | diff --git a/src/core/config/misc.h b/src/core/config/misc.h 45 | index 5dc48d648..36f3caa80 100644 46 | --- a/src/core/config/misc.h 47 | +++ b/src/core/config/misc.h 48 | @@ -193,7 +193,7 @@ 49 | * The number of message buffers in the buffer pool. 50 | */ 51 | #ifndef OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 52 | -#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 44 53 | +#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 200 54 | #endif 55 | 56 | /** 57 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0002-csl-debug_prints.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Added debug prints related to CSL timestamp for debug purpose. 33 | * Version : v004 34 | * Mandatory/Optional : Optional 35 | * Impact if not applied : CSL timestamps won't be logged. Limited debug capabilities. 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/src/core/thread/csl_tx_scheduler.cpp b/src/core/thread/csl_tx_scheduler.cpp 41 | index fdaed9791..51e3f2003 100644 42 | --- a/src/core/thread/csl_tx_scheduler.cpp 43 | +++ b/src/core/thread/csl_tx_scheduler.cpp 44 | @@ -149,6 +149,7 @@ uint32_t CslTxScheduler::GetNextCslTransmissionDelay(const CslNeighbor &aCslNeig 45 | 46 | aDelayFromLastRx = static_cast(nextTxWindow - aCslNeighbor.GetLastRxTimestamp()); 47 | 48 | + otLogInfoPlat("CSL radioNow = %lu, periodInUS = %hu,firstTXWindow = %lu, nextTxWindow = %lu, aDelayFromLastRx = %u, lastRxTimeStamp = %lu", radioNow, periodInUs, firstTxWindow, nextTxWindow, aDelayFromLastRx, aCslNeighbor.GetLastRxTimestamp()); 49 | return static_cast(nextTxWindow - radioNow - aAheadUs); 50 | } 51 | 52 | diff --git a/src/lib/spinel/radio_spinel.cpp b/src/lib/spinel/radio_spinel.cpp 53 | index f467c1f28..6e4ae4eef 100644 54 | --- a/src/lib/spinel/radio_spinel.cpp 55 | +++ b/src/lib/spinel/radio_spinel.cpp 56 | @@ -1985,7 +1985,12 @@ exit: 57 | LogIfFail("Error calculating RCP time offset: %s", error); 58 | } 59 | 60 | -uint64_t RadioSpinel::GetNow(void) { return (mIsTimeSynced) ? (otPlatTimeGet() + mRadioTimeOffset) : UINT64_MAX; } 61 | +uint64_t RadioSpinel::GetNow(void) 62 | +{ 63 | + otLogDebgPlat("mIsTimeSynced = %d, otPlatTimeGet = %llu, mRadioTimeOffset = %llu",mIsTimeSynced, static_cast(otPlatTimeGet()), static_cast(mRadioTimeOffset)); 64 | + 65 | + return (mIsTimeSynced) ? (otPlatTimeGet() + mRadioTimeOffset) : UINT64_MAX; 66 | +} 67 | 68 | uint32_t RadioSpinel::GetBusSpeed(void) const { return GetSpinelDriver().GetSpinelInterface()->GetBusSpeed(); } 69 | 70 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0019-remove-toggle-reset-pin.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2024 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Prevent reset pin toggling in case of error recovery. Required when 33 | * Independant Reset from OOB GPIO is enabled as in this case, the GPIO 34 | * passed as parameter to ot-daemon at start-up, will trigger an independant 35 | * reset which then requires to redownload the RCP FW image. (note : IW612 has 36 | * no SW reset input pin for 15.4). 37 | * Version : v001 38 | * Mandatory/Optional : Optional 39 | * Impact if not applied : Independant reset from OOB GPIO can't be enabled, unless another available dummy 40 | * pin can be passed as SW reset GPIO when ot-daemon is started. 41 | */ 42 | 43 | Upstream-Status: Inappropriate [platform specific changes] 44 | 45 | diff --git a/src/posix/platform/spi_interface.cpp b/src/posix/platform/spi_interface.cpp 46 | index 752dd44c1..d074cf8f0 100644 47 | --- a/src/posix/platform/spi_interface.cpp 48 | +++ b/src/posix/platform/spi_interface.cpp 49 | @@ -265,10 +265,11 @@ int SpiInterface::SetupGpioEvent(int aFd, 50 | 51 | void SpiInterface::SetGpioValue(int aFd, uint8_t aValue) 52 | { 53 | - struct gpiohandle_data data; 54 | - 55 | - data.values[0] = aValue; 56 | - VerifyOrDie(ioctl(aFd, GPIOHANDLE_SET_LINE_VALUES_IOCTL, &data) != -1, OT_EXIT_ERROR_ERRNO); 57 | + OT_UNUSED_VARIABLE(aFd); 58 | + OT_UNUSED_VARIABLE(aValue); 59 | + // struct gpiohandle_data data; 60 | + // data.values[0] = aValue; 61 | + // VerifyOrDie(ioctl(aFd, GPIOHANDLE_SET_LINE_VALUES_IOCTL, &data) != -1, OT_EXIT_ERROR_ERRNO); 62 | } 63 | 64 | uint8_t SpiInterface::GetGpioValue(int aFd) 65 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0020-lnt-fix-spi-latency.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2024 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Fix a race condition in ot-host when SPI_INT GPIO changes between 33 | * CheckInterrupt() and FD_SET. 34 | * Version : v001 35 | * Mandatory/Optional : Mandatory 36 | * Impact if not applied : SPI transaction requested by the RCP will occasionally be significantly delayed. 37 | */ 38 | 39 | Upstream-Status: Inappropriate [platform specific changes] 40 | 41 | diff --git a/src/posix/platform/spi_interface.cpp b/src/posix/platform/spi_interface.cpp 42 | index 844e28afb..d8c5611b3 100644 43 | --- a/src/posix/platform/spi_interface.cpp 44 | +++ b/src/posix/platform/spi_interface.cpp 45 | @@ -663,6 +663,17 @@ void SpiInterface::UpdateFdSet(void *aMainloopContext) 46 | // The interrupt pin was not asserted, so we wait for the interrupt pin to be asserted by adding it to the 47 | // read set. 48 | FD_SET(mIntGpioValueFd, &context->mReadFdSet); 49 | + 50 | + if (CheckInterrupt()) 51 | + { 52 | + // Interrupt pin was not asserted before FD_SET 53 | + // but it is after. 54 | + // set the timeout to zero else the select will not detect the falling edge 55 | + // and will wait until the end of the timeout 56 | + timeout.tv_sec = 0; 57 | + timeout.tv_usec = 0; 58 | + otLogDebgPlat("UpdateFdSet(): Interrupt after FD_SET."); 59 | + } 60 | } 61 | } 62 | else if (timercmp(&pollingTimeout, &timeout, <)) 63 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0034-set-default-txpower-on-reset.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2024 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Restore default TX power upon factory reset. 33 | * Version : v001 34 | * Mandatory/Optional : Optional 35 | * Impact if not applied : Previously configured TX power level remains after factory reset command. 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/src/core/instance/instance.cpp b/src/core/instance/instance.cpp 41 | index 3519fd57f..d062cb991 100644 42 | --- a/src/core/instance/instance.cpp 43 | +++ b/src/core/instance/instance.cpp 44 | @@ -448,6 +448,7 @@ void Instance::FactoryReset(void) 45 | Get().DestroyTemporaryKeys(); 46 | Get().DestroyPersistentKeys(); 47 | #endif 48 | + otPlatRadioSetTransmitPower(this,0); 49 | otPlatReset(this); 50 | } 51 | 52 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0036-set-default-rssi-on-reset-for-host.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Set default RSSI on reset. 33 | * Version : v004 34 | * Mandatory/Optional : Optional 35 | * Impact if not applied : Previously latched RSSI value will be used even after a reset. 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/src/lib/spinel/radio_spinel.cpp b/src/lib/spinel/radio_spinel.cpp 41 | index c4b405d92..9075c050a 100644 42 | --- a/src/lib/spinel/radio_spinel.cpp 43 | +++ b/src/lib/spinel/radio_spinel.cpp 44 | @@ -1890,6 +1890,7 @@ otError RadioSpinel::Enable(otInstance *aInstance) 45 | SuccessOrExit(error = Set(SPINEL_PROP_MAC_15_4_PANID, SPINEL_DATATYPE_UINT16_S, mPanId)); 46 | SuccessOrExit(error = Set(SPINEL_PROP_MAC_15_4_SADDR, SPINEL_DATATYPE_UINT16_S, mShortAddress)); 47 | SuccessOrExit(error = Get(SPINEL_PROP_PHY_RX_SENSITIVITY, SPINEL_DATATYPE_INT8_S, &mRxSensitivity)); 48 | + SuccessOrExit(error = Set(SPINEL_PROP_PHY_RSSI, SPINEL_DATATYPE_INT8_S)); 49 | 50 | mState = kStateSleep; 51 | 52 | 53 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0040-radio-spinel-stream-raw-retry-mechanism.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2023-2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Retry mechanism if mTxRadioTid is expected and current command failed 33 | * with OT_ERROR_BUSY. 34 | * Version : v004 35 | * Mandatory/Optional : Mandatory 36 | * Impact if not applied : Under corner scenario, OT host SW may crash. 37 | */ 38 | 39 | Upstream-Status: Inappropriate [platform specific changes] 40 | 41 | diff --git a/src/lib/spinel/radio_spinel.cpp b/src/lib/spinel/radio_spinel.cpp 42 | index 9075c050a..f4bea3f66 100644 43 | --- a/src/lib/spinel/radio_spinel.cpp 44 | +++ b/src/lib/spinel/radio_spinel.cpp 45 | @@ -1571,6 +1571,19 @@ otError RadioSpinel::RequestV(uint32_t command, spinel_prop_key_t aKey, const ch 46 | VerifyOrExit(tid > 0, error = OT_ERROR_BUSY); 47 | 48 | error = GetSpinelDriver().SendCommand(command, aKey, tid, aFormat, aArgs); 49 | + 50 | + if( mTxRadioTid && (error == OT_ERROR_BUSY) ) 51 | + { 52 | + // Handle RETRY mechanism in case of VALUE_SET / STREAM_RAW failed transaction 53 | + error = WaitResponse(); 54 | + 55 | + if( error == OT_ERROR_NONE ) 56 | + { 57 | + // Call again the current command. SPI interface shall be available now ! 58 | + error = GetSpinelDriver().SendCommand(command, aKey, tid, aFormat, aArgs); 59 | + } 60 | + } 61 | + 62 | SuccessOrExit(error); 63 | 64 | if (aKey == SPINEL_PROP_STREAM_RAW) 65 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0057-reset-available-on-rcp-recovery.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2024-2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Reset shall be available on RCP recovery mechanism (when multipan feature disabled) 33 | * Version : v003 34 | * Mandatory/Optional : Mandatory 35 | * Impact if not applied : ot-daemon might not recover 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/src/lib/spinel/spinel_driver.cpp b/src/lib/spinel/spinel_driver.cpp 41 | index b953d2969..d88d55df9 100644 42 | --- a/src/lib/spinel/spinel_driver.cpp 43 | +++ b/src/lib/spinel/spinel_driver.cpp 44 | @@ -124,8 +124,10 @@ void SpinelDriver::ResetCoprocessor(bool aSoftwareReset) 45 | bool hardwareReset; 46 | bool resetDone = false; 47 | 48 | +#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE 49 | // Avoid resetting the device twice in a row in Multipan RCP architecture 50 | VerifyOrExit(!mIsCoprocessorReady, resetDone = true); 51 | +#endif 52 | 53 | mWaitingKey = SPINEL_PROP_LAST_STATUS; 54 | 55 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0070-Specify-MBEDTLS_COMPILER_IS_GCC-inlibrary-common.h.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2024 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Fix MbedTls build errors 33 | * Version : v001 34 | * Mandatory/Optional : Mandatory from 6.12.3 BSP 35 | * Impact if not applied : can't build 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/third_party/mbedtls/repo/library/common.h b/third_party/mbedtls/repo/library/common.h 41 | index 3936ffdfe..d8c407319 100644 42 | --- a/third_party/mbedtls/repo/library/common.h 43 | +++ b/third_party/mbedtls/repo/library/common.h 44 | @@ -199,7 +199,7 @@ static inline void mbedtls_xor(unsigned char *r, 45 | uint8x16_t x = veorq_u8(v1, v2); 46 | vst1q_u8(r + i, x); 47 | } 48 | -#if defined(__IAR_SYSTEMS_ICC__) 49 | +#if defined(__IAR_SYSTEMS_ICC__) || defined(MBEDTLS_COMPILER_IS_GCC) 50 | /* This if statement helps some compilers (e.g., IAR) optimise out the byte-by-byte tail case 51 | * where n is a constant multiple of 16. 52 | * For other compilers (e.g. recent gcc and clang) it makes no difference if n is a compile-time 53 | -- 54 | 2.43.0 55 | 56 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0071-mfgcmd-spifreq-support.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : Add in MFG Get/Set SPI FREQ MODE 33 | * Version : v001 34 | * Mandatory/Optional : Optional 35 | * Impact if not applied : MFG cannot change the SOC SPI frequency mode 36 | */ 37 | 38 | Upstream-Status: Inappropriate [platform specific changes] 39 | 40 | diff --git a/src/posix/platform/daemon.cpp b/src/posix/platform/daemon.cpp 41 | index a96c3c2e3..3daf139da 100644 42 | --- a/src/posix/platform/daemon.cpp 43 | +++ b/src/posix/platform/daemon.cpp 44 | @@ -82,6 +82,7 @@ extern "C" 45 | #define MFG_CMD_ACTION_GET 0 46 | #define MFG_CMD_ACTION_SET 1 47 | 48 | +#define MFG_CMD_GET_SET_SPI_FREQUENCY 0x9 // 1 49 | #define MFG_CMD_GET_SET_CHANNEL 0x0b // 11 50 | #define MFG_CMD_GET_SET_TXPOWER 0x0f // 15 51 | #define MFG_CMD_CONTINUOUS_TX 0x11 // 17 52 | @@ -379,6 +380,14 @@ otError ProcessMfgCommands(void *aContext, uint8_t aArgsLength, char *aArgs[]) 53 | 54 | switch (cmdId) 55 | { 56 | + case MFG_CMD_GET_SET_SPI_FREQUENCY: // get spi freq mode ( 0 => ] 100kHz ; 3.8MHz] ; 1 => ] MIN ; 10MHz] ; not supported ) 57 | + error = ProcessMfgGetInt8((otInstance*)aContext, MFG_CMD_GET_SET_SPI_FREQUENCY, aArgsLength); 58 | + break; 59 | + 60 | + case MFG_CMD_GET_SET_SPI_FREQUENCY + 1: // set spi freq ( 0 => ] 100kHz ; 3.8MHz] ; 1 => ] MIN ; 10MHz] ) 61 | + error = ProcessMfgSetInt8((otInstance*)aContext, MFG_CMD_GET_SET_SPI_FREQUENCY, aArgsLength, aArgs, 0, 1); 62 | + break; 63 | + 64 | case MFG_CMD_GET_SET_CHANNEL: // get channel 65 | error = ProcessMfgGetInt8((otInstance*)aContext, MFG_CMD_GET_SET_CHANNEL, aArgsLength); 66 | break; 67 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr-iwxxx/files/otbrpatches-079-d31bcee/openthread_patches/0072-Fix-link-error-in-tests-unit-ot-test-ncp-srp_server.patch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, The OpenThread Authors. 3 | * Copyright 2025 NXP 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright 11 | * notice, this list of conditions and the following disclaimer in the 12 | * documentation and/or other materials provided with the distribution. 13 | * 3. Neither the name of the copyright holder nor the 14 | * names of its contributors may be used to endorse or promote products 15 | * derived from this software without specific prior written permission. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /* 31 | * Header for patch information. 32 | * Description : This patch fixes a link error when building ot-daemon 33 | * tests/unit/ot-test-ncp-srp_server: Undefined reference to otChannelManagerRequestChannelSelect 34 | * otChannelManagerRequestChannelSelect is only implemented if OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE=1 35 | * Version : v001 36 | * Mandatory/Optional : Mandatory 37 | * Impact if not applied : tests/unit/ot-test-ncp-srp_server can't be built 38 | */ 39 | 40 | Upstream-Status: Inappropriate [platform specific changes] 41 | 42 | diff --git a/src/ncp/ncp_base_ftd.cpp b/src/ncp/ncp_base_ftd.cpp 43 | index cd1957ccb..d0a223b8c 100644 44 | --- a/src/ncp/ncp_base_ftd.cpp 45 | +++ b/src/ncp/ncp_base_ftd.cpp 46 | @@ -1323,7 +1323,9 @@ template <> otError NcpBase::HandlePropertySet 3 | Date: Wed, 1 May 2024 00:01:32 +0800 4 | Subject: [PATCH] [build] fix on macOS (#2269) 5 | 6 | boost::filesystem::extension() is deprecated in new boost versions 7 | --- 8 | src/web/web-service/web_server.cpp | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | Upstream-Status: Inappropriate [platform specific changes] 12 | 13 | diff --git a/src/web/web-service/web_server.cpp b/src/web/web-service/web_server.cpp 14 | index 08cef0ebff5..ff823748788 100644 15 | --- a/src/web/web-service/web_server.cpp 16 | +++ b/src/web/web-service/web_server.cpp 17 | @@ -239,7 +239,7 @@ void WebServer::DefaultHttpResponse(void) 18 | 19 | auto ifs = std::make_shared(); 20 | ifs->open(path.string(), std::ifstream::in | std::ios::binary | std::ios::ate); 21 | - std::string extension = boost::filesystem::extension(path.string()); 22 | + std::string extension = path.extension().string(); 23 | std::string header = ""; 24 | if (extension == ".css") 25 | { 26 | -- 27 | 2.34.1 28 | 29 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr/files/0001-correct-otbr-reference-scripts-install-folder.patch: -------------------------------------------------------------------------------- 1 | From 51a51076cb5e6ca3e5fee0996844fb6a83c1ceb9 Mon Sep 17 00:00:00 2001 2 | From: Haoran Wang 3 | Date: Wed, 19 Oct 2022 03:18:22 +0000 4 | Subject: [PATCH 1/4] correct otbr reference scripts install folder 5 | 6 | Signed-off-by: Haoran Wang 7 | --- 8 | tools/reference_device/CMakeLists.txt | 2 +- 9 | tools/reference_device/testharness-discovery | 4 ++-- 10 | tools/reference_device/testharness-discovery.init.in | 2 +- 11 | 3 files changed, 4 insertions(+), 4 deletions(-) 12 | 13 | Upstream-Status: Inappropriate [platform specific changes] 14 | 15 | diff --git a/tools/reference_device/CMakeLists.txt b/tools/reference_device/CMakeLists.txt 16 | index 25513c3533..2f91342cb1 100644 17 | --- a/tools/reference_device/CMakeLists.txt 18 | +++ b/tools/reference_device/CMakeLists.txt 19 | @@ -30,7 +30,7 @@ 20 | install( 21 | DIRECTORY ${CMAKE_SOURCE_DIR}/script/reference-device 22 | FILE_PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE 23 | - DESTINATION /home/pi 24 | + DESTINATION sbin 25 | ) 26 | 27 | install( 28 | diff --git a/tools/reference_device/testharness-discovery b/tools/reference_device/testharness-discovery 29 | index 58a22eae8d..cdd0aa96fc 100755 30 | --- a/tools/reference_device/testharness-discovery 31 | +++ b/tools/reference_device/testharness-discovery 32 | @@ -60,8 +60,8 @@ def get_ipaddr(): 33 | 34 | def advertise_bbr(s: socket.socket, src): 35 | bbr_info = { 36 | - 'ven': 'OpenThread_BR', 37 | - 'mod': 'OpenThread_BR', 38 | + 'ven': 'IMX_OT13_BR', 39 | + 'mod': 'IMX_OT13_BR', 40 | 'ver': '1.0', 41 | 'add': get_ipaddr(), 42 | 'por': 22, 43 | diff --git a/tools/reference_device/testharness-discovery.init.in b/tools/reference_device/testharness-discovery.init.in 44 | index 2628106611..04db0a16f5 100755 45 | --- a/tools/reference_device/testharness-discovery.init.in 46 | +++ b/tools/reference_device/testharness-discovery.init.in 47 | @@ -42,7 +42,7 @@ set -e 48 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 49 | DESC="TestHarness Discovery" 50 | NAME=testharness-discovery 51 | -DAEMON=/home/pi/scripts/ 52 | +DAEMON=@CMAKE_INSTALL_FULL_SBINDIR@/scripts 53 | PIDFILE=/var/run/testharness-discovery.pid 54 | 55 | . /lib/lsb/init-functions 56 | -- 57 | 2.34.1 58 | 59 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr/files/0001-dbus-add-absl-support-for-higher-version-protobuf.patch: -------------------------------------------------------------------------------- 1 | From d4d1f571e3d88c18992390193d29a27d9f529e8a Mon Sep 17 00:00:00 2001 2 | From: Haoran Wang 3 | Date: Tue, 12 Dec 2023 20:56:22 +0800 4 | Subject: [PATCH] [dbus] add absl support for higher version protobuf 5 | 6 | Protobuf which higher than 22 need link absl. Add the linked shared 7 | library to pass the build. 8 | 9 | Signed-off-by: Haoran Wang 10 | --- 11 | src/proto/CMakeLists.txt | 10 ++++++++++ 12 | 1 file changed, 10 insertions(+) 13 | 14 | Upstream-Status: Inappropriate [platform specific changes] 15 | 16 | diff --git a/src/proto/CMakeLists.txt b/src/proto/CMakeLists.txt 17 | index e982d52aa9..4d19916ac4 100644 18 | --- a/src/proto/CMakeLists.txt 19 | +++ b/src/proto/CMakeLists.txt 20 | @@ -7,6 +7,15 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 21 | list(APPEND CMAKE_PREFIX_PATH "${Protobuf_PREFIX_PATH}") 22 | endif() 23 | find_package(Protobuf REQUIRED) 24 | +if ("${Protobuf_VERSION}" MATCHES [[[0-9]+.([0-9]+).[0-9]+]]) 25 | + string(COMPARE GREATER_EQUAL "${CMAKE_MATCH_1}" "22" REQUEST_ABSL) 26 | +endif() 27 | +if(REQUEST_ABSL) 28 | + find_package(absl REQUIRED) 29 | + set(ABSL_LIBS absl::log_internal_check_op) 30 | +else() 31 | + set(ABSL_LIBS "") 32 | +endif() 33 | 34 | # Set up the output path. 35 | set(PROTO_GEN_DIR ${PROJECT_SOURCE_DIR}/build/src/proto) 36 | @@ -61,6 +70,7 @@ find_package(Protobuf REQUIRED) 37 | 38 | target_link_libraries(otbr-proto PUBLIC 39 | protobuf::libprotobuf-lite 40 | + ${ABSL_LIBS} 41 | ) 42 | 43 | target_include_directories(otbr-proto PUBLIC 44 | -- 45 | 2.34.1 46 | 47 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr/files/0003-Install-pskc-for-otbr-agent-credentials-generation.patch: -------------------------------------------------------------------------------- 1 | From d81e6ec26269ee6157411903f5fe3e94e9989198 Mon Sep 17 00:00:00 2001 2 | From: Haoran Wang 3 | Date: Fri, 18 Nov 2022 13:26:33 +0000 4 | Subject: [PATCH 3/4] Install pskc for otbr-agent credentials generation 5 | 6 | Signed-off-by: Haoran Wang 7 | --- 8 | tools/CMakeLists.txt | 2 ++ 9 | 1 file changed, 2 insertions(+) 10 | 11 | Upstream-Status: Inappropriate [platform specific changes] 12 | 13 | diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt 14 | index 5e8451afdb..3832e98ea6 100644 15 | --- a/tools/CMakeLists.txt 16 | +++ b/tools/CMakeLists.txt 17 | @@ -46,6 +46,8 @@ target_link_libraries(steering-data PRIVATE 18 | mbedtls 19 | ) 20 | 21 | +install(TARGETS pskc DESTINATION sbin) 22 | + 23 | if ($ENV{REFERENCE_DEVICE}) 24 | add_subdirectory(reference_device) 25 | endif() 26 | -- 27 | 2.34.1 28 | 29 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr/files/0004-Add-service-otbr_fwcfg-to-config-the-firewall-policy.patch: -------------------------------------------------------------------------------- 1 | From fa6dd5cdc84abe4619f2ada9ed77934ff751bd2e Mon Sep 17 00:00:00 2001 2 | From: Haoran Wang 3 | Date: Wed, 23 Nov 2022 12:47:28 +0000 4 | Subject: [PATCH 4/4] Add service otbr_fwcfg to config the firewall policy 5 | 6 | To pass the certification 1.3, need config the firewall. 7 | 8 | Signed-off-by: Haoran Wang 9 | --- 10 | tools/reference_device/CMakeLists.txt | 10 +++++++++ 11 | tools/reference_device/otbr_fwcfg.service | 9 ++++++++ 12 | tools/reference_device/otbr_fwcfg.sh | 25 +++++++++++++++++++++++ 13 | 3 files changed, 44 insertions(+) 14 | create mode 100644 tools/reference_device/otbr_fwcfg.service 15 | create mode 100755 tools/reference_device/otbr_fwcfg.sh 16 | 17 | Upstream-Status: Inappropriate [platform specific changes] 18 | 19 | diff --git a/tools/reference_device/CMakeLists.txt b/tools/reference_device/CMakeLists.txt 20 | index 2f91342cb1..d4bcd76a68 100644 21 | --- a/tools/reference_device/CMakeLists.txt 22 | +++ b/tools/reference_device/CMakeLists.txt 23 | @@ -38,11 +38,21 @@ install( 24 | DESTINATION sbin 25 | ) 26 | 27 | +install( 28 | + PROGRAMS otbr_fwcfg.sh 29 | + DESTINATION /usr/bin/ 30 | +) 31 | + 32 | if(OTBR_SYSTEMD_UNIT_DIR) 33 | configure_file(testharness-discovery.service.in testharness-discovery.service) 34 | + install(FILES otbr_fwcfg.service 35 | + DESTINATION ${OTBR_SYSTEMD_UNIT_DIR} 36 | + ) 37 | + 38 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/testharness-discovery.service 39 | DESTINATION ${OTBR_SYSTEMD_UNIT_DIR} 40 | ) 41 | + 42 | else() 43 | configure_file(testharness-discovery.init.in testharness-discovery.init) 44 | install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/testharness-discovery.init 45 | diff --git a/tools/reference_device/otbr_fwcfg.service b/tools/reference_device/otbr_fwcfg.service 46 | new file mode 100644 47 | index 0000000000..b35df65e8b 48 | --- /dev/null 49 | +++ b/tools/reference_device/otbr_fwcfg.service 50 | @@ -0,0 +1,9 @@ 51 | +[Unit] 52 | +Description=NXP i.MX OTBR firewall config 53 | + 54 | +[Service] 55 | +Type=simple 56 | +ExecStart=/bin/bash /usr/bin/otbr_fwcfg.sh 57 | + 58 | +[Install] 59 | +WantedBy=multi-user.target 60 | diff --git a/tools/reference_device/otbr_fwcfg.sh b/tools/reference_device/otbr_fwcfg.sh 61 | new file mode 100755 62 | index 0000000000..0a445ce7f4 63 | --- /dev/null 64 | +++ b/tools/reference_device/otbr_fwcfg.sh 65 | @@ -0,0 +1,25 @@ 66 | +#!/bin/bash 67 | +echo 1 > /proc/sys/net/ipv6/conf/all/forwarding 68 | +echo 1 > /proc/sys/net/ipv4/ip_forward 69 | +echo 2 > /proc/sys/net/ipv6/conf/all/accept_ra 70 | +echo 64 | sudo tee /proc/sys/net/ipv6/conf/all/accept_ra_rt_info_max_plen 71 | +echo 65536 > /proc/sys/net/core/optmem_max 72 | +ipset create -exist otbr-ingress-deny-src hash:net family inet6 73 | +ipset create -exist otbr-ingress-deny-src-swap hash:net family inet6 74 | +ipset create -exist otbr-ingress-allow-dst hash:net family inet6 75 | +ipset create -exist otbr-ingress-allow-dst-swap hash:net family inet6 76 | +ip6tables -N OTBR_FORWARD_INGRESS 77 | +ip6tables -I FORWARD 1 -o wpan0 -j OTBR_FORWARD_INGRESS 78 | +ip6tables -A OTBR_FORWARD_INGRESS -m pkttype --pkt-type unicast -i wpan0 -j DROP 79 | +ip6tables -A OTBR_FORWARD_INGRESS -m set --match-set otbr-ingress-deny-src src -j DROP 80 | +ip6tables -A OTBR_FORWARD_INGRESS -m set --match-set otbr-ingress-allow-dst dst -j ACCEPT 81 | +ip6tables -A OTBR_FORWARD_INGRESS -m pkttype --pkt-type unicast -j DROP 82 | +ip6tables -A OTBR_FORWARD_INGRESS -j ACCEPT 83 | + 84 | +rttable_file="/etc/iproute2/rt_tables" 85 | +check=`grep openthread ${rttable_file}` 86 | +if [[ ! $check ]]; then 87 | + echo "88 openthread" >> ${rttable_file} 88 | +fi 89 | +echo "done" 90 | + 91 | -- 92 | 2.34.1 93 | 94 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/otbr/otbr.bb: -------------------------------------------------------------------------------- 1 | PN = "otbr" 2 | SUMMARY = "OTBR on i.MX boards" 3 | DESCRIPTION = "OTBR applications" 4 | LICENSE = "BSD-3-Clause" 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=87109e44b2fda96a8991f27684a7349c" 6 | 7 | PATCHTOOL = "git" 8 | 9 | S = "${WORKDIR}/git" 10 | FILES:${PN} += "lib/systemd" 11 | FILES:${PN} += "usr/share" 12 | FILES:${PN} += "usr/lib" 13 | FILES:${PN} += "usr/sbin" 14 | 15 | DEPENDS += " jsoncpp avahi boost pkgconfig-native mdns libnetfilter-queue ipset libnftnl nftables protobuf-c protobuf protobuf-native " 16 | RDEPENDS:${PN} += " jsoncpp mdns radvd libnetfilter-queue ipset libnftnl nftables bash protobuf protobuf-c " 17 | 18 | inherit cmake 19 | SRC_URI = "gitsm://github.com/openthread/ot-br-posix.git;branch=main;protocol=https" 20 | 21 | SRC_URI += "file://0001-correct-otbr-reference-scripts-install-folder.patch" 22 | SRC_URI += "file://0002-copy-prebuilt-frontend-files-instead-of-build.patch" 23 | SRC_URI += "file://0003-Install-pskc-for-otbr-agent-credentials-generation.patch" 24 | SRC_URI += "file://0004-Add-service-otbr_fwcfg-to-config-the-firewall-policy.patch" 25 | SRC_URI += "file://0001-dbus-add-absl-support-for-higher-version-protobuf.patch" 26 | SRC_URI += "file://0001-build-fix-on-macOS-2269.patch" 27 | 28 | SRCREV = "45c847a6b47cef00c9e3d46786127ef87475437d" 29 | 30 | do_configure:prepend () { 31 | export REFERENCE_DEVICE=1 32 | export OTBRWEB_PREBUILT_FRONTEND=1 33 | } 34 | CXXFLAGAPPEND += "${@bb.utils.contains_any('MACHINE', " imx6ullevk ", ' -mfpu=neon -mfloat-abi=hard ', '', d)}" 35 | 36 | EXTRA_OECMAKE = "-GNinja -DOTBR_BORDER_ROUTING=ON -DOTBR_WEB=ON -DBUILD_TESTING=OFF -DOTBR_DBUS=ON -DOTBR_SRP_ADVERTISING_PROXY=ON -DOT_THREAD_VERSION=1.3 -DOTBR_INFRA_IF_NAME=eth0 -DOT_LOG_LEVEL_DYNAMIC=OFF -DOT_FULL_LOGS=ON -DOT_JOINER=ON -DOT_LOG_LEVEL=DEBG -DOPENTHREAD_CONFIG_BACKBONE_ROUTER_DUA_NDPROXYING_ENABLE=1 -DOPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE=1 -DOT_FIREWALL=ON -DOT_DUA=ON -DOTBR_DUA_ROUTING=ON -DOT_DHCP6_SERVER=ON -DOT_DHCP6_CLIENT=ON -DOTBR_BACKBONE_ROUTER=ON -DOTBR_MDNS="avahi" -DOTBR_ENABLE_MDNS_AVAHI=1 -DOTBR_TREL=ON -DOT_BACKBONE_ROUTER_MULTICAST_ROUTING=ON -DOT_COMMISSIONER=ON -DOT_COAP=ON -DOT_COAP_BLOCK=OFF -DOT_COAP_OBSERVE=ON -DOT_COAPS=ON -DOT_BORDER_ROUTER=ON -DOT_BORDER_AGENT=ON -DOTBR_BORDER_ROUTING_NAT64=ON -DOTBR_BORDER_AGENT=ON -DOT_DNS_CLIENT_SERVICE_DISCOVERY=ON -DOT_DNS_CLIENT=ON -DOT_ECDSA=ON -DOTBR_REST=ON -DOT_SRP_SERVER=ON -DOT_SRP_CLIENT=ON -DOTBR_DNSSD_DISCOVERY_PROXY=ON -DOT_REFERENCE_DEVICE=ON -DOT_DNSSD_SERVER=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS="${CXXFLAGS}"" -Wno-error=attributes ${CXXFLAGAPPEND}"" 37 | 38 | EXTRA_OECMAKE += "-DOT_POSIX_RCP_HDLC_BUS=ON" 39 | 40 | INSANE_SKIP:${PN} += "buildpaths" 41 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-otbr/packagegroup-nxp-otbr.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2024 NXP 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "Add packages for i.MX Matter baseline components" 5 | LICENSE = "MIT" 6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 7 | 8 | inherit packagegroup 9 | 10 | RDEPENDS:${PN} += " otbr tayga " 11 | RDEPENDS:${PN} += "${@bb.utils.contains_any('MACHINE', "imx8mmevk-matter imx8mnddr3levk-matter imx8mnevk-matter imx8mpevk-matter imx93evk-iwxxx-matter imx91evk-iwxxx-matter imx91qsb-iwxxx-matter", ' otbr-iwxxx-spi ', '', d)}" 12 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-systemd/systemd/files/0001-Patch-to-allow-creating-Address-and-Route-when-RA-is.patch: -------------------------------------------------------------------------------- 1 | From 5f33b50583ebf7e6d5db8ceefd60ada9867466b0 Mon Sep 17 00:00:00 2001 2 | From: Jean-Yves Salaun 3 | Date: Thu, 27 Feb 2025 23:00:16 -0800 4 | Subject: [PATCH 1/1] Patch to allow creating Address and Route when RA is 5 | received from the link-local interface 6 | 7 | --- 8 | src/libsystemd-network/sd-ndisc.c | 9 +++++++-- 9 | 1 file changed, 7 insertions(+), 2 deletions(-) 10 | 11 | Upstream-Status: Inappropriate [platform specific changes] 12 | 13 | diff --git a/src/libsystemd-network/sd-ndisc.c b/src/libsystemd-network/sd-ndisc.c 14 | index ca15f942f56..9ab9207da28 100644 15 | --- a/src/libsystemd-network/sd-ndisc.c 16 | +++ b/src/libsystemd-network/sd-ndisc.c 17 | @@ -355,8 +355,13 @@ static int ndisc_recv(sd_event_source *s, int fd, uint32_t revents, void *userda 18 | } 19 | 20 | if (in6_addr_equal(&packet->sender_address, &nd->link_local_addr)) { 21 | - log_ndisc(nd, "Received an ICMPv6 packet sent by the same interface, ignoring."); 22 | - return 0; 23 | + const char *sender, *link_local; 24 | + sender = IN6_ADDR_TO_STRING(&packet->sender_address); 25 | + link_local = IN6_ADDR_TO_STRING(&nd->link_local_addr); 26 | + log_ndisc(nd, "Received an ICMPv6 packet sent by the same interface, ignoring."); 27 | + log_ndisc(nd, "Patch: &packet->sender_address: %s &nd->link_local_addr: %s", strna(sender),strna(link_local)); 28 | + log_ndisc(nd, "Patch: DO NOT IGNORE THIS PACKETsss , do not return(0) here"); 29 | + //return 0; 30 | } 31 | 32 | r = icmp6_packet_get_type(packet); 33 | -- 34 | 2.34.1 35 | 36 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-systemd/systemd/systemd_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | SRC_URI += "file://0001-Patch-to-allow-creating-Address-and-Route-when-RA-is.patch" 4 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-tayga/tayga/files/0001-Add-missing-header-file.patch: -------------------------------------------------------------------------------- 1 | From 30ef3e1397c39422dae886662b47d984936a186c Mon Sep 17 00:00:00 2001 2 | From: Haoran Wang 3 | Date: Mon, 16 Dec 2024 10:58:15 +0800 4 | Subject: [PATCH] Add missing header file 5 | 6 | Added missing sys/uio.h header file to fix writev() missing issue. 7 | 8 | Upstream-Status: Inappropriate [platform specific changes] 9 | 10 | Signed-off-by: Haoran Wang 11 | --- 12 | tayga.h | 1 + 13 | 1 file changed, 1 insertion(+) 14 | 15 | diff --git a/tayga.h b/tayga.h 16 | index 732bc3d..ed529b1 100644 17 | --- a/tayga.h 18 | +++ b/tayga.h 19 | @@ -17,6 +17,7 @@ 20 | 21 | #include 22 | #include 23 | +#include 24 | #include 25 | #include 26 | #include 27 | -- 28 | 2.34.1 29 | 30 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-tayga/tayga/tayga.bb: -------------------------------------------------------------------------------- 1 | PN = "tayga" 2 | SUMMARY = "Tayga on i.MX boards" 3 | DESCRIPTION = "Tayga applications" 4 | LICENSE = "GPL-2.0-or-later" 5 | LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" 6 | 7 | SRC_URI = "git://github.com/openthread/tayga.git;branch=master;protocol=https" 8 | SRC_URI += "file://0001-Add-missing-header-file.patch" 9 | SRCREV = "0adcda4096f654318aca81a2b66c371cc0ac5d77" 10 | 11 | PATCHTOOL = "git" 12 | 13 | inherit autotools 14 | EXTRA_OEMAKE += 'CFLAGS+="-DHAVE_CONFIG_H"' 15 | 16 | S = "${WORKDIR}/git" 17 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-u-boot/u-boot/files/uboot-config/0001-imx91-11x11-evk-ffu-gpio-irq-dtb.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_DEFAULT_FDT_FILE="imx91-11x11-evk-ffu_gpio_irq.dtb" 2 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-u-boot/u-boot/files/uboot-config/0001-imx91-9X9-qsb-ffu-gpio-irq-dtb.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_DEFAULT_FDT_FILE="imx91-9x9-qsb-ffu_gpio_irq.dtb" 2 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-u-boot/u-boot/files/uboot-config/0001-imx93-11x11-evk-ffu-gpio-irq-dtb.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_DEFAULT_FDT_FILE="imx93-11x11-evk-ffu_gpio_irq.dtb" 2 | -------------------------------------------------------------------------------- /meta-nxp-otbr/recipes-u-boot/u-boot/u-boot-imx_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | SRC_URI += "${@bb.utils.contains_any('MACHINE', "imx93evk imx93evk-iwxxx-matter", 'file://uboot-config/0001-imx93-11x11-evk-ffu-gpio-irq-dtb.cfg', '', d)}" 4 | SRC_URI += "${@bb.utils.contains_any('MACHINE', "imx91evk imx91evk-iwxxx-matter", 'file://uboot-config/0001-imx91-11x11-evk-ffu-gpio-irq-dtb.cfg', '', d)}" 5 | SRC_URI += "${@bb.utils.contains_any('MACHINE', "imx91qsb-iwxxx-matter", 'file://uboot-config/0001-imx91-9X9-qsb-ffu-gpio-irq-dtb.cfg', '', d)}" 6 | 7 | -------------------------------------------------------------------------------- /meta-nxp-zigbee-rcp/README.md: -------------------------------------------------------------------------------- 1 | # Refer to [IWxxx Thread & Zigbee Dualpan solution in NXP i.MX Matter](../docs/guides/meta-nxp-connectivity-iwxxx-dualpan.md) 2 | -------------------------------------------------------------------------------- /meta-nxp-zigbee-rcp/conf/layer.conf: -------------------------------------------------------------------------------- 1 | BBPATH .= ":${LAYERDIR}" 2 | 3 | BBFILES += "${LAYERDIR}/*.bb \ 4 | ${LAYERDIR}/recipes-*/*/*.bb \ 5 | ${LAYERDIR}/recipes-*/*/*.bbappend" 6 | 7 | LAYERSERIES_COMPAT_nxp-zigbee-rcp = "scarthgap styhead" 8 | 9 | BBFILE_COLLECTIONS += "nxp-zigbee-rcp" 10 | BBFILE_PATTERN_nxp-zigbee-rcp = "^${LAYERDIR}/" 11 | BBFILE_PRIORITY_nxp-zigbee-rcp = "7" 12 | -------------------------------------------------------------------------------- /meta-nxp-zigbee-rcp/packagegroup-nxp-zigbee-rcp.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2024 NXP 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "Add packages for i.MX Matter Zigbee components" 5 | LICENSE = "MIT" 6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 7 | 8 | inherit packagegroup 9 | 10 | RDEPENDS:${PN} += "${@bb.utils.contains_any('MACHINE', "imx8mmevk-matter imx8mnddr3levk-matter imx8mnevk-matter imx8mpevk-matter imx93evk-iwxxx-matter ", ' zigbee-rcp-sdk zigbee-rcp-apps ', '', d)}" 11 | -------------------------------------------------------------------------------- /meta-nxp-zigbee-rcp/recipes-zigbee-rcp/recipes-zigbee-rcp-apps/files/zigbee-rcp-apps-IW612-Q1-25-R3.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-zigbee-rcp/recipes-zigbee-rcp/recipes-zigbee-rcp-apps/files/zigbee-rcp-apps-IW612-Q1-25-R3.tar -------------------------------------------------------------------------------- /meta-nxp-zigbee-rcp/recipes-zigbee-rcp/recipes-zigbee-rcp-apps/zigbee-rcp-apps.bb: -------------------------------------------------------------------------------- 1 | PN = "zigbee-rcp-apps" 2 | SUMMARY = "Zigbee RCP example applications on i.MX boards for IWxxx 3-radios on SPI" 3 | DESCRIPTION = "Zigbee RCP Applications" 4 | LICENSE = "CLOSED" 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=87109e44b2fda96a8991f27684a7349c" 6 | 7 | S = "${UNPACKDIR}" 8 | FILES:${PN} += "${bindir}" 9 | 10 | DEPENDS += " readline zigbee-rcp-sdk" 11 | RDEPENDS_${PN} += " readline " 12 | 13 | SRC_URI = "" 14 | # Zigbee RCP applications 15 | SRC_URI += "file://zigbee-rcp-apps-IW612-Q1-25-R3.tar" 16 | 17 | inherit pkgconfig cmake 18 | -------------------------------------------------------------------------------- /meta-nxp-zigbee-rcp/recipes-zigbee-rcp/recipes-zigbee-rcp-sdk/files/zigbee-rcp-sdk-IW612-Q1-25-R3.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/meta-nxp-zigbee-rcp/recipes-zigbee-rcp/recipes-zigbee-rcp-sdk/files/zigbee-rcp-sdk-IW612-Q1-25-R3.tar -------------------------------------------------------------------------------- /meta-nxp-zigbee-rcp/recipes-zigbee-rcp/recipes-zigbee-rcp-sdk/zigbee-rcp-sdk.bb: -------------------------------------------------------------------------------- 1 | PN = "zigbee-rcp-sdk" 2 | SUMMARY = "Zigbee RCP SDK on i.MX boards for IWxxx 3-radios on SPI" 3 | DESCRIPTION = "Zigbee RCP SDK" 4 | LICENSE = "CLOSED" 5 | #LIC_FILES_CHKSUM = "file://LICENSE;md5=87109e44b2fda96a8991f27684a7349c" 6 | 7 | S = "${UNPACKDIR}" 8 | FILES:${PN} += "usr/lib/systemd" 9 | PACKAGES = "${PN} ${PN}-dev ${PN}-dbg ${PN}-staticdev" 10 | 11 | SRC_URI = "" 12 | # Zigbee tarball 13 | SRC_URI += "file://zigbee-rcp-sdk-IW612-Q1-25-R3.tar" 14 | 15 | INSANE_SKIP:${PN} += "already-stripped" 16 | 17 | do_install() { 18 | install -d ${D}${libdir} 19 | install -m 0644 ${S}/libs/libzboss.a ${D}${libdir} 20 | install -m 0644 ${S}/libs/libzboss.ed.a ${D}${libdir} 21 | 22 | install -d ${D}${sbindir} 23 | install -m 0744 ${S}/bin/zb_mux ${D}${sbindir} 24 | install -m 0744 ${S}/services/usr/sbin/zb_app.sh ${D}${sbindir} 25 | install -m 0744 ${S}/services/usr/sbin/zb_config.sh ${D}${sbindir} 26 | install -m 0744 ${S}/services/usr/sbin/zb_mux.sh ${D}${sbindir} 27 | 28 | install -d ${D}${includedir} 29 | install -d ${D}${includedir}/ha 30 | install -d ${D}${includedir}/platform 31 | install -d ${D}${includedir}/zcl 32 | install -m 0644 ${S}/libs/zb_vendor.h ${D}${includedir} 33 | install -m 0644 ${S}/include/*.h ${D}${includedir} 34 | install -m 0644 ${S}/include/ha/*.h ${D}${includedir}/ha 35 | install -m 0644 ${S}/include/platform/*.h ${D}${includedir} 36 | install -m 0644 ${S}/include/zcl/*.h ${D}${includedir}/zcl 37 | 38 | install -d ${D}${sysconfdir} 39 | install -d ${D}${sysconfdir}/default 40 | install -m 0644 ${S}/services/etc/default/zb_app.env ${D}${sysconfdir}/default 41 | install -m 0644 ${S}/services/etc/default/zb_mux.env ${D}${sysconfdir}/default 42 | 43 | install -d ${D}${systemd_system_unitdir} 44 | install -m 0644 ${S}/services/usr/lib/systemd/system/zb_app.service ${D}${systemd_system_unitdir} 45 | install -m 0644 ${S}/services/usr/lib/systemd/system/zb_config.service ${D}${systemd_system_unitdir} 46 | install -m 0644 ${S}/services/usr/lib/systemd/system/zb_mux.service ${D}${systemd_system_unitdir} 47 | } 48 | -------------------------------------------------------------------------------- /tools/imx-matter-setup.sh: -------------------------------------------------------------------------------- 1 | if [ ! -n "$MACHINE" ]; then 2 | MACHINE=imx8mmevk 3 | fi 4 | echo "MACHINE = $MACHINE" 5 | 6 | EULA=$EULA DISTRO=$DISTRO MACHINE=$MACHINE . ./imx-setup-release.sh -b $@ 7 | 8 | sed '/meta-nxp-connectivity/d' "conf/bblayers.conf" > temp && mv temp "conf/bblayers.conf" 9 | 10 | echo "# layers for i.MX MATTER & OpenThread Border Router" >> conf/bblayers.conf 11 | echo "BBLAYERS += \"\${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-matter-baseline\"" >> conf/bblayers.conf 12 | echo "BBLAYERS += \"\${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-matter-advanced\"" >> conf/bblayers.conf 13 | echo "BBLAYERS += \"\${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-openthread\"" >> conf/bblayers.conf 14 | echo "BBLAYERS += \"\${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-otbr\"" >> conf/bblayers.conf 15 | echo "BBLAYERS += \"\${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-connectivity-examples\"" >> conf/bblayers.conf 16 | echo "BBLAYERS += \"\${BSPDIR}/sources/meta-nxp-connectivity/meta-nxp-zigbee-rcp\"" >> conf/bblayers.conf 17 | 18 | 19 | echo "" 20 | echo "Now you can use below command to generate your image:" 21 | echo " $ bitbake imx-image-core" 22 | echo " or " 23 | echo " $ bitbake imx-image-multimedia" 24 | echo "=======================================================" 25 | echo "If you want to generate SDK, please use:" 26 | echo " $ bitbake imx-image-core -c populate_sdk" 27 | echo "" 28 | -------------------------------------------------------------------------------- /tools/test_attestation/cd.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/tools/test_attestation/cd.bin -------------------------------------------------------------------------------- /tools/test_attestation/dac.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/tools/test_attestation/dac.bin -------------------------------------------------------------------------------- /tools/test_attestation/dac_private_key.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/tools/test_attestation/dac_private_key.bin -------------------------------------------------------------------------------- /tools/test_attestation/pai.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-imx/meta-nxp-connectivity/a76a610b81b13163241365435d63eb521c3dea42/tools/test_attestation/pai.bin --------------------------------------------------------------------------------