Skip to content

Commit

Permalink
dts: msm8974: Add support for BlackBerry Passport
Browse files Browse the repository at this point in the history
Add support for the BlackBerry Passport (wolverine)

Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
  • Loading branch information
BotchedRPR authored and TravMurav committed Dec 31, 2024
1 parent 93f14e5 commit 376edf6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
- Xiaomi Redmi S2/Y2 (ysl)

### lk2nd-msm8974
- BlackBerry Passport - wolverine
- Fairphone 2 - FP2
- HTC One M8 - m8
- LG G3 - D855
Expand Down
35 changes: 35 additions & 0 deletions lk2nd/device/dts/msm8974/msm8974-blackberry-wolverine.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// SPDX-License-Identifier: BSD-3-Clause

#include <skeleton64.dtsi>
#include <lk2nd.dtsi>

/ {
qcom,msm-id = <QCOM_ID_MSM8974PRO_AA 0xf07404b2 0x10001>;
};

&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 = <KEY_VOLUMEUP>;
gpios = <&pmic 22 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
mute {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&pmic 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
down {
lk2nd,code = <KEY_VOLUMEDOWN>;
gpios = <&pmic 23 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};

};
};
};
1 change: 1 addition & 0 deletions lk2nd/device/dts/msm8974/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \

Expand Down

0 comments on commit 376edf6

Please sign in to comment.