summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm64/boot/dts/qcom/glymur-lenovo-yoga-slim7x.dts15
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/qcom/glymur-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/glymur-lenovo-yoga-slim7x.dts
index ecc8c34fb983..769f195c99d9 100644
--- a/arch/arm64/boot/dts/qcom/glymur-lenovo-yoga-slim7x.dts
+++ b/arch/arm64/boot/dts/qcom/glymur-lenovo-yoga-slim7x.dts
@@ -51,7 +51,7 @@
gpio-keys {
compatible = "gpio-keys";
- pinctrl-0 = <&hall_int_n_default>;
+ pinctrl-0 = <&hall_int_n_default>, <&cam_privacy_default>;
pinctrl-names = "default";
switch-lid {
@@ -62,6 +62,13 @@
wakeup-source;
wakeup-event-action = <EV_ACT_DEASSERTED>;
};
+
+ switch-camera-privacy {
+ label = "Camera privacy switch";
+ gpios = <&tlmm 99 GPIO_ACTIVE_LOW>;
+ linux,input-type = <EV_SW>;
+ linux,code = <SW_CAMERA_LENS_COVER>;
+ };
};
leds {
@@ -1012,6 +1019,12 @@
bias-disable;
};
+ cam_privacy_default: cam-privacy-default-state {
+ pins = "gpio99";
+ function = "gpio";
+ bias-pull-up;
+ };
+
cam_indicator_en: cam-indicator-en-state {
pins = "gpio111";
function = "gpio";