Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
The syntax error you’re encountering in your custom device tree file after upgrading from Yocto BSP 2.8 to BSP 7 could be due to changes in the device tree syntax or pin definitions between these BSP versions. Here are some steps to help you troubleshoot and resolve the issue:
Check for Syntax Changes: Review the release notes or documentation for BSP 7 to identify any changes in device tree syntax or structure that might affect your custom file. Syntax rules can evolve between BSP versions, leading to errors if older syntax is used.
Verify Pin Definitions: The error seems to be related to the pin definition MX6QDL_PAD_EIM_D17__GPIO3_IO17. Ensure that this pin and its associated control settings (PAD_CTRL_HYS_PU) are still valid in BSP 7. Pin definitions and their configurations can change between BSP versions.
Compare Device Tree Files: Compare your custom device tree file with the default device tree files provided in BSP 7. Look for differences in how pins and peripherals are defined and configured.
Use Device Tree Compiler (DTC): Use the Device Tree Compiler to validate your device tree file. The DTC can provide more detailed error messages that might help pinpoint the exact issue.
Consult BSP 7 Documentation: Review the BSP 7 documentation for any specific notes on device tree changes or migration guides that might highlight necessary adjustments for custom device trees.
By following these steps, you should be able to identify and correct the syntax error in your device tree file. If the issue persists, consider simplifying the device tree to isolate the problematic section or consult the BSP’s changelog for more detailed information on changes affecting device trees.
Best regards,
Toradex AI Assistant.
Please, also check if these links can help you solve your problem:
Since you are upgrading an old BSP version to the latest, you might face some breaking changes.
About your error, it is probably caused by PAD_CTRL_HYS_PU, since we don’t use it anymore. Instead, we use hexadecimal values for the pin setting. I would recommend you check a newer device tree for any potential errors like that one. For example, imx6dl-colibri-aster.dts or imx6qdl-colibri.dtsi.
Feel free to ask if you face any issues or doubts.
Thanks! By replacing PAD_CTRL_HYS_PU by a hexadecimal number I managed to get a successful build besides some other changes in the DT. In the process, I would like to perform some comparisions with BSP 2.8 but stumbled upon the following issue
As my colleague said in the topic you sent, BSP 2.8 is in EOL and we don’t support it anymore. I recommend you try to build the BSP 7 and ask us if you face any issues or doubts.
Since the main issue of this topic (the parse error) is solved, can I mark my answer as a solution? We always ask to open different topics for different issues.
Remember, you’re always welcome to open another topic in the future.
Besides the pin settings. I had to make following changes to make the build succeed. The extcon_usbc_det node seems to be defined in imx6qdl-colibri.dtsi, and regulators does not exist anymore and is flattened in reg_usb_host_vbus: regulator-usb-host-vbus. finally pinctrl_pwm_a_cif_d7 is not defined anymore