PWM in nRF54LM20B DK

Hello Team,

I am trying to configure pwm channel to a gpio in nRF54LM20B DK. I am not able to generate output using pwm channel.
I have understood that here dts nodes are different compared to the board which I have previously worked on nRF9151 and nRF5340 Dk's.

Please help me with any example which uses any Output pin as PWM channel. 

Thanks and regards,

Vinay

Parents Reply
  • I have checked nrf54lm20dk_nrf54lm20a-common.dtsi file, its saying 

    "

    pwmleds {
    compatible = "pwm-leds";

    /*
    * PWM signal can be exposed on GPIO pin only within same domain.
    * There is only one domain which contains both PWM and GPIO:
    * PWM20/21/22 and GPIO Port P1/P3.
    * Only LEDs connected to P1/P3 can work with PWM, for example LED1.
    */
    pwm_led1: pwm_led_1 {
    pwms = <&pwm20 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
    };
    };"

    I believe, there will be no major changes between nrf54lm20b and nrf54lm20a.

    is there any restrictions for pwm configurations. Like we cant configure any gpio to pwm output channel?

    Please let me know.

    Thanks and regards

    Vinay

Children
No Data
Related