AnsweredAssumed Answered

imx7d pin conflict in devicetree

Question asked by Atakan Akbulut on Sep 27, 2018
Latest reply on Sep 27, 2018 by igorpadykov

Using Nand (MTDXX) and i2c touchscreen (tsc2004) is conflict . How to fix this problem. tsc2004 is not working when enabled nand in devicetree

 

input: 30370000.snvs:snvs-powerkey as /devices/soc0/soc/30000000.aips-bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
imx7d-pinctrl 30330000.iomuxc: pin MX7D_PAD_SAI1_RX_DATA already requested by 33002000.gpmi-nand; cannot claim for 0-004b --> i2c adress
imx7d-pinctrl 30330000.iomuxc: pin-128 (0-004b) status -22
imx7d-pinctrl 30330000.iomuxc: could not request pin 128 (MX7D_PAD_SAI1_RX_DATA) from group i2c1tsc2004grp  on device 30330000.iomuxc


touch@4b {
compatible = "ti,tsc2004";
reg = <0x4b>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1_tsc2004>;
interrupts-extended = <&gpio6 12 IRQ_TYPE_EDGE_RISING>;
wakeup-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;

touchscreen-fuzz-x = <4>;
touchscreen-fuzz-y = <7>;
touchscreen-fuzz-pressure = <2>;
touchscreen-size-x = <800>;
touchscreen-size-y = <480>;
touchscreen-max-pressure = <1024>;

ti,x-plate-ohms = <280>;
ti,esd-recovery-timeout-ms = <6000>;
};

pinctrl_i2c1_tsc2004: i2c1tsc2004grp {
fsl,pins = <
MX7D_PAD_SAI1_RX_DATA__GPIO6_IO12 0x7d
>;
};

 

&gpmi {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpmi_nand_1>;
status = "okay";
nand-on-flash-bbt;
};

pinctrl_gpmi_nand_1: gpmi-nand-1 {
fsl,pins = <
MX7D_PAD_SD3_CLK__NAND_CLE 0x71
MX7D_PAD_SD3_CMD__NAND_ALE 0x71
MX7D_PAD_SAI1_MCLK__NAND_WP_B 0x71
MX7D_PAD_SAI1_TX_BCLK__NAND_CE0_B 0x71
MX7D_PAD_SAI1_RX_DATA__NAND_CE1_B 0x71
MX7D_PAD_SAI1_TX_DATA__NAND_READY_B 0x74
MX7D_PAD_SD3_STROBE__NAND_RE_B 0x71
MX7D_PAD_SD3_RESET_B__NAND_WE_B 0x71
MX7D_PAD_SD3_DATA0__NAND_DATA00 0x71
MX7D_PAD_SD3_DATA1__NAND_DATA01 0x71
MX7D_PAD_SD3_DATA2__NAND_DATA02 0x71
MX7D_PAD_SD3_DATA3__NAND_DATA03 0x71
MX7D_PAD_SD3_DATA4__NAND_DATA04 0x71
MX7D_PAD_SD3_DATA5__NAND_DATA05 0x71
MX7D_PAD_SD3_DATA6__NAND_DATA06 0x71
MX7D_PAD_SD3_DATA7__NAND_DATA07 0x71
>;
};

Outcomes