Converting a data line to GPIO during run-time

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Converting a data line to GPIO during run-time

931件の閲覧回数
aabitria_
Contributor I

Hello,

Is it practically feasible to turn a data line (e.g. certain UART TX and RX as well as SD2 CLK, CMD, and D0-D3 lines) to GPIO lines that can be tri-stated?  The goal is to put those pins to tristate/hi impedance which I think can be done by converting them to GPIO.  I do know that these data lines' configuration are set in the device tree like its MUX function, pullups, etc, and that configuration is carried out when the kernel is initialized.  Those data lines are being used for the entire session of the device and I'm told they have to be tristated just before turning off.  I'm using Android 7.1 in an iMX6DL processor.

Hoping for a response.  Thank you.

Alvin

タグ(4)
0 件の賞賛
3 返答(返信)

915件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Hello,

 

There is no pad setting to set the pin as tri-state.

For the details of PAD setting, please refer to the Reference Manual and search the "IOMUXC_SW_PAD_CTL_PAD".

0 件の賞賛

901件の閲覧回数
aabitria_
Contributor I

Hello @jimmychan  

Thanks for the reply.  I think the part about tri-state is now known.  Just turn the GPIO into input, that's what I found from some NXP questions.

However, the question of how to turn a data line (e.g. certain UART TX and RX as well as SD2 CLK, CMD, and D0-D3 lines) initialized using device tree settings to GPIO lines still remains.  Is this possible in Linux or Android?

 

0 件の賞賛

889件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport
0 件の賞賛