Skip to content

Commit

Permalink
dts: msm8952: Add support for HMD Global Nokia 6
Browse files Browse the repository at this point in the history
Add support for HMD Global Nokia 6 (ple).
  • Loading branch information
FrostI7Alex authored and TravMurav committed Aug 1, 2024
1 parent e8947b3 commit 14e4c3c
Show file tree
Hide file tree
Showing 3 changed files with 30 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 @@ -71,6 +71,7 @@
### lk2nd-msm8952

- BQ X5 Plus (Longcheer L9360)
- HMD Global Nokia 6 (ple)
- Leeco s2
- Motorola Moto G5 (cedric) (quirky - see comment in `lk2nd/device/dts/msm8952/msm8937-motorola-cedric.dts`)
- Redmi Note 3 Pro (kenzo)
Expand Down
28 changes: 28 additions & 0 deletions lk2nd/device/dts/msm8952/msm8937-nokia-ple.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// SPDX-License-Identifier: BSD-3-Clause

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

/ {
qcom,msm-id = <QCOM_ID_MSM8937 0x2000>,
<QCOM_ID_MSM8937 0x3000>;
qcom,board-id = <0x9B 0>;
};

&lk2nd {
ple {
model = "HMD Global Nokia 6 (ple)";
compatible = "nokia,ple";
lk2nd,match-device = "PLE";

lk2nd,dtb-files = "msm8937-nokia-ple";

gpio-keys {
compatible = "gpio-keys";
up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&tlmm 91 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
};
};
1 change: 1 addition & 0 deletions lk2nd/device/dts/msm8952/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ LOCAL_DIR := $(GET_LOCAL_DIR)

ADTBS += \
$(LOCAL_DIR)/msm8937-mtp.dtb \
$(LOCAL_DIR)/msm8937-nokia-ple.dtb \
$(LOCAL_DIR)/msm8956-mtp.dtb \
$(LOCAL_DIR)/msm8976-qrd.dtb \

Expand Down

0 comments on commit 14e4c3c

Please sign in to comment.