How to toggle pinmuxed pins in SDK 2.0 without using GPIOs

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

How to toggle pinmuxed pins in SDK 2.0 without using GPIOs

1,069 Views
pro-supportengi
NXP Employee
NXP Employee

Need specific details on how to toggle a pinmux pins in SDK 2.0. The question is, how do customers access pinmuxed pins and toggle them in Linux using SDK 2.0?

How does one toggle pinmuxed pins directly from Linux SDK 2.0 WITHOUT using GPIOs. 

Please avoid googling general information, requesting specific detailed instructions on how to toggle pinmuxed pins in the SDK 2.0 software without using GPIOs.  Direct access to pinmuxed pins to toggle them high/low through the Linux software using SDK 2.0.  No specific pin, pinmuxed pins in general.  Also, please don't send to the reference manual on addresses.  I am specifically asking for instructions (detailed instructions) on how to toggle the pins using the SDK 2.0 Linux OS.

Labels (1)
Tags (1)
0 Kudos
5 Replies

807 Views
Pavel
NXP Employee
NXP Employee

If UART pins is needed use POSIX possibilities of serial driver.

Look at the following page for setting/getting modem control signals (RTS, CTS and so on except RXD and TXD):

http://digilander.libero.it/robang/rubrica/serial.htm


Have a great day,
Pavel Chubakov

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

0 Kudos

807 Views
pro-supportengi
NXP Employee
NXP Employee

Please provide driver and code section in the serial driver that that illustrates using the pins and that can be modified to toggle the pins. 

If these pins are assigned to UART, RTS, CTS and so on (except RXD and TXD) can be toggled using serial driver:

What driver is needed for these pins toggling? (which driver and which section of code in the driver illustrates where/how to toggle the pins?)

0 Kudos

807 Views
Pavel
NXP Employee
NXP Employee

If these pins are not assigned to UART, these are GPIO pins or LPUART pins or FTM pins of the LS1043a. See the Table 3-3 Reference Manual.

If these pins are GPIO, these pins can be togged using sysfs.

If these pins are assigned to UART, RTS, CTS and so on (except RXD and TXD) can be toggled using serial driver:

What driver is needed for these pins toggling?

NXP SDK supports sysfs for GPIO using. See attached screenshot.


Have a great day,
Pavel Chubakov

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

0 Kudos

807 Views
pro-supportengi
NXP Employee
NXP Employee

Again, I'm not asking how to assign the pins.  I already know they have to be assigned by the RCW, so that was not the question.

The question is how can I through software toggle the UART pins without using GPIOs and after any necessary assignment via the RCW is done?

You are not saying that pinmux pins cannot be toggled through software are you because that is mistaken? 

For example, after assigning UART2 pins to GPIO using RCW, one can toggle the GPIOs using sysfs.  I wan to do the same thing using the pin muxed pins without using GPIOs?

Someone else should likely provide an answer to this question since Pavel doesn't understand the question or doesn't have an adequate answer.

How can one toggle pin muxed pins in the software AFTER the pins have been assigned by the RCW and without using GPIOs?

One can assign the UART pins to GPIOs and toggle them through SYSFS.  How can one avoid having to do this and toggle the pin muxed pins without having to assign them to GPIOs?

If toggling the pins without using GPIOs is not supported, please explain what that means and please don't say because they have to assigned using the RCW.  Assigning the pins using RCW is NOT toggling the pins high/low.

0 Kudos

807 Views
Pavel
NXP Employee
NXP Employee

The LS1043a UART pins can be assigned to UART or GPIO using RCW only. There is no possibility for assigning the LS1043A UART pins from Linux or u-boot. It is hardware limitation of the LS1043A.


Have a great day,
Pavel Chubakov

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

0 Kudos