Skip to contentSkip to conversation

ARM: mxs: Add backlight support for M28EVK

PATCH New Marek Vasut 1 participant 1 message Jul 11, 2013

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

PATCH 1/1 ARM: mxs: Add backlight support for M28EVK

This patch adds backlight support for M28EVK.

---
 arch/arm/boot/dts/imx28-m28evk.dts |   13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/imx28-m28evk.dts +13 -0
index 44d9da5..0d322a2 100644
@@ -235,6 +235,12 @@
 				pinctrl-0 = <&auart2_2pins_b>;
 				status = "okay";
 			};
+
+			pwm: pwm at 80064000 {
+				pinctrl-names = "default";
+				pinctrl-0 = <&pwm4_pins_a>;
+				status = "okay";
+			};
 		};
 	};
 
@@ -270,6 +276,13 @@
 		};
 	};
 
+	backlight {
+		compatible = "pwm-backlight";
+		pwms = <&pwm 4 5000000>;
+		brightness-levels = <0 4 8 16 32 64 128 255>;
+		default-brightness-level = <6>;
+	};
+
 	regulators {
 		compatible = "simple-bus";
 
Signature · 1 line
1.7.10.4