Skip to content

Commit 7e64201

Browse files
fschrempfgregkh
authored andcommitted
arm64: dts: imx8mp-kontron: Fix touch reset configuration on DL devices
[ Upstream commit 058c534 ] The reset signal needs a pullup, but there is no hardware pullup. As a workaround, enable the internal pullup to fix the touchscreen. As this deviates from the default generic GPIO settings in the OSM devicetree, add a new node for the touch pinctrl and redefine the generic gpio1 pinctrl. Fixes: 946ab10 ("arm64: dts: Add support for Kontron OSM-S i.MX8MP SoM and BL carrier board") Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a5f56ff commit 7e64201

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtso

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
touchscreen@5d {
7878
compatible = "goodix,gt928";
7979
reg = <0x5d>;
80+
pinctrl-names = "default";
81+
pinctrl-0 = <&pinctrl_touch>;
8082
interrupt-parent = <&gpio1>;
8183
interrupts = <6 8>;
8284
irq-gpios = <&gpio1 6 0>;
@@ -98,6 +100,16 @@
98100
status = "okay";
99101
};
100102

103+
/* redefine to remove touch controller GPIOs */
104+
&pinctrl_gpio1 {
105+
fsl,pins = <
106+
MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x19 /* GPIO_A_0 */
107+
MX8MP_IOMUXC_GPIO1_IO01__GPIO1_IO01 0x19 /* GPIO_A_1 */
108+
MX8MP_IOMUXC_GPIO1_IO05__GPIO1_IO05 0x19 /* GPIO_A_2 */
109+
MX8MP_IOMUXC_GPIO1_IO08__GPIO1_IO08 0x19 /* GPIO_A_5 */
110+
>;
111+
};
112+
101113
&pwm1 {
102114
status = "okay";
103115
};
@@ -108,4 +120,11 @@
108120
MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28 0x19
109121
>;
110122
};
123+
124+
pinctrl_touch: touchgrp {
125+
fsl,pins = <
126+
MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 0x19
127+
MX8MP_IOMUXC_GPIO1_IO07__GPIO1_IO07 0x150
128+
>;
129+
};
111130
};

0 commit comments

Comments
 (0)