Skip to contentSkip to conversation

arm64: dts: imx8qm-apalis: add pwm used by the backlight

PATCH Applied [email protected] 2 participants 2 messages Oct 31, 2025 – Nov 16, 2025

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

PATCH 1/1 arm64: dts: imx8qm-apalis: add pwm used by the backlight

From: Max Krummenacher <[email protected]>

Add pwm node used by the backlight output pin BKL1_PWM and reference it from the pwm-backlight node.

---

 arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi       | 5 ++++-
 arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi | 5 ++++-
 arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi | 5 ++++-
 arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi       | 7 +++++--
 4 files changed, 17 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi +4 -1
index 311d4950793c..06790255a764 100644
@@ -109,7 +109,10 @@ &pciea {
 	status = "okay";
 };
 
-/* TODO: Apalis BKL1_PWM */
+/* Apalis BKL1_PWM */
+&pwm_lvds1 {
+	status = "okay";
+};
 
 /* Apalis DAP1 */
 &sai1 {
arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi +4 -1
index 3d8731504ce1..7022de46b8bf 100644
@@ -196,7 +196,10 @@ &pciea {
 	status = "okay";
 };
 
-/* TODO: Apalis BKL1_PWM */
+/* Apalis BKL1_PWM */
+&pwm_lvds1 {
+	status = "okay";
+};
 
 /* Apalis DAP1 */
 &sai1 {
arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi +4 -1
index 106e802a68ba..12732ed7f811 100644
@@ -245,7 +245,10 @@ &pciea {
 	status = "okay";
 };
 
-/* TODO: Apalis BKL1_PWM */
+/* Apalis BKL1_PWM */
+&pwm_lvds1 {
+	status = "okay";
+};
 
 /* Apalis DAP1 */
 &sai1 {
arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi +5 -2
index 86d018f470c1..66261c0286d6 100644
@@ -18,7 +18,7 @@ backlight: backlight {
 		brightness-levels = <0 45 63 88 119 158 203 255>;
 		default-brightness-level = <4>;
 		enable-gpios = <&lsio_gpio1 4 GPIO_ACTIVE_HIGH>; /* Apalis BKL1_ON */
-		/* TODO: hook-up to Apalis BKL1_PWM */
+		pwms = <&pwm_lvds1 0 6666667 PWM_POLARITY_INVERTED>;
 		status = "disabled";
 	};
 
@@ -799,7 +799,10 @@ &phyx2_lpcg {
 		 <&hsio_refa_clk>, <&hsio_per_clk>;
 };
 
-/* TODO: Apalis BKL1_PWM */
+&pwm_lvds1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_pwm_bkl>;
+};
 
 /* Apalis DAP1 */
 &sai1 {
Signature · 1 line
2.42.0