Is it possible to configure MCLK frequency in I2S devicetree node

Jason Bens

Hi all,


Exactly as the subject line says, is it possible to configure the master clock frequency of an I2S peripheral in the device tree?  I’m using an nRF5340.  I can see that there’s a clock-source property in nordic,nrf-i2s, which I can set to ‘ACLK’, and then configure the frequency of that clock in the nordic,nrf-clock node, but I’m stumped after this.  It seems like there’s no place to set the prescaler value .mck_setup for nrfx_i2s_config_t.  Is there any way to control this property as well from devicetree, or is this all better suited as a kconfig option.




  • Jason