Skip to contentSkip to conversation

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

PATCH Superseded Primoz Fiser 2 participants 5 messages Oct 1

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 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 v1: https://lore.kernel.org/all/[email protected]/

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

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 v2 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 v2:
- 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 v2 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.

---
Changes in v2:
- new patch

 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
#4 lore raw

Hi Fabio,

Quoted 7 lines · Fabio Estevam

Hi Primoz,

Quoted 2 lines · Primoz Fiser

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

Shouldn't they have a Fixes tag, then?

For patch #1 it think it is pointless because those properties didn't exist until aforementioned commit 888e5fad9b78 ("Input: stmpe - add axis inversion and swapping capability"). So it is an addition not a fix as commit message suggests.

For patch #2 I could add:

Fixes 800d595151bb ("ARM: dts: imx6: Add initial support for

phyBOARD-Mira")

in v3 if you want?

BR,
Primoz

Signature · 9 lines
Primoz Fiser
phone: +386-41-390-545
email: [email protected]
--
Norik systems d.o.o.
Your embedded software partner
Slovenia, EU
phone: +386-41-540-545
email: [email protected]