PAD Mux in u-boot and kernel

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

PAD Mux in u-boot and kernel

跳至解决方案
1,266 次查看
rans
Senior Contributor I

Hello,

I see there are pad mux in u-boot board file, and also in kernel device tree files.

Both seems to be about the same.

So, Why is it that both are required ? Why can't u-boot pad also keep on when moving to kernel ?

I am afraid that there might be some differences between both.

Is it that CONFIG_PINMUX shall disable the override of mux in kernel ?

Thank you,

Ran

1 解答
971 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Ran

u-boot pad configs can keep on when moving to kernel using dts settings

described in linux/Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt:

Bits used for CONFIG:
NO_PAD_CTL(1 << 31): indicate this pin does not need config.

linux-imx.git - i.MX Linux Kernel 

Since uboot and kernel may be used with other os&bootladers, so seems both pad mux 

are used.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

1 回复
972 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Ran

u-boot pad configs can keep on when moving to kernel using dts settings

described in linux/Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt:

Bits used for CONFIG:
NO_PAD_CTL(1 << 31): indicate this pin does not need config.

linux-imx.git - i.MX Linux Kernel 

Since uboot and kernel may be used with other os&bootladers, so seems both pad mux 

are used.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------