IMX93 gpio pin register setup value

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IMX93 gpio pin register setup value

跳至解决方案
257 次查看
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 解答
246 次查看
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the SW_PAD_CTL_PAD_CCM_CLKO1

joanxie_0-1717141340090.png

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
174 次查看
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 项奖励
回复
247 次查看
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the SW_PAD_CTL_PAD_CCM_CLKO1

joanxie_0-1717141340090.png

 

0 项奖励
回复