diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2017-04-27 10:37:41 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2017-05-22 08:54:49 -0400 |
commit | b33be336702175334031f558951374b694bc4cb1 (patch) | |
tree | 6898aab294939417b12d09974fa35f05891fe2fa | |
parent | eaef33106799e3e58984479d85c80ddf94f9159d (diff) |
arm64: dts: salvator-x: Add panel backlight support
The panel backlight is controlled through a GPIO and a PWM channel.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
[simon: apply to salvator-x.dtsi instead of r8a7795-salvator-x.dts]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm64/boot/dts/renesas/salvator-x.dtsi | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/salvator-x.dtsi b/arch/arm64/boot/dts/renesas/salvator-x.dtsi index d5eb022d247c..7240bcd75918 100644 --- a/arch/arm64/boot/dts/renesas/salvator-x.dtsi +++ b/arch/arm64/boot/dts/renesas/salvator-x.dtsi | |||
@@ -58,6 +58,16 @@ | |||
58 | clock-frequency = <11289600>; | 58 | clock-frequency = <11289600>; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | backlight: backlight { | ||
62 | compatible = "pwm-backlight"; | ||
63 | pwms = <&pwm1 0 50000>; | ||
64 | |||
65 | brightness-levels = <256 128 64 16 8 4 0>; | ||
66 | default-brightness-level = <6>; | ||
67 | |||
68 | enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; | ||
69 | }; | ||
70 | |||
61 | reg_1p8v: regulator0 { | 71 | reg_1p8v: regulator0 { |
62 | compatible = "regulator-fixed"; | 72 | compatible = "regulator-fixed"; |
63 | regulator-name = "fixed-1.8V"; | 73 | regulator-name = "fixed-1.8V"; |
@@ -358,6 +368,11 @@ | |||
358 | function = "i2c2"; | 368 | function = "i2c2"; |
359 | }; | 369 | }; |
360 | 370 | ||
371 | pwm1_pins: pwm { | ||
372 | groups = "pwm1_a"; | ||
373 | function = "pwm1"; | ||
374 | }; | ||
375 | |||
361 | scif1_pins: scif1 { | 376 | scif1_pins: scif1 { |
362 | groups = "scif1_data_a", "scif1_ctrl"; | 377 | groups = "scif1_data_a", "scif1_ctrl"; |
363 | function = "scif1"; | 378 | function = "scif1"; |
@@ -443,6 +458,13 @@ | |||
443 | }; | 458 | }; |
444 | }; | 459 | }; |
445 | 460 | ||
461 | &pwm1 { | ||
462 | pinctrl-0 = <&pwm1_pins>; | ||
463 | pinctrl-names = "default"; | ||
464 | |||
465 | status = "okay"; | ||
466 | }; | ||
467 | |||
446 | &rcar_sound { | 468 | &rcar_sound { |
447 | pinctrl-0 = <&sound_pins &sound_clk_pins>; | 469 | pinctrl-0 = <&sound_pins &sound_clk_pins>; |
448 | pinctrl-names = "default"; | 470 | pinctrl-names = "default"; |