How to add PWM-Output to Device-Tree for custom MPC5123-Board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add PWM-Output to Device-Tree for custom MPC5123-Board

Jump to solution
1,137 Views
steffendoster
Contributor IV

Hi,

I want to use the GPT5 module on PIN AE3 on a custom MPC123-Board as a PWM.
I already routed the Pin to the GPT5_4 Output in Bootloader. My Devicetree doesn't reconfigure the Pins, so I think this should be OK.

But how can I configure the GPT-Module in Device-Tree?

Which Driver (compatible-String) does it use?

I already tried something like: (copied and modified from a MPC5200-Board)

gpt5: timer@B50 {
compatible = "fsl,mpc5121-gpt";
reg = <0xB50 0x10>;
/*interrupts = <1 14 0>;*/
};

in the SOC-Section. The timer does show up in /proc/device-tree/ but seem to be not connected to a driver.

Is there a driver anyway?

Is there any help out there? Pleeeeaaase!

Labels (1)
0 Kudos
1 Solution
759 Views
Pavel
NXP Employee
NXP Employee

NXP LTIB Linux BSP for the MPC5121ADS board does not have GPT PWM driver.

You should develop application or your own driver for GPT PWM using.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
760 Views
Pavel
NXP Employee
NXP Employee

NXP LTIB Linux BSP for the MPC5121ADS board does not have GPT PWM driver.

You should develop application or your own driver for GPT PWM using.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos