Skip to contentSkip to conversation

ARM: dts: imx6: phytec-mira: phyBOARD-Mira fixes

PATCH Applied Primoz Fiser 2 participants 4 messages Oct 2 – Oct 22

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 cover ARM: dts: imx6: phytec-mira: phyBOARD-Mira fixes

Two small fixes for the PHYTEC phyBOARD-Mira-i.MX6 boards:

- Since commit 888e5fad9b78 ("Input: stmpe - add axis inversion and swapping capability") landed, the touchscreen axis inversion these boards need can be described in devicetree instead of userspace (2/2).
- Fix uart3 CTS/RTS pinmuxing since pins were swapped.

Link to v2: https://lore.kernel.org/all/[email protected]/

Changes in v2:
- Drop patch #1 from v1
- Add new patch #2 (CTS/RTS swap fix)

Changes in v3:
- Add Fixes tag to patch #2

Primoz Fiser (2):
ARM: dts: imx6qdl-phytec-mira: Add touchscreen-inverted properties
ARM: dts: imx6qdl-phytec-mira: Fix uart3 CTS/RTS pinmuxing

 arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v3 1/2 ARM: dts: imx6qdl-phytec-mira: Add touchscreen-inverted properties

Since commit 888e5fad9b78 ("Input: stmpe - add axis inversion and swapping capability") we can handle touchscreen x- and y-axis inversion directly in the kernel instead of user-space on phyBOARD-Mira-i.MX6.

---
Changes in v3:
- no changes

 arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi +2 -0
index a3c2811e9c6f..a7d6af162731 100644
@@ -164,6 +164,8 @@ stmpe: touchctrl@44 {
 
 		touchscreen {
 			compatible = "st,stmpe-ts";
+			touchscreen-inverted-x;
+			touchscreen-inverted-y;
 			st,sample-time = <4>;
 			st,mod-12b = <1>;
 			st,ref-sel = <0>;
Signature · 1 line
2.34.1
#2 lore raw

PATCH v3 2/2 ARM: dts: imx6qdl-phytec-mira: Fix uart3 CTS/RTS pinmuxing

In reply to Primoz Fiser

The pin muxing of the UART3 CTS and RTS pins on the phyBOARD-Mira is wrong. They are swapped. Pad EIM_EB3 has to be muxed as RTS and pad EIM_D23 as CTS.

Fixes 800d595151bb ("ARM: dts: imx6: Add initial support for phyBOARD-Mira")

---
Changes in v3:
- add Fixes tag

 arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi +2 -2
index a7d6af162731..8b2b4ed76328 100644
@@ -374,8 +374,8 @@ MX6QDL_PAD_EIM_D27__UART2_RX_DATA	0x1b0b1
 
 	pinctrl_uart3: uart3grp {
 		fsl,pins = <
-			MX6QDL_PAD_EIM_EB3__UART3_CTS_B		0x1b0b1
-			MX6QDL_PAD_EIM_D23__UART3_RTS_B		0x1b0b1
+			MX6QDL_PAD_EIM_EB3__UART3_RTS_B		0x1b0b1
+			MX6QDL_PAD_EIM_D23__UART3_CTS_B		0x1b0b1
 			MX6QDL_PAD_EIM_D24__UART3_TX_DATA	0x1b0b1
 			MX6QDL_PAD_EIM_D25__UART3_RX_DATA	0x1b0b1
 		>;
Signature · 1 line
2.34.1
#3 lore raw
In reply to Primoz Fiser

From: Frank Li <[email protected]>

Quoted 8 lines · Primoz Fiser

Two small fixes for the PHYTEC phyBOARD-Mira-i.MX6 boards:

- Since commit 888e5fad9b78 ("Input: stmpe - add axis inversion and swapping capability") landed, the touchscreen axis inversion these boards need can be described in devicetree instead of userspace (2/2).
- Fix uart3 CTS/RTS pinmuxing since pins were swapped.

[...]

Applied to imx/dt-intend (will appear to linux-next after v7.4-rc1), thanks!

[1/2] ARM: dts: imx6qdl-phytec-mira: Add touchscreen-inverted properties

      commit: d8e221cde0d5f166bf32a280c60609e95de327ff
[2/2] ARM: dts: imx6qdl-phytec-mira: Fix uart3 CTS/RTS pinmuxing
      commit: 14706ff23ee6174de7a95d127fd613137014d0c8

Best regards,
--
Frank Li <[email protected]>