Skip to contentSkip to conversation

arm64: dts: imx8-apalis: Add PCIe and SATA support

PATCH Applied [email protected] 2 participants 2 messages Apr 16, 2025 – Apr 25, 2025

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

PATCH 1/1 arm64: dts: imx8-apalis: Add PCIe and SATA support

From: Max Krummenacher <[email protected]>

The needed drivers to support PCIe and SATA for i.MX 8QM have been added.
Configure them for the Apalis iMX8 SoM.

The pciea and pcieb blocks each get a single PCIe lane, pciea is available on the carrier boards while pcieb is connected to the on module Wi-Fi/BT module.
The SATA lane is available on the carrier boards.

---

 .../boot/dts/freescale/imx8-apalis-eval.dtsi  | 10 ++-
 .../dts/freescale/imx8-apalis-ixora-v1.1.dtsi | 10 ++-
 .../dts/freescale/imx8-apalis-ixora-v1.2.dtsi | 10 ++-
 .../boot/dts/freescale/imx8-apalis-v1.1.dtsi  | 70 ++++++++++++-------
 .../boot/dts/freescale/imx8qm-apalis.dtsi     | 10 ++-
 5 files changed, 74 insertions(+), 36 deletions(-)
arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi +8 -2
index dc127298715b..311d4950793c 100644
@@ -104,7 +104,10 @@ &lsio_pwm3 {
 	status = "okay";
 };
 
-/* TODO: Apalis PCIE1 */
+/* Apalis PCIE1 */
+&pciea {
+	status = "okay";
+};
 
 /* TODO: Apalis BKL1_PWM */
 
@@ -121,7 +124,10 @@ &sai5_lpcg {
 	status = "okay";
 };
 
-/* TODO: Apalis SATA1 */
+/* Apalis SATA1 */
+&sata {
+	status = "okay";
+};
 
 /* Apalis SPDIF1 */
 &spdif0 {
arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi +8 -2
index d4a1ad528f65..3d8731504ce1 100644
@@ -191,7 +191,10 @@ &lsio_pwm3 {
 	status = "okay";
 };
 
-/* TODO: Apalis PCIE1 */
+/* Apalis PCIE1 */
+&pciea {
+	status = "okay";
+};
 
 /* TODO: Apalis BKL1_PWM */
 
@@ -208,7 +211,10 @@ &sai5_lpcg {
 	status = "okay";
 };
 
-/* TODO: Apalis SATA1 */
+/* Apalis SATA1 */
+&sata {
+	status = "okay";
+};
 
 /* Apalis SPDIF1 */
 &spdif0 {
arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi +8 -2
index 5e132c83e1b2..106e802a68ba 100644
@@ -240,7 +240,10 @@ &lsio_pwm3 {
 	status = "okay";
 };
 
-/* TODO: Apalis PCIE1 */
+/* Apalis PCIE1 */
+&pciea {
+	status = "okay";
+};
 
 /* TODO: Apalis BKL1_PWM */
 
@@ -257,7 +260,10 @@ &sai5_lpcg {
 	status = "okay";
 };
 
-/* TODO: Apalis SATA1 */
+/* Apalis SATA1 */
+&sata {
+	status = "okay";
+};
 
 /* Apalis SPDIF1 */
 &spdif0 {
arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi +46 -24

107 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8qm-apalis.dtsi +4 -6
index c18f57039f6e..f97feee52c81 100644
@@ -22,6 +22,10 @@ &fec1 {
 	phy-mode = "rgmii-rxid";
 };
 
+&hsio_refa_clk {
+	enable-gpios = <&lsio_gpio4 27 GPIO_ACTIVE_HIGH>;
+};
+
 /* TODO: Apalis HDMI1 */
 
 /* Apalis I2C2 (DDC) */
@@ -188,12 +192,6 @@ &lsio_gpio4 {
 			  "MXM3_291",
 			  "MXM3_289",
 			  "MXM3_287";
-
-	/* Enable pcie root / sata ref clock unconditionally */
-	pcie-sata-hog {
-		gpios = <27 GPIO_ACTIVE_HIGH>;
-	};
-
 };
 
 &lsio_gpio5 {
Signature · 1 line
2.42.0
Applied
#1 lore raw
Quoted 6 lines · On Wed, Apr 16, 2025 at 05:13:41PM +0200, [email protected] wrote:

From: Max Krummenacher <[email protected]>

The needed drivers to support PCIe and SATA for i.MX 8QM have been added.
Configure them for the Apalis iMX8 SoM.

Quoted 6 lines

The pciea and pcieb blocks each get a single PCIe lane, pciea is available on the carrier boards while pcieb is connected to the on module Wi-Fi/BT module.
The SATA lane is available on the carrier boards.

Applied, thanks!