Skip to contentSkip to conversation

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

PATCH Superseded Primoz Fiser 2 participants 5 messages Sep 30

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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

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

- The i.MX6DL NAND variant was still described as the LC (Low Cost) board, missing CAN/PCIe and capped at 100Mbps Ethernet, while every other in-tree phyBOARD-Mira .dts is the FF (Full Featured) variant. Sync it to match its siblings (1/2).
- 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).

Primoz Fiser (2):
ARM: dts: imx6dl-phytec-mira-nand: Enable all peripherals
ARM: dts: imx6qdl-phytec-mira: Add touchscreen-inverted properties

 arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts | 8 ++++++--
 arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi        | 2 ++
 2 files changed, 8 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 ARM: dts: imx6dl-phytec-mira-nand: Enable all peripherals

The current imx6dl-phytec-mira-rdk-nand.dts describes the LC (Low Cost) variant of the board. However all phyBOARD-Mira boards in-tree are actually the FF (Full Featured) variants. Now, sync the i.MX6 DL NAND variant device-tree and enable all peripherals (CAN, PCIe and no speed limit on Ethernet PHY) to enable all RDK board features.

---
 arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts +6 -2
index 8ec27080ca1e..c2780ecb5936 100644
@@ -22,8 +22,8 @@ chosen {
 	};
 };
 
-&ethphy {
-	max-speed = <100>;
+&can1 {
+	status = "okay";
 };
 
 &fec {
@@ -50,6 +50,10 @@ &i2c_rtc {
 	status = "okay";
 };
 
+&pcie {
+	status = "okay";
+};
+
 &uart3 {
 	status = "okay";
 };
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH 1/2] ARM: dts: imx6dl-phytec-mira-nand: Enable all peripherals

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] dts: imx6dl-phytec-mira: missing m25p80 SPI NOR flash enablement --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dts: imx6dl-phytec-mira: missing m25p80 SPI NOR flash enablement --

commit 1324c8cd36593c2b5134e1d0d30d31d809ac1bc1
Author: Primoz Fiser <[email protected]>

ARM: dts: imx6dl-phytec-mira-nand: Enable all peripherals

This commit syncs the i.MX6 DL NAND variant device tree to match the Full Featured (FF) variants. It enables peripherals including CAN and PCIe, and removes the speed limit on the Ethernet PHY.

Quoted 4 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts +0 -0
index d906a7f05aaad..1f827ad2ff5ee 100644

[ ... ]

arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts &i2c_rtc { · line 56

Quoted 8 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts +4 -0
@@ -50,6 +50,10 @@ &i2c_rtc {
 	status = "okay";
 };
 
+&pcie {
+	status = "okay";
+};
+

[Severity: Medium]
Did this omit the SPI NOR flash enablement?

The commit message states the intent to sync the i.MX6 DL NAND variant to match the Full Featured (FF) boards by enabling all peripherals.

The FF Quad variant (imx6q-phytec-mira-rdk-nand.dts) enables the SPI NOR flash by including &m25p80 { status = "okay"; };. While &can1, &pcie, and the unrestricted &ethphy are enabled, the &m25p80 node is missing here.

Does this leave the board missing its SPI flash feature and partially unsynchronized compared to the other FF variants?

Quoted 3 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts +0 -0
 &uart3 {
 	status = "okay";
 };
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#3 lore raw

Re: [PATCH 1/2] ARM: dts: imx6dl-phytec-mira-nand: Enable all peripherals

Hi,

Quoted 35 lines · On 9/30/26 12:40, [email protected] wrote:

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dts: imx6dl-phytec-mira: missing m25p80 SPI NOR flash enablement --

commit 1324c8cd36593c2b5134e1d0d30d31d809ac1bc1
Author: Primoz Fiser <[email protected]>

ARM: dts: imx6dl-phytec-mira-nand: Enable all peripherals

This commit syncs the i.MX6 DL NAND variant device tree to match the Full Featured (FF) variants. It enables peripherals including CAN and PCIe, and removes the speed limit on the Ethernet PHY.

Quoted 4 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts +0 -0
index d906a7f05aaad..1f827ad2ff5ee 100644

[ ... ]

arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts &i2c_rtc { · line 56

Quoted 8 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts +4 -0
@@ -50,6 +50,10 @@ &i2c_rtc {
 	status = "okay";
 };
 
+&pcie {
+	status = "okay";
+};
+

[Severity: Medium]
Did this omit the SPI NOR flash enablement?

The commit message states the intent to sync the i.MX6 DL NAND variant to match the Full Featured (FF) boards by enabling all peripherals.

Quoted 6 lines

The FF Quad variant (imx6q-phytec-mira-rdk-nand.dts) enables the SPI NOR flash by including &m25p80 { status = "okay"; };. While &can1, &pcie, and the unrestricted &ethphy are enabled, the &m25p80 node is missing here.

Does this leave the board missing its SPI flash feature and partially unsynchronized compared to the other FF variants?

I re-checked and this patch is actually wrong.

There was never i.MX6DL som with NAND + FF set board.

I will drop this patch in v2.

BR,
Primoz

Quoted 5 lines
Quoted 4 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts +0 -0
 &uart3 {
 	status = "okay";
 };
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]
#4 lore raw

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

In reply to Primoz Fiser

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.

---
 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