IMX93 gpio pin register setup value

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

IMX93 gpio pin register setup value

Jump to solution
168 Views
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
    >;
};
Tags (3)
0 Kudos
1 Solution
157 Views
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the SW_PAD_CTL_PAD_CCM_CLKO1

joanxie_0-1717141340090.png

 

View solution in original post

0 Kudos
2 Replies
85 Views
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>
*/

Tags (1)
0 Kudos
158 Views
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the SW_PAD_CTL_PAD_CCM_CLKO1

joanxie_0-1717141340090.png

 

0 Kudos