Using nrfx drivers with Zephyr device tree

I'd like to use playback feature of PWM. There is NRFX function for that: nrfx_pwm_complex_playback(). This function, like other NRFX drivers, needs appropriate instance structure, here it's nrfx_pwm_t. The instance variable can be created with NRFX_PWM_INSTANCE. But now we have NCS and device trees. I already have PWM in device tree and I use it with functions such as pwm_set_dt(). How can I use nrfx_pwm_complex_playback() now? I don't see any way to initialize nrfx_pwm_t variable using pwm_dt_spec variable. Should I use NCS device tree and old NRFX device instance at the same time? It would give messy code.

Related