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
4,005 Views
AlanWen
Contributor IV

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
Reply
1 Solution
3,993 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
Reply
2 Replies
3,921 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
Reply
3,994 Views
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the SW_PAD_CTL_PAD_CCM_CLKO1

joanxie_0-1717141340090.png

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1878641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX93%20gpio%20pin%20register%20setup%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EBoard%3A%20IMX93%20EVK%3C%2FP%3E%3CP%3EI'm%20trying%20to%20port%20a%20pin%20as%20GPIO%20and%20setup%20the%20register%20value%20according%20to%20IMX93RM%20document%2C%3C%2FP%3E%3CP%3Ebut%20I%20didn't%20see%20any%20control%20bit%20definition%20about%20PUE%20(pull%20up%2Fdown)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AlanWen_1-1717135269107.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22AlanWen_1-1717135269107.png%22%20style%3D%22width%3A%20373px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281868iC303737064447D21%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22AlanWen_1-1717135269107.png%22%20alt%3D%22AlanWen_1-1717135269107.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ewhere%20can%20I%20find%20the%20register%20value%26nbsp%3B(red%20text)%20definition%20as%20the%20source%20code%20setup%20value%20as%20below%20%3F%3C%2FP%3E%3CBLOCKQUOTE%3E%3CDIV%3Epinctrl_usdhc3_wlan%3A%20usdhc3wlangrp%20%7B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20fsl%2Cpins%20%3D%20%26lt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20MX93_PAD_CCM_CLKO1__GPIO3_IO26%20%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3E0x31e%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26gt%3B%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1887193%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMX93%20gpio%20pin%20register%20setup%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1887193%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20is%20bit%20confusing%2C%20actually%20there%20is%20two%20register.%3C%2FP%3E%3CUL%3E%3CLI%3ESW_MUX_CTL_PAD_CCM_CLKO1%20SW%20MUX%20Control%20Register%20(SW_MUX_CTL_PAD_CCM_CLKO1)%3C%2FLI%3E%3CLI%3ESW_PAD_CTL_PAD_CCM_CLKO1%20SW%20PAD%20Control%20Register%20(SW_PAD_CTL_PAD_CCM_CLKO1)%3C%2FLI%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CP%3ESW_MUX_CTL_PAD_CCM_CLKO1%20is%20used%20for%20selecting%20the%20function%20of%20the%20pin%20e.g.%20UART%2CGPIO%2CSPI%2CI2C%20%2C%20where%20as%26nbsp%3BSW_PAD_CTL_PAD_CCM_CLKO1%20is%20used%20to%20configure%20other%20properties%20of%20the%20pin%20for%20example%20Pull%20Up%2C%20Pull%20Down%20if%20the%20signal%20to%20pin%20is%20GPIO.%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ESW_PAD_CTL_PAD_CCM_CLKO1%20is%20defined%20in%20.dts%20file%20where%20as%26nbsp%3BSW_MUX_CTL_PAD_CCM_CLKO1%20is%20already%20handed%20in%20imx93-pinfunc.h%20file%2C%20which%20is%20in%20same%20folder%20of%20dts.%26nbsp%3B%3C%2FP%3E%3CP%3E%23define%20MX93_PAD_CCM_CLKO1__CCMSRCGPCMIX_CLKO1%200x0088%200x0238%200x0000%200x0%200x0%3CBR%20%2F%3E%23define%20MX93_PAD_CCM_CLKO1__FLEXIO1_FLEXIO26%200x0088%200x0238%200x0000%200x4%200x0%3CBR%20%2F%3E%23define%20MX93_PAD_CCM_CLKO1__GPIO3_IO26%200x0088%200x0238%200x0000%20%3CSTRONG%3E0x5%3C%2FSTRONG%3E%200x0%3C%2FP%3E%3CP%3EThese%20three%20macro%20defines%20three%20alternate%20option%20bellow%20is%20the%20description%20of%20each%20value%20of%20the%20tuples.%3C%2FP%3E%3CP%3E%2F*%3CBR%20%2F%3E*%20The%20pin%20function%20ID%20is%20a%20tuple%20of%3CBR%20%2F%3E*%20%3CMUX_REG%20conf_reg%3D%22%22%20input_reg%3D%22%22%20mux_mode%3D%22%22%20input_val%3D%22%22%3E%3CBR%20%2F%3E*%2F%3C%2FMUX_REG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878759%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMX93%20gpio%20pin%20register%20setup%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878759%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Epls%20refer%20to%20the%20SW_PAD_CTL_PAD_CCM_CLKO1%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22joanxie_0-1717141340090.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22joanxie_0-1717141340090.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281908i25493E1960E9C13B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22joanxie_0-1717141340090.png%22%20alt%3D%22joanxie_0-1717141340090.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E