lkml.org 
[lkml]   [2022]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 7/8] arm64: dts: mediatek: cherry: Enable keyboard PWM backlight
Date
Add a pwm-leds node to enable the PWM controlled keyboard backlight.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi
index ca9955a97f8f..9086a440a995 100644
--- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi
@@ -4,6 +4,7 @@
*/

#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
#include "mt8195.dtsi"
#include "mt6359.dtsi"

@@ -31,6 +32,18 @@ dmic_codec: dmic-codec {
wakeup-delay-ms = <50>;
};

+ led-controller {
+ compatible = "pwm-leds";
+
+ keyboard_backlight: keyboard-backlight {
+ default-state = "off";
+ function = LED_FUNCTION_KBD_BACKLIGHT;
+ label = "cros_ec::kbd_backlight";
+ max-brightness = <1023>;
+ pwms = <&cros_ec_pwm 3>;
+ };
+ };
+
memory@40000000 {
device_type = "memory";
reg = <0 0x40000000 0 0x80000000>;
--
2.35.1
\
 
 \ /
  Last update: 2022-07-21 15:44    [W:0.043 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site