For our application we have a Yocto OS on iMX8 that runs some high level applications then we also have a more critical application that runs in the co-processor (cortex-m7).
Currently we have:
We would like to integrate the content of pin_mux.c in our main .dts (based on the example generated by MCUExpresso Config Tools).
But the question is:
For example in our cortex-m7 code, we would like to replace this:
GPIO_PinWrite(GPIO3, 23U, 1U);
By something like this:
GPIO_PinWrite(gpio_port_dts_value("S2LP_CS"), gpio_pin_dts_value("S2LP_CS"), 1U);
Like this, our code in cortex-m7 will be based on DTS/DTB informations and we should have only one file (the DTS) to adapt our applications to the target board.
I know that nordic made this kind of stuffs in Zephyr, that's why I had this idea.