Skip to content

Commit 1c63dd1

Browse files
konradybcioandersson
authored andcommitted
arm64: dts: qcom: sc8280xp-x13s: Add camera activity LED
Disappointigly, the camera activity LED is implemented in software. Hook it up as a gpio-led and (until we have camera *and* a "camera on" LED trigger) configure it as a panic indicator. Signed-off-by: Konrad Dybcio <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 7868ed0 commit 1c63dd1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h>
1313
#include <dt-bindings/input/gpio-keys.h>
1414
#include <dt-bindings/input/input.h>
15+
#include <dt-bindings/leds/common.h>
1516
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
1617

1718
#include "sc8280xp.dtsi"
@@ -78,6 +79,21 @@
7879
};
7980
};
8081

82+
leds {
83+
compatible = "gpio-leds";
84+
85+
led-camera-indicator {
86+
label = "white:camera-indicator";
87+
function = LED_FUNCTION_INDICATOR;
88+
color = <LED_COLOR_ID_WHITE>;
89+
gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
90+
linux,default-trigger = "none";
91+
default-state = "off";
92+
/* Reuse as a panic indicator until we get a "camera on" trigger */
93+
panic-indicator;
94+
};
95+
};
96+
8197
pmic-glink {
8298
compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink";
8399

0 commit comments

Comments
 (0)