IMX93 gpio pin register setup value

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

IMX93 gpio pin register setup value

ソリューションへジャンプ
379件の閲覧回数
AlanWen
Contributor III

Board: IMX93 EVK

I'm trying to port a pin as GPIO and setup the register value according to IMX93RM document,

but I didn't see any control bit definition about PUE (pull up/down)

AlanWen_1-1717135269107.png

 

where can I find the register value (red text) definition as the source code setup value as below ?

pinctrl_usdhc3_wlan: usdhc3wlangrp {
    fsl,pins = <
        MX93_PAD_CCM_CLKO1__GPIO3_IO26 0x31e
    >;
};
タグ(3)
0 件の賞賛
返信
1 解決策
368件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the SW_PAD_CTL_PAD_CCM_CLKO1

joanxie_0-1717141340090.png

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
296件の閲覧回数
Sanjay_Pandey1
Contributor II

This is bit confusing, actually there is two register.

  • SW_MUX_CTL_PAD_CCM_CLKO1 SW MUX Control Register (SW_MUX_CTL_PAD_CCM_CLKO1)
  • SW_PAD_CTL_PAD_CCM_CLKO1 SW PAD Control Register (SW_PAD_CTL_PAD_CCM_CLKO1)

 

SW_MUX_CTL_PAD_CCM_CLKO1 is used for selecting the function of the pin e.g. UART,GPIO,SPI,I2C , where as SW_PAD_CTL_PAD_CCM_CLKO1 is used to configure other properties of the pin for example Pull Up, Pull Down if the signal to pin is GPIO. 

 

SW_PAD_CTL_PAD_CCM_CLKO1 is defined in .dts file where as SW_MUX_CTL_PAD_CCM_CLKO1 is already handed in imx93-pinfunc.h file, which is in same folder of dts. 

#define MX93_PAD_CCM_CLKO1__CCMSRCGPCMIX_CLKO1 0x0088 0x0238 0x0000 0x0 0x0
#define MX93_PAD_CCM_CLKO1__FLEXIO1_FLEXIO26 0x0088 0x0238 0x0000 0x4 0x0
#define MX93_PAD_CCM_CLKO1__GPIO3_IO26 0x0088 0x0238 0x0000 0x5 0x0

These three macro defines three alternate option bellow is the description of each value of the tuples.

/*
* The pin function ID is a tuple of
* <mux_reg conf_reg input_reg mux_mode input_val>
*/

タグ(1)
0 件の賞賛
返信
369件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the SW_PAD_CTL_PAD_CCM_CLKO1

joanxie_0-1717141340090.png

 

0 件の賞賛
返信