1
0
Fork 0

ARM: dts: zero-sugar: fix touch pinctrl settings

i.MX7 has a completely different bit field layout for IOMUXC_SW_PAD_CTL
register comparing to i.MX6.  The current setting for GPIO1_IO14 and
GPIO1_IO13 look like the values for i.MX6, while i.MX7 has only the
following bit fields.

  [6:5] PS (Pull Select)
  [4]   PE (Pull Enable)
  [3]   HYS (Hyst. Enable)
  [2]   SRE (Slew Rate Enable)
  [1:0] DSE (Drive Strength Enable)

Use 47k pull-up for TOUCH_INT input, disable pull for TOUCH_RESET
output, and keep other bits as the default.

While at it, update the comment for these two pins to use the name from
board schematics.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
zero-colors
Shawn Guo 2021-06-11 14:37:47 +08:00
parent 7ff7c310d3
commit 95b91308ff
1 changed files with 4 additions and 4 deletions

View File

@ -755,10 +755,10 @@
pinctrl_touch: touchgrp {
fsl,pins = <
/* CYTTSP interrupt */
MX7D_PAD_GPIO1_IO14__GPIO1_IO14 0x17000
/* CYTTSP reset */
MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x110b0
/* TOUCH_INT */
MX7D_PAD_GPIO1_IO14__GPIO1_IO14 0x54
/* TOUCH_RESET */
MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x4
>;
};