summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts
diff options
context:
space:
mode:
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>2021-09-09 15:38:21 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-09-28 01:47:57 +0300
commit946c9a2cf8b02a21275e83f0d75826856c223eae (patch)
treebe6f1a7e9afe13e58b23583ec810c121fe78ba0a /arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts
parent122d2c5f31b6e668a9c01bd023949b0f39954c76 (diff)
downloadlinux-946c9a2cf8b02a21275e83f0d75826856c223eae.tar.xz
arm64: dts: qcom: msm8998-fxtec-pro1: Add physical keyboard leds
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
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts b/arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts
index dc566567f42f..d44250f09965 100644
--- a/arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts
+++ b/arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts
@@ -78,6 +78,28 @@
};
};
+ 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>;