OSDN Git Service

arm64: dts: qcom: msm8998-fxtec-pro1: Add physical keyboard leds
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Thu, 9 Sep 2021 12:38:21 +0000 (14:38 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 27 Sep 2021 22:47:57 +0000 (17:47 -0500)
Add configuration for the physical keyboard LEDs, including the
caps lock indicator and keyboard backlight.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210909123823.368199-2-angelogioacchino.delregno@somainline.org
arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts

index dc56656..d44250f 100644 (file)
                };
        };
 
+       keyboard-leds {
+               compatible = "gpio-leds";
+
+               backlight {
+                       color = <LED_COLOR_ID_WHITE>;
+                       default-state = "off";
+                       function = LED_FUNCTION_KBD_BACKLIGHT;
+                       gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>;
+                       label = "white:kbd_backlight";
+                       retain-state-suspended;
+               };
+
+               caps-lock {
+                       color = <LED_COLOR_ID_YELLOW>;
+                       default-state = "off";
+                       function = LED_FUNCTION_CAPSLOCK;
+                       gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
+                       label = "yellow:capslock";
+                       linux,default-trigger = "kbd-capslock";
+               };
+       };
+
        reserved-memory {
                cont_splash_mem: memory@9d400000 {
                        reg = <0x0 0x9d400000 0x0 0x2000000>;