AnsweredAssumed Answered

JTAG in device tree configuration

Question asked by jaime pena on Jul 3, 2017
Latest reply on Jul 3, 2017 by jaime pena

I have a imx6dp with a custom board and I want to modifie the control pad configuration of jtag in the device tree.

 

I define the variables in this way because there is no definition for jtag.

 

#define MX6QDL_PAD_JTAG_TMS__SJC_TMS 0x0 0x678 0x0000 0 0
#define MX6QDL_PAD_JTAG_MOD__SJC_MOD 0x0 0x67C 0x0000 0 0
#define MX6QDL_PAD_JTAG_TMS__SJC_TRSTB 0x0 0x680 0x0000 0 0
#define MX6QDL_PAD_JTAG_TDI__SJC_TDI 0x0 0x684 0x0000 0 0
#define MX6QDL_PAD_JTAG_TCK__SJC_TCK 0x0 0x688 0x0000 0 0
#define MX6QDL_PAD_JTAG_TDO__SJC_TDO 0x0 0x68C 0x0000 0 0

 

pinctrl_jtag : jtaggrp{
fsl,pins = <
MX6QDL_PAD_JTAG_TMS__SJC_TMS 0x07060
MX6QDL_PAD_JTAG_MOD__SJC_MOD 0x07060
MX6QDL_PAD_JTAG_TMS__SJC_TRSTB 0x07060
MX6QDL_PAD_JTAG_TDI__SJC_TDI 0x07060
MX6QDL_PAD_JTAG_TCK__SJC_TCK 0x07060
MX6QDL_PAD_JTAG_TDO__SJC_TDO 0x090B1
>;
};

 

My question is how to configure the device in the device tree file  to use the pinctrl for the jtag. There is no definition of this device imx6qdl.dtsi file neither with the dtb of the sabreauto and it uses jtag.

 

Thanks,

Outcomes