Generating 8MHz clock signal using compatible = "pwm-clock" node on Zephyr

Hi guys,

I'm working on a project with a custom board around nrf52832 chip and I'm trying to generate an 8MHz clock signal using the compatible "pwm-clock" on Zephyr.

I found little information on how to get this working but so far I've this on the dt overlay:

tdc_clk_in: tdc_clk_in {
status = "okay";
compatible = "pwm-clock";
#clock-cells = <1>;
pwms = <&pwm0 0 PWM_HZ(8000000) PWM_POLARITY_NORMAL>;
};
&pwm0 {
status = "okay";
pinctrl-0 = <&pwm0_default>;
pinctrl-1 = <&pwm0_sleep>;
pinctrl-names = "default", "sleep";
};
&pinctrl {

pwm0_default: pwm0_default {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 27)>; // TDC_CLK_8MHZ
};
};

pwm0_sleep: pwm0_sleep {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 27)>; // TDC_CLK_8MHZ
low-power-enable;
};
};
};
It's not working since I see static 3v3 on the P0.27.
What should I do to make it work?
Thank you in advance,
Best regards,
Fernando Fontes
Related