Skip to contentSkip to conversation

arm64: dts: imx8x-colibri: add additional functionality

PATCH In review [email protected] 4 participants 7 messages Oct 31, 2025 – Dec 31, 2025

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

cover arm64: dts: imx8x-colibri: add additional functionality

From: Max Krummenacher <[email protected]>

Provide a pwm-backlight.
Provide the 32kHz Wi-Fi clock used during low-power operation. Configure CMA from the device tree.

Max Krummenacher (1):
arm64: dts: colibri-imx8x: Add wi-fi 32kHz clock

Philippe Schenker (2):
arm64: dts: colibri-imx8x: Add backlight
arm64: dts: colibri-imx8x: Add cma memory

 .../boot/dts/freescale/imx8x-colibri.dtsi     | 29 ++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)
Signature · 1 line
2.42.0
#1 lore raw

PATCH 1/3 arm64: dts: colibri-imx8x: Add backlight

From: Philippe Schenker <[email protected]>

Add a backlight node to colibri-imx8x. The node can be enabled from an overlay once display output is implemented.

---

 arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +14 -0
index 8e9e841cc828..318fe4db1b64 100644
@@ -3,7 +3,21 @@
  * Copyright 2019 Toradex
  */
 
+#include "dt-bindings/pwm/pwm.h"
+
 / {
+	backlight: backlight {
+		compatible = "pwm-backlight";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_gpio_bl_on>;
+		brightness-levels = <0 45 63 88 119 158 203 255>;
+		default-brightness-level = <4>;
+		enable-gpios = <&lsio_gpio3 12 GPIO_ACTIVE_HIGH>; /* Colibri BL_ON */
+		power-supply = <&reg_module_3v3>;
+		pwms = <&adma_pwm 0 6666667 PWM_POLARITY_INVERTED>;
+		status = "disabled";
+	};
+
 	chosen {
 		stdout-path = &lpuart3;
 	};
Signature · 1 line
2.42.0
#2 lore raw

PATCH 2/3 arm64: dts: colibri-imx8x: Add wi-fi 32kHz clock

In reply to [email protected]

From: Max Krummenacher <[email protected]>

The Wi-Fi module requires a 32kHz clock to support Wi-Fi/BT low power operation.
Setting the pinmuxing option on the connected pin to 32kHz is all needed to generated the signal.

---

 arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +1 -1
index 318fe4db1b64..32bca4c6f37e 100644
@@ -490,7 +490,7 @@ &mu1_m0 {
 /* On-module PCIe for Wi-Fi */
 &pcieb {
 	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_pcieb>;
+	pinctrl-0 = <&pinctrl_pcieb>, <&pinctrl_wifi>;
 	phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>;
 	phy-names = "pcie-phy";
 	reset-gpios = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>;
Signature · 1 line
2.42.0
#4 lore raw

PATCH 3/3 arm64: dts: colibri-imx8x: Add cma memory

In reply to [email protected]

From: Philippe Schenker <[email protected]>

Add CMA in device tree and set its size to 416MiB for all Colibri iMX8X.
The size is tuned to be enough to play full HD video using gst-play and to fit in the SKU with the lowest amount of RAM (1GB).

---

 arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +13 -0
index 32bca4c6f37e..d4bf30d91d69 100644
@@ -86,6 +86,19 @@ reg_usbh_vbus: regulator-usbh-vbus {
 		regulator-name = "usbh_vbus";
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		linux,cma {
+			compatible = "shared-dma-pool";
+			linux,cma-default;
+			reusable;
+			size = <0 0x1a000000>;
+		};
+	};
+
 	sound-card {
 		compatible = "simple-audio-card";
 		simple-audio-card,bitclock-master = <&dailink_master>;
Signature · 1 line
2.42.0
maintainer
#3 lore raw

Re: [PATCH v1 2/3] arm64: dts: colibri-imx8x: Add wi-fi 32kHz clock

In reply to [email protected]
Quoted 4 lines · On Fri, Oct 31, 2025 at 01:49:42PM +0100, [email protected] wrote:

From: Max Krummenacher <[email protected]>

The Wi-Fi module requires a 32kHz clock to support Wi-Fi/BT low power operation.

Need extra space line between paragraph.

Frank

Quoted 25 lines

Setting the pinmuxing option on the connected pin to 32kHz is all needed to generated the signal.

---

 arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +1 -2
index 318fe4db1b64..32bca4c6f37e 100644
@@ -490,7 +490,7 @@ &mu1_m0 {
 /* On-module PCIe for Wi-Fi */
 &pcieb {
 	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_pcieb>;
+	pinctrl-0 = <&pinctrl_pcieb>, <&pinctrl_wifi>;
 	phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>;
 	phy-names = "pcie-phy";
 	reset-gpios = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>;
--

2.42.0

#5 lore raw
In reply to [email protected]

Hello Shawn,

Quoted 3 lines · On Fri, Oct 31, 2025 at 01:49:40PM +0100, [email protected] wrote:

Provide a pwm-backlight.
Provide the 32kHz Wi-Fi clock used during low-power operation. Configure CMA from the device tree.

This series was not applied, any concern? Anything to change?

Thanks,
Francesco

#6 lore raw
Quoted 8 lines · Francesco Dolcini

Hello Shawn,

Quoted 3 lines · On Fri, Oct 31, 2025 at 01:49:40PM +0100, [email protected] wrote:

Provide a pwm-backlight.
Provide the 32kHz Wi-Fi clock used during low-power operation. Configure CMA from the device tree.

This series was not applied, any concern? Anything to change?

Sorry for missing it. Applied, thanks!

Shawn