From 376edf6d0f9165c4515564c8ecc1d8fefb28dea6 Mon Sep 17 00:00:00 2001 From: Igor Belwon Date: Mon, 30 Dec 2024 23:50:07 +0100 Subject: [PATCH] dts: msm8974: Add support for BlackBerry Passport Add support for the BlackBerry Passport (wolverine) Signed-off-by: Igor Belwon --- Documentation/devices.md | 1 + .../msm8974/msm8974-blackberry-wolverine.dts | 35 +++++++++++++++++++ lk2nd/device/dts/msm8974/rules.mk | 1 + 3 files changed, 37 insertions(+) create mode 100644 lk2nd/device/dts/msm8974/msm8974-blackberry-wolverine.dts diff --git a/Documentation/devices.md b/Documentation/devices.md index ecc945285..e8332dd6a 100644 --- a/Documentation/devices.md +++ b/Documentation/devices.md @@ -124,6 +124,7 @@ - Xiaomi Redmi S2/Y2 (ysl) ### lk2nd-msm8974 +- BlackBerry Passport - wolverine - Fairphone 2 - FP2 - HTC One M8 - m8 - LG G3 - D855 diff --git a/lk2nd/device/dts/msm8974/msm8974-blackberry-wolverine.dts b/lk2nd/device/dts/msm8974/msm8974-blackberry-wolverine.dts new file mode 100644 index 000000000..6f38823fa --- /dev/null +++ b/lk2nd/device/dts/msm8974/msm8974-blackberry-wolverine.dts @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#include +#include + +/ { + qcom,msm-id = ; +}; + +&lk2nd { + wolverine { + model = "BlackBerry Passport"; + compatible = "blackberry,wolverine"; + lk2nd,match-cmdline = "*wolverine*"; + + lk2nd,dtb-files = "msm8974-blackberry-wolverine"; + + gpio-keys { + compatible = "gpio-keys"; + up { + lk2nd,code = ; + gpios = <&pmic 22 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + mute { + lk2nd,code = ; + gpios = <&pmic 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + down { + lk2nd,code = ; + gpios = <&pmic 23 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + + }; + }; +}; diff --git a/lk2nd/device/dts/msm8974/rules.mk b/lk2nd/device/dts/msm8974/rules.mk index 1358585b6..c4f72af5c 100644 --- a/lk2nd/device/dts/msm8974/rules.mk +++ b/lk2nd/device/dts/msm8974/rules.mk @@ -5,6 +5,7 @@ QCDTBS += \ $(LOCAL_DIR)/samsung.dtb \ $(LOCAL_DIR)/msm8974pro-ab-pm8941-mtp.dtb \ $(LOCAL_DIR)/msm8974pro-ac-pm8941-mtp.dtb \ + $(LOCAL_DIR)/msm8974-blackberry-wolverine.dtb \ $(LOCAL_DIR)/msm8974-htc-m8.dtb \ $(LOCAL_DIR)/msm8974-lge-d855.dtb \