Audio | Mallow board | Codec WM8904

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

Thank you for reaching out with your question. It sounds like you’re on the right track with your project, and I’d be happy to help you troubleshoot the syntax error you’re encountering in your device tree overlay.

The error message indicates a syntax issue at line 28 of your device tree source file. Here are some steps you can take to resolve this:

  1. Check Syntax and Structure:

    • Ensure all braces {} and semicolons ; are correctly placed. A missing or misplaced brace or semicolon can lead to syntax errors.
    • Verify that all node and property names are correctly spelled and formatted.
  2. Review the Error Line:

    • Focus on the specific line mentioned in the error message (line 28). Compare it with similar lines in a working device tree overlay to spot any discrepancies.
  3. Validate Node References:

    • Make sure all references to nodes, such as &codec_dai and &wm8904_1a, are correctly defined and match the expected names in the device tree.
    • Check that the sound-dai property correctly references the codec node.
  4. Use Correct Compatible Strings:

    • Ensure the compatible strings, like “wlf,wm8904”, are accurate and match the expected values for your hardware.
  5. Consult Reference Designs:

    • Since your design is based on the Dahlia board, compare your overlay with the reference device tree files for the Dahlia and Verdin boards to ensure consistency.
  6. Test Incrementally:

    • If the error persists, try simplifying your device tree overlay by removing sections and testing incrementally to isolate the problematic part.

By carefully reviewing these aspects, you should be able to identify and correct the error. If you continue to experience issues, consider checking other parts of the overlay for similar syntax problems. This approach will help ensure that your WM8904 codec is correctly configured on the Mallow board.

I hope this helps, and I wish you success with your project!

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Deployment of custom audio codec driver.