linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: shmobile: armadillo-reference: Add PWM backlight node to DT
@ 2013-09-11 11:51 Laurent Pinchart
  2013-09-25  5:01 ` Simon Horman
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Laurent Pinchart @ 2013-09-11 11:51 UTC (permalink / raw)
  To: linux-sh

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
 .../boot/dts/r8a7740-armadillo800eva-reference.dts    | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
index c638e4a..801442b 100644
--- a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
+++ b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
@@ -11,6 +11,7 @@
 /dts-v1/;
 /include/ "r8a7740.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pwm/pwm.h>
 
 / {
 	model = "armadillo 800 eva reference";
@@ -49,6 +50,15 @@
 			gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
 		};
 	};
+
+	backlight {
+		compatible = "pwm-backlight";
+		pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
+		brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
+		default-brightness-level = <9>;
+		pinctrl-0 = <&backlight_pins>;
+		pinctrl-names = "default";
+	};
 };
 
 &i2c0 {
@@ -76,4 +86,13 @@
 		renesas,groups = "intc_irq10";
 		renesas,function = "intc";
 	};
+
+	backlight_pins: backlight {
+		renesas,groups = "tpu0_to2_1";
+		renesas,function = "tpu0";
+	};
+};
+
+&tpu {
+	status = "okay";
 };
-- 
Regards,

Laurent Pinchart


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-04-16  1:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 11:51 [PATCH] ARM: shmobile: armadillo-reference: Add PWM backlight node to DT Laurent Pinchart
2013-09-25  5:01 ` Simon Horman
2014-03-31 15:38 ` [PATCH] ARM: shmobile: armadillo-reference dts: enable RTC Ulrich Hecht
2014-04-03  9:42   ` Geert Uytterhoeven
2014-04-03  0:11 ` Simon Horman
2014-04-03  8:30 ` Ulrich Hecht
2014-04-03  9:40 ` Geert Uytterhoeven
2014-04-04 10:06 ` Geert Uytterhoeven
2014-04-08  0:50 ` Simon Horman
2014-04-15 12:51 ` [PATCH] ARM: shmobile: armadillo-reference dts: Seiko Instruments, Inc is "sii" Geert Uytterhoeven
2014-04-15 14:26   ` Ulrich Hecht
2014-04-16  1:04     ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).